
public class OTransactionOptimisticServer extends OTransactionOptimistic
OTransaction.ISOLATION_LEVEL, OTransaction.TXSTATUS, OTransaction.TXTYPEchangedallEntries, 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() |
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() |
amountOfNestedTxs, commit, commit, deleteRecord, getSentToServer, internalRollback, isAlreadyCleared, isChanged, isUsingLog, loadRecord, loadRecord, loadRecord, loadRecordIfVersionIsNotLatest, reloadRecord, reloadRecord, resetChangesTracking, rollback, rollback, saveRecord, setSentToServer, setStatus, setUsingLog, toStringaddChangedDocument, checkTransaction, clearIndexEntries, clearRecordEntries, close, getCurrentRecordEntries, getCustomData, getEntryCount, getId, getIndexChanges, getIndexChanges, getIndexChangesInternal, getIndexOperations, getInvolvedIndexes, getNewObjectCounter, getNewRecordEntriesByClass, getNewRecordEntriesByClusterIds, getRecordEntry, getRecordOperations, getUpdatedRids, hasRecordCreation, restore, serializeIndexChangeEntry, setCustomData, setDatabase, updateIdentityAfterCommitgetClusterName, getDatabase, getIsolationLevel, getLockedRecords, getStatus, isActive, isLockedRecord, lockingStrategy, lockRecord, setIsolationLevel, unlockRecord, updateCacheFromEntriesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDatabaseisActivepublic OTransactionOptimisticServer(ODatabaseDocumentInternal database, int txId, boolean usingLong, List<ORecordOperationRequest> operations, List<IndexChange> indexChanges)
public int getClientTransactionId()
public void begin()
begin in interface OTransactionbegin in class OTransactionOptimisticpublic 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.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.