
public class OTransactionOptimisticServer extends OTransactionOptimistic
OTransactionAbstract.LockedRecordMetadataOTransaction.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 |
changedallEntries, changedDocuments, id, indexEntries, newObjectCounter, recordIndexOperations, updatedRids, userDatadatabase, isolationLevel, locks, statusDELETED_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, toStringaddChangedDocument, checkTransaction, 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, updateIdentityAfterCommitgetDatabase, getInternalLocks, getIsolationLevel, getStatus, isActive, isLockedRecord, lockingStrategy, lockRecord, setDatabase, setIsolationLevel, setLocks, trackLockedRecord, trackUnlockRecord, unlockRecord, updateCacheFromEntriesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDatabase, isSequenceTransaction, setDatabaseisActiveprotected 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 OTransactionbegin in class OTransactionOptimisticpublic int getClientTransactionId()
protected OCompositeKey checkCompositeKeyId(OCompositeKey key)
public ORecord getRecord(ORID rid)
OBasicTransactiongetRecord in interface OBasicTransactiongetRecord in class OTransactionRealAbstractrid - 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 OTransactionOptimisticpublic 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)
OBasicTransactionaddIndexEntry in interface OBasicTransactionaddIndexEntry in class OTransactionRealAbstractdelegate - 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)
OTransactionRealAbstractaddIndexEntry in class OTransactionOptimisticCopyright © 2009–2025 OrientDB. All rights reserved.