Class OTransactionOptimisticClient
java.lang.Object
com.orientechnologies.orient.core.tx.OTransactionAbstract
com.orientechnologies.orient.core.tx.OTransactionOptimistic
com.orientechnologies.orient.client.remote.db.document.OTransactionOptimisticClient
- All Implemented Interfaces:
OAllocationTransaction,OStorageTransaction,OTransaction,OTransactionInternal
Created by tglman on 03/01/17.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIndexEntry(OIndex delegate, String iIndexName, OTransactionIndexChanges.OPERATION iOperation, Object key, OIdentifiable iValue) Adds the transactional index entry in this transaction.voidvoidreplaceContent(List<ORecordOperation38Response> operations, List<IndexChange> indexChanges) Methods inherited from class com.orientechnologies.orient.core.tx.OTransactionOptimistic
addChangedDocument, addIndexEntry, addRecord, amountOfNestedTxs, begin, checkTransactionValid, close, commit, commit, commitPreallocate, deleteRecord, fill, getChangesForIndex, getCustomData, getEntryCount, getId, getIndexChanges, getIndexChanges, getIndexChangesInternal, getIndexOperations, getInvolvedIndexes, getLockedRecords, getMetadata, getNewObjectCounter, getNewRecordEntriesByClass, getNewRecordEntriesByClusterIds, getNoTxLocks, getRecord, 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
-
OTransactionOptimisticClient
-
-
Method Details
-
replaceContent
public void replaceContent(List<ORecordOperation38Response> operations, List<IndexChange> indexChanges) -
addRecord
-
getIndexChanged
-
addIndexEntry
public void addIndexEntry(OIndex delegate, String iIndexName, OTransactionIndexChanges.OPERATION iOperation, Object key, OIdentifiable iValue) Description copied from interface:OTransactionAdds the transactional index entry in this transaction.- Specified by:
addIndexEntryin interfaceOTransaction- Overrides:
addIndexEntryin classOTransactionOptimistic- Parameters:
delegate- the index.iIndexName- the index name.iOperation- the index operation to register.key- the index key.iValue- the index key value.
-