com.ibm.db2.tools.repl.publication
Class TransactionMsg

java.lang.Object
  |
  +--com.ibm.db2.tools.repl.publication.Msg
        |
        +--com.ibm.db2.tools.repl.publication.DataMsg
              |
              +--com.ibm.db2.tools.repl.publication.TransactionMsg

public class TransactionMsg
extends DataMsg

A TransactionMsg contains one or more insert, update, or delete row operations on the source table. The TransactionMsg also contains information about the time theat the transaction was committed at the source database, and a time based log sequence number.


Field Summary
protected  java.lang.String authID
           
protected  java.lang.String commitLSN
           
protected  java.lang.String commitTime
           
protected  java.lang.String correlationID
           
protected  boolean isLast
           
protected  java.lang.String planName
           
protected  java.util.Vector rows
           
protected  int segmentNumber
           
 
Fields inherited from class com.ibm.db2.tools.repl.publication.Msg
dbName, jmsMsg, topicHeader
 
Constructor Summary
TransactionMsg()
           
 
Method Summary
 java.lang.String getAuthID()
          Get the authorization id that caused the database modification.
 java.lang.String getCommitLSN()
          The Commit Logical Sequence Number of the transaction.
 java.lang.String getCommitTime()
          The timestamp of the commit statement using GMT.
 java.lang.String getCorrelationID()
          Get the correlation id that caused the database modification (DB2 z/OS only).
 java.lang.String getPlanName()
          Get the plan name that caused the database modification (DB2 z/OS only).
 java.util.Vector getRows()
          Get the modified rows.
 int getSegmentNumber()
          A positive integer that indicates the message's segment number in a divided transaction message.
 boolean isLast()
          A boolean value that indicates if this message is the last message in the transaction.
 void setAuthID(java.lang.String string)
          This method has no effect when used by a PublicationListener.
 void setCommitLSN(java.lang.String string)
          This method has no effect when used by a PublicationListener.
 void setCommitTime(java.lang.String string)
          This method has no effect when used by a PublicationListener.
 void setCorrelationID(java.lang.String string)
          This method has no effect when used by a PublicationListener.
 void setLast(boolean b)
          This method has no effect when used by a PublicationListener.
 void setPlanName(java.lang.String string)
          This method has no effect when used by a PublicationListener.
 void setRows(java.util.Vector vector)
          This method has no effect when used by a PublicationListener.
 void setSegmentNumber(int i)
          This method has no effect when used by a PublicationListener.
 
Methods inherited from class com.ibm.db2.tools.repl.publication.Msg
getDbName, getJMSMessage, getObjectProperty, getPropertyNames, getTopic, setDbName, setJMSMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isLast

protected boolean isLast

segmentNumber

protected int segmentNumber

commitLSN

protected java.lang.String commitLSN

commitTime

protected java.lang.String commitTime

authID

protected java.lang.String authID

correlationID

protected java.lang.String correlationID

planName

protected java.lang.String planName

rows

protected java.util.Vector rows
Constructor Detail

TransactionMsg

public TransactionMsg()
Method Detail

getCommitLSN

public java.lang.String getCommitLSN()
The Commit Logical Sequence Number of the transaction.

Returns:
String The LSN of the transaction.

getCommitTime

public java.lang.String getCommitTime()
The timestamp of the commit statement using GMT.

Returns:
String The commit timestamp.

getAuthID

public java.lang.String getAuthID()
Get the authorization id that caused the database modification. This may be null if not avaiable from the datasource.

Returns:
String The authorization ID, or null if not available.

getCorrelationID

public java.lang.String getCorrelationID()
Get the correlation id that caused the database modification (DB2 z/OS only). This may be null if not avaiable from the datasource.

Returns:
String The correlation ID, or null if not available.

getPlanName

public java.lang.String getPlanName()
Get the plan name that caused the database modification (DB2 z/OS only). This may be null if not avaiable from the datasource.

Returns:
String The plan name, or null if not available.

isLast

public boolean isLast()
A boolean value that indicates if this message is the last message in the transaction. If any LOB messages or other TransactionMsgs are following, this is false.

Returns:
boolean True : This is the last message. False : other messages are following.

getRows

public java.util.Vector getRows()
Get the modified rows.

Returns:
Vector A list of the modified Row objects.

getSegmentNumber

public int getSegmentNumber()
A positive integer that indicates the message's segment number in a divided transaction message.

Returns:
int The segment number.

setCommitLSN

public void setCommitLSN(java.lang.String string)
This method has no effect when used by a PublicationListener.

Parameters:
string -

setCommitTime

public void setCommitTime(java.lang.String string)
This method has no effect when used by a PublicationListener.

Parameters:
string -

setAuthID

public void setAuthID(java.lang.String string)
This method has no effect when used by a PublicationListener.

Parameters:
string -

setCorrelationID

public void setCorrelationID(java.lang.String string)
This method has no effect when used by a PublicationListener.

Parameters:
string -

setPlanName

public void setPlanName(java.lang.String string)
This method has no effect when used by a PublicationListener.

Parameters:
string -

setLast

public void setLast(boolean b)
This method has no effect when used by a PublicationListener.

Parameters:
b -

setRows

public void setRows(java.util.Vector vector)
This method has no effect when used by a PublicationListener.

Parameters:
vector -

setSegmentNumber

public void setSegmentNumber(int i)
This method has no effect when used by a PublicationListener.

Parameters:
i -