com.googlecode.objectify.impl.load
Class LeafSetter

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.LeafSetter
All Implemented Interfaces:
ConverterLoadContext, java.lang.Cloneable

public class LeafSetter
extends CollisionDetectingSetter
implements ConverterLoadContext

Setter which knows how to set any kind of leaf value. This could be any basic type or a collection of basic types; basically anything except an @Embedded.

This is always the termination of a setter chain; the next value is ignored.


Constructor Summary
LeafSetter(Conversions conv, Wrapper field, java.util.Collection<java.lang.String> collisionPaths)
           
 
Method Summary
 Setter extend(Setter tail)
          Ensure that nobody tries to extend the leaf nodes.
 Wrapper getField()
           
protected  void safeSet(java.lang.Object obj, 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, getNext
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LeafSetter

public LeafSetter(Conversions conv,
                  Wrapper field,
                  java.util.Collection<java.lang.String> collisionPaths)
Method Detail

safeSet

protected void safeSet(java.lang.Object obj,
                       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

extend

public final Setter extend(Setter tail)
Ensure that nobody tries to extend the leaf nodes.

Overrides:
extend in class Setter

getField

public Wrapper getField()
Specified by:
getField in interface ConverterLoadContext
Returns:
the field/method wrapper that we are trying to set


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