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, transform
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSourceType, obtainProperties
protected E extends TopiaEntity empty
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 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>
IllegalAccessException
InstantiationException
Copyright © 2004–2022 Code Lutin. All rights reserved.