Interface EnumValueConverter<O extends java.lang.Enum,R>
-
- All Superinterfaces:
BasicValueConverter<O,R>
public interface EnumValueConverter<O extends java.lang.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(java.sql.ResultSet resultSet, java.lang.String name)
java.lang.String
toSqlLiteral(java.lang.Object value)
void
writeValue(java.sql.PreparedStatement statement, O value, int position)
-
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(java.sql.ResultSet resultSet, java.lang.String name) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
writeValue
void writeValue(java.sql.PreparedStatement statement, O value, int position) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
toSqlLiteral
java.lang.String toSqlLiteral(java.lang.Object value)
-
-