be.SIRAPRISE.messages
Class StartSubTransactionMessageType

java.lang.Object
  extended by be.SIRAPRISE.messages.ServerMessageType
      extended by be.SIRAPRISE.messages.ServerInputMessageType
          extended by be.SIRAPRISE.messages.StartSubTransactionMessageType
Direct Known Subclasses:
StartSubTransactionMessageTypeV1_0

public abstract class StartSubTransactionMessageType
extends ServerInputMessageType

The StartSubTransactionMessageType is the type of message sent by a client to a SIRA_PRISE server if that client wants to establish a transaction savepoint and start a "nested" transaction within the currently running transaction.

Author:
Erwin Smout

Field Summary
static int MESSAGETYPEID
          Comment for MESSAGETYPEID
 
Method Summary
abstract  StartSubTransactionMessage message(boolean readOnlyTransaction, boolean autoCommit)
          Gets a StartSubTransactionMessage of this MessageType's version, holding the given data
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGETYPEID

public static final int MESSAGETYPEID
Comment for MESSAGETYPEID

See Also:
Constant Field Values
Method Detail

message

public abstract StartSubTransactionMessage message(boolean readOnlyTransaction,
                                                   boolean autoCommit)
Gets a StartSubTransactionMessage of this MessageType's version, holding the given data

Parameters:
readOnlyTransaction - flag indicating whether or not the new transaction is a read-only one, i.e. whether it will or will not attempt updates to the database
autoCommit - flag indicating whether or not the server may automatically commit each individual statement executed in this transaction.
Returns:
StartTransactionMessage a StartTransactionMessage of this MessageType's version, holding the given data