|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AOMapper<T extends Entity,U>
Common interface for mapping between AO records of type T
to domain objects of type U
.
Method Summary | |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
toAO(U model)
Return a mapping of AO column names to values which will represent the domain object. |
U |
toModel(T record)
Constructs a (usually immutable) domain object from the AO record. |
void |
update(U source,
T target)
Copies fields from a domain object to the AO record representation. |
Method Detail |
---|
@NotNull java.util.Map<java.lang.String,java.lang.Object> toAO(U model)
model
- the new domain object
@NotNull U toModel(T record)
record
- the record to use
void update(U source, T target)
source
- the domain objecttarget
- the corresponding AO record
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |