Class OTransactionOptimisticProxy
java.lang.Object
com.orientechnologies.orient.core.tx.OTransactionAbstract
com.orientechnologies.orient.core.tx.OTransactionOptimistic
com.orientechnologies.orient.server.tx.OTransactionOptimisticProxy
- All Implemented Interfaces:
OAllocationTransaction,OStorageTransaction,OTransaction,OTransactionInternal
-
Nested Class Summary
Nested classes/interfaces inherited from class com.orientechnologies.orient.core.tx.OTransactionAbstract
OTransactionAbstract.LockedRecordMetadataNested classes/interfaces inherited from interface com.orientechnologies.orient.core.tx.OTransaction
OTransaction.ISOLATION_LEVEL, OTransaction.TXSTATUS, OTransaction.TXTYPE -
Field Summary
Fields inherited from class com.orientechnologies.orient.core.tx.OTransactionOptimistic
allEntries, changed, changedDocuments, id, indexEntries, newObjectCounter, recordIndexOperations, updatedRids, userDataFields inherited from class com.orientechnologies.orient.core.tx.OTransactionAbstract
database, DELETED_RECORD, isolationLevel, locks, status -
Constructor Summary
ConstructorsConstructorDescriptionOTransactionOptimisticProxy(ODatabaseDocumentInternal database, List<ORecordOperationRequest> operations, ODocument indexChanges, ORecordSerializer serializer) -
Method Summary
Methods inherited from class com.orientechnologies.orient.core.tx.OTransactionOptimistic
addChangedDocument, addIndexEntry, addIndexEntry, addRecord, amountOfNestedTxs, checkTransactionValid, close, commit, commit, commitPreallocate, deleteRecord, fill, getChangesForIndex, getCustomData, getEntryCount, getId, getIndexChanges, getIndexChanges, getIndexChangesInternal, getIndexOperations, getInvolvedIndexes, getLockedRecords, getMetadata, getNewObjectCounter, getNewRecordEntriesByClass, getNewRecordEntriesByClusterIds, getNoTxLocks, getRecordChanges, getRecordEntry, getRecordOperations, getSentToServer, getSerializedOperations, getTxStartCounter, getUpdatedRids, internalRollback, isAlreadyCleared, isChanged, loadRecord, loadRecord, loadRecordIfVersionIsNotLatest, prepareSerializedOperations, reloadRecord, reloadRecord, resetAllocatedIds, resetChangesTracking, resolveTracking, rollback, rollback, saveRecord, serializeIndexChangeEntry, setCustomData, setMetadataHolder, setNoTxLocks, setSentToServer, setStatus, startedStorageTransaction, toString, updateCache, updateIdentityAfterCommitMethods inherited from class com.orientechnologies.orient.core.tx.OTransactionAbstract
getDatabase, getInternalLocks, getIsolationLevel, getStatus, isActive, isLockedRecord, lockingStrategy, lockRecord, newOp, setDatabase, setIsolationLevel, setLocks, trackLockedRecord, trackUnlockRecord, unlockRecord, updateCacheFromEntriesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.core.tx.OTransaction
getClientTransactionId, getIsolationLevel, getStatus, isActive, isLockedRecord, lockingStrategy, lockRecord, setIsolationLevel, unlockRecordMethods inherited from interface com.orientechnologies.orient.core.tx.OTransactionInternal
getDatabase, isSequenceTransaction, setDatabase
-
Constructor Details
-
OTransactionOptimisticProxy
public OTransactionOptimisticProxy(ODatabaseDocumentInternal database, List<ORecordOperationRequest> operations, ODocument indexChanges, ORecordSerializer serializer)
-
-
Method Details
-
begin
public void begin()- Specified by:
beginin interfaceOTransaction- Overrides:
beginin classOTransactionOptimistic
-
getRecord
Description copied from interface:OTransactionResolves a record with the given RID in the context of this transaction.- Specified by:
getRecordin interfaceOTransaction- Overrides:
getRecordin classOTransactionOptimistic- Parameters:
rid- the record RID.- Returns:
- the resolved record, or
nullif no record is found, orOTransactionAbstract.DELETED_RECORDif the record was deleted in this transaction.
-
getCreatedRecords
-
getUpdatedRecords
-