|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
E - type of bean to loadpublic interface Loador<E>
A simple contract to load an object from another one.
| Method Summary | |
|---|---|
java.lang.Class<E> |
getSourceType()
Obtains the type of the entity. |
void |
load(E from,
E dst,
boolean tech,
java.lang.String... propertyNames)
Bind an entity to another. |
java.util.Map<java.lang.String,java.lang.Object> |
obtainProperties(E from,
java.lang.String... propertyNames)
Obtain from an entity all data to bind to another one according the definition of the loador. |
| Method Detail |
|---|
java.lang.Class<E> getSourceType()
java.util.Map<java.lang.String,java.lang.Object> obtainProperties(E from,
java.lang.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 load
void load(E from,
E dst,
boolean tech,
java.lang.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 load
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||