Package org.hibernate.usertype
Interface EnhancedUserType<J>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JfromStringValue(CharSequence sequence)Consume the given string representation back into this types java form.StringtoSqlLiteral(J value)Return an SQL literal representation of the valueStringtoString(J value)Render 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, nullSafeSet, replace, returnedClass
-
-
-
-
Method Detail
-
toString
String toString(J value) throws HibernateException
Render the value to the string representation.- Parameters:
value- The value to render to string.- Returns:
- The string representation
- Throws:
HibernateException- Problem rendering
-
fromStringValue
J fromStringValue(CharSequence sequence) throws HibernateException
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
-
-