Interface BasicUserTypeStringSupport<X>

Type Parameters:
X - The type of the user type
All Known Subinterfaces:
BasicUserType<X>, VersionBasicUserType<X>
All Known Implementing Classes:
AbstractMutableBasicUserType, ImmutableBasicUserType, MutableBasicUserType

public interface BasicUserTypeStringSupport<X>
A contract for defining string support for a custom basic type to use with entity views.
Since:
1.5.0
Author:
Christian Beikov
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates an instance of the type from the given string representation.
    Wraps the given JPQL.Next expression such that it is converted to the internal string representation that can be read by fromString(CharSequence).
  • Method Details

    • fromString

      X fromString(CharSequence sequence)
      Creates an instance of the type from the given string representation.
      Parameters:
      sequence - A string representation of the object
      Returns:
      The object
      Since:
      1.5.0
    • toStringExpression

      String toStringExpression(String expression)
      Wraps the given JPQL.Next expression such that it is converted to the internal string representation that can be read by fromString(CharSequence).
      Parameters:
      expression - The JPQL.Next expression string
      Returns:
      The object
      Since:
      1.5.0