to.etc.webapp.qsql
Class LongType

java.lang.Object
  extended by to.etc.webapp.qsql.LongType
All Implemented Interfaces:
IJdbcTypeFactory

public class LongType
extends java.lang.Object
implements IJdbcTypeFactory

JDBC converter for [long] and [Long] type.

Author:
Frits Jalvingh Created on Aug 25, 2009

Constructor Summary
LongType()
           
 
Method Summary
 int accept(JdbcPropertyMeta pm)
           
 void assignParameter(java.sql.PreparedStatement ps, int index, JdbcPropertyMeta pm, java.lang.Object value)
           
 int columnCount()
          Returns the #of columns occupied by this type.
 java.lang.Object convertToInstance(java.sql.ResultSet rs, int index)
          Must convert the value at the specified location of the result set to the type represented by this type.
 to.etc.webapp.qsql.IJdbcType createType(JdbcPropertyMeta pm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongType

public LongType()
Method Detail

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