public class CommitOp extends Object implements TransactionOperation
| Constructor and Description |
|---|
CommitOp()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
OtpErlangObject |
getErlang(boolean compressed)
Gets the erlang representation of the operation.
|
OtpErlangString |
getKey()
Gets the key the operation is working on (if available)
|
OtpErlangObject |
getResult()
Gets the (raw Erlang) result set via
Operation.setResult(OtpErlangObject, boolean). |
boolean |
getResultCompressed()
Determines if the result set via
Operation.setResult(OtpErlangObject, boolean) is compressed or not. |
static void |
processResult_commit(OtpErlangObject received_raw,
boolean compressed)
Processes the received_raw term from erlang interpreting it as a
result from a commit operation.
|
Object |
processResult()
Processes the result set by
Operation.setResult(OtpErlangObject, boolean). |
void |
setResult(OtpErlangObject resultRaw,
boolean compressed)
Sets the raw erlang result value.
|
String |
toString() |
public OtpErlangObject getErlang(boolean compressed)
Operationpublic OtpErlangString getKey()
Operationpublic void setResult(OtpErlangObject resultRaw, boolean compressed)
OperationOperation.processResult().public OtpErlangObject getResult()
OperationOperation.setResult(OtpErlangObject, boolean).public boolean getResultCompressed()
OperationOperation.setResult(OtpErlangObject, boolean) is compressed or not.getResultCompressed in interface Operationpublic Object processResult() throws AbortException, UnknownException
OperationOperation.setResult(OtpErlangObject, boolean).
Note: the created value is not cached!processResult in interface OperationAbortException - if a commit failedUnknownException - if any other error occurspublic static final void processResult_commit(OtpErlangObject received_raw, boolean compressed) throws AbortException, UnknownException
received_raw - the object to processcompressed - whether the transfer of values is compressed or notAbortException - if the commit of the commit failedUnknownException - if any other error occurs