|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.SIRAPRISE.messages.ServerMessageType
be.SIRAPRISE.messages.ServerInputMessageType
be.SIRAPRISE.messages.CommitRollbackMessageType
public abstract class CommitRollbackMessageType
The CommitRollbackMessageType is the type of message to be sent by clients when they want the server they're connected to to commit or rollback a (sub)transaction they started. SIRA_PRISE 1.2 introduced the TRANSACTIONID field in this message type. The default assumed by 1.2 servers when getting this message from 1.1 clients is "the current transaction" (which is the only one such clients have the opportunity to start).
Field Summary | |
---|---|
static int |
MESSAGETYPEID
Comment for MESSAGETYPEID |
Method Summary | |
---|---|
CommitRollbackMessage |
message(boolean commit)
Deprecated. replace with the factory method that includes the identification of the transaction to commit or roll back |
abstract CommitRollbackMessage |
message(boolean commit,
long transactionID)
Gets a CommitRollbackMessage holding the request to either commit or roll back the transaction with the given ID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MESSAGETYPEID
MESSAGETYPEID
Method Detail |
---|
public final CommitRollbackMessage message(boolean commit)
commit
- true if a commit is requested, false if a rollback is requested
public abstract CommitRollbackMessage message(boolean commit, long transactionID)
commit
- true if a commit is requested, false if a rollback is requestedtransactionID
- The server-side ID of the transaction that requests to be committed or rolled back. Negative values indicate "the current transaction".
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |