|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.objectify.impl.load.Setter
public abstract class Setter
A setter knows how to set a value in an object graph. It may be composed of a variety of internal setters that know how to set a value deep in an object graph. The value being set is a leaf value from the datastore; that is, something that it persists directly (basic type or collection of basic types).
For example, imagine a Setter for a Person entity with property "name.firstName".
Setters are a linear chain like a linked list. They are also immutable. You extend the chain by calling extend(), passing in the new tail; this produces an entirely new list.
Constructor Summary | |
---|---|
Setter()
|
Method Summary | |
---|---|
Setter |
clone()
Create a copy of this Setter and all child setters in the chain. |
Setter |
extend(Setter tail)
Extends the whole chain, adding a setter to the tail. |
Setter |
getNext()
|
abstract void |
set(java.lang.Object toPojo,
java.lang.Object value,
LoadContext context)
Called by the Transmog to set a value on an object. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Setter()
Method Detail |
---|
public abstract void set(java.lang.Object toPojo, java.lang.Object value, LoadContext context)
public Setter getNext()
public Setter extend(Setter tail)
public Setter clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |