public abstract class BaseTypeHandler<T> extends TypeReference<T> implements TypeHandler<T>
Modifier and Type | Field and Description |
---|---|
protected Configuration |
configuration |
Constructor and Description |
---|
BaseTypeHandler() |
Modifier and Type | Method and Description |
---|---|
abstract T |
getNullableResult(CallableStatement cs,
int columnIndex) |
abstract T |
getNullableResult(ResultSet rs,
int columnIndex) |
abstract T |
getNullableResult(ResultSet rs,
String columnName) |
T |
getResult(CallableStatement cs,
int columnIndex) |
T |
getResult(ResultSet rs,
int columnIndex) |
T |
getResult(ResultSet rs,
String columnName) |
void |
setConfiguration(Configuration c) |
abstract void |
setNonNullParameter(PreparedStatement ps,
int i,
T parameter,
JdbcType jdbcType) |
void |
setParameter(PreparedStatement ps,
int i,
T parameter,
JdbcType jdbcType) |
getRawType, toString
protected Configuration configuration
public void setConfiguration(Configuration c)
public void setParameter(PreparedStatement ps, int i, T parameter, JdbcType jdbcType) throws SQLException
setParameter
in interface TypeHandler<T>
SQLException
public T getResult(ResultSet rs, String columnName) throws SQLException
getResult
in interface TypeHandler<T>
SQLException
public T getResult(ResultSet rs, int columnIndex) throws SQLException
getResult
in interface TypeHandler<T>
SQLException
public T getResult(CallableStatement cs, int columnIndex) throws SQLException
getResult
in interface TypeHandler<T>
SQLException
public abstract void setNonNullParameter(PreparedStatement ps, int i, T parameter, JdbcType jdbcType) throws SQLException
SQLException
public abstract T getNullableResult(ResultSet rs, String columnName) throws SQLException
SQLException
public abstract T getNullableResult(ResultSet rs, int columnIndex) throws SQLException
SQLException
public abstract T getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
SQLException
Copyright © 2010–2015 MyBatis.org. All rights reserved.