
public class ONewDistributedTxContextImpl extends Object implements ODistributedTxContext
| Modifier and Type | Class and Description |
|---|---|
static class |
ONewDistributedTxContextImpl.Status |
| Constructor and Description |
|---|
ONewDistributedTxContextImpl(ODistributedDatabaseImpl shared,
ODistributedRequestId reqId,
OTransactionInternal tx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addUndoTask(ORemoteTask undoTask) |
void |
begin(ODatabaseDocumentInternal database,
boolean local) |
Set<ORecordId> |
cancel(ODistributedServerManager current,
ODatabaseDocumentInternal database) |
void |
clearUndo() |
void |
commit(ODatabaseDocumentInternal database) |
void |
destroy() |
void |
fix(ODatabaseDocumentInternal database,
List<ORemoteTask> fixTasks) |
List<Object> |
getLockedKeys() |
List<ORID> |
getLockedRids() |
ODistributedRequestId |
getReqId() |
long |
getStartedOn() |
ONewDistributedTxContextImpl.Status |
getStatus() |
OTransactionInternal |
getTransaction() |
boolean |
isCanceled() |
void |
lock(ORID rid) |
void |
lock(ORID rid,
long timeout) |
void |
lockIndexKey(Object key) |
Set<ORecordId> |
rollback(ODatabaseDocumentInternal database) |
void |
setStatus(ONewDistributedTxContextImpl.Status status) |
void |
unlock() |
public ONewDistributedTxContextImpl(ODistributedDatabaseImpl shared, ODistributedRequestId reqId, OTransactionInternal tx)
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 void addUndoTask(ORemoteTask undoTask)
addUndoTask 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 void fix(ODatabaseDocumentInternal database, List<ORemoteTask> fixTasks)
fix 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 boolean isCanceled()
isCanceled in interface ODistributedTxContextpublic OTransactionInternal getTransaction()
getTransaction in interface ODistributedTxContextpublic void setStatus(ONewDistributedTxContextImpl.Status status)
public ONewDistributedTxContextImpl.Status getStatus()
Copyright © 2009–2025 OrientDB. All rights reserved.