Interface EnhancedUserType<J>
- All Superinterfaces:
UserType<J>
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 UserType
assemble, deepCopy, disassemble, equals, getDefaultSqlLength, getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlPrecision, getDefaultSqlScale, getDefaultSqlScale, getSqlType, getValueConverter, hashCode, isComparable, isMutable, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, returnedClass
-
Method Details
-
toSqlLiteral
-
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
-