|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.util.beans.Binder<E,E>
org.nuiton.topia.persistence.util.TopiaEntityBinder<E>
E - the type of entitypublic class TopiaEntityBinder<E extends TopiaEntity>
A Binder dedicated to TopiaEntity dealing with technical
values.
empty to deal with default values of
properties of an entity.
Note: Should remove Loador contract soon.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.nuiton.util.beans.Binder |
|---|
org.nuiton.util.beans.Binder.BinderModel<S,T>, org.nuiton.util.beans.Binder.CollectionStrategy, org.nuiton.util.beans.Binder.PropertyDiff |
| Field Summary | |
|---|---|
protected E |
empty
|
| Fields inherited from class org.nuiton.util.beans.Binder |
|---|
model |
| Constructor Summary | |
|---|---|
TopiaEntityBinder()
|
|
| Method Summary | |
|---|---|
protected Object |
bind(org.nuiton.util.beans.Binder binder,
Object read)
|
void |
load(E source,
E target,
boolean tech,
String... propertyNames)
Bind an entity to another. |
void |
setEmpty(E empty)
|
| Methods inherited from class org.nuiton.util.beans.Binder |
|---|
bindCollection, bindProperty, copy, copy, copyExcluding, diff, diff, diffExcluding, getAllPropertiesExclude, getCollectionValue, getModel, getProperties, getSourceType, getTargetType, obtainProperties, obtainProperties, readProperty, setModel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.nuiton.topia.persistence.util.Loador |
|---|
getSourceType, obtainProperties |
| Field Detail |
|---|
protected E extends TopiaEntity empty
| Constructor Detail |
|---|
public TopiaEntityBinder()
| Method Detail |
|---|
public void setEmpty(E empty)
public void load(E source,
E target,
boolean tech,
String... propertyNames)
Loador
load in interface Loador<E extends TopiaEntity>source - the source entitytarget - the destination entitytech - a flag to bind or not the technical values of the entity
(says TopiaId, TopiaVersion and TopiaCreateDate).propertyNames - subset of properties to load
protected Object bind(org.nuiton.util.beans.Binder binder,
Object read)
throws IllegalAccessException,
InstantiationException
bind in class org.nuiton.util.beans.Binder<E extends TopiaEntity,E extends TopiaEntity>IllegalAccessException
InstantiationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||