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, wait
amountOfNestedTxs, begin, clearIndexEntries, clearRecordEntries, commit, commit, getCurrentRecordEntries, getEntryCount, getIndexChanges, getInvolvedIndexes, getNewRecordEntriesByClass, getNewRecordEntriesByClusterIds, getRecordEntry, getRecordOperations, isUsingLog, loadRecord, loadRecord, loadRecord, loadRecordIfVersionIsNotLatest, reloadRecord, reloadRecord, rollback, rollback, setUsingLog, updateIdentityAfterCommit
addChangedDocument, addIndexEntry, deleteRecord, getClientTransactionId, getCustomData, getId, getIndexChanges, getIndexChangesInternal, getRecord, saveRecord, setCustomData
protected 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()
OTransaction
getIsolationLevel
in interface OTransaction
public OTransaction setIsolationLevel(OTransaction.ISOLATION_LEVEL isolationLevel)
OTransaction
setIsolationLevel
in interface OTransaction
isolationLevel
- Isolation level to setpublic boolean isActive()
isActive
in interface OBasicTransaction
true
if this transaction is active, false
otherwise.public OTransaction.TXSTATUS getStatus()
getStatus
in interface OTransaction
public ODatabaseDocumentInternal getDatabase()
getDatabase
in interface OTransaction
public void close()
close
in interface OTransaction
public OTransaction lockRecord(OIdentifiable iRecord, OStorage.LOCKING_STRATEGY lockingStrategy)
lockRecord
in interface OTransaction
public boolean isLockedRecord(OIdentifiable iRecord)
isLockedRecord
in interface OTransaction
public OStorage.LOCKING_STRATEGY lockingStrategy(OIdentifiable record)
lockingStrategy
in interface OTransaction
public OTransaction unlockRecord(OIdentifiable iRecord)
unlockRecord
in interface OTransaction
public 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–2020 OrientDB. All rights reserved.