public class OObjectDatabaseTxPooled extends OObjectDatabaseTx implements ODatabasePooled
ODatabasePoolBase
ODatabase.ATTRIBUTES, ODatabase.OPERATION_MODE, ODatabase.STATUS
automaticSchemaGeneration, dictionary, entityManager, lazyLoading, metadata, saveOnlyDirty, TYPE
databaseOwner, underlying
Constructor and Description |
---|
OObjectDatabaseTxPooled(OObjectDatabasePool 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.
|
OObjectDatabaseTxPooled |
create()
Creates a new database.
|
<THISDB 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 |
isUnderlyingOpen()
Tells if the underlying database is closed.
|
OObjectDatabaseTxPooled |
open(OToken iToken)
Opens a database using an authentication token received as an argument.
|
OObjectDatabaseTxPooled |
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.
|
addBlobCluster, attach, attachAndSave, begin, begin, begin, browseClass, browseClass, browseClass, browseClass, browseCluster, callbackHooks, checkSecurity, checkSecurity, checkSecurity, command, command, command, commit, commit, convertParameter, convertParameters, countClass, countClass, countClass, delete, delete, delete, delete, deleteCascade, deleteOrphans, deregisterClassMethodFilter, detach, detach, detachAll, detachAll, execute, execute, executeWithRetry, existsUserObjectByRID, getBlobClusterIds, getConflictStrategy, getDictionary, getEntityManager, getHooks, getIdentity, getListeners, getMetadata, getRecordByUserObject, getSharedContext, getStorageInfo, getTransaction, getType, getUnderlying, getUser, getUserObjectByRecord, getUserObjectByRecord, getVersion, incrementalBackup, init, isAutomaticSchemaGeneration, isLazyLoading, isManaged, isMVCC, isRetainObjects, isSaveOnlyDirty, live, live, load, load, load, load, load, load, lock, lock, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, objectCommand, objectCommand, objectQuery, objectQuery, pojo2Stream, query, query, query, registerClassMethodFilter, registerHook, registerHook, registerUserObject, registerUserObjectAfterLinkSave, reload, reload, reload, reload, resetInitialization, rollback, rollback, save, save, save, save, setAutomaticSchemaGeneration, setConflictStrategy, setConflictStrategy, setDirty, setInternal, setLazyLoading, setMVCC, setRetainObjects, setSaveOnlyDirty, setUser, stream2pojo, stream2pojo, unlock, unregisterHook, unregisterPojo, unsetDirty
activateOnCurrentThread, addCluster, addCluster, backup, countClusterElements, countClusterElements, countClusterElements, countClusterElements, countClusterElements, create, declareIntent, drop, dropCluster, dropCluster, equals, exists, existsCluster, freeze, freeze, get, getActiveIntent, getClusterIdByName, getClusterNameById, getClusterNames, getClusterRecordSizeById, getClusterRecordSizeByName, getClusters, getConfiguration, getDatabaseOwner, getDefaultClusterId, getLocalCache, getMicroOrRegularTransaction, getName, getProperties, getProperty, getRecordMetadata, getSize, getStatus, getStorage, getURL, isActiveOnCurrentThread, registerListener, release, reload, replaceStorage, restore, set, setDatabaseOwner, setProperty, setStatus, toString, truncateCluster, unregisterListener
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
detachAll
activateOnCurrentThread, addCluster, addCluster, countClusterElements, countClusterElements, countClusterElements, countClusterElements, countClusterElements, create, createClass, declareIntent, drop, dropCluster, dropCluster, exists, existsCluster, freeze, freeze, get, getActiveIntent, getClass, getClusterIdByName, getClusterNameById, getClusterNames, getClusterRecordSizeById, getClusterRecordSizeByName, getClusters, getConfiguration, getDefaultClusterId, getLocalCache, getName, getProperties, getProperty, getRecordMetadata, getSize, getStatus, getURL, isActiveOnCurrentThread, registerListener, release, reload, set, setProperty, setStatus, truncateCluster, unregisterListener
backup, restore
getActiveClusterMap, getActiveDataCenterMap, getEnterpriseEndpoint, getLocalNodeName, isSharded
public OObjectDatabaseTxPooled(OObjectDatabasePool iOwnerPool, String iURL, String iUserName, String iUserPassword)
public void reuse(Object iOwner, Object[] iAdditionalArgs)
ODatabasePooled
reuse
in interface ODatabasePooled
public OObjectDatabaseTxPooled open(String iUserName, String iUserPassword)
ODatabase
open
in interface ODatabase<Object>
open
in class OObjectDatabaseTx
iUserName
- Username to loginiUserPassword
- Password associated to the userpublic OObjectDatabaseTxPooled open(OToken iToken)
ODatabaseInternal
open
in interface ODatabaseInternal<Object>
open
in class OObjectDatabaseTx
iToken
- Authentication tokenpublic OObjectDatabaseTxPooled create()
ODatabase
create
in interface ODatabase<Object>
create
in class ODatabaseWrapperAbstract<ODatabaseDocumentInternal,Object>
public <THISDB extends ODatabase> THISDB create(String incrementalBackupPath)
ODatabase
create
in interface ODatabase<Object>
create
in class ODatabaseWrapperAbstract<ODatabaseDocumentInternal,Object>
THISDB
- Concrete database instance type.incrementalBackupPath
- Path to incremental backuppublic boolean isClosed()
ODatabase
isClosed
in interface ODatabase<Object>
isClosed
in class ODatabaseWrapperAbstract<ODatabaseDocumentInternal,Object>
public void close()
close
in interface ODatabase<Object>
close
in interface Closeable
close
in interface AutoCloseable
close
in class ODatabaseWrapperAbstract<ODatabaseDocumentInternal,Object>
public void forceClose()
ODatabasePooled
forceClose
in interface ODatabasePooled
protected void checkOpenness()
checkOpenness
in class ODatabaseWrapperAbstract<ODatabaseDocumentInternal,Object>
public boolean isUnderlyingOpen()
ODatabasePooled
isUnderlyingOpen
in interface ODatabasePooled
Copyright © 2009–2020 OrientDB. All rights reserved.