Package org.hibernate.usertype
Interface EnhancedUserType<J>
- All Superinterfaces:
UserType<J>
- All Known Implementing Classes:
EnumType
A custom type that may function as an identifier or discriminator type
-
Method Summary
Modifier and TypeMethodDescriptionfromStringValue
(CharSequence sequence) Consume the given string representation back into this types java form.toSqlLiteral
(J value) Return an SQL literal representation of the valueRender the value to the string representation.Methods inherited from interface org.hibernate.usertype.UserType
assemble, deepCopy, disassemble, equals, getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlScale, getJdbcType, getSqlType, getValueConverter, hashCode, isMutable, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, returnedClass
-
Method Details
-
toSqlLiteral
Return an SQL literal representation of the value -
toString
Render the value to the string representation.- Parameters:
value
- The value to render to string.- Returns:
- The string representation
- Throws:
HibernateException
- Problem rendering
-
fromStringValue
Consume the given string representation back into this types java form.- Parameters:
sequence
- The string representation to be consumed.- Returns:
- The java type representation
- Throws:
HibernateException
- Problem consuming
-