public abstract class BaseTypeHandler<T> extends TypeReference<T> implements TypeHandler<T>
| 构造器和说明 |
|---|
BaseTypeHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
abstract void |
setNonNullParameter(PreparedStatement ps,
int i,
T parameter,
JdbcType jdbcType) |
void |
setParameter(PreparedStatement ps,
int i,
T parameter,
JdbcType jdbcType) |
getRawType, toStringpublic void setParameter(PreparedStatement ps, int i, T parameter, JdbcType jdbcType) throws SQLException
setParameter 在接口中 TypeHandler<T>SQLExceptionpublic T getResult(ResultSet rs, String columnName) throws SQLException
getResult 在接口中 TypeHandler<T>SQLExceptionpublic T getResult(ResultSet rs, int columnIndex) throws SQLException
getResult 在接口中 TypeHandler<T>SQLExceptionpublic T getResult(CallableStatement cs, int columnIndex) throws SQLException
getResult 在接口中 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 © 2019. All rights reserved.