E - 范型public class EnumValueTypeHandler<E extends Enum<?> & EnumValue> extends org.apache.ibatis.type.BaseTypeHandler<EnumValue>
EnumValue 接口,用于映射 "数据库中字段的值" 和 "java枚举" 的关系。| Constructor and Description |
|---|
EnumValueTypeHandler() |
| Modifier and Type | Method and Description |
|---|---|
E |
getNullableResult(CallableStatement cs,
int columnIndex) |
E |
getNullableResult(ResultSet rs,
int columnIndex) |
E |
getNullableResult(ResultSet rs,
String columnName) |
void |
setNonNullParameter(PreparedStatement ps,
int i,
EnumValue parameter,
org.apache.ibatis.type.JdbcType jdbcType) |
public void setNonNullParameter(PreparedStatement ps, int i, EnumValue parameter, org.apache.ibatis.type.JdbcType jdbcType) throws SQLException
setNonNullParameter in class org.apache.ibatis.type.BaseTypeHandler<EnumValue>SQLExceptionpublic E getNullableResult(ResultSet rs, String columnName) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<EnumValue>SQLExceptionpublic E getNullableResult(ResultSet rs, int columnIndex) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<EnumValue>SQLExceptionpublic E getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
getNullableResult in class org.apache.ibatis.type.BaseTypeHandler<EnumValue>SQLExceptionCopyright © 2018–2021. All rights reserved.