public interface FluentAssembler
As Assembler it allows to assemble aggregate
to DTOs, or merge DTOs into aggregates. But compare to Assembler, it's not typed so you can
do it programmatically, the DSL will find the appropriate assembler to call. It also provides more
advanced features like automatically retrieving an aggregate from its repository. Or automatically
creating it from its factory.
| Modifier and Type | Method and Description |
|---|---|
AssembleDtoWithQualifierProvider |
assemble(AggregateRoot<?> aggregateRoot)
Assembles an aggregate root.
|
AssembleDtosWithQualifierProvider |
assemble(List<? extends AggregateRoot<?>> aggregateRoots)
Assembles a list of aggregates.
|
AssembleDtosWithQualifierProvider |
assembleTuple(List<? extends org.javatuples.Tuple> aggregateRoots)
Assembles a list of tuple of aggregates.
|
AssembleDtoWithQualifierProvider |
assembleTuple(org.javatuples.Tuple aggregateRoots)
Assembles a tuple of aggregates.
|
<D> MergeAggregateOrTupleWithQualifierProvider<D> |
merge(D dto)
Merges a DTO.
|
<D> MergeAggregatesOrTuplesWithQualifierProvider<D> |
merge(List<D> dtos)
Merges a list of DTOs.
|
AssembleDtoWithQualifierProvider assemble(AggregateRoot<?> aggregateRoot)
aggregateRoot - the aggregate rootAssembleDtosWithQualifierProvider assemble(List<? extends AggregateRoot<?>> aggregateRoots)
aggregateRoots - the list of aggregate rootsAssembleDtoWithQualifierProvider assembleTuple(org.javatuples.Tuple aggregateRoots)
aggregateRoots - the tuple of aggregate rootsAssembleDtosWithQualifierProvider assembleTuple(List<? extends org.javatuples.Tuple> aggregateRoots)
aggregateRoots - the list of tuple of aggregate roots<D> MergeAggregateOrTupleWithQualifierProvider<D> merge(D dto)
D - the DTO typedto - the dto to merge<D> MergeAggregatesOrTuplesWithQualifierProvider<D> merge(List<D> dtos)
D - the DTO typedtos - the list of DTOsCopyright © 2013-2016–2016 SeedStack. All rights reserved.