AggregateRoot - the aggregate rootDto - the dto typepublic interface Assembler<AggregateRoot,Dto>
| Modifier and Type | Method and Description |
|---|---|
Dto |
assembleDtoFromAggregate(AggregateRoot sourceAggregate)
Creates a new DTO and fill it from the aggregate.
|
Class<Dto> |
getDtoClass()
Returns the DTO type handled by the assembler.
|
void |
mergeAggregateWithDto(AggregateRoot targetAggregate,
Dto sourceDto)
Merges a source DTO into an existing aggregate.
|
void |
updateDtoFromAggregate(Dto sourceDto,
AggregateRoot sourceAggregate)
Updates the given DTO from the aggregate.
|
Dto assembleDtoFromAggregate(AggregateRoot sourceAggregate)
sourceAggregate - The aggregate to copy data from.void updateDtoFromAggregate(Dto sourceDto, AggregateRoot sourceAggregate)
sourceDto - The dto to update.sourceAggregate - The aggregate to copy data from.void mergeAggregateWithDto(AggregateRoot targetAggregate, Dto sourceDto)
targetAggregate - The aggregate to merge.sourceDto - The dto to copy data from.Copyright © 2013-2015–2015. All rights reserved.