public interface OTransactionInternal extends OBasicTransaction
DELETED_RECORD
Modifier and Type | Method and Description |
---|---|
default void |
fill(Iterator<ORecordOperation> operations) |
ODatabaseDocumentInternal |
getDatabase()
Access to the database of the transaction
|
Map<String,OTransactionIndexChanges> |
getIndexOperations()
Extract all the calculated index operations for the current transaction changes, the key of the
map is the index name the value all the changes for the specified index.
|
Set<ORID> |
getLockedRecords() |
default Optional<byte[]> |
getMetadata() |
ORecordOperation |
getRecordEntry(ORID currentRid)
Extract a single change from a specified record id.
|
Collection<ORecordOperation> |
getRecordOperations()
Extract all the record operations for the current transaction
|
Iterator<byte[]> |
getSerializedOperations() |
default boolean |
isSequenceTransaction() |
boolean |
isUsingLog()
Deprecated.
|
void |
prepareSerializedOperations() |
void |
setDatabase(ODatabaseDocumentInternal database) |
void |
setMetadataHolder(Optional<OTxMetadataHolder> metadata) |
void |
setStatus(OTransaction.TXSTATUS iStatus)
Change the status of the transaction.
|
default void |
storageBegun() |
void |
updateIdentityAfterCommit(ORID oldRID,
ORID rid)
Notify the transaction for the rid change, the changed will be tracked inside the transaction
and used for remapping links.
|
addChangedDocument, addIndexEntry, deleteRecord, getClientTransactionId, getCustomData, getId, getIndexChanges, getIndexChangesInternal, getRecord, isActive, saveRecord, setCustomData
Collection<ORecordOperation> getRecordOperations()
Map<String,OTransactionIndexChanges> getIndexOperations()
void setStatus(OTransaction.TXSTATUS iStatus)
iStatus
- ODatabaseDocumentInternal getDatabase()
void updateIdentityAfterCommit(ORID oldRID, ORID rid)
oldRID
- the id old value.rid
- the id new value.@Deprecated boolean isUsingLog()
ORecordOperation getRecordEntry(ORID currentRid)
currentRid
- the record id for the change.void setDatabase(ODatabaseDocumentInternal database)
default boolean isSequenceTransaction()
default Optional<byte[]> getMetadata()
void setMetadataHolder(Optional<OTxMetadataHolder> metadata)
default void storageBegun()
void prepareSerializedOperations() throws IOException
IOException
Iterator<byte[]> getSerializedOperations()
default void fill(Iterator<ORecordOperation> operations)
Copyright © 2009–2020 OrientDB. All rights reserved.