to.etc.webapp.qsql
Class DoubleType
java.lang.Object
to.etc.webapp.qsql.DoubleType
- All Implemented Interfaces:
- IJdbcTypeFactory
public class DoubleType
- extends java.lang.Object
- implements IJdbcTypeFactory
JDBC converter for [double] and [Double] type.
- Author:
- Darko Prica
Created on 21 Oct 2009
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoubleType
public DoubleType()
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:
assignParameter
public void assignParameter(java.sql.PreparedStatement ps,
int index,
JdbcPropertyMeta pm,
java.lang.Object value)
throws java.lang.Exception
- Throws:
java.lang.Exception
- See Also:
IJdbcType.assignParameter(java.sql.PreparedStatement, int, to.etc.webapp.qsql.JdbcPropertyMeta, java.lang.Object)
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
- See Also:
to.etc.webapp.qsql.IJdbcType#convertToInstance(java.sql.ResultSet, int, to.etc.webapp.qsql.JdbcPropertyMeta)