|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.objectify.impl.save.FieldSaver
public abstract class FieldSaver
Most savers are related to a particular type of field. This provides a convenient base class.
Constructor Summary | |
---|---|
FieldSaver(java.lang.Class<?> examinedClass,
java.lang.reflect.Field field,
boolean ignoreClassIndexing,
boolean collectionize)
|
Method Summary | |
---|---|
void |
save(java.lang.Object pojo,
com.google.appengine.api.datastore.Entity entity,
Path path,
boolean index)
Saves the part of a pojo that we are responsible for to an entity. |
protected abstract void |
saveValue(java.lang.Object value,
com.google.appengine.api.datastore.Entity entity,
Path path,
boolean index)
Actually save the value in the entity. |
protected void |
setEntityProperty(com.google.appengine.api.datastore.Entity entity,
java.lang.Object value,
Path path,
boolean index)
Sets property on the entity correctly for the values of this.path and this.indexed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldSaver(java.lang.Class<?> examinedClass, java.lang.reflect.Field field, boolean ignoreClassIndexing, boolean collectionize)
examinedClass
- is the class which is being registered (or embedded). It posesses the field,
but it is not necessarily the declaring class (which could be a base class).ignoreClassIndexing
- if true will prevent the declaring class of this field from having an effect on indexing via its @Indexed/@Unindexedcollectionize
- is whether or not the elements of this field should be stored in a collection;
this is used for embedded collection class fields.Method Detail |
---|
public final void save(java.lang.Object pojo, com.google.appengine.api.datastore.Entity entity, Path path, boolean index)
Saver
save
in interface Saver
pojo
- might be a root pojo or it might be an embedded class.path
- is the entity path to this class, ie "field1.field2" for an embedded field1
containing a field2 of the type of this class. The root pathPrefix is null.index
- whether or not the parent thinks this value should be indexed when saved.protected abstract void saveValue(java.lang.Object value, com.google.appengine.api.datastore.Entity entity, Path path, boolean index)
path
- TODOprotected void setEntityProperty(com.google.appengine.api.datastore.Entity entity, java.lang.Object value, Path path, boolean index)
path
- TODO
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |