net.sf.letsparty.driver.typehandlers
Class TimestampHandler
java.lang.Object
net.sf.letsparty.driver.typehandlers.TimestampHandler
- All Implemented Interfaces:
- TypeHandler
- public class TimestampHandler
- extends java.lang.Object
- implements TypeHandler
Field Summary |
private java.util.Calendar |
calendar
|
private java.sql.Timestamp |
value
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
private java.sql.Timestamp value
calendar
private java.util.Calendar calendar
TimestampHandler
public TimestampHandler(java.sql.Timestamp value)
TimestampHandler
public TimestampHandler(java.sql.Timestamp value,
java.util.Calendar cal)
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