|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.internal.jpa.JpaValueEncoder<E>
public class JpaValueEncoder<E>
| Constructor Summary | |
|---|---|
JpaValueEncoder(javax.persistence.metamodel.EntityType<E> entity,
EntityManagerManager entityManagerManager,
java.lang.String persistenceUnitName,
PropertyAccess propertyAccess,
TypeCoercer typeCoercer,
org.slf4j.Logger logger)
|
|
| Method Summary | |
|---|---|
java.lang.String |
toClient(E value)
Converts a value into a client-side representation. |
E |
toValue(java.lang.String clientValue)
Converts a client-side representation, provided by ValueEncoder.toClient(Object), back into a server-side value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JpaValueEncoder(javax.persistence.metamodel.EntityType<E> entity,
EntityManagerManager entityManagerManager,
java.lang.String persistenceUnitName,
PropertyAccess propertyAccess,
TypeCoercer typeCoercer,
org.slf4j.Logger logger)
| Method Detail |
|---|
public java.lang.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 encoded
public E toValue(java.lang.String clientValue)
ValueEncoder.toClient(Object), back into a server-side value.
toValue in interface ValueEncoder<E>clientValue - string representation of the value's identity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||