public abstract class BaseTypeHandler<T> extends Object implements TypeHandler<T>
| 构造器和说明 |
|---|
BaseTypeHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract JdbcTypeMapper |
getJdbcTypeMapper() |
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) |
void |
setParameter(PreparedStatement ps,
int i,
T parameter) |
protected abstract JdbcTypeMapper getJdbcTypeMapper()
public void setParameter(PreparedStatement ps, int i, T parameter) 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) 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 © 2023. All rights reserved.