|
||||||||||
| 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 | |
|---|---|
void |
load(E from,
E dst,
boolean tech)
Bind an entity to another. |
java.util.Map<java.lang.String,java.lang.Object> |
obtainProgperties(E from)
Deprecated. |
java.util.Map<java.lang.String,java.lang.Object> |
obtainProperties(E from)
Obtain from an entity all data to bind to another one according the definition of the loador. |
| Method Detail |
|---|
java.util.Map<java.lang.String,java.lang.Object> obtainProperties(E from)
load(Object, Object, boolean) 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 bind
@Deprecated java.util.Map<java.lang.String,java.lang.Object> obtainProgperties(E from)
void load(E from,
E dst,
boolean tech)
from - the source entitydst - the destination entitytech - a flag to bind or not the technical values of the entity (says TopiaId, TopiaVersion and TopiaCreateDate).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||