org.nuiton.topia.persistence.util
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:
- 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
|
Field Summary |
protected E |
empty
|
| Fields inherited from class org.nuiton.util.beans.Binder |
model |
|
Method Summary |
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 |
copy, getModel, getProperties, obtainProperties, setModel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
empty
protected E extends TopiaEntity empty
TopiaEntityBinder
public TopiaEntityBinder()
setEmpty
public void setEmpty(E empty)
load
public void load(E source,
E target,
boolean tech,
String... propertyNames)
- Description copied from interface:
Loador
- Bind an entity to another.
- Specified by:
load in interface Loador<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
Copyright © 2004-2010 CodeLutin. All Rights Reserved.