public class EnumTypeHandler<E extends Enum<E>> extends BaseTypeHandler<E>
configuration
Constructor and Description |
---|
EnumTypeHandler(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, setParameter
getRawType, toString
public void setNonNullParameter(PreparedStatement ps, int i, E parameter, JdbcType jdbcType) throws SQLException
setNonNullParameter
in class BaseTypeHandler<E extends Enum<E>>
SQLException
public E getNullableResult(ResultSet rs, String columnName) throws SQLException
BaseTypeHandler
getNullableResult
in class BaseTypeHandler<E extends Enum<E>>
rs
- the rscolumnName
- Colunm name, when configuration useColumnLabel
is false
SQLException
- the SQL exceptionpublic E getNullableResult(ResultSet rs, int columnIndex) throws SQLException
getNullableResult
in class BaseTypeHandler<E extends Enum<E>>
SQLException
public E getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
getNullableResult
in class BaseTypeHandler<E extends Enum<E>>
SQLException
Copyright © 2009–2021 MyBatis.org. All rights reserved.