
public class OTransactionOptimisticServer
extends com.orientechnologies.orient.core.tx.OTransactionOptimistic
| Modifier and Type | Field and Description |
|---|---|
protected int |
clientTxId |
protected java.util.Map<com.orientechnologies.orient.core.id.ORecordId,com.orientechnologies.orient.core.record.ORecord> |
createdRecords |
protected java.util.Set<com.orientechnologies.orient.core.id.ORID> |
deletedRecord |
protected java.util.List<IndexChange> |
indexChanges |
protected java.util.Map<com.orientechnologies.orient.core.id.ORID,com.orientechnologies.orient.core.db.record.ORecordOperation> |
oldTxEntries |
protected java.util.List<ORecordOperationRequest> |
operations |
protected java.util.Map<com.orientechnologies.orient.core.id.ORID,com.orientechnologies.orient.core.db.record.ORecordOperation> |
tempEntries |
protected java.util.Map<com.orientechnologies.orient.core.id.ORecordId,com.orientechnologies.orient.core.record.ORecord> |
updatedRecords |
| Constructor and Description |
|---|
OTransactionOptimisticServer(ODatabaseDocumentInternal database,
int txId,
boolean usingLong,
java.util.List<ORecordOperationRequest> operations,
java.util.List<IndexChange> indexChanges) |
| Modifier and Type | Method and Description |
|---|---|
void |
addIndexEntry(com.orientechnologies.orient.core.index.OIndex delegate,
java.lang.String iIndexName,
com.orientechnologies.orient.core.tx.OTransactionIndexChanges.OPERATION iOperation,
java.lang.Object key,
com.orientechnologies.orient.core.db.record.OIdentifiable iValue) |
void |
addIndexEntry(com.orientechnologies.orient.core.index.OIndex delegate,
java.lang.String iIndexName,
com.orientechnologies.orient.core.tx.OTransactionIndexChanges.OPERATION iOperation,
java.lang.Object key,
com.orientechnologies.orient.core.db.record.OIdentifiable iValue,
boolean clientTrackOnly) |
com.orientechnologies.orient.core.db.record.ORecordOperation |
addRecord(com.orientechnologies.orient.core.record.ORecord iRecord,
byte iStatus,
java.lang.String iClusterName) |
void |
addRecord(com.orientechnologies.orient.core.record.ORecord iRecord,
byte iStatus,
java.lang.String iClusterName,
java.util.Map<com.orientechnologies.orient.core.id.ORID,com.orientechnologies.orient.core.db.record.ORecordOperation> oldTx) |
void |
assignClusters() |
void |
begin() |
protected com.orientechnologies.orient.core.index.OCompositeKey |
checkCompositeKeyId(com.orientechnologies.orient.core.index.OCompositeKey key) |
int |
getClientTransactionId() |
java.util.Map<com.orientechnologies.orient.core.id.ORecordId,com.orientechnologies.orient.core.record.ORecord> |
getCreatedRecords() |
java.util.Set<com.orientechnologies.orient.core.id.ORID> |
getDeletedRecord() |
com.orientechnologies.orient.core.record.ORecord |
getRecord(com.orientechnologies.orient.core.id.ORID rid) |
java.util.Map<com.orientechnologies.orient.core.id.ORecordId,com.orientechnologies.orient.core.record.ORecord> |
getUpdatedRecords() |
protected void |
unmarshallRecord(com.orientechnologies.orient.core.record.ORecord iRecord)
Unmarshalls collections.
|
amountOfNestedTxs, commit, commit, deleteRecord, fill, getLockedRecords, getSentToServer, getTxStartCounter, internalRollback, isAlreadyCleared, isChanged, isUsingLog, loadRecord, loadRecord, loadRecord, loadRecordIfVersionIsNotLatest, reloadRecord, reloadRecord, resetChangesTracking, resolveTracking, rollback, rollback, saveRecord, setSentToServer, setStatus, setUsingLog, toStringaddChangedDocument, checkTransactionValid, 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, waitprotected final java.util.Map<com.orientechnologies.orient.core.id.ORID,com.orientechnologies.orient.core.db.record.ORecordOperation> tempEntries
protected final java.util.Map<com.orientechnologies.orient.core.id.ORecordId,com.orientechnologies.orient.core.record.ORecord> createdRecords
protected final java.util.Map<com.orientechnologies.orient.core.id.ORecordId,com.orientechnologies.orient.core.record.ORecord> updatedRecords
protected final java.util.Set<com.orientechnologies.orient.core.id.ORID> deletedRecord
protected final int clientTxId
protected final java.util.List<IndexChange> indexChanges
protected java.util.Map<com.orientechnologies.orient.core.id.ORID,com.orientechnologies.orient.core.db.record.ORecordOperation> oldTxEntries
protected java.util.List<ORecordOperationRequest> operations
public OTransactionOptimisticServer(ODatabaseDocumentInternal database, int txId, boolean usingLong, java.util.List<ORecordOperationRequest> operations, java.util.List<IndexChange> indexChanges)
public void begin()
begin in interface com.orientechnologies.orient.core.tx.OTransactionbegin in class com.orientechnologies.orient.core.tx.OTransactionOptimisticpublic int getClientTransactionId()
protected com.orientechnologies.orient.core.index.OCompositeKey checkCompositeKeyId(com.orientechnologies.orient.core.index.OCompositeKey key)
public com.orientechnologies.orient.core.record.ORecord getRecord(com.orientechnologies.orient.core.id.ORID rid)
getRecord in interface com.orientechnologies.orient.core.tx.OTransactiongetRecord in class com.orientechnologies.orient.core.tx.OTransactionRealAbstractpublic java.util.Map<com.orientechnologies.orient.core.id.ORecordId,com.orientechnologies.orient.core.record.ORecord> getCreatedRecords()
public java.util.Map<com.orientechnologies.orient.core.id.ORecordId,com.orientechnologies.orient.core.record.ORecord> getUpdatedRecords()
public java.util.Set<com.orientechnologies.orient.core.id.ORID> getDeletedRecord()
protected void unmarshallRecord(com.orientechnologies.orient.core.record.ORecord iRecord)
public com.orientechnologies.orient.core.db.record.ORecordOperation addRecord(com.orientechnologies.orient.core.record.ORecord iRecord, byte iStatus, java.lang.String iClusterName)
addRecord in class com.orientechnologies.orient.core.tx.OTransactionOptimisticpublic void addRecord(com.orientechnologies.orient.core.record.ORecord iRecord,
byte iStatus,
java.lang.String iClusterName,
java.util.Map<com.orientechnologies.orient.core.id.ORID,com.orientechnologies.orient.core.db.record.ORecordOperation> oldTx)
public void assignClusters()
public void addIndexEntry(com.orientechnologies.orient.core.index.OIndex delegate,
java.lang.String iIndexName,
com.orientechnologies.orient.core.tx.OTransactionIndexChanges.OPERATION iOperation,
java.lang.Object key,
com.orientechnologies.orient.core.db.record.OIdentifiable iValue)
addIndexEntry in interface com.orientechnologies.orient.core.tx.OTransactionaddIndexEntry in class com.orientechnologies.orient.core.tx.OTransactionRealAbstractpublic void addIndexEntry(com.orientechnologies.orient.core.index.OIndex delegate,
java.lang.String iIndexName,
com.orientechnologies.orient.core.tx.OTransactionIndexChanges.OPERATION iOperation,
java.lang.Object key,
com.orientechnologies.orient.core.db.record.OIdentifiable iValue,
boolean clientTrackOnly)
addIndexEntry in class com.orientechnologies.orient.core.tx.OTransactionOptimisticCopyright © 2009–2022 OrientDB. All rights reserved.