E
- type of bean to loadpublic interface Loador<E> extends Serializable
Modifier and Type | Method and Description |
---|---|
Class<E> |
getSourceType()
Obtains the type of the entity.
|
void |
load(E from,
E dst,
boolean tech,
String... propertyNames)
Bind an entity to another.
|
Map<String,Object> |
obtainProperties(E from,
String... propertyNames)
Obtain from an entity all data to bind to another one according the
definition of the loador.
|
Map<String,Object> obtainProperties(E from, String... propertyNames)
load(Object, Object, boolean, String...)
method.
For example, when an entity has a immutable business key (says with an
hibernate naturalId for example),
and that you want to create the data in a db, you must give all the
properties at the create time so this method allow you to do it).from
- the entity to bindpropertyNames
- subset of properties to loadvoid load(E from, E dst, boolean tech, String... propertyNames)
from
- the source entitydst
- 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 loadCopyright © 2004–2022 Code Lutin. All rights reserved.