net.sf.letsparty.driver.typehandlers
Class TimeHandler

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

public class TimeHandler
extends java.lang.Object
implements TypeHandler


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

calendar

private java.util.Calendar calendar
Constructor Detail

TimeHandler

public TimeHandler(java.sql.Time value)

TimeHandler

public TimeHandler(java.sql.Time value,
                   java.util.Calendar cal)
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