
public abstract class OTransactionAbstract extends Object implements OTransaction
| Modifier and Type | Class and Description |
|---|---|
static class |
OTransactionAbstract.LockedRecordMetadata |
OTransaction.ISOLATION_LEVEL, OTransaction.TXSTATUS, OTransaction.TXTYPE| Modifier and Type | Field and Description |
|---|---|
protected ODatabaseDocumentInternal |
database |
protected OTransaction.ISOLATION_LEVEL |
isolationLevel |
protected Map<ORID,OTransactionAbstract.LockedRecordMetadata> |
locks |
protected OTransaction.TXSTATUS |
status |
DELETED_RECORD| Modifier | Constructor and Description |
|---|---|
protected |
OTransactionAbstract(ODatabaseDocumentInternal iDatabase) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitamountOfNestedTxs, begin, clearIndexEntries, clearRecordEntries, commit, commit, getCurrentRecordEntries, getEntryCount, getIndexChanges, getInvolvedIndexes, getNewRecordEntriesByClass, getNewRecordEntriesByClusterIds, getRecordEntry, getRecordOperations, isUsingLog, loadRecord, loadRecord, loadRecord, loadRecordIfVersionIsNotLatest, reloadRecord, reloadRecord, rollback, rollback, setUsingLog, updateIdentityAfterCommitaddChangedDocument, addIndexEntry, deleteRecord, getClientTransactionId, getCustomData, getId, getIndexChanges, getIndexChangesInternal, getRecord, saveRecord, setCustomDataprotected ODatabaseDocumentInternal database
protected OTransaction.TXSTATUS status
protected OTransaction.ISOLATION_LEVEL isolationLevel
protected Map<ORID,OTransactionAbstract.LockedRecordMetadata> locks
protected OTransactionAbstract(ODatabaseDocumentInternal iDatabase)
public static void updateCacheFromEntries(ODatabaseDocumentInternal database, Iterable<? extends ORecordOperation> entries, boolean updateStrategy)
public OTransaction.ISOLATION_LEVEL getIsolationLevel()
OTransactiongetIsolationLevel in interface OTransactionpublic OTransaction setIsolationLevel(OTransaction.ISOLATION_LEVEL isolationLevel)
OTransactionsetIsolationLevel in interface OTransactionisolationLevel - Isolation level to setpublic boolean isActive()
isActive in interface OBasicTransactiontrue if this transaction is active, false otherwise.public OTransaction.TXSTATUS getStatus()
getStatus in interface OTransactionpublic ODatabaseDocumentInternal getDatabase()
getDatabase in interface OTransactionpublic void close()
close in interface OTransactionpublic OTransaction lockRecord(OIdentifiable iRecord, OStorage.LOCKING_STRATEGY lockingStrategy)
lockRecord in interface OTransactionpublic boolean isLockedRecord(OIdentifiable iRecord)
isLockedRecord in interface OTransactionpublic OStorage.LOCKING_STRATEGY lockingStrategy(OIdentifiable record)
lockingStrategy in interface OTransactionpublic OTransaction unlockRecord(OIdentifiable iRecord)
unlockRecord in interface OTransactionpublic abstract void internalRollback()
public void trackLockedRecord(ORID rid, OStorage.LOCKING_STRATEGY lockingStrategy)
public OStorage.LOCKING_STRATEGY trackUnlockRecord(ORID rid)
public Map<ORID,OTransactionAbstract.LockedRecordMetadata> getInternalLocks()
protected void setLocks(Map<ORID,OTransactionAbstract.LockedRecordMetadata> locks)
public void setDatabase(ODatabaseDocumentInternal database)
Copyright © 2009–2025 OrientDB. All rights reserved.