be.SIRAPRISE.messages
Class CommitRollbackMessage

java.lang.Object
  extended by be.SIRAPRISE.messages.ServerMessage
      extended by be.SIRAPRISE.messages.ServerInputMessage
          extended by be.SIRAPRISE.messages.CommitRollbackMessage

public abstract class CommitRollbackMessage
extends ServerInputMessage

Author:
Erwin Smout

Method Summary
 long getTransactionID()
          Gets The server-side ID of the transaction that requests to be either committed or rolled back.
 boolean isCommit()
          Gets the commit flag
 
Methods inherited from class be.SIRAPRISE.messages.ServerMessage
getMessageTypeID, readMessage, sendMessage
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isCommit

public final boolean isCommit()
Gets the commit flag

Returns:
true if commit is intended rather than rollback

getTransactionID

public final long getTransactionID()
Gets The server-side ID of the transaction that requests to be either committed or rolled back. Negative values indicate "the current transaction".

Returns:
The server-side ID of the transaction that requests to be either committed or rolled back. Negative values indicate "the current transaction".