be.SIRAPRISE.messages
Class EndTransactionMessageTypeV1_0

java.lang.Object
  extended by be.SIRAPRISE.messages.ServerMessageType
      extended by be.SIRAPRISE.messages.ServerInputMessageType
          extended by be.SIRAPRISE.messages.EndTransactionMessageType
              extended by be.SIRAPRISE.messages.EndTransactionMessageTypeV1_0

public final class EndTransactionMessageTypeV1_0
extends EndTransactionMessageType

EndTransactionMessageTypeV1_0 is V1_0 of the EndTransactionMessageType.

This message has the following fields :

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.EndTransactionMessageType
MESSAGETYPEID
 
Method Summary
 EndTransactionMessage message(boolean commit, long transactionID)
          Creates an EndTransaction message corresponding to the version of this message type, holding the given commit flag and transaction ID.
 
Methods inherited from class be.SIRAPRISE.messages.EndTransactionMessageType
message
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

message

public EndTransactionMessage message(boolean commit,
                                     long transactionID)
Description copied from class: EndTransactionMessageType
Creates an EndTransaction message corresponding to the version of this message type, holding the given commit flag and transaction ID.

Specified by:
message in class EndTransactionMessageType
Parameters:
commit - true if the transaction to be ended must be committed, false if it is to be rolled back.
transactionID - The server-side ID of the transaction to be ended. Negative values indicate the "current" transaction, i.e. the lowest transaction in the current nested transaction structure.
Returns:
an EndTransaction message corresponding to the version of this message type, holding the given commit flag.