E - the type of entitypublic class TopiaEntityBinder<E extends TopiaEntity> extends org.nuiton.util.beans.Binder<E,E> implements Loador<E>
Binder dedicated to TopiaEntity dealing with technical
values.
There is an internal sate empty to deal with default values of
properties of an entity.
Note: Should remove Loador contract soon.| Constructor and Description |
|---|
TopiaEntityBinder() |
| Modifier and Type | Method and Description |
|---|---|
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) |
bindCollection, bindProperty, copy, copy, copyExcluding, diff, diff, diffExcluding, getAllPropertiesExclude, getCollectionValue, getModel, getProperties, getSourcePropertyGenericType, getSourcePropertyType, getSourceType, getTargetPropertyGenericType, getTargetPropertyType, getTargetType, injectProperties, injectProperties, obtainProperties, obtainProperties, obtainProperties, obtainSourceProperty, obtainTargetProperty, readProperty, setModel, transformclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSourceType, obtainPropertiesprotected E extends TopiaEntity empty
public void setEmpty(E empty)
public void load(E source, E target, boolean tech, String... propertyNames)
Loadorload 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 loadprotected 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>IllegalAccessExceptionInstantiationExceptionCopyright © 2004–2022 Code Lutin. All rights reserved.