net.sf.letsparty.driver.typehandlers
Class DateHandler

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

public class DateHandler
extends java.lang.Object
implements TypeHandler


Field Summary
private  java.util.Calendar calendar
           
private  java.sql.Date value
           
 
Constructor Summary
DateHandler(java.sql.Date value, java.util.Calendar calendar)
           
 
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.sql.Date value

calendar

private java.util.Calendar calendar
Constructor Detail

DateHandler

public DateHandler(java.sql.Date value,
                   java.util.Calendar calendar)
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