be.SIRAPRISE.messages
Class CommitRollbackMessageTypeV1_0

java.lang.Object
  extended by be.SIRAPRISE.messages.ServerMessageType
      extended by be.SIRAPRISE.messages.ServerInputMessageType
          extended by be.SIRAPRISE.messages.CommitRollbackMessageType
              extended by be.SIRAPRISE.messages.CommitRollbackMessageTypeV1_0

public final class CommitRollbackMessageTypeV1_0
extends CommitRollbackMessageType

CommitRollbackMessageTypeV1_0 is version 1_0 of the CommitRollbackMessageType. The layout of this message is as follows.

Zone Format Length Description
COMMIT INTEGER 1 1 if the transaction is to be committed, 0 if it is to be rolled back.

Since:
SIRA_PRISE 1.1
Author:
Erwin Smout

Field Summary
 
Fields inherited from class be.SIRAPRISE.messages.CommitRollbackMessageType
MESSAGETYPEID
 
Method Summary
 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 be.SIRAPRISE.messages.CommitRollbackMessageType
message
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

message

public CommitRollbackMessage message(boolean commit,
                                     long transactionID)
Description copied from class: CommitRollbackMessageType
Gets a CommitRollbackMessage holding the request to either commit or roll back the transaction with the given ID

Specified by:
message in class CommitRollbackMessageType
Parameters:
commit - true if a commit is requested, false if a rollback is requested
transactionID - The server-side ID of the transaction that requests to be committed or rolled back. Negative values indicate "the current transaction".
Returns:
a CommitRollbackMessage holding the request to either commit or roll back the current transaction