
public interface ODatabaseDocument extends ODatabase<ORecord>, ODatabaseSchemaAware<ORecord>
ODatabase.ATTRIBUTES, ODatabase.OPERATION_MODE, ODatabase.OPTIONS, ODatabase.STATUS| Modifier and Type | Method and Description |
|---|---|
int |
addBlobCluster(String iClusterName,
Object... iParameters)
Add a cluster for blob records.
|
ORecordIteratorClass<ODocument> |
browseClass(String iClassName)
Browses all the records of the specified class and also all the subclasses.
|
ORecordIteratorClass<ODocument> |
browseClass(String iClassName,
boolean iPolymorphic)
Browses all the records of the specified class and if iPolymorphic is true also all the subclasses.
|
<REC extends ORecord> |
browseCluster(String iClusterName)
Browses all the records of the specified cluster.
|
<REC extends ORecord> |
browseCluster(String iClusterName,
Class<REC> iRecordClass)
Browses all the records of the specified cluster of the passed record type.
|
<REC extends ORecord> |
browseCluster(String iClusterName,
Class<REC> iRecordClass,
long startClusterPosition,
long endClusterPosition) |
<REC extends ORecord> |
browseCluster(String iClusterName,
Class<REC> iRecordClass,
long startClusterPosition,
long endClusterPosition,
boolean loadTombstones)
Deprecated.
|
<REC extends ORecord> |
browseCluster(String iClusterName,
long startClusterPosition,
long endClusterPosition,
boolean loadTombstones) |
<DB extends ODatabaseDocument> |
checkSecurity(ORule.ResourceGeneric iResourceGeneric,
int iOperation,
Object... iResourcesSpecific)
Checks if the operation against multiple resources is allowed for the current user.
|
<DB extends ODatabaseDocument> |
checkSecurity(ORule.ResourceGeneric iResourceGeneric,
int iOperation,
Object iResourceSpecific)
Checks if the operation on a resource is allowed for the current user.
|
<DB extends ODatabaseDocument> |
checkSecurity(ORule.ResourceGeneric resourceGeneric,
String resourceSpecific,
int iOperation)
Checks if the operation on a resource is allowed for the current user.
|
<DB extends ODatabaseDocument> |
checkSecurity(String iResource,
int iOperation)
Deprecated.
|
<DB extends ODatabaseDocument> |
checkSecurity(String iResourceGeneric,
int iOperation,
Object... iResourcesSpecific)
Deprecated.
|
<DB extends ODatabaseDocument> |
checkSecurity(String iResourceGeneric,
int iOperation,
Object iResourceSpecific)
Deprecated.
|
void |
freeze()
Flush all indexes and cached storage content to the disk.
|
void |
freeze(boolean throwException)
Flush all indexes and cached storage content to the disk.
|
OIntent |
getActiveIntent()
Return the active intent.
|
<RET extends ORecord> |
getRecord(OIdentifiable iIdentifiable)
Returns the record for a OIdentifiable instance.
|
byte |
getRecordType()
Returns the default record type for this kind of database.
|
boolean |
isPooled() |
boolean |
isRetainRecords()
Returns true if current configuration retains objects, otherwise false
|
boolean |
isValidationEnabled()
Tells if validation of record is active.
|
void |
release()
Allows to execute write-related commands on DB.
|
ODatabaseDocument |
setRetainRecords(boolean iValue)
Specifies if retain handled objects in memory or not.
|
<DB extends ODatabaseDocument> |
setValidationEnabled(boolean iEnabled)
Enables or disables the record validation.
|
countClass, countClass, newInstanceactivateOnCurrentThread, addCluster, addCluster, alterCluster, alterCluster, begin, begin, begin, cleanOutRecord, close, command, commit, commit, countClusterElements, countClusterElements, countClusterElements, countClusterElements, countClusterElements, create, create, create, declareIntent, delete, delete, delete, drop, dropCluster, dropCluster, exists, existsCluster, get, getBlobClusterIds, getClusterIdByName, getClusterNameById, getClusterNames, getClusterRecordSizeById, getClusterRecordSizeByName, getClusters, getConfiguration, getConflictStrategy, getDefaultClusterId, getDictionary, getHooks, getListeners, getLocalCache, getMetadata, getName, getProperties, getProperty, getRecordMetadata, getSize, getStatus, getTransaction, getType, getURL, getUser, hide, incrementalBackup, isActiveOnCurrentThread, isClosed, isFrozen, isMVCC, load, load, load, load, load, load, load, load, load, load, newInstance, open, query, registerHook, registerHook, registerListener, reload, reload, reload, rollback, rollback, save, save, save, save, set, setConflictStrategy, setConflictStrategy, setMVCC, setProperty, setStatus, truncateCluster, unregisterHook, unregisterListenerbackup, restorestatic final String TYPE
ORecordIteratorClass<ODocument> browseClass(String iClassName)
iClassName - Class name to iterateORecordIteratorClass<ODocument> browseClass(String iClassName, boolean iPolymorphic)
iClassName - Class name to iterateiPolymorphic - Consider also the instances of the subclasses or notvoid freeze()
release() command
will be called.
Given command waits till all on going modifications in indexes or DB will be finished.
IMPORTANT: This command is not reentrant.freeze in interface ODatabase<ORecord>ODatabase.release()void release()
freeze() command.release in interface ODatabase<ORecord>ODatabase.freeze()void freeze(boolean throwException)
release() command
will be called or exception will be thrown on attempt to modify DB data. Concrete behaviour depends on
throwException parameter.
IMPORTANT: This command is not reentrant.freeze in interface ODatabase<ORecord>throwException - If true OModificationOperationProhibitedException
exception will be thrown in case of write command will be performed.<REC extends ORecord> ORecordIteratorCluster<REC> browseCluster(String iClusterName)
iClusterName - Cluster name to iterate<REC extends ORecord> ORecordIteratorCluster<REC> browseCluster(String iClusterName, long startClusterPosition, long endClusterPosition, boolean loadTombstones)
<REC extends ORecord> ORecordIteratorCluster<REC> browseCluster(String iClusterName, Class<REC> iRecordClass)
iClusterName - Cluster name to iterateiRecordClass - The record class expected<REC extends ORecord> ORecordIteratorCluster<REC> browseCluster(String iClusterName, Class<REC> iRecordClass, long startClusterPosition, long endClusterPosition)
@Deprecated <REC extends ORecord> ORecordIteratorCluster<REC> browseCluster(String iClusterName, Class<REC> iRecordClass, long startClusterPosition, long endClusterPosition, boolean loadTombstones)
<RET extends ORecord> RET getRecord(OIdentifiable iIdentifiable)
iIdentifiable - byte getRecordType()
boolean isRetainRecords()
setRetainRecords(boolean)ODatabaseDocument setRetainRecords(boolean iValue)
iValue - True to enable, false to disable it.isRetainRecords()<DB extends ODatabaseDocument> DB checkSecurity(ORule.ResourceGeneric resourceGeneric, String resourceSpecific, int iOperation)
resourceGeneric - Generic Resource where to execute the operationresourceGeneric - Specific resource name where to execute the operationiOperation - Operation to execute against the resource<DB extends ODatabaseDocument> DB checkSecurity(ORule.ResourceGeneric iResourceGeneric, int iOperation, Object iResourceSpecific)
iResourceGeneric - Resource where to execute the operation, i.e.: database.clustersiOperation - Operation to execute against the resourceiResourceSpecific - Target resource, i.e.: "employee" to specify the cluster name.<DB extends ODatabaseDocument> DB checkSecurity(ORule.ResourceGeneric iResourceGeneric, int iOperation, Object... iResourcesSpecific)
iResourceGeneric - Resource where to execute the operation, i.e.: database.clustersiOperation - Operation to execute against the resourceiResourcesSpecific - Target resources as an array of Objects, i.e.: ["employee", 2] to specify cluster name and id.boolean isValidationEnabled()
<DB extends ODatabaseDocument> DB setValidationEnabled(boolean iEnabled)
iEnabled - True to enable, false to disable@Deprecated <DB extends ODatabaseDocument> DB checkSecurity(String iResource, int iOperation)
iResource - Resource where to execute the operationiOperation - Operation to execute against the resource@Deprecated <DB extends ODatabaseDocument> DB checkSecurity(String iResourceGeneric, int iOperation, Object iResourceSpecific)
iResourceGeneric - Resource where to execute the operation, i.e.: database.clustersiOperation - Operation to execute against the resourceiResourceSpecific - Target resource, i.e.: "employee" to specify the cluster name.@Deprecated <DB extends ODatabaseDocument> DB checkSecurity(String iResourceGeneric, int iOperation, Object... iResourcesSpecific)
iResourceGeneric - Resource where to execute the operation, i.e.: database.clustersiOperation - Operation to execute against the resourceiResourcesSpecific - Target resources as an array of Objects, i.e.: ["employee", 2] to specify cluster name and id.boolean isPooled()
true if database is obtained from the pool and false otherwise.int addBlobCluster(String iClusterName, Object... iParameters)
addBlobCluster in interface ODatabase<ORecord>iClusterName - Cluster nameiParameters - Additional parameters to pass to the factoriesOIntent getActiveIntent()
Copyright © 2009–2025 OrientDB. All rights reserved.