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,
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() |
ONewDistributedTxContextImpl.Status |
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(ONewDistributedTxContextImpl.Status status) |
void |
unlock() |
public ONewDistributedTxContextImpl(ODistributedDatabaseImpl shared, ODistributedRequestId reqId, OTransactionInternal tx, OTransactionId id)
public void lockIndexKey(Object key)
lockIndexKey
in interface ODistributedTxContext
public void lock(ORID rid)
lock
in interface ODistributedTxContext
public void lock(ORID rid, long timeout)
lock
in interface ODistributedTxContext
public ODistributedRequestId getReqId()
getReqId
in interface ODistributedTxContext
public void begin(ODatabaseDocumentInternal database, boolean local)
begin
in interface ODistributedTxContext
public void commit(ODatabaseDocumentInternal database)
commit
in interface ODistributedTxContext
public Set<ORecordId> rollback(ODatabaseDocumentInternal database)
rollback
in interface ODistributedTxContext
public void destroy()
destroy
in interface ODistributedTxContext
public void clearUndo()
clearUndo
in interface ODistributedTxContext
public void unlock()
unlock
in interface ODistributedTxContext
public long getStartedOn()
getStartedOn
in interface ODistributedTxContext
public Set<ORecordId> cancel(ODistributedServerManager current, ODatabaseDocumentInternal database)
cancel
in interface ODistributedTxContext
public OTransactionInternal getTransaction()
getTransaction
in interface ODistributedTxContext
public void setStatus(ONewDistributedTxContextImpl.Status status)
public ONewDistributedTxContextImpl.Status getStatus()
public OTransactionId getTransactionId()
getTransactionId
in interface ODistributedTxContext
Copyright © 2009–2020 OrientDB. All rights reserved.