public class EnumOrdinalTypeHandler<E extends Enum<E>> extends BaseTypeHandler<E>
configuration| Constructor and Description |
|---|
EnumOrdinalTypeHandler(Class<E> type) |
| Modifier and Type | Method and Description |
|---|---|
E |
getNullableResult(CallableStatement cs,
int columnIndex) |
E |
getNullableResult(ResultSet rs,
int columnIndex) |
E |
getNullableResult(ResultSet rs,
String columnName)
Gets the nullable result.
|
void |
setNonNullParameter(PreparedStatement ps,
int i,
E parameter,
JdbcType jdbcType) |
getResult, getResult, getResult, setConfiguration, setParametergetRawType, toStringpublic void setNonNullParameter(PreparedStatement ps, int i, E parameter, JdbcType jdbcType) throws SQLException
setNonNullParameter in class BaseTypeHandler<E extends Enum<E>>SQLExceptionpublic E getNullableResult(ResultSet rs, String columnName) throws SQLException
BaseTypeHandlergetNullableResult in class BaseTypeHandler<E extends Enum<E>>rs - the rscolumnName - Colunm name, when configuration useColumnLabel is falseSQLException - the SQL exceptionpublic E getNullableResult(ResultSet rs, int columnIndex) throws SQLException
getNullableResult in class BaseTypeHandler<E extends Enum<E>>SQLExceptionpublic E getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
getNullableResult in class BaseTypeHandler<E extends Enum<E>>SQLExceptionCopyright © 2009–2021 MyBatis.org. All rights reserved.