public class OTransactionOptimisticProxy extends OTransactionOptimistic
OTransactionAbstract.LockedRecordMetadata
OTransaction.ISOLATION_LEVEL, OTransaction.TXSTATUS, OTransaction.TXTYPE
changed
allEntries, changedDocuments, id, indexEntries, newObjectCounter, recordIndexOperations, updatedRids, userData
database, isolationLevel, locks, status
DELETED_RECORD
Constructor and Description |
---|
OTransactionOptimisticProxy(ODatabaseDocumentInternal database,
int txId,
boolean usingLong,
List<ORecordOperationRequest> operations,
ODocument indexChanges,
short protocolVersion,
ORecordSerializer serializer) |
Modifier and Type | Method and Description |
---|---|
void |
begin() |
Map<ORecordId,ORecord> |
getCreatedRecords() |
ORecord |
getRecord(ORID rid)
Resolves a record with the given RID in the context of this transaction.
|
Map<ORecordId,ORecord> |
getUpdatedRecords() |
addIndexEntry, addRecord, amountOfNestedTxs, commit, commit, deleteRecord, fill, getLockedRecords, getSentToServer, internalRollback, isAlreadyCleared, isChanged, isUsingLog, loadRecord, loadRecord, loadRecord, loadRecordIfVersionIsNotLatest, reloadRecord, reloadRecord, resetChangesTracking, resolveTracking, rollback, rollback, saveRecord, setSentToServer, setStatus, setUsingLog, toString
addChangedDocument, addIndexEntry, checkTransaction, clearIndexEntries, clearRecordEntries, close, getCurrentRecordEntries, getCustomData, getEntryCount, getId, getIndexChanges, getIndexChanges, getIndexChangesInternal, getIndexOperations, getInvolvedIndexes, getMetadata, getNewObjectCounter, getNewRecordEntriesByClass, getNewRecordEntriesByClusterIds, getNoTxLocks, getRecordEntry, getRecordOperations, getSerializedOperations, getUpdatedRids, prepareSerializedOperations, restore, serializeIndexChangeEntry, setCustomData, setMetadataHolder, setNoTxLocks, storageBegun, updateIdentityAfterCommit
getDatabase, getInternalLocks, getIsolationLevel, getStatus, isActive, isLockedRecord, lockingStrategy, lockRecord, setDatabase, setIsolationLevel, setLocks, trackLockedRecord, trackUnlockRecord, unlockRecord, updateCacheFromEntries
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDatabase, isSequenceTransaction, setDatabase
getClientTransactionId, isActive
public OTransactionOptimisticProxy(ODatabaseDocumentInternal database, int txId, boolean usingLong, List<ORecordOperationRequest> operations, ODocument indexChanges, short protocolVersion, ORecordSerializer serializer)
public void begin()
begin
in interface OTransaction
begin
in class OTransactionOptimistic
public ORecord getRecord(ORID rid)
OBasicTransaction
getRecord
in interface OBasicTransaction
getRecord
in class OTransactionRealAbstract
rid
- the record RID.null
if no record is found, or OBasicTransaction.DELETED_RECORD
if the record was deleted in this transaction.Copyright © 2009–2020 OrientDB. All rights reserved.