
public abstract class OTransactionAbstract extends Object implements OTransaction
OTransaction.ISOLATION_LEVEL, OTransaction.TXSTATUS, OTransaction.TXTYPE| Modifier and Type | Field and Description |
|---|---|
protected ODatabaseDocumentInternal |
database |
protected OTransaction.ISOLATION_LEVEL |
isolationLevel |
protected HashMap<ORID,com.orientechnologies.orient.core.tx.OTransactionAbstract.LockedRecordMetadata> |
locks |
protected OTransaction.TXSTATUS |
status |
DELETED_RECORD| Modifier | Constructor and Description |
|---|---|
protected |
OTransactionAbstract(ODatabaseDocumentInternal iDatabase) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the transaction and releases all the acquired locks.
|
String |
getClusterName(ORecord record) |
ODatabaseDocumentInternal |
getDatabase() |
OTransaction.ISOLATION_LEVEL |
getIsolationLevel()
Returns the current isolation level.
|
HashMap<ORID,OStorage.LOCKING_STRATEGY> |
getLockedRecords() |
OTransaction.TXSTATUS |
getStatus() |
abstract void |
internalRollback() |
boolean |
isActive() |
boolean |
isLockedRecord(OIdentifiable iRecord) |
OStorage.LOCKING_STRATEGY |
lockingStrategy(OIdentifiable record) |
OTransaction |
lockRecord(OIdentifiable iRecord,
OStorage.LOCKING_STRATEGY lockingStrategy) |
OTransaction |
setIsolationLevel(OTransaction.ISOLATION_LEVEL isolationLevel)
Changes the isolation level.
|
OTransaction |
unlockRecord(OIdentifiable iRecord) |
static void |
updateCacheFromEntries(ODatabaseDocumentInternal database,
Iterable<? extends ORecordOperation> entries,
boolean updateStrategy) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitamountOfNestedTxs, begin, clearIndexEntries, clearRecordEntries, commit, commit, getCurrentRecordEntries, getEntryCount, getIndexChanges, getInvolvedIndexes, getNewRecordEntriesByClass, getNewRecordEntriesByClusterIds, getRecordEntry, getRecordOperations, hasRecordCreation, 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 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 HashMap<ORID,OStorage.LOCKING_STRATEGY> getLockedRecords()
getLockedRecords in interface OTransactionpublic abstract void internalRollback()
Copyright © 2009–2025 OrientDB. All rights reserved.