|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcom.orientechnologies.orient.core.db.ODatabaseWrapperAbstract<DB>
com.orientechnologies.orient.core.db.ODatabaseRecordWrapperAbstract<ODatabaseRecordTx>
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx
public class ODatabaseDocumentTx
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.orientechnologies.orient.core.db.ODatabase |
|---|
ODatabase.ATTRIBUTES, ODatabase.OPTIONS, ODatabase.STATUS |
| Constructor Summary | |
|---|---|
ODatabaseDocumentTx(java.lang.String iURL)
|
|
| Method Summary | |
|---|---|
ORecordIteratorClass<ODocument> |
browseClass(java.lang.String iClassName)
Browses all the records of the specified class and also all the subclasses. |
ORecordIteratorClass<ODocument> |
browseClass(java.lang.String iClassName,
boolean iPolymorphic)
Browses all the records of the specified class and if iPolymorphic is true also all the subclasses. |
ORecordIteratorCluster<ODocument> |
browseCluster(java.lang.String iClusterName)
Browses all the records of the specified cluster. |
ODatabaseComplex<ORecordInternal<?>> |
commit()
Commits the current transaction. |
long |
countClass(java.lang.String iClassName)
Returns the number of the records of the class iClassName. |
ODatabaseDocumentTx |
delete(ODocument iContent)
Deletes a document. |
ODocument |
newInstance()
Creates a new entity instance. |
ODocument |
newInstance(java.lang.String iClassName)
Creates a new entity instance. |
ODatabaseComplex<ORecordInternal<?>> |
rollback()
Aborts the current running transaction. |
ODatabaseDocumentTx |
save(ORecordInternal<?> iRecord)
Saves a document to the database. |
ODatabaseDocumentTx |
save(ORecordInternal<?> iContent,
java.lang.String iClusterName)
Saves a document specifying a cluster where to store the record. |
| Methods inherited from class com.orientechnologies.orient.core.db.ODatabaseRecordWrapperAbstract |
|---|
addCluster, addDataSegment, addLogicalCluster, addPhysicalCluster, addPhysicalCluster, begin, begin, begin, browseCluster, callbackHooks, checkSecurity, checkSecurity, checkSecurity, command, create, delete, delete, dropCluster, dropCluster, existsUserObjectByRID, getDictionary, getHooks, getMetadata, getRecord, getRecordByUserObject, getRecordType, getTransaction, getUser, getUserObjectByRecord, isMVCC, isRetainRecords, isValidationEnabled, load, load, load, load, load, load, query, registerHook, registerUserObject, reload, reload, setInternal, setMVCC, setRetainRecords, setValidationEnabled, unregisterHook |
| Methods inherited from class com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract |
|---|
callInLock, close, countClusterElements, countClusterElements, countClusterElements, declareIntent, equals, exists, finalize, get, getClusterIdByName, getClusterNameById, getClusterNames, getClusterRecordSizeById, getClusterRecordSizeByName, getClusters, getClusterType, getDatabaseOwner, getDefaultClusterId, getLevel1Cache, getLevel2Cache, getName, getProperties, getProperty, getStatus, getStorage, getUnderlying, getURL, isClosed, open, registerListener, reload, set, setDatabaseOwner, setProperty, setStatus, toString, unregisterListener |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.orientechnologies.orient.core.db.record.ODatabaseRecord |
|---|
browseCluster, checkSecurity, checkSecurity, checkSecurity, getRecord, getRecordType, isRetainRecords, isValidationEnabled, setRetainRecords, setValidationEnabled |
| Methods inherited from interface com.orientechnologies.orient.core.db.ODatabaseComplex |
|---|
begin, begin, begin, callbackHooks, command, delete, getDatabaseOwner, getDictionary, getHooks, getMetadata, getTransaction, getUnderlying, getUser, isMVCC, load, load, load, load, load, load, query, registerHook, reload, setDatabaseOwner, setInternal, setMVCC, unregisterHook |
| Methods inherited from interface com.orientechnologies.orient.core.db.ODatabase |
|---|
addCluster, addDataSegment, addLogicalCluster, addPhysicalCluster, callInLock, close, countClusterElements, countClusterElements, countClusterElements, create, declareIntent, delete, dropCluster, dropCluster, exists, get, getClusterIdByName, getClusterNameById, getClusterNames, getClusterRecordSizeById, getClusterRecordSizeByName, getClusters, getClusterType, getDefaultClusterId, getLevel1Cache, getLevel2Cache, getName, getProperties, getProperty, getStatus, getStorage, getURL, isClosed, open, registerListener, reload, set, setProperty, setStatus, unregisterListener |
| Methods inherited from interface com.orientechnologies.orient.core.db.OUserObject2RecordHandler |
|---|
existsUserObjectByRID, getRecordByUserObject, getUserObjectByRecord, registerUserObject |
| Constructor Detail |
|---|
public ODatabaseDocumentTx(java.lang.String iURL)
| Method Detail |
|---|
public ODocument newInstance()
ODatabaseComplex
newInstance in interface ODatabaseComplex<ORecordInternal<?>>newInstance in class ODatabaseRecordWrapperAbstract<ODatabaseRecordTx>public ODocument newInstance(java.lang.String iClassName)
ODatabaseSchemaAware
newInstance in interface ODatabaseSchemaAware<ORecordInternal<?>>public ORecordIteratorClass<ODocument> browseClass(java.lang.String iClassName)
ODatabaseDocument
browseClass in interface ODatabaseDocumentiClassName - Class name to iterate
public ORecordIteratorClass<ODocument> browseClass(java.lang.String iClassName,
boolean iPolymorphic)
ODatabaseDocument
browseClass in interface ODatabaseDocumentiClassName - Class name to iterateiPolymorphic - Consider also the instances of the subclasses or not
public ORecordIteratorCluster<ODocument> browseCluster(java.lang.String iClusterName)
ODatabaseRecord
browseCluster in interface ODatabaseRecordbrowseCluster in class ODatabaseRecordWrapperAbstract<ODatabaseRecordTx>iClusterName - Cluster name to iterate
public ODatabaseDocumentTx save(ORecordInternal<?> iRecord)
OConcurrentModificationException exception is thrown.Before to save the document it must be valid following the
constraints declared in the schema if any (can work also in schema-less mode). To validate the document the
ORecordSchemaAwareAbstract.validate() is called.
save in interface ODatabaseComplex<ORecordInternal<?>>save in class ODatabaseRecordWrapperAbstract<ODatabaseRecordTx>iRecord - Record to save.
OConcurrentModificationException - if the version of the document is different by the version contained in the database.
OValidationException - if the document breaks some validation constraints defined in the schema#setMVCC(boolean), {@link #isMVCC()}
public ODatabaseDocumentTx save(ORecordInternal<?> iContent,
java.lang.String iClusterName)
OConcurrentModificationException exception is thrown. Before to save the document it must be valid following the
constraints declared in the schema if any (can work also in schema-less mode). To validate the document the
ORecordSchemaAwareAbstract.validate() is called.
save in interface ODatabaseComplex<ORecordInternal<?>>save in class ODatabaseRecordWrapperAbstract<ODatabaseRecordTx>iRecord - Record to saveiClusterName - Cluster name where to save the record
OConcurrentModificationException - if the version of the document is different by the version contained in the database.
OValidationException - if the document breaks some validation constraints defined in the schema#setMVCC(boolean), {@link #isMVCC()}, ORecordSchemaAware#validate()public ODatabaseDocumentTx delete(ODocument iContent)
OConcurrentModificationException exception is thrown.
iContent -
#setMVCC(boolean), {@link #isMVCC()}public long countClass(java.lang.String iClassName)
countClass in interface ODatabaseSchemaAware<ORecordInternal<?>>iClassName - Class name
public ODatabaseComplex<ORecordInternal<?>> commit()
ODatabaseComplex
commit in interface ODatabaseComplex<ORecordInternal<?>>public ODatabaseComplex<ORecordInternal<?>> rollback()
ODatabaseComplex
rollback in interface ODatabaseComplex<ORecordInternal<?>>
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||