Class TopiaEntityBinder<E extends TopiaEntity>
java.lang.Object
org.nuiton.util.beans.Binder<E,E>
org.nuiton.topia.persistence.util.TopiaEntityBinder<E>
- Type Parameters:
E- the type of entity
- All Implemented Interfaces:
java.io.Serializable,Loador<E>
public class TopiaEntityBinder<E extends TopiaEntity> extends org.nuiton.util.beans.Binder<E,E> implements Loador<E>
A
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.- Since:
- 2.3.0
- Author:
- tchemit <chemit@codelutin.com>
- See Also:
- Serialized Form
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TopiaEntityBinder() -
Method Summary
Methods inherited from class org.nuiton.util.beans.Binder
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, transformMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuiton.topia.persistence.util.Loador
getSourceType, obtainProperties
-
Field Details
-
Constructor Details
-
TopiaEntityBinder
public TopiaEntityBinder()
-
-
Method Details
-
setEmpty
-
load
Description copied from interface:LoadorBind an entity to another.- Specified by:
loadin interfaceLoador<E extends TopiaEntity>- Parameters:
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
-
bind
protected java.lang.Object bind(org.nuiton.util.beans.Binder binder, java.lang.Object read) throws java.lang.IllegalAccessException, java.lang.InstantiationException- Overrides:
bindin classorg.nuiton.util.beans.Binder<E extends TopiaEntity,E extends TopiaEntity>- Throws:
java.lang.IllegalAccessExceptionjava.lang.InstantiationException
-