org.loom.appengine.converter
Class KeyIdConverter

java.lang.Object
  extended by org.loom.converter.AbstractConverter
      extended by org.loom.appengine.converter.AbstractRootKeyConverter
          extended by 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.


Field Summary
 
Fields inherited from class org.loom.appengine.converter.AbstractRootKeyConverter
kind
 
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.appengine.converter.AbstractRootKeyConverter
getAsObject, getAsText
 
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
 

Constructor Detail

KeyIdConverter

public KeyIdConverter(java.lang.Class<?> persistentClass)
Method Detail

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