
public class ONewDistributedTxContextImpl extends Object implements ODistributedTxContext
| Constructor and Description |
|---|
ONewDistributedTxContextImpl(ODistributedDatabaseImpl shared,
ODistributedRequestId reqId,
OTransactionInternal tx,
OTransactionId id) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin(ODatabaseDocumentInternal database,
boolean local) |
Set<ORecordId> |
cancel(ODistributedServerManager current,
ODatabaseDocumentInternal database) |
void |
clearUndo() |
void |
commit(ODatabaseDocumentInternal database) |
void |
destroy() |
List<ORID> |
getLockedRids() |
ODistributedRequestId |
getReqId() |
long |
getStartedOn() |
TxContextStatus |
getStatus() |
OTransactionInternal |
getTransaction() |
OTransactionId |
getTransactionId() |
void |
lock(ORID rid) |
void |
lock(ORID rid,
long timeout) |
void |
lockIndexKey(Object key) |
Set<ORecordId> |
rollback(ODatabaseDocumentInternal database) |
void |
setStatus(TxContextStatus status) |
void |
unlock() |
public ONewDistributedTxContextImpl(ODistributedDatabaseImpl shared, ODistributedRequestId reqId, OTransactionInternal tx, OTransactionId id)
public void lockIndexKey(Object key)
lockIndexKey in interface ODistributedTxContextpublic void lock(ORID rid)
lock in interface ODistributedTxContextpublic void lock(ORID rid, long timeout)
lock in interface ODistributedTxContextpublic ODistributedRequestId getReqId()
getReqId in interface ODistributedTxContextpublic void begin(ODatabaseDocumentInternal database, boolean local)
begin in interface ODistributedTxContextpublic void commit(ODatabaseDocumentInternal database)
commit in interface ODistributedTxContextpublic Set<ORecordId> rollback(ODatabaseDocumentInternal database)
rollback in interface ODistributedTxContextpublic void destroy()
destroy in interface ODistributedTxContextpublic void clearUndo()
clearUndo in interface ODistributedTxContextpublic void unlock()
unlock in interface ODistributedTxContextpublic long getStartedOn()
getStartedOn in interface ODistributedTxContextpublic Set<ORecordId> cancel(ODistributedServerManager current, ODatabaseDocumentInternal database)
cancel in interface ODistributedTxContextpublic OTransactionInternal getTransaction()
getTransaction in interface ODistributedTxContextpublic void setStatus(TxContextStatus status)
public TxContextStatus getStatus()
public OTransactionId getTransactionId()
getTransactionId in interface ODistributedTxContextCopyright © 2009–2025 OrientDB. All rights reserved.