org.loom.appengine.converter
Class KeyIdConverter
java.lang.Object
org.loom.converter.AbstractConverter
org.loom.appengine.converter.AbstractRootKeyConverter
org.loom.appengine.converter.KeyIdConverter
- All Implemented Interfaces:
- org.loom.converter.Converter, org.loom.validator.FormInputDecorator
public class KeyIdConverter
- extends AbstractRootKeyConverter
Converts a Google AppEngine Key to/from a String.
This converter can only be used for root entities. It stores the Key kind and will only
serialize/deserialize the id value, converted to alpha string.
| Fields inherited from class org.loom.converter.AbstractConverter |
convertedClass, cssClass |
|
Constructor Summary |
KeyIdConverter(java.lang.Class<?> persistentClass)
|
|
Method Summary |
protected java.lang.Object |
getAsObjectImpl(java.lang.String paramName,
java.lang.String paramValue)
|
protected java.lang.String |
getAsTextImpl(com.google.appengine.api.datastore.Key key)
|
| Methods inherited from class org.loom.converter.AbstractConverter |
addErrorMessage, decorate, getConvertedClass, getCssClass, setConvertedClass, setCssClass |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyIdConverter
public KeyIdConverter(java.lang.Class<?> persistentClass)
getAsObjectImpl
protected java.lang.Object getAsObjectImpl(java.lang.String paramName,
java.lang.String paramValue)
- Specified by:
getAsObjectImpl in class AbstractRootKeyConverter
getAsTextImpl
protected java.lang.String getAsTextImpl(com.google.appengine.api.datastore.Key key)
- Specified by:
getAsTextImpl in class AbstractRootKeyConverter