public class IntValueEnumTypeHandler<T extends ByteEnum>
extends org.apache.ibatis.type.BaseTypeHandler<T>
| Constructor and Description |
|---|
IntValueEnumTypeHandler() |
IntValueEnumTypeHandler(Class<T> type)
在构造方法中预存当前枚举类所有枚举项
|
| Modifier and Type | Method and Description |
|---|---|
T |
getNullableResult(CallableStatement cs,
int columnIndex) |
T |
getNullableResult(ResultSet rs,
int columnIndex)
使用字段索引获取数据
|
T |
getNullableResult(ResultSet rs,
String columnName)
使用字段名获取数据
|
void |
setNonNullParameter(PreparedStatement ps,
int i,
T parameter,
org.apache.ibatis.type.JdbcType jdbcType) |
public void setNonNullParameter(PreparedStatement ps, int i, T parameter, org.apache.ibatis.type.JdbcType jdbcType) throws SQLException
setNonNullParameter in class org.apache.ibatis.type.BaseTypeHandler<T extends ByteEnum>SQLExceptionpublic T getNullableResult(ResultSet rs, String columnName) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<T extends ByteEnum>SQLExceptionpublic T getNullableResult(ResultSet rs, int columnIndex) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<T extends ByteEnum>SQLExceptionpublic T getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<T extends ByteEnum>SQLExceptionCopyright © 2016 Le. All rights reserved.