public class OTransactionOptimisticServer extends OTransactionOptimistic
OTransactionAbstract.LockedRecordMetadata
OTransaction.ISOLATION_LEVEL, OTransaction.TXSTATUS, OTransaction.TXTYPE
Modifier and Type | Field and Description |
---|---|
protected int |
clientTxId |
protected Map<ORecordId,ORecord> |
createdRecords |
protected Set<ORID> |
deletedRecord |
protected List<IndexChange> |
indexChanges |
protected Map<ORID,ORecordOperation> |
oldTxEntries |
protected List<ORecordOperationRequest> |
operations |
protected Map<ORID,ORecordOperation> |
tempEntries |
protected Map<ORecordId,ORecord> |
updatedRecords |
changed
allEntries, changedDocuments, id, indexEntries, newObjectCounter, recordIndexOperations, updatedRids, userData
database, isolationLevel, locks, status
DELETED_RECORD
Constructor and Description |
---|
OTransactionOptimisticServer(ODatabaseDocumentInternal database,
int txId,
boolean usingLong,
List<ORecordOperationRequest> operations,
List<IndexChange> indexChanges) |
Modifier and Type | Method and Description |
---|---|
void |
addIndexEntry(OIndex delegate,
String iIndexName,
OTransactionIndexChanges.OPERATION iOperation,
Object key,
OIdentifiable iValue)
Adds the transactional index entry in this transaction.
|
void |
addIndexEntry(OIndex delegate,
String iIndexName,
OTransactionIndexChanges.OPERATION iOperation,
Object key,
OIdentifiable iValue,
boolean clientTrackOnly)
Bufferizes index changes to be flushed at commit time.
|
ORecordOperation |
addRecord(ORecord iRecord,
byte iStatus,
String iClusterName) |
void |
addRecord(ORecord iRecord,
byte iStatus,
String iClusterName,
Map<ORID,ORecordOperation> oldTx) |
void |
assignClusters() |
void |
begin() |
protected OCompositeKey |
checkCompositeKeyId(OCompositeKey key) |
int |
getClientTransactionId() |
Map<ORecordId,ORecord> |
getCreatedRecords() |
Set<ORID> |
getDeletedRecord() |
ORecord |
getRecord(ORID rid)
Resolves a record with the given RID in the context of this transaction.
|
Map<ORecordId,ORecord> |
getUpdatedRecords() |
protected void |
unmarshallRecord(ORecord iRecord)
Unmarshalls collections.
|
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, 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
isActive
protected final Map<ORID,ORecordOperation> tempEntries
protected final int clientTxId
protected final List<IndexChange> indexChanges
protected Map<ORID,ORecordOperation> oldTxEntries
protected List<ORecordOperationRequest> operations
public OTransactionOptimisticServer(ODatabaseDocumentInternal database, int txId, boolean usingLong, List<ORecordOperationRequest> operations, List<IndexChange> indexChanges)
public void begin()
begin
in interface OTransaction
begin
in class OTransactionOptimistic
public int getClientTransactionId()
protected OCompositeKey checkCompositeKeyId(OCompositeKey key)
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.protected void unmarshallRecord(ORecord iRecord)
public ORecordOperation addRecord(ORecord iRecord, byte iStatus, String iClusterName)
addRecord
in class OTransactionOptimistic
public void addRecord(ORecord iRecord, byte iStatus, String iClusterName, Map<ORID,ORecordOperation> oldTx)
public void assignClusters()
public void addIndexEntry(OIndex delegate, String iIndexName, OTransactionIndexChanges.OPERATION iOperation, Object key, OIdentifiable iValue)
OBasicTransaction
addIndexEntry
in interface OBasicTransaction
addIndexEntry
in class OTransactionRealAbstract
delegate
- the index.iIndexName
- the index name.iOperation
- the index operation to register.key
- the index key.iValue
- the index key value.public void addIndexEntry(OIndex delegate, String iIndexName, OTransactionIndexChanges.OPERATION iOperation, Object key, OIdentifiable iValue, boolean clientTrackOnly)
OTransactionRealAbstract
addIndexEntry
in class OTransactionOptimistic
Copyright © 2009–2020 OrientDB. All rights reserved.