com.jfw.database
Class WriteDbData

java.lang.Object
  extended by com.jfw.database.WriteDbData

public final class WriteDbData
extends java.lang.Object

Offer methods for write data to database. All public methods are static and thread safe.


Constructor Summary
WriteDbData()
           
 
Method Summary
static void setCLOB(java.sql.CallableStatement callable, int index, java.lang.String data)
          Write to a CLOB column.
static void setCLOB(oracle.sql.CLOB clob, java.lang.String data)
          Write to a CLOB column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteDbData

public WriteDbData()
Method Detail

setCLOB

public static void setCLOB(oracle.sql.CLOB clob,
                           java.lang.String data)
                    throws DatabaseException
Write to a CLOB column.

Parameters:
clob - the target CLOB object to write.
data - the data to write in CLOB.
Throws:
DatabaseException

setCLOB

public static void setCLOB(java.sql.CallableStatement callable,
                           int index,
                           java.lang.String data)
                    throws DatabaseException
Write to a CLOB column.

Parameters:
callable - the CallableStatement object containing the CLOB column.
index - the position of the CLOB in the CallableStatement.
data - the data to write in CLOB.
Throws:
DatabaseException