Operation, TransactionOperationpublic class CommitOp extends java.lang.Object implements TransactionOperation
| Constructor | Description |
|---|---|
CommitOp() |
Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
com.ericsson.otp.erlang.OtpErlangObject |
getErlang(boolean compressed) |
Gets the erlang representation of the operation.
|
com.ericsson.otp.erlang.OtpErlangString |
getKey() |
Gets the key the operation is working on (if available)
|
com.ericsson.otp.erlang.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. |
java.lang.Object |
processResult() |
Processes the result set by
Operation.setResult(OtpErlangObject, boolean). |
static void |
processResult_commit(com.ericsson.otp.erlang.OtpErlangObject received_raw,
boolean compressed) |
Processes the received_raw term from erlang interpreting it as a
result from a commit operation.
|
void |
setResult(com.ericsson.otp.erlang.OtpErlangObject resultRaw,
boolean compressed) |
Sets the raw erlang result value.
|
java.lang.String |
toString() |
public com.ericsson.otp.erlang.OtpErlangObject getErlang(boolean compressed)
Operationpublic com.ericsson.otp.erlang.OtpErlangString getKey()
Operationpublic void setResult(com.ericsson.otp.erlang.OtpErlangObject resultRaw,
boolean compressed)
OperationOperation.processResult().public com.ericsson.otp.erlang.OtpErlangObject getResult()
OperationOperation.setResult(OtpErlangObject, boolean).public boolean getResultCompressed()
OperationOperation.setResult(OtpErlangObject, boolean) is compressed or not.getResultCompressed in interface Operationpublic java.lang.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 java.lang.String toString()
toString in class java.lang.Objectpublic static final void processResult_commit(com.ericsson.otp.erlang.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