Home » iBatis-2.3.4 » com.ibatis.sqlmap.engine » type » [javadoc | source]
com.ibatis.sqlmap.engine.type
public interface: TypeHandler [javadoc | source] Interface for getting data into, and out of a mapped statement
Method from com.ibatis.sqlmap.engine.type.TypeHandler Summary:
equals,   getResult,   getResult,   getResult,   setParameter,   valueOf
Method from com.ibatis.sqlmap.engine.type.TypeHandler Detail:
 public boolean equals(Object object,
    String string)
    Compares two values (that this handler deals with) for equality
 public Object getResult(ResultSet rs,
    String columnName) throws SQLException
    Gets a column from a result set
 public Object getResult(ResultSet rs,
    int columnIndex) throws SQLException
    Gets a column from a result set
 public Object getResult(CallableStatement cs,
    int columnIndex) throws SQLException
    Gets a column from a callable statement
 public  void setParameter(PreparedStatement ps,
    int i,
    Object parameter,
    String jdbcType) throws SQLException
    Sets a parameter on a prepared statement
 public Object valueOf(String s)
    Converts the String to the type that this handler deals with