public interface ODatabaseDocumentInternal extends ODatabaseSession, ODatabaseInternal<ORecord>
ODatabase.ATTRIBUTES, ODatabase.OPERATION_MODE, ODatabase.STATUS
TYPE
Modifier and Type | Method and Description |
---|---|
void |
afterCreateOperations(OIdentifiable id) |
void |
afterDeleteOperations(OIdentifiable id) |
void |
afterReadOperations(OIdentifiable identifiable) |
void |
afterUpdateOperations(OIdentifiable id) |
int |
assignAndCheckCluster(ORecord record,
String iClusterName) |
OIdentifiable |
beforeCreateOperations(OIdentifiable id,
String iClusterName) |
void |
beforeDeleteOperations(OIdentifiable id,
String iClusterName) |
boolean |
beforeReadOperations(OIdentifiable identifiable) |
OIdentifiable |
beforeUpdateOperations(OIdentifiable id,
String iClusterName) |
ORecordHook.RESULT |
callbackHooks(ORecordHook.TYPE type,
OIdentifiable id) |
void |
callOnCloseListeners() |
void |
callOnDropListeners() |
void |
callOnOpenListeners() |
void |
checkForClusterPermissions(String name) |
void |
checkIfActive() |
ODatabaseDocumentInternal |
cleanOutRecord(ORID rid,
int version) |
ODatabaseDocumentInternal |
copy() |
void |
executeDeleteRecord(OIdentifiable record,
int iVersion,
boolean iRequired,
ODatabase.OPERATION_MODE iMode,
boolean prohibitTombstones) |
<RET extends ORecord> |
executeReadRecord(ORecordId rid,
ORecord iRecord,
int recordVersion,
String fetchPlan,
boolean ignoreCache,
boolean iUpdateCache,
boolean loadTombstones,
OStorage.LOCKING_STRATEGY lockingStrategy,
RecordReader recordReader) |
<RET extends ORecord> |
executeSaveEmptyRecord(ORecord record,
String clusterName) |
<RET extends ORecord> |
executeSaveRecord(ORecord record,
String clusterName,
int ver,
ODatabase.OPERATION_MODE mode,
boolean forceCreate,
ORecordCallback<? extends Number> recordCreatedCallback,
ORecordCallback<Integer> recordUpdatedCallback) |
default Map<String,OResultSet> |
getActiveQueries() |
default OResultSet |
getActiveQuery(String id) |
default Map<String,Object> |
getHaStatus(boolean servers,
boolean db,
boolean latency,
boolean messages) |
OMetadataInternal |
getMetadata()
Return the OMetadata instance.
|
OSBTreeCollectionManager |
getSbTreeCollectionManager()
Internal.
|
ORecordSerializer |
getSerializer() |
OBinarySerializerFactory |
getSerializerFactory() |
OCurrentStorageComponentsFactory |
getStorageVersions()
Internal.
|
boolean |
hide(ORID rid)
Hides records content by putting tombstone on the records position but does not delete record itself.
|
default OResultSet |
indexQuery(String indexName,
String query,
Object... args) |
void |
internalClose(boolean recycle) |
void |
internalCommit(OTransactionInternal transaction)
Executed the commit on the storage hiding away storage concepts from the transaction
|
boolean |
isClusterEdge(int cluster) |
boolean |
isClusterVertex(int cluster) |
boolean |
isPrefetchRecords() |
boolean |
isUseLightweightEdges() |
<RET extends ORecord> |
loadIfVersionIsNotLatest(ORID rid,
int recordVersion,
String fetchPlan,
boolean ignoreCache) |
OEdge |
newLightweightEdge(String iClassName,
OVertex from,
OVertex to) |
OEdge |
newRegularEdge(String iClassName,
OVertex from,
OVertex to) |
default OResultSet |
queryOnNode(String nodeName,
OExecutionPlan executionPlan,
Map<Object,Object> inputParameters)
sends an execution plan to a remote node for a remote query execution
|
void |
rawBegin(OTransaction transaction) |
default void |
realClose() |
void |
recycle(ORecord record) |
void |
reloadUser() |
default boolean |
removeHaServer(String serverName) |
default void |
reuse() |
<DB extends ODatabase> |
setCustom(String name,
Object iValue) |
void |
setDefaultTransactionMode() |
void |
setPrefetchRecords(boolean prefetchRecords) |
void |
setSerializer(ORecordSerializer serializer) |
void |
setUseLightweightEdges(boolean b) |
default OTransaction |
swapTx(OTransaction newTx) |
default boolean |
sync(boolean forceDeployment,
boolean tryWithDelta)
synchronizes current database instance with the rest of the cluster (if in distributed mode).
|
default Map<String,Object> |
syncCluster(String clusterName)
synchronizes a cluster with the rest of the network (if in distributed mode).
|
addBlobCluster, browseClass, browseClass, browseCluster, browseCluster, browseCluster, browseCluster, browseCluster, checkSecurity, checkSecurity, checkSecurity, checkSecurity, checkSecurity, checkSecurity, countClass, countClass, createClassIfNotExist, createEdgeClass, createVertexClass, freeze, freeze, getRecord, getRecordType, isPooled, isRetainRecords, isValidationEnabled, newBlob, newBlob, newEdge, newEdge, newEdge, newElement, newElement, newInstance, newVertex, newVertex, newVertex, release, setRetainRecords, setValidationEnabled
activateOnCurrentThread, addCluster, addCluster, begin, begin, begin, close, command, command, command, commit, commit, countClusterElements, countClusterElements, countClusterElements, countClusterElements, countClusterElements, create, create, create, createClass, declareIntent, delete, delete, delete, drop, dropCluster, dropCluster, execute, execute, executeWithRetry, exists, existsCluster, get, getActiveIntent, 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, isFrozen, isMVCC, live, live, load, load, load, load, load, load, load, load, load, load, newInstance, open, query, query, query, registerHook, registerHook, registerListener, reload, reload, reload, rollback, rollback, save, save, save, save, set, setConflictStrategy, setConflictStrategy, setMVCC, setProperty, setStatus, truncateCluster, unregisterHook, unregisterListener
backup, restore
callInLock, getActiveClusterMap, getActiveDataCenterMap, getDatabaseOwner, getEnterpriseEndpoint, getLocalNodeName, getMicroOrRegularTransaction, getSharedContext, getStorage, getUnderlying, isSharded, open, replaceStorage, resetInitialization, setDatabaseOwner, setInternal, setUser
OCurrentStorageComponentsFactory getStorageVersions()
OSBTreeCollectionManager getSbTreeCollectionManager()
OBinarySerializerFactory getSerializerFactory()
ORecordSerializer getSerializer()
void setSerializer(ORecordSerializer serializer)
<RET extends ORecord> RET loadIfVersionIsNotLatest(ORID rid, int recordVersion, String fetchPlan, boolean ignoreCache) throws ORecordNotFoundException
ORecordNotFoundException
void reloadUser()
void afterReadOperations(OIdentifiable identifiable)
boolean beforeReadOperations(OIdentifiable identifiable)
identifiable
- OIdentifiable beforeCreateOperations(OIdentifiable id, String iClusterName)
id
- iClusterName
- OIdentifiable beforeUpdateOperations(OIdentifiable id, String iClusterName)
id
- iClusterName
- void beforeDeleteOperations(OIdentifiable id, String iClusterName)
void afterUpdateOperations(OIdentifiable id)
void afterCreateOperations(OIdentifiable id)
void afterDeleteOperations(OIdentifiable id)
ORecordHook.RESULT callbackHooks(ORecordHook.TYPE type, OIdentifiable id)
<RET extends ORecord> RET executeReadRecord(ORecordId rid, ORecord iRecord, int recordVersion, String fetchPlan, boolean ignoreCache, boolean iUpdateCache, boolean loadTombstones, OStorage.LOCKING_STRATEGY lockingStrategy, RecordReader recordReader)
<RET extends ORecord> RET executeSaveRecord(ORecord record, String clusterName, int ver, ODatabase.OPERATION_MODE mode, boolean forceCreate, ORecordCallback<? extends Number> recordCreatedCallback, ORecordCallback<Integer> recordUpdatedCallback)
void executeDeleteRecord(OIdentifiable record, int iVersion, boolean iRequired, ODatabase.OPERATION_MODE iMode, boolean prohibitTombstones)
<RET extends ORecord> RET executeSaveEmptyRecord(ORecord record, String clusterName)
void setDefaultTransactionMode()
OMetadataInternal getMetadata()
ODatabase
getMetadata
in interface ODatabase<ORecord>
ODatabaseDocumentInternal copy()
void recycle(ORecord record)
void checkIfActive()
void callOnOpenListeners()
void callOnCloseListeners()
void callOnDropListeners()
void setPrefetchRecords(boolean prefetchRecords)
boolean isPrefetchRecords()
void checkForClusterPermissions(String name)
void rawBegin(OTransaction transaction)
default OResultSet getActiveQuery(String id)
default Map<String,OResultSet> getActiveQueries()
boolean isUseLightweightEdges()
void setUseLightweightEdges(boolean b)
boolean hide(ORID rid)
This method is used in case of record content itself is broken and cannot be read or deleted. So it is emergence method. This method can be used only if there is no active transaction in database.
rid
- record id.true
if record was hidden and false
if record does not exits in database.UnsupportedOperationException
- In case current version of cluster does not
support given operation.ORecordNotFoundException
- if record is already deleted/hidden.ODatabaseDocumentInternal cleanOutRecord(ORID rid, int version)
default void realClose()
default void reuse()
default boolean sync(boolean forceDeployment, boolean tryWithDelta)
default Map<String,Object> syncCluster(String clusterName)
default Map<String,Object> getHaStatus(boolean servers, boolean db, boolean latency, boolean messages)
default boolean removeHaServer(String serverName)
default OResultSet queryOnNode(String nodeName, OExecutionPlan executionPlan, Map<Object,Object> inputParameters)
nodeName
- the node nameexecutionPlan
- the execution planinputParameters
- the input parameters for executionvoid internalCommit(OTransactionInternal transaction)
transaction
- boolean isClusterVertex(int cluster)
boolean isClusterEdge(int cluster)
default OTransaction swapTx(OTransaction newTx)
void internalClose(boolean recycle)
default OResultSet indexQuery(String indexName, String query, Object... args)
Copyright © 2009–2019 OrientDB. All rights reserved.