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

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

public class Column
extends java.lang.Object

The Column class represents an actual value of a column for a specific row. The Column contains the value after the update, and may optionally also contain the pre-update value (called the "before" value).


Field Summary
protected  java.lang.Object beforeValue
           
protected  boolean beforeValuePresent
           
protected  boolean key
           
protected  java.lang.String name
           
protected  java.lang.Object value
           
 
Constructor Summary
Column()
           
 
Method Summary
 java.lang.Object getBeforeValue()
          Returns the original value of the column, before it was updated.
 java.lang.String getName()
          Returns the name of the column.
 java.lang.Object getValue()
          Returns the value of the column.
 boolean isBeforeValuePresent()
          Returns true if the original value of the column is present.
 boolean isKey()
          Returns true if the column is a key column.
 void setBeforeValue(java.lang.Object object)
          This method has no effect when used by a PublicationListener.
 void setBeforeValuePresent(boolean b)
          This method has no effect when used by a PublicationListener.
 void setKey(boolean b)
          This method has no effect when used by a PublicationListener.
 void setName(java.lang.String string)
          This method has no effect when used by a PublicationListener.
 void setValue(java.lang.Object object)
          This method has no effect when used by a PublicationListener.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

key

protected boolean key

beforeValuePresent

protected boolean beforeValuePresent

value

protected java.lang.Object value

beforeValue

protected java.lang.Object beforeValue
Constructor Detail

Column

public Column()
Method Detail

getName

public java.lang.String getName()
Returns the name of the column.

Returns:
String The column name.

isKey

public boolean isKey()
Returns true if the column is a key column.

Returns:
boolean True: The column is a key column. False: The column is not part of a key.

getBeforeValue

public java.lang.Object getBeforeValue()
Returns the original value of the column, before it was updated. This is optional when the publication is defined.

Returns:
Object The original value of the column. Null if not available.

isBeforeValuePresent

public boolean isBeforeValuePresent()
Returns true if the original value of the column is present. This is optional when the publication is defined.

Returns:
boolean True: The original value is present.

getValue

public java.lang.Object getValue()
Returns the value of the column.

Returns:
Object The column value.

setKey

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

Parameters:
b -

setName

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

Parameters:
string -

setBeforeValue

public void setBeforeValue(java.lang.Object object)
This method has no effect when used by a PublicationListener.

Parameters:
object -

setBeforeValuePresent

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

Parameters:
b -

setValue

public void setValue(java.lang.Object object)
This method has no effect when used by a PublicationListener.

Parameters:
object -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object