com.googlecode.objectify.impl.save
Class EmbeddedMapSaver
java.lang.Object
com.googlecode.objectify.impl.save.FieldSaver
com.googlecode.objectify.impl.save.EmbeddedMapSaver
- All Implemented Interfaces:
- ConverterSaveContext, Saver
public class EmbeddedMapSaver
- extends FieldSaver
- implements ConverterSaveContext
Saves entries of string-keyed maps into the Entity, using their key as an intermediate field name.
Constructor Summary |
EmbeddedMapSaver(Conversions conv,
java.lang.Class<?> examinedClass,
java.lang.reflect.Field field,
boolean ignoreClassIndexing,
boolean collectionize)
|
Method Summary |
java.lang.reflect.Field |
getField()
|
boolean |
inEmbeddedCollection()
|
protected void |
saveValue(java.lang.Object object,
com.google.appengine.api.datastore.Entity entity,
Path path,
boolean index)
Actually save the value in the entity. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmbeddedMapSaver
public EmbeddedMapSaver(Conversions conv,
java.lang.Class<?> examinedClass,
java.lang.reflect.Field field,
boolean ignoreClassIndexing,
boolean collectionize)
saveValue
protected void saveValue(java.lang.Object object,
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
inEmbeddedCollection
public boolean inEmbeddedCollection()
- Specified by:
inEmbeddedCollection
in interface ConverterSaveContext
- Returns:
- true if the field we are converting data for is inside an embedded collection.
getField
public java.lang.reflect.Field getField()
- Specified by:
getField
in interface ConverterSaveContext
- Returns:
- the field that is being saved.
Copyright © 2011 Jeff Schnitzer and a gang of pirates. All Rights Reserved. Build version: 3.1