Class JpaValueEncoder<E>

    • Method Detail

      • toClient

        public String toClient​(E value)
        Converts a value into a client-side representation. The value should be parseable by ValueEncoder.toValue(String). In some cases, what is returned is an identifier used to locate the true object, rather than a string representation of the value itself.
        Specified by:
        toClient in interface ValueEncoder<E>
        value - to be encoded
        a string representation of the value, or the value's identity
      • toValue

        public E toValue​(String clientValue)
        Converts a client-side representation, provided by ValueEncoder.toClient(Object), back into a server-side value.
        Specified by:
        toValue in interface ValueEncoder<E>
        clientValue - string representation of the value's identity
        the corresponding entity, or null if not found