JavaDoc


BigDecimalObject

org.dbreplicator.replication.column
Class BigDecimalObject

java.lang.Object
  extended by org.dbreplicator.replication.column.AbstractColumnObject
      extended by org.dbreplicator.replication.column.BigDecimalObject

public class BigDecimalObject
extends AbstractColumnObject

Class for handling long decimal numbers.


Constructor Summary
BigDecimalObject(int sqlType0, AbstractDataBaseHandler abstractDBHandler0)
          sets the SQL type fro BigDecimal datatype
 
Method Summary
 java.lang.Object getObject(java.lang.String value)
          returns the parsed value of String in BigDecimal
 void setColumnObject(java.sql.PreparedStatement pst, java.lang.String value, int index)
           
 void setColumnObject(java.sql.PreparedStatement pst, XMLElement element, int index)
          set the value for the corresponding datatype i.e bigDecimal
 void write(java.io.Writer bw, java.sql.ResultSet rs, int index, java.util.ArrayList encodedCols, java.lang.String col)
          writes a bigdecimal values in XML file
 void writeUpdate(java.io.Writer bw, java.sql.ResultSet rows, java.sql.ResultSet oldResultSet, int index, java.util.HashMap modifiedColumns, java.lang.String columnName, java.util.ArrayList encodedCols)
          puts the value for the column aginst the column Name
 
Methods inherited from class org.dbreplicator.replication.column.AbstractColumnObject
setBlobHandlerObject, setClobHandlerObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BigDecimalObject

public BigDecimalObject(int sqlType0,
                        AbstractDataBaseHandler abstractDBHandler0)
sets the SQL type fro BigDecimal datatype

Parameters:
sqlType0 -
Method Detail

setColumnObject

public void setColumnObject(java.sql.PreparedStatement pst,
                            XMLElement element,
                            int index)
                     throws java.sql.SQLException
set the value for the corresponding datatype i.e bigDecimal

Specified by:
setColumnObject in class AbstractColumnObject
Parameters:
pst -
element -
index -
Throws:
java.sql.SQLException

setColumnObject

public void setColumnObject(java.sql.PreparedStatement pst,
                            java.lang.String value,
                            int index)
                     throws java.sql.SQLException
Specified by:
setColumnObject in class AbstractColumnObject
Throws:
java.sql.SQLException

write

public void write(java.io.Writer bw,
                  java.sql.ResultSet rs,
                  int index,
                  java.util.ArrayList encodedCols,
                  java.lang.String col)
           throws java.io.IOException,
                  java.sql.SQLException
writes a bigdecimal values in XML file

Specified by:
write in class AbstractColumnObject
Parameters:
bw - Writer
rs - ResultSet
index - int
encodedCols - ArrayList
col - String
Throws:
java.io.IOException
java.sql.SQLException

writeUpdate

public void writeUpdate(java.io.Writer bw,
                        java.sql.ResultSet rows,
                        java.sql.ResultSet oldResultSet,
                        int index,
                        java.util.HashMap modifiedColumns,
                        java.lang.String columnName,
                        java.util.ArrayList encodedCols)
                 throws java.sql.SQLException,
                        java.io.IOException
puts the value for the column aginst the column Name

Specified by:
writeUpdate in class AbstractColumnObject
Parameters:
bw - Writer
rows - ResultSet
oldResultSet - ResultSet
index - int
modifiedColumns - HashMap
columnName - String
encodedCols - ArrayList
Throws:
java.sql.SQLException
java.io.IOException

getObject

public java.lang.Object getObject(java.lang.String value)
returns the parsed value of String in BigDecimal

Specified by:
getObject in class AbstractColumnObject
Parameters:
value -
Returns:
Object



Powered by Drupal - Theme by Danger4k