All Superinterfaces:
AutoCloseable , Closeable , OBackupable , ODatabase <ORecord >, ODatabaseDocument , ODatabaseInternal <ORecord >, ODatabaseSession
All Known Implementing Classes:
ODatabaseDocumentAbstract , ODatabaseDocumentDistributed , ODatabaseDocumentDistributedPooled , ODatabaseDocumentEmbedded , ODatabaseDocumentEmbeddedPooled , ODatabaseDocumentRemote , ODatabaseDocumentRemotePooled
Method Summary
All Methods Instance Methods Abstract Methods Default Methods
void
void
void
void
int
void
boolean
void
void
void
void
void
void
long
boolean
default void
void
long[]
int[]
getHaStatus (boolean servers,
boolean db,
boolean latency,
boolean messages)
long
Return the OMetadata instance.
void
void
Executed the commit on the storage hiding away storage concepts from the transaction
void
void
void
boolean
boolean
boolean
default boolean
default boolean
boolean
default boolean
boolean
boolean
sends an execution plan to a remote node for a remote query execution
default void
default void
void
default void
void
default void
default boolean
default void
<T> T
void
void
void
void
void
default void
default boolean
sync (boolean forceDeployment,
boolean tryWithDelta)
synchronizes current database instance with the rest of the cluster (if in distributed mode).
default void
void
long
long
Methods inherited from interface com.orientechnologies.orient.core.db.ODatabase
activateOnCurrentThread , addCluster , addCluster , begin , begin , close , command , command , commit , commit , countClusterElements , countClusterElements , countClusterElements , createClass , delete , delete , delete , dropCluster , dropCluster , execute , execute , executeWithRetry , existsCluster , get , getBlobClusterIds , getClass , getClusterIdByName , getClusterNameById , getClusterNames , getClusterRecordSizeById , getClusterRecordSizeByName , getClusters , getConfiguration , getConflictStrategy , getDefaultClusterId , getDictionary , getHooks , getListeners , getLocalCache , getName , getProperties , getProperty , getRecordMetadata , getSize , getStatus , getTransaction , getType , getURL , getUser , incrementalBackup , isActiveOnCurrentThread , isClosed , live , live , load , load , load , load , load , load , lock , lock , newInstance , query , query , registerHook , registerHook , registerListener , reload , reload , reload , rollback , rollback , save , save , set , setConflictStrategy , setConflictStrategy , setProperty , setStatus , truncateCluster , unlock , unregisterHook , unregisterListener
Methods inherited from interface com.orientechnologies.orient.core.db.document.ODatabaseDocument
addBlobCluster , browseClass , browseClass , browseCluster , browseCluster , browseCluster , checkSecurity , checkSecurity , checkSecurity , countClass , countClass , countView , createClassIfNotExist , createEdgeClass , createVertexClass , freeze , freeze , getRecord , getRecordType , isPooled , isValidationEnabled , newBlob , newBlob , newEdge , newEdge , newEdge , newElement , newElement , newEmbeddedElement , newEmbeddedElement , newInstance , newVertex , newVertex , newVertex , release , reload , setValidationEnabled
Methods inherited from interface com.orientechnologies.orient.core.db.ODatabaseInternal
addRidbagPrefetchStats , createInterruptTimerTask , getActiveDataCenterMap , getDatabaseOwner , getEnterpriseEndpoint , getLocalNodeName , getSharedContext , getStats , getStorage , getStorageInfo , getUnderlying , isSharded , replaceStorage , resetInitialization , resetRecordLoadStats , save , setDatabaseOwner , setInternal , setUser
Method Details
getStorageVersions
Internal. Returns the factory that defines a set of components that current database should use
to be compatible to current version of storage. So if you open a database create with old
version of OrientDB it defines a components that should be used to provide backward
compatibility with that version of database.
getSbTreeCollectionManager
Internal. Gets an instance of sb-tree collection manager for current database.
getSerializerFactory
Returns:
the factory of binary serializers.
getSerializer
Returns:
serializer which is used for document serialization.
reloadUser
void reloadUser ()
beforeReadOperations
Parameters:
identifiable -
Returns:
true if the record should be skipped
beforeCreateOperations
Parameters:
id -
iClusterName -
Returns:
null if nothing changed the instance if has been modified or replaced
beforeUpdateOperations
Parameters:
id -
iClusterName -
Returns:
null if nothing changed the instance if has been modified or replaced
executeDeleteRecord
void executeDeleteRecord (OIdentifiable record,
int iVersion,
boolean iRequired)
setDefaultTransactionMode
checkIfActive
void checkIfActive ()
callOnOpenListeners
void callOnOpenListeners ()
callOnCloseListeners
void callOnCloseListeners ()
callOnDropListeners
void callOnDropListeners ()
setPrefetchRecords
void setPrefetchRecords (boolean prefetchRecords)
isPrefetchRecords
boolean isPrefetchRecords ()
checkForClusterPermissions
void checkForClusterPermissions (String name)
isUseLightweightEdges
boolean isUseLightweightEdges ()
setUseLightweightEdges
void setUseLightweightEdges (boolean b)
realClose
default void realClose ()
reuse
default void reuse ()
sync
default boolean sync (boolean forceDeployment,
boolean tryWithDelta)
synchronizes current database instance with the rest of the cluster (if in distributed mode).
Returns:
true if the database was synchronized, false otherwise
getHaStatus
default Map <String ,Object > getHaStatus (boolean servers,
boolean db,
boolean latency,
boolean messages)
removeHaServer
default boolean removeHaServer (String serverName)
queryOnNode
sends an execution plan to a remote node for a remote query execution
Parameters:
nodeName - the node name
executionPlan - the execution plan
inputParameters - the input parameters for execution
Returns:
an OResultSet to fetch the results of the query execution
internalCommit
Executed the commit on the storage hiding away storage concepts from the transaction
Parameters:
transaction -
isClusterVertex
boolean isClusterVertex (int cluster)
isClusterEdge
boolean isClusterEdge (int cluster)
isClusterView
boolean isClusterView (int cluster)
internalClose
void internalClose (boolean recycle)
getViewFromCluster
OView getViewFromCluster (int cluster)
isDistributed
default boolean isDistributed ()
isRemote
default boolean isRemote ()
isLocalEnv
default boolean isLocalEnv ()
dropClusterInternal
boolean dropClusterInternal (int clusterId)
getClusterDataRange
long[] getClusterDataRange (int currentClusterId)
setDefaultClusterId
void setDefaultClusterId (int addCluster)
getLastClusterPosition
long getLastClusterPosition (int clusterId)
getClusterRecordConflictStrategy
String getClusterRecordConflictStrategy (int clusterId)
getClustersIds
int[] getClustersIds (Set <String > filterClusters)
queryStartUsingViewCluster
default void queryStartUsingViewCluster (int cluster)
queryStartUsingViewIndex
default void queryStartUsingViewIndex (String index)
truncateClass
void truncateClass (String name)
truncateClass
long truncateClass (String name,
boolean polimorfic)
truncateClusterInternal
long truncateClusterInternal (String name)
commitPreallocate
void commitPreallocate ()
internalCommitPreallocate
countRecords
long countRecords ()
isReusable
boolean isReusable ()