com.ibatis.sqlmap.engine.type
public interface TypeHandler
| Method Summary | |
|---|---|
| boolean | equals(Object object, String string)
Compares two values (that this handler deals with) for equality
|
| Object | getResult(ResultSet rs, String columnName)
Gets a column from a result set
|
| Object | getResult(ResultSet rs, int columnIndex)
Gets a column from a result set
|
| Object | getResult(CallableStatement cs, int columnIndex)
Gets a column from a callable statement
|
| void | setParameter(PreparedStatement ps, int i, Object parameter, String jdbcType)
Sets a parameter on a prepared statement
|
| Object | valueOf(String s)
Converts the String to the type that this handler deals with
|
Parameters: object - one of the objects string - the other object as a String
Returns: - true if they are equal
Parameters: rs - the result set columnName - the column name to get
Returns: - the column value
Throws: SQLException if getting the value fails
Parameters: rs - the result set columnIndex - the column to get (by index)
Returns: - the column value
Throws: SQLException if getting the value fails
Parameters: cs - the statement columnIndex - the column to get (by index)
Returns: - the column value
Throws: SQLException if getting the value fails
Parameters: ps - the prepared statement i - the parameter index parameter - the parameter value jdbcType - the JDBC type of the parameter
Throws: SQLException if setting the parameter fails
Parameters: s - the String value
Returns: - the converted value