com.googlecode.objectify.impl.save
Interface Saver

All Known Implementing Classes:
ClassSaver, EmbeddedArrayFieldSaver, EmbeddedClassFieldSaver, EmbeddedCollectionFieldSaver, EmbeddedMapSaver, EmbeddedMultivalueFieldSaver, FieldSaver, LeafFieldSaver

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

save

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.

Parameters:
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.


Copyright © 2011 Jeff Schnitzer and a gang of pirates. All Rights Reserved. Build version: 3.1