|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.objectify.impl.save.FieldSaver
com.googlecode.objectify.impl.save.EmbeddedMultivalueFieldSaver
public abstract class EmbeddedMultivalueFieldSaver
Base class for EmbeddedArrayFieldSaver and EmbeddedCollectionFieldSaver that handles most of the logic. The subclasses need only understand how to get the component type and how to make an iterator.
Constructor Summary | |
---|---|
EmbeddedMultivalueFieldSaver(Conversions conv,
java.lang.Class<?> examinedClass,
java.lang.reflect.Field field,
boolean ignoreClassIndexing,
boolean collectionize)
|
Method Summary | |
---|---|
protected abstract java.util.Collection<java.lang.Object> |
asCollection(java.lang.Object arrayOrCollection)
Gets an iterator from the array or collection passed in |
protected abstract java.lang.Class<?> |
getComponentType()
Gets the component type of the field |
void |
saveValue(java.lang.Object value,
com.google.appengine.api.datastore.Entity entity,
Path path,
boolean index)
Actually save the value in the entity. |
Methods inherited from class com.googlecode.objectify.impl.save.FieldSaver |
---|
save, setEntityProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmbeddedMultivalueFieldSaver(Conversions conv, java.lang.Class<?> examinedClass, java.lang.reflect.Field field, boolean ignoreClassIndexing, boolean collectionize)
field
- must be an array typeignoreClassIndexing
- see the FieldSaver javadocscollectionize
- must always be false because we cannot nest embedded arrays
or collections. This parameter is here so that it is always passed in the code,
never forgotten, and will always generate the appropriate runtime error.Method Detail |
---|
protected abstract java.lang.Class<?> getComponentType()
protected abstract java.util.Collection<java.lang.Object> asCollection(java.lang.Object arrayOrCollection)
public final void saveValue(java.lang.Object value, com.google.appengine.api.datastore.Entity entity, Path path, boolean index)
FieldSaver
saveValue
in class FieldSaver
path
- TODO
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |