Interface EnhancedUserType<J>

  • All Superinterfaces:
    UserType<J>
    All Known Implementing Classes:
    EnumType

    public interface EnhancedUserType<J>
    extends UserType<J>
    A custom type that may function as an identifier or discriminator type
    • Method Detail

      • toSqlLiteral

        String toSqlLiteral​(J value)
        Return an SQL literal representation of the value
      • 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