public class ODatabaseDocumentTxPooled extends ODatabaseDocumentTx implements ODatabasePooled
ODatabasePoolBase
ODatabase.ATTRIBUTES, ODatabase.OPERATION_MODE, ODatabase.STATUS
embedded, internal, owner, remote
TYPE
Constructor and Description |
---|
ODatabaseDocumentTxPooled(ODatabaseDocumentPool iOwnerPool,
String iURL,
String iUserName,
String iUserPassword) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkOpenness() |
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 a database using the user and password received as arguments.
|
void |
reuse(Object iOwner,
Object[] iAdditionalArgs)
Reuses current instance.
|
activateOnCurrentThread, addBlobCluster, addCluster, addCluster, afterCreateOperations, afterDeleteOperations, afterReadOperations, afterUpdateOperations, assignAndCheckCluster, backup, beforeCreateOperations, beforeDeleteOperations, beforeReadOperations, beforeUpdateOperations, begin, begin, begin, browseClass, browseClass, browseCluster, browseCluster, browseCluster, browseCluster, browseCluster, callbackHooks, callOnCloseListeners, callOnDropListeners, callOnOpenListeners, checkForClusterPermissions, checkIfActive, checkSecurity, checkSecurity, checkSecurity, checkSecurity, checkSecurity, checkSecurity, cleanOutRecord, clearOwner, closeAll, command, command, command, commit, commit, copy, countClass, countClass, countClusterElements, countClusterElements, countClusterElements, countClusterElements, countClusterElements, countView, create, declareIntent, delete, delete, delete, drop, dropCluster, dropCluster, execute, execute, executeDeleteRecord, executeReadRecord, exists, existsCluster, freeze, freeze, get, getActiveIntent, getBlobClusterIds, getClusterIdByName, getClusterName, getClusterNameById, getClusterNames, getClusterRecordSizeById, getClusterRecordSizeByName, getClusters, getCollectionsChanges, getConfiguration, getConflictStrategy, getDatabaseOwner, getDefaultClusterId, getDefaultSerializer, getDictionary, getHooks, getListeners, getLocalCache, getMetadata, getMicroOrRegularTransaction, getName, getOrCreateEmbeddedFactory, getOrCreateRemoteFactory, getProperties, getProperty, getRecord, getRecordMetadata, getRecordType, getSbTreeCollectionManager, getSerializer, getSerializerFactory, getSharedContext, getSize, getStatus, getStorage, getStorageInfo, getStorageVersions, getTransaction, getType, getUnderlying, getURL, getUser, getViewFromCluster, incrementalBackup, internalClose, internalCommit, internalLockRecord, internalUnlockRecord, isActiveOnCurrentThread, isClusterEdge, isClusterVertex, isClusterView, isMVCC, isPrefetchRecords, isRemote, isRetainRecords, isUseLightweightEdges, isValidationEnabled, live, live, load, load, load, load, load, load, loadIfVersionIsNotLatest, lock, lock, newBlob, newBlob, newEdge, newEdge, newElement, newElement, newEmbeddedElement, newEmbeddedElement, newInstance, newInstance, newLightweightEdge, newRegularEdge, newVertex, newVertex, query, query, query, rawBegin, recycle, registerHook, registerHook, registerListener, release, reload, reload, reload, reloadUser, replaceStorage, resetInitialization, restore, rollback, rollback, save, save, save, save, saveAll, sendSequenceAction, set, setConflictStrategy, setConflictStrategy, setCustom, setDatabaseOwner, setDefaultSerializer, setDefaultTransactionMode, setInternal, setMVCC, setPrefetchRecords, setProperty, setRetainRecords, setSerializer, setStatus, setupThreadOwner, setUseLightweightEdges, setUser, setValidationEnabled, truncateCluster, unlock, unregisterHook, unregisterListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getActiveQueries, getActiveQuery, getHaStatus, indexQuery, isDistributed, queryOnNode, realClose, removeHaServer, reuse, swapTx, sync, syncCommit
createClassIfNotExist, createEdgeClass, createVertexClass, newEdge, newVertex
createClass, executeWithRetry, getClass
getActiveClusterMap, getActiveDataCenterMap, getEnterpriseEndpoint, getLocalNodeName, isSharded
public ODatabaseDocumentTxPooled(ODatabaseDocumentPool iOwnerPool, String iURL, String iUserName, String iUserPassword)
public void reuse(Object iOwner, Object[] iAdditionalArgs)
ODatabasePooled
reuse
in interface ODatabasePooled
public ODatabaseDocumentTxPooled open(String iUserName, String iUserPassword)
ODatabase
open
in interface ODatabase<ORecord>
open
in class ODatabaseDocumentTx
iUserName
- Username to loginiUserPassword
- Password associated to the userpublic ODatabaseDocumentTxPooled open(OToken iToken)
ODatabaseInternal
open
in interface ODatabaseInternal<ORecord>
open
in class ODatabaseDocumentTx
iToken
- Authentication tokenpublic ODatabaseDocumentTxPooled create()
ODatabase
create
in interface ODatabase<ORecord>
create
in class ODatabaseDocumentTx
public <DB extends ODatabase> DB create(String incrementalBackupPath)
ODatabase
create
in interface ODatabase<ORecord>
create
in class ODatabaseDocumentTx
DB
- Concrete database instance type.incrementalBackupPath
- Path to incremental backuppublic boolean isUnderlyingOpen()
ODatabasePooled
isUnderlyingOpen
in interface ODatabasePooled
public boolean isClosed()
ODatabase
isClosed
in interface ODatabase<ORecord>
isClosed
in class ODatabaseDocumentTx
public boolean isPooled()
isPooled
in interface ODatabaseDocument
isPooled
in class ODatabaseDocumentTx
true
if database is obtained from the pool and false
otherwise.public void close()
close
in interface ODatabase<ORecord>
close
in interface Closeable
close
in interface AutoCloseable
close
in class ODatabaseDocumentTx
public void forceClose()
ODatabasePooled
forceClose
in interface ODatabasePooled
protected void checkOpenness()
checkOpenness
in class ODatabaseDocumentTx
Copyright © 2009–2020 OrientDB. All rights reserved.