|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Saver
A saver knows how to save part (or all) of a pojo to a datastore entity. Any given Saver will be responsible for all sub-parts; at the top you have a Saver for a root entity and it will be composed of savers for all of its parts.
Keep in mind that Savers are NOT a parallel hierarchy to Setters. They work completely differently.
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. |
Method Detail |
---|
void save(java.lang.Object pojo, com.google.appengine.api.datastore.Entity entity, Path path, boolean index)
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |