Interface EnumValueConverter<O extends Enum,R>
-
- All Superinterfaces:
BasicValueConverter<O,R>
public interface EnumValueConverter<O extends Enum,R> extends BasicValueConverter<O,R>
BasicValueConverter extension for enum-specific support
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EnumJavaTypeDescriptor<O>
getJavaDescriptor()
int
getJdbcTypeCode()
O
readValue(ResultSet resultSet, String name, SharedSessionContractImplementor session)
String
toSqlLiteral(Object value)
void
writeValue(PreparedStatement statement, O value, int position, SharedSessionContractImplementor session)
-
Methods inherited from interface org.hibernate.metamodel.model.convert.spi.BasicValueConverter
toDomainValue, toRelationalValue
-
-
-
-
Method Detail
-
getJavaDescriptor
EnumJavaTypeDescriptor<O> getJavaDescriptor()
-
getJdbcTypeCode
int getJdbcTypeCode()
-
readValue
O readValue(ResultSet resultSet, String name, SharedSessionContractImplementor session) throws SQLException
- Throws:
SQLException
-
writeValue
void writeValue(PreparedStatement statement, O value, int position, SharedSessionContractImplementor session) throws SQLException
- Throws:
SQLException
-
-