| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibatis.sqlmap.engine.type.BaseTypeHandler
com.ibatis.sqlmap.engine.type.BooleanTypeHandler
Boolean implementation of TypeHandler
| Constructor Summary | |
| BooleanTypeHandler() | |
| Method Summary | |
|  java.lang.Object | getResult(java.sql.CallableStatement cs,
          int columnIndex)Gets a column from a callable statement | 
|  java.lang.Object | getResult(java.sql.ResultSet rs,
          int columnIndex)Gets a column from a result set | 
|  java.lang.Object | getResult(java.sql.ResultSet rs,
          java.lang.String columnName)Gets a column from a result set | 
|  void | setParameter(java.sql.PreparedStatement ps,
             int i,
             java.lang.Object parameter,
             java.lang.String jdbcType)Sets a parameter on a prepared statement | 
|  java.lang.Object | valueOf(java.lang.String s)Converts the String to the type that this handler deals with | 
| Methods inherited from class com.ibatis.sqlmap.engine.type.BaseTypeHandler | 
| equals | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface com.ibatis.sqlmap.engine.type.TypeHandler | 
| equals | 
| Constructor Detail | 
public BooleanTypeHandler()
| Method Detail | 
public void setParameter(java.sql.PreparedStatement ps,
                         int i,
                         java.lang.Object parameter,
                         java.lang.String jdbcType)
                  throws java.sql.SQLException
TypeHandler
setParameter in interface TypeHandlerps - - the prepared statementi - - the parameter indexparameter - - the parameter valuejdbcType - - the JDBC type of the parameter
java.sql.SQLException - if setting the parameter fails
public java.lang.Object getResult(java.sql.ResultSet rs,
                                  java.lang.String columnName)
                           throws java.sql.SQLException
TypeHandler
getResult in interface TypeHandlerrs - - the result setcolumnName - - the column name to get
java.sql.SQLException - if getting the value fails
public java.lang.Object getResult(java.sql.ResultSet rs,
                                  int columnIndex)
                           throws java.sql.SQLException
TypeHandler
getResult in interface TypeHandlerrs - - the result setcolumnIndex - - the column to get (by index)
java.sql.SQLException - if getting the value fails
public java.lang.Object getResult(java.sql.CallableStatement cs,
                                  int columnIndex)
                           throws java.sql.SQLException
TypeHandler
getResult in interface TypeHandlercs - - the statementcolumnIndex - - the column to get (by index)
java.sql.SQLException - if getting the value failspublic java.lang.Object valueOf(java.lang.String s)
TypeHandler
valueOf in interface TypeHandlers - - the String value
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||