Object getFieldValue(Hashtable field) throws Exception

Returns the field value of this column as an object.

The subtype of the object is determined by these mappings:

Java Object

JDBC Datatype

Boolean

DBEventParser.BIT

ByteArrayInputStream

DBEventParser.BINARY

DBEventParser.SMALLBINARY

DBEventParser.IMAGE

Double

DBEventParser.REAL

Float

DBEventParser.FLOAT

Integer

DBEventParser.TINYINT

DBEventParser.SMALLINT

DBEventParser.INT

DBEventParser.USMALLINT

DBEventParser.UINT

java.math.BigDecimal

DBEventParser.UBIGINT

Long

DBEventParser.BIGINT

String

DBEventParser.CHAR

DBEventParser.VARCHAR

DBEventParser.UNICHAR

DBEventParser.UNIVARCHAR

DBEventParser.UNITEXT

DBEventParser.DATETIME

DBEventParser.SMALLDATETIME

DBEventParser.MONEY

DBEventParser.SMALLMONEY

DBEventParser.NUMERIC

DBEventParser.DECIMAL

DBEventParser.TEXT

DBEventParser.DATE

DBEventParser.TIME

Example

This example shows getFieldName, getFieldType, and getFieldValue.
int msgSize = size();
// This iteration visits all of the operations
for (int ido = 0; ido < msgSize; ido++)
{
   System.out.println("MyMsgGenerator-Statement:" +
     getStatement(ido));
   System.out.println("MyMsgGenerator-Operation:" +
     getOperation(ido));
   System.out.println("MyMsgGenerator-TableName:" +
     getSchemaName(ido));
   Vector dataVector = getData(ido);
   Hashtable dataField = null;
   if (dataVector != null)
   {
     System.out.println("MyMsgGenerator-DataSize: " +
     dataVector.size());
     // This iteration visits the fields of the
     // operation
     for (int jdo = 0; jdo < dataVector.size(); jdo++)
     {
       dataField = (Hashtable) dataVector.elementAt(jdo);
       if (dataField == null)
       {
         break;
       }
       System.out.println("MyMsgGenerator-FieldName:"+
         getFieldName(dataField));
       System.out.println("MyMsgGenerator-FieldType:"+
         getFieldType(dataField));
       System.out.println("MyMsgGenerator-FieldValue:" +
         getFieldValue(dataField).toString);
         }
       }
     }