to.etc.webapp.qsql
Class BooleanType

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

public class BooleanType
extends java.lang.Object
implements IJdbcTypeFactory

JDBC converter for [boolean] and [Boolean] type.

Author:
Vladimir Mijic Created on Sep 24, 2010

Constructor Summary
BooleanType()
           
 
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

BooleanType

public BooleanType()
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