java.lang.Object
org.seasar.doma.jdbc.type.AbstractJdbcType<E>
org.seasar.doma.jdbc.type.EnumType<E>
- Type Parameters:
E- the enum subclass
- All Implemented Interfaces:
SqlLogFormatter<E>,JdbcType<E>
A JDBC type for
Types.VARCHAR and Enum.-
Field Summary
FieldsFields inherited from class org.seasar.doma.jdbc.type.AbstractJdbcType
type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdoConvertToLogFormat(E value) protected EdoGetValue(CallableStatement callableStatement, int index) protected EdoGetValue(ResultSet resultSet, int index) protected voiddoSetValue(PreparedStatement preparedStatement, int index, E value) Methods inherited from class org.seasar.doma.jdbc.type.AbstractJdbcType
convertToLogFormat, getValue, getValue, registerOutParameter, setValue
-
Field Details
-
enumClass
-
-
Constructor Details
-
EnumType
Creates an instance.- Parameters:
enumClass- theEnumclass- Throws:
DomaNullPointerException- thrown, ifenumClassisnull
-
-
Method Details
-
doGetValue
- Specified by:
doGetValuein classAbstractJdbcType<E extends Enum<E>>- Throws:
SQLException
-
doSetValue
protected void doSetValue(PreparedStatement preparedStatement, int index, E value) throws SQLException - Specified by:
doSetValuein classAbstractJdbcType<E extends Enum<E>>- Throws:
SQLException
-
doGetValue
- Specified by:
doGetValuein classAbstractJdbcType<E extends Enum<E>>- Throws:
SQLException
-
doConvertToLogFormat
- Specified by:
doConvertToLogFormatin classAbstractJdbcType<E extends Enum<E>>
-