
public abstract class OTransactionAbstract extends Object implements OTransaction
OTransaction.ISOLATION_LEVEL, OTransaction.TXSTATUS, OTransaction.TXTYPE| Modifier and Type | Field and Description |
|---|---|
protected ODatabaseDocumentTx |
database |
protected OTransaction.ISOLATION_LEVEL |
isolationLevel |
protected HashMap<ORID,com.orientechnologies.orient.core.tx.OTransactionAbstract.LockedRecordMetadata> |
locks |
protected OTransaction.TXSTATUS |
status |
| Modifier | Constructor and Description |
|---|---|
protected |
OTransactionAbstract(ODatabaseDocumentTx iDatabase) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the transaction and releases all the acquired locks.
|
String |
getClusterName(ORecord record) |
ODatabaseDocumentTx |
getDatabase() |
OTransaction.ISOLATION_LEVEL |
getIsolationLevel()
Returns the current isolation level.
|
HashMap<ORID,OStorage.LOCKING_STRATEGY> |
getLockedRecords() |
OTransaction.TXSTATUS |
getStatus() |
boolean |
isActive()
Tells if the transaction is active.
|
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(OTransaction tx,
Iterable<? extends ORecordOperation> entries,
boolean updateStrategy) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddIndexEntry, amountOfNestedTxs, begin, clearIndexEntries, clearRecordEntries, commit, commit, deleteRecord, getAllRecordEntries, getCurrentRecordEntries, getCustomData, getEntryCount, getId, getIndexChanges, getIndexChanges, getInvolvedIndexes, getNewRecordEntriesByClass, getNewRecordEntriesByClusterIds, getRecord, getRecordEntry, hasRecordCreation, isUsingLog, loadRecord, loadRecord, loadRecord, loadRecordIfVersionIsNotLatest, recycleRecord, reloadRecord, reloadRecord, rollback, rollback, saveRecord, setCustomData, setUsingLog, updateIdentityAfterCommitprotected final ODatabaseDocumentTx database
protected OTransaction.TXSTATUS status
protected OTransaction.ISOLATION_LEVEL isolationLevel
protected OTransactionAbstract(ODatabaseDocumentTx iDatabase)
public static void updateCacheFromEntries(OTransaction tx, 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()
OTransactionisActive in interface OTransactionpublic OTransaction.TXSTATUS getStatus()
getStatus in interface OTransactionpublic ODatabaseDocumentTx 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 OTransactionCopyright © 2009–2025 OrientDB. All rights reserved.