public interface AOMapper<T extends Entity,U>
T
to domain objects of type U
.Modifier and Type | Method and Description |
---|---|
Map<String,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.
|
@NotNull Map<String,Object> toAO(U model)
model
- the new domain object@NotNull U toModel(T record)
record
- the record to useCopyright © 2007–2015 Atlassian. All rights reserved.