Class OTransactionOptimisticProxy
java.lang.Object
com.orientechnologies.orient.core.tx.OTransactionAbstract
com.orientechnologies.orient.core.tx.OTransactionRealAbstract
com.orientechnologies.orient.core.tx.OTransactionOptimistic
com.orientechnologies.orient.server.tx.OTransactionOptimisticProxy
- All Implemented Interfaces:
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
changedFields inherited from class com.orientechnologies.orient.core.tx.OTransactionRealAbstract
allEntries, 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, int txId, boolean usingLong, List<ORecordOperationRequest> operations, ODocument indexChanges, short protocolVersion, ORecordSerializer serializer) -
Method Summary
Methods inherited from class com.orientechnologies.orient.core.tx.OTransactionOptimistic
addIndexEntry, addRecord, amountOfNestedTxs, commit, commit, commitPreallocate, deleteRecord, fill, getLockedRecords, getSentToServer, getTxStartCounter, internalRollback, isAlreadyCleared, isChanged, isUsingLog, loadRecord, loadRecord, loadRecord, loadRecordIfVersionIsNotLatest, reloadRecord, reloadRecord, resetChangesTracking, resolveTracking, rollback, rollback, saveRecord, setSentToServer, setStatus, setUsingLog, toStringMethods inherited from class com.orientechnologies.orient.core.tx.OTransactionRealAbstract
addChangedDocument, addIndexEntry, checkTransactionValid, clearIndexEntries, clearRecordEntries, close, getCurrentRecordEntries, getCustomData, getEntryCount, getId, getIndexChanges, getIndexChanges, getIndexChangesInternal, getIndexOperations, getInvolvedIndexes, getMetadata, getNewObjectCounter, getNewRecordEntriesByClass, getNewRecordEntriesByClusterIds, getNoTxLocks, getRecordEntry, getRecordOperations, getSerializedOperations, getUpdatedRids, prepareSerializedOperations, resetAllocatedIds, restore, serializeIndexChangeEntry, setCustomData, setMetadataHolder, setNoTxLocks, storageBegun, updateIdentityAfterCommitMethods inherited from class com.orientechnologies.orient.core.tx.OTransactionAbstract
getDatabase, getInternalLocks, getIsolationLevel, getStatus, isActive, isLockedRecord, lockingStrategy, lockRecord, 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, int txId, boolean usingLong, List<ORecordOperationRequest> operations, ODocument indexChanges, short protocolVersion, 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 classOTransactionRealAbstract- 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
-