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, toStringprotected 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>SQLExceptionpublic T getResult(ResultSet rs, String columnName) throws SQLException
getResult in interface TypeHandler<T>SQLExceptionpublic T getResult(ResultSet rs, int columnIndex) throws SQLException
getResult in interface TypeHandler<T>SQLExceptionpublic T getResult(CallableStatement cs, int columnIndex) throws SQLException
getResult in interface TypeHandler<T>SQLExceptionpublic abstract void setNonNullParameter(PreparedStatement ps, int i, T parameter, JdbcType jdbcType) throws SQLException
SQLExceptionpublic abstract T getNullableResult(ResultSet rs, String columnName) throws SQLException
SQLExceptionpublic abstract T getNullableResult(ResultSet rs, int columnIndex) throws SQLException
SQLExceptionpublic abstract T getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
SQLExceptionCopyright © 2010-2014 MyBatis.org. All Rights Reserved.