com.googlecode.objectify.impl.load
Class LeafSetter
java.lang.Object
com.googlecode.objectify.impl.load.Setter
com.googlecode.objectify.impl.load.CollisionDetectingSetter
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.
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 java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LeafSetter
public LeafSetter(Conversions conv,
Wrapper field,
java.util.Collection<java.lang.String> collisionPaths)
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