|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tynamo.jdo.internal.JDOEntityValueEncoder<E>
public final class JDOEntityValueEncoder<E>
A simple implementation of an ValueEncoder for JDO objects with a
simple primary key.
This implementation is registered by default for all JDO persistent objects; however, if the JDOs in the application use complex primary keys or custom object IDs then they will likely need to use a different value encoder
| Constructor Summary | |
|---|---|
JDOEntityValueEncoder(Class<E> pcClass,
javax.jdo.PersistenceManager pm,
org.apache.tapestry5.ioc.services.PropertyAccess propertyAccess,
org.apache.tapestry5.ioc.services.TypeCoercer typeCoercer,
org.slf4j.Logger logger)
Creates a new JDOEntityValueEncoder object. |
|
| Method Summary | |
|---|---|
String |
toClient(E value)
Encodes the ID of the field marked with javax.jdo.annotations.PrimaryKey
as a string. |
E |
toValue(String clientValue)
Decodes the primary key value to an actual JDO object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JDOEntityValueEncoder(Class<E> pcClass,
javax.jdo.PersistenceManager pm,
org.apache.tapestry5.ioc.services.PropertyAccess propertyAccess,
org.apache.tapestry5.ioc.services.TypeCoercer typeCoercer,
org.slf4j.Logger logger)
pcClass - Class for entitypm - PersistenceManager to usepropertyAccess - PropertyAccess from tapestrytypeCoercer - typeCoercer from tapestrylogger - Logger to use| Method Detail |
|---|
public String toClient(E value)
javax.jdo.annotations.PrimaryKey
as a string.
toClient in interface org.apache.tapestry5.ValueEncoder<E>the - string value of the ID
public E toValue(String clientValue)
toValue in interface org.apache.tapestry5.ValueEncoder<E>the - value coming from the client
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||