com.ibatis.sqlmap.engine.type
Class CustomTypeHandler

java.lang.Object
  extended bycom.ibatis.sqlmap.engine.type.BaseTypeHandler
      extended bycom.ibatis.sqlmap.engine.type.CustomTypeHandler
All Implemented Interfaces:
TypeHandler

public class CustomTypeHandler
extends BaseTypeHandler
implements TypeHandler


Field Summary
 TypeHandlerCallback callback
           
 
Constructor Summary
CustomTypeHandler(TypeHandlerCallback callback)
           
 
Method Summary
 java.lang.Object getResult(java.sql.CallableStatement cs, int columnIndex)
           
 java.lang.Object getResult(java.sql.ResultSet rs, int columnIndex)
           
 java.lang.Object getResult(java.sql.ResultSet rs, java.lang.String columnName)
           
 void setParameter(java.sql.PreparedStatement ps, int i, java.lang.Object parameter, java.lang.String jdbcType)
           
 java.lang.Object valueOf(java.lang.String s)
           
 
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
 

Field Detail

callback

public TypeHandlerCallback callback
Constructor Detail

CustomTypeHandler

public CustomTypeHandler(TypeHandlerCallback callback)
Method Detail

setParameter

public void setParameter(java.sql.PreparedStatement ps,
                         int i,
                         java.lang.Object parameter,
                         java.lang.String jdbcType)
                  throws java.sql.SQLException
Specified by:
setParameter in interface TypeHandler
Throws:
java.sql.SQLException

getResult

public java.lang.Object getResult(java.sql.ResultSet rs,
                                  java.lang.String columnName)
                           throws java.sql.SQLException
Specified by:
getResult in interface TypeHandler
Throws:
java.sql.SQLException

getResult

public java.lang.Object getResult(java.sql.ResultSet rs,
                                  int columnIndex)
                           throws java.sql.SQLException
Specified by:
getResult in interface TypeHandler
Throws:
java.sql.SQLException

getResult

public java.lang.Object getResult(java.sql.CallableStatement cs,
                                  int columnIndex)
                           throws java.sql.SQLException
Specified by:
getResult in interface TypeHandler
Throws:
java.sql.SQLException

valueOf

public java.lang.Object valueOf(java.lang.String s)
Specified by:
valueOf in interface TypeHandler