E - the enum subclasspublic class EnumType<E extends java.lang.Enum<E>> extends AbstractJdbcType<E>
Types.VARCHAR and Enum.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<E> |
enumClass |
type| Constructor and Description |
|---|
EnumType(java.lang.Class<E> enumClass)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
doConvertToLogFormat(E value) |
protected E |
doGetValue(java.sql.CallableStatement callableStatement,
int index) |
protected E |
doGetValue(java.sql.ResultSet resultSet,
int index) |
protected void |
doSetValue(java.sql.PreparedStatement preparedStatement,
int index,
E value) |
convertToLogFormat, getValue, getValue, registerOutParameter, setValuepublic EnumType(java.lang.Class<E> enumClass)
enumClass - the Enum classDomaNullPointerException - thrown, if enumClass is nullprotected E doGetValue(java.sql.ResultSet resultSet, int index) throws java.sql.SQLException
doGetValue in class AbstractJdbcType<E extends java.lang.Enum<E>>java.sql.SQLExceptionprotected void doSetValue(java.sql.PreparedStatement preparedStatement,
int index,
E value)
throws java.sql.SQLException
doSetValue in class AbstractJdbcType<E extends java.lang.Enum<E>>java.sql.SQLExceptionprotected E doGetValue(java.sql.CallableStatement callableStatement, int index) throws java.sql.SQLException
doGetValue in class AbstractJdbcType<E extends java.lang.Enum<E>>java.sql.SQLExceptionprotected java.lang.String doConvertToLogFormat(E value)
doConvertToLogFormat in class AbstractJdbcType<E extends java.lang.Enum<E>>