to.etc.webapp.qsql
Class TimestampType
java.lang.Object
to.etc.webapp.qsql.TimestampType
- All Implemented Interfaces:
- IJdbcTypeFactory
public class TimestampType
- extends java.lang.Object
- implements IJdbcTypeFactory
JDBC converter for full Date type.
- Author:
- Frits Jalvingh
Created on Aug 25, 2009
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimestampType
public TimestampType()
accept
public int accept(JdbcPropertyMeta pm)
- Specified by:
accept
in interface IJdbcTypeFactory
createType
public to.etc.webapp.qsql.IJdbcType createType(JdbcPropertyMeta pm)
- Specified by:
createType
in interface IJdbcTypeFactory
columnCount
public int columnCount()
- Returns the #of columns occupied by this type.
- Returns:
convertToInstance
public java.lang.Object convertToInstance(java.sql.ResultSet rs,
int index)
throws java.lang.Exception
- Must convert the value at the specified location of the result set to the type represented by this type.
- Returns:
-
- Throws:
java.lang.Exception
assignParameter
public void assignParameter(java.sql.PreparedStatement ps,
int index,
JdbcPropertyMeta pm,
java.lang.Object value)
throws java.lang.Exception
- Throws:
java.lang.Exception