com.googlecode.objectify.impl.save
Class EmbeddedClassFieldSaver

java.lang.Object
  extended by com.googlecode.objectify.impl.save.FieldSaver
      extended by com.googlecode.objectify.impl.save.EmbeddedClassFieldSaver
All Implemented Interfaces:
Saver

public class EmbeddedClassFieldSaver
extends FieldSaver

Saver which knows how to save simple embedded classes, not arrays or collections.

If the field is null, store a null


Constructor Summary
EmbeddedClassFieldSaver(Conversions conv, java.lang.Class<?> examinedClass, java.lang.reflect.Field field, boolean ignoreClassIndexing, boolean collectionize)
           
 
Method Summary
 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

EmbeddedClassFieldSaver

public EmbeddedClassFieldSaver(Conversions conv,
                               java.lang.Class<?> examinedClass,
                               java.lang.reflect.Field field,
                               boolean ignoreClassIndexing,
                               boolean collectionize)
Parameters:
ignoreClassIndexing - is for the class that contains this embedded class field, not the embedded class.
Method Detail

saveValue

public void saveValue(java.lang.Object value,
                      com.google.appengine.api.datastore.Entity entity,
                      Path path,
                      boolean index)
Description copied from class: FieldSaver
Actually save the value in the entity. This is the real value, already obtained from the POJO and checked against the @Unsaved mechanism..

Specified by:
saveValue in class FieldSaver
path - TODO


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