net.sf.letsparty.driver.typehandlers
Class ObjectHandler

java.lang.Object
  extended bynet.sf.letsparty.driver.typehandlers.ObjectHandler
All Implemented Interfaces:
TypeHandler

public class ObjectHandler
extends java.lang.Object
implements TypeHandler


Field Summary
private  int scale
           
private  int targetSqlType
           
private  java.lang.Object value
           
 
Constructor Summary
ObjectHandler(java.lang.Object value)
           
ObjectHandler(java.lang.Object value, int targetSqlType)
           
ObjectHandler(java.lang.Object value, int targetSqlType, int scale)
           
 
Method Summary
 java.lang.Object getValueAsObject()
           
 void setParameter(java.sql.PreparedStatement preparedStatement, int indexAt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

private java.lang.Object value

targetSqlType

private int targetSqlType

scale

private int scale
Constructor Detail

ObjectHandler

public ObjectHandler(java.lang.Object value)

ObjectHandler

public ObjectHandler(java.lang.Object value,
                     int targetSqlType)

ObjectHandler

public ObjectHandler(java.lang.Object value,
                     int targetSqlType,
                     int scale)
Method Detail

setParameter

public void setParameter(java.sql.PreparedStatement preparedStatement,
                         int indexAt)
                  throws java.sql.SQLException
Specified by:
setParameter in interface TypeHandler
Throws:
java.sql.SQLException

getValueAsObject

public java.lang.Object getValueAsObject()
Specified by:
getValueAsObject in interface TypeHandler