
public class ODatabaseDocumentTxPooled extends ODatabaseDocumentTx implements ODatabasePooled
ODatabasePoolBaseODatabaseDocumentTx.LatestVersionRecordReader, ODatabaseDocumentTx.RecordReader, ODatabaseDocumentTx.SimpleRecordReaderODatabase.ATTRIBUTES, ODatabase.OPERATION_MODE, ODatabase.OPTIONS, ODatabase.STATUSdefaultSerializer, serializer, sessionMetadataTYPE| Constructor and Description |
|---|
ODatabaseDocumentTxPooled(ODatabaseDocumentPool iOwnerPool,
String iURL,
String iUserName,
String iUserPassword) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkOpeness() |
void |
close()
Avoid to close it but rather release itself to the owner pool.
|
ODatabaseDocumentTxPooled |
create()
Creates a new database.
|
<DB extends ODatabase> |
create(String incrementalBackupPath)
Creates new database from database backup.
|
void |
forceClose()
Force closing the current instance avoiding to being reused.
|
boolean |
isClosed()
Checks if the database is closed.
|
boolean |
isPooled() |
boolean |
isUnderlyingOpen()
Tells if the underlying database is closed.
|
ODatabaseDocumentTxPooled |
open(OToken iToken)
Opens a database using an authentication token received as an argument.
|
ODatabaseDocumentTxPooled |
open(String iUserName,
String iUserPassword)
Opens connection to the storage with given user and password.
|
void |
reuse(Object iOwner,
Object[] iAdditionalArgs)
Reuses current instance.
|
activateOnCurrentThread, addBlobCluster, addCluster, addCluster, alterCluster, alterCluster, assignAndCheckCluster, backup, begin, begin, begin, browseClass, browseClass, browseCluster, browseCluster, browseCluster, browseCluster, browseCluster, callbackHooks, callInLock, callOnCloseListeners, callOnDropListeners, callOnOpenListeners, checkIfActive, checkSecurity, checkSecurity, checkSecurity, checkSecurity, checkSecurity, checkSecurity, cleanOutRecord, command, commit, commit, copy, countClass, countClass, countClusterElements, countClusterElements, countClusterElements, countClusterElements, countClusterElements, create, declareIntent, delete, delete, delete, delete, delete, drop, dropCluster, dropCluster, executeDeleteRecord, executeHideRecord, executeReadRecord, executeReadRecords, executeRecycleRecord, executeSaveEmptyRecord, executeSaveRecord, executeWithRetries, executeWithRetries, executeWithRetries, exists, existsCluster, freeze, freeze, get, getActiveIntent, getBlobClusterIds, getClusterIdByName, getClusterNameById, getClusterNames, getClusterRecordSizeById, getClusterRecordSizeByName, getClusters, getConfiguration, getConflictStrategy, getDatabaseOwner, getDefaultClusterId, getDefaultSerializer, getDictionary, getHooks, getListeners, getLocalCache, getMetadata, getName, getProperties, getProperty, getRecord, getRecordMetadata, getRecordType, getSbTreeCollectionManager, getSerializer, getSerializerFactory, getSize, getStatus, getStorage, getStorageVersions, getTransaction, getType, getUnderlying, getURL, getUser, hide, incrementalBackup, isActiveOnCurrentThread, isFrozen, isMVCC, isPrefetchRecords, isRetainRecords, isValidationEnabled, load, load, load, load, load, load, load, load, load, load, loadIfVersionIsNotLatest, newInstance, newInstance, query, recycle, registerHook, registerHook, release, reload, reload, reload, reload, reload, reloadUser, replaceStorage, resetInitialization, restore, rollback, rollback, save, save, save, save, set, setConflictStrategy, setConflictStrategy, setCurrentDatabaseInThreadLocal, setDatabaseOwner, setDefaultClusterIdInternal, setDefaultSerializer, setDefaultTransactionMode, setInternal, setMVCC, setPrefetchRecords, setProperty, setRetainRecords, setSerializer, setStatus, setStatusInternal, setUser, setValidationEnabled, truncateCluster, unregisterHookbrowseListeners, getListenersCopy, registerListener, resetListeners, unregisterListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterListener, unregisterListenerpublic ODatabaseDocumentTxPooled(ODatabaseDocumentPool iOwnerPool, String iURL, String iUserName, String iUserPassword)
public void reuse(Object iOwner, Object[] iAdditionalArgs)
ODatabasePooledreuse in interface ODatabasePooledpublic ODatabaseDocumentTxPooled open(String iUserName, String iUserPassword)
ODatabaseDocumentTxOPartitionedDatabasePool.acquire() instead. It will make work
faster even with embedded database.open in interface ODatabase<ORecord>open in class ODatabaseDocumentTxiUserName - Username to loginiUserPassword - Password associated to the userpublic ODatabaseDocumentTxPooled open(OToken iToken)
ODatabaseDocumentTxopen in interface ODatabaseInternal<ORecord>open in class ODatabaseDocumentTxiToken - Authentication tokenpublic ODatabaseDocumentTxPooled create()
ODatabaseDocumentTxcreate in interface ODatabase<ORecord>create in class ODatabaseDocumentTxpublic <DB extends ODatabase> DB create(String incrementalBackupPath)
ODatabaseDocumentTxcreate in interface ODatabase<ORecord>create in class ODatabaseDocumentTxDB - Concrete database instance type.incrementalBackupPath - Path to incremental backuppublic boolean isUnderlyingOpen()
ODatabasePooledisUnderlyingOpen in interface ODatabasePooledpublic boolean isClosed()
ODatabaseisClosed in interface ODatabase<ORecord>isClosed in class ODatabaseDocumentTxpublic boolean isPooled()
isPooled in interface ODatabaseDocumentisPooled in class ODatabaseDocumentTxtrue if database is obtained from the pool and false otherwise.public void close()
close in interface ODatabase<ORecord>close in interface Closeableclose in interface AutoCloseableclose in class ODatabaseDocumentTxpublic void forceClose()
ODatabasePooledforceClose in interface ODatabasePooledprotected void checkOpeness()
checkOpeness in class ODatabaseDocumentTxCopyright © 2009–2025 OrientDB. All rights reserved.