com.googlecode.objectify.impl.load
Class EmbeddedNullIndexSetter
java.lang.Object
com.googlecode.objectify.impl.load.Setter
com.googlecode.objectify.impl.load.CollisionDetectingSetter
com.googlecode.objectify.impl.load.EmbeddedNullIndexSetter
- All Implemented Interfaces:
- java.lang.Cloneable
public class EmbeddedNullIndexSetter
- extends CollisionDetectingSetter
This is a special mapping for the ^null property which exists to deal with one
edge case: when an embedded collection is saved that has nothing but nulls. Since
there are no actual values, none of the normal values will be set - just the ^null
index property. This allows us to check for the case.
Method Summary |
void |
safeSet(java.lang.Object toPojo,
java.lang.Object value,
LoadContext context)
Just like set() but called after collision detection is performed. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmbeddedNullIndexSetter
public EmbeddedNullIndexSetter(EmbeddedMultivalueSetter impl,
java.lang.String basePath,
java.util.Collection<java.lang.String> collisionPaths)
safeSet
public void safeSet(java.lang.Object toPojo,
java.lang.Object value,
LoadContext context)
- Description copied from class:
CollisionDetectingSetter
- Just like set() but called after collision detection is performed.
- Specified by:
safeSet
in class CollisionDetectingSetter
Copyright © 2011 Jeff Schnitzer and a gang of pirates. All Rights Reserved. Build version: 3.1