public class JpaValueEncoder<E> extends Object implements ValueEncoder<E>
Constructor and Description |
---|
JpaValueEncoder(EntityType<E> entity,
EntityManagerManager entityManagerManager,
String persistenceUnitName,
PropertyAccess propertyAccess,
TypeCoercer typeCoercer,
org.slf4j.Logger logger) |
public JpaValueEncoder(EntityType<E> entity, EntityManagerManager entityManagerManager, String persistenceUnitName, PropertyAccess propertyAccess, TypeCoercer typeCoercer, org.slf4j.Logger logger)
public String toClient(E value)
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.toClient
in interface ValueEncoder<E>
value
- to be encodedpublic E toValue(String clientValue)
ValueEncoder.toClient(Object)
, back into a server-side value.toValue
in interface ValueEncoder<E>
clientValue
- string representation of the value's identity${project.version} - Copyright © 2003-2015 The Apache Software Foundation.