B - type of the builderE - type of entity being constructedpublic class EntityBuilderProxy<B,E> extends Object implements Settable<E>
build().| Constructor and Description |
|---|
EntityBuilderProxy(Type<E> type) |
| Modifier and Type | Method and Description |
|---|---|
E |
build() |
<V> void |
set(Attribute<E,V> attribute,
V value)
Set a value through this proxy and change it's corresponding
PropertyState to
PropertyState.MODIFIED. |
<V> void |
set(Attribute<E,V> attribute,
V value,
PropertyState state)
Set a value through this proxy and change it's corresponding
PropertyState. |
void |
setBoolean(Attribute<E,Boolean> attribute,
boolean value,
PropertyState state) |
void |
setByte(Attribute<E,Byte> attribute,
byte value,
PropertyState state) |
void |
setDouble(Attribute<E,Double> attribute,
double value,
PropertyState state) |
void |
setFloat(Attribute<E,Float> attribute,
float value,
PropertyState state) |
void |
setInt(Attribute<E,Integer> attribute,
int value,
PropertyState state) |
void |
setLong(Attribute<E,Long> attribute,
long value,
PropertyState state) |
void |
setObject(Attribute<E,?> attribute,
Object value,
PropertyState state)
Unchecked version of set, use only when the the attribute type is not known.
|
void |
setShort(Attribute<E,Short> attribute,
short value,
PropertyState state) |
public <V> void set(Attribute<E,V> attribute, V value)
SettablePropertyState to
PropertyState.MODIFIED.public <V> void set(Attribute<E,V> attribute, V value, PropertyState state)
SettablePropertyState.public void setObject(Attribute<E,?> attribute, Object value, PropertyState state)
Settablepublic void setBoolean(Attribute<E,Boolean> attribute, boolean value, PropertyState state)
setBoolean in interface Settable<E>public void setDouble(Attribute<E,Double> attribute, double value, PropertyState state)
public void setFloat(Attribute<E,Float> attribute, float value, PropertyState state)
public void setByte(Attribute<E,Byte> attribute, byte value, PropertyState state)
public void setShort(Attribute<E,Short> attribute, short value, PropertyState state)
public void setInt(Attribute<E,Integer> attribute, int value, PropertyState state)
public void setLong(Attribute<E,Long> attribute, long value, PropertyState state)
public E build()