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

java.lang.Object
  |
  +--com.ibm.db2.tools.repl.publication.Row

public class Row
extends java.lang.Object

The Row class reprenents one row that was published. The getOperation() method on the row allows the caller to find out what happened to the row (Insert, Update, or Delete). The all the actual data values are stored in the columns, which are retrieved via the "getColumns()" method.


Field Summary
protected  java.util.Vector columns
           
static int DeleteOperation
           
protected  boolean hasLOBColumns
           
static int InsertOperation
           
protected  int rowNumber
           
protected  int rowOperation
           
protected  java.lang.String srcName
           
protected  java.lang.String srcOwner
           
protected  java.lang.String subscriptionName
           
static int UpdateOperation
           
 
Constructor Summary
Row()
           
 
Method Summary
 java.util.Vector getColumns()
          Fetch all the columns that are a part of this row.
 int getRowNumber()
          Return the row number.
 int getRowOperation()
          This is how the row was used in the transaction.
 java.lang.String getSrcName()
          The name of the source table.
 java.lang.String getSrcOwner()
          The owner name of the source table.
 java.lang.String getSubscriptionName()
          The subscription name.
 boolean hasLOBColumns()
          Does this row have any LOB columns?
 void setColumns(java.util.Vector vector)
          This method has no effect when used by a PublicationListener.
 void setHasLOBColumns(boolean b)
          This method has no effect when used by a PublicationListener.
 void setRowNumber(int i)
          This method has no effect when used by a PublicationListener.
 void setRowOperation(int i)
          This method has no effect when used by a PublicationListener.
 void setSrcName(java.lang.String string)
          This method has no effect when used by a PublicationListener.
 void setSrcOwner(java.lang.String string)
          This method has no effect when used by a PublicationListener.
 void setSubscriptionName(java.lang.String string)
          This method has no effect when used by a PublicationListener.
 java.lang.String toString()
          Override so we can print the values in a nice textual format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

InsertOperation

public static final int InsertOperation
See Also:
Constant Field Values

DeleteOperation

public static final int DeleteOperation
See Also:
Constant Field Values

UpdateOperation

public static final int UpdateOperation
See Also:
Constant Field Values

srcOwner

protected java.lang.String srcOwner

srcName

protected java.lang.String srcName

subscriptionName

protected java.lang.String subscriptionName

rowNumber

protected int rowNumber

hasLOBColumns

protected boolean hasLOBColumns

columns

protected java.util.Vector columns

rowOperation

protected int rowOperation
Constructor Detail

Row

public Row()
Method Detail

getColumns

public java.util.Vector getColumns()
Fetch all the columns that are a part of this row.

Returns:
Vector A vector of Column objects.

hasLOBColumns

public boolean hasLOBColumns()
Does this row have any LOB columns?

Returns:
boolean true: has lob columns. false: does not.

getRowNumber

public int getRowNumber()
Return the row number.

Returns:
int The row number.

getRowOperation

public int getRowOperation()
This is how the row was used in the transaction.

Returns:
int One of the following values: InsertOperation, DeleteOperation, UpdateOperation.

getSrcName

public java.lang.String getSrcName()
The name of the source table.

Returns:
String Source table name

getSrcOwner

public java.lang.String getSrcOwner()
The owner name of the source table.

Returns:
String Source owner name

getSubscriptionName

public java.lang.String getSubscriptionName()
The subscription name.

Returns:
String Subscription name

setColumns

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

Parameters:
vector -

setHasLOBColumns

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

Parameters:
b -

setRowNumber

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

Parameters:
i -

setRowOperation

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

Parameters:
i -

setSrcName

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

Parameters:
string -

setSrcOwner

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

Parameters:
string -

setSubscriptionName

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

Parameters:
string -

toString

public java.lang.String toString()
Override so we can print the values in a nice textual format.

Overrides:
toString in class java.lang.Object
Returns:
String Formatted output of all the instance variables.