com.googlecode.objectify.impl.load
Class EmbeddedNullIndexSetter

java.lang.Object
  extended by com.googlecode.objectify.impl.load.Setter
      extended by com.googlecode.objectify.impl.load.CollisionDetectingSetter
          extended by 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.


Constructor Summary
EmbeddedNullIndexSetter(EmbeddedMultivalueSetter impl, java.lang.String basePath, java.util.Collection<java.lang.String> collisionPaths)
           
 
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 com.googlecode.objectify.impl.load.CollisionDetectingSetter
set
 
Methods inherited from class com.googlecode.objectify.impl.load.Setter
clone, extend, getNext
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedNullIndexSetter

public EmbeddedNullIndexSetter(EmbeddedMultivalueSetter impl,
                               java.lang.String basePath,
                               java.util.Collection<java.lang.String> collisionPaths)
Method Detail

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