public interface FluentAssembler
Stream
s, Iterable
s, and Page
s. It also works with tuples of aggregates.
When merging a DTO back into aggregate(s), FluentAssembler can use a Repository
and/or a Factory
to obtain the aggregate(s).
Modifier and Type | Method and Description |
---|---|
<A extends AggregateRoot<I>,I> |
assemble(A aggregateRoot)
Assembles an aggregate.
|
<A extends AggregateRoot<I>,I> |
assemble(Iterable<A> iterable)
Assembles an iterable of aggregates.
|
<A extends AggregateRoot<I>,I> |
assemble(Page<A> page)
Assembles a page of aggregates.
|
<A extends AggregateRoot<I>,I> |
assemble(Stream<A> stream)
Assembles a stream of aggregates.
|
<T extends org.javatuples.Tuple> |
assembleTuple(T tuple)
Assembles a tuple of aggregates into a single DTO.
|
<T extends org.javatuples.Tuple> |
assembleTuples(Iterable<T> iterable)
Assembles an iterable of tuple of aggregates.
|
<T extends org.javatuples.Tuple> |
assembleTuples(Page<T> page)
Assembles a page of tuple of aggregates.
|
<T extends org.javatuples.Tuple> |
assembleTuples(Stream<T> stream)
Assembles a stream of tuple of aggregates.
|
<D> MergeSingleWithQualifier |
merge(D dto)
Merges a DTO back into an aggregate.
|
<D> MergeMultipleWithQualifier |
merge(Iterable<D> iterable)
Merges an iterable of DTO back into aggregates.
|
<D> MergeMultipleWithQualifier |
merge(Stream<D> stream)
Merges a stream of DTO back into aggregates.
|
<A extends AggregateRoot<I>,I> AssembleSingleWithQualifier assemble(A aggregateRoot)
A
- the type of the aggregate root.I
- the type of the aggregate root identifier.aggregateRoot
- the aggregate root to assemble.<A extends AggregateRoot<I>,I> AssembleMultipleWithQualifier assemble(Stream<A> stream)
A
- the type of the aggregate root.I
- the type of the aggregate root identifier.stream
- the stream of aggregate roots to assemble.<A extends AggregateRoot<I>,I> AssembleMultipleWithQualifier assemble(Iterable<A> iterable)
A
- the type of the aggregate root.I
- the type of the aggregate root identifier.iterable
- the iterable of aggregate roots to assemble.<A extends AggregateRoot<I>,I> AssemblePageWithQualifier assemble(Page<A> page)
A
- the type of the aggregate root.I
- the type of the aggregate root identifier.page
- the page of aggregate roots to assemble.<T extends org.javatuples.Tuple> AssembleSingleWithQualifier assembleTuple(T tuple)
T
- the type of the tuple.tuple
- the tuple of aggregate roots to assemble.<T extends org.javatuples.Tuple> AssembleMultipleWithQualifier assembleTuples(Stream<T> stream)
T
- the type of the tuple.stream
- the stream of tuples of aggregate roots to assemble.<T extends org.javatuples.Tuple> AssembleMultipleWithQualifier assembleTuples(Iterable<T> iterable)
T
- the type of the tuple.iterable
- the iterable of tuples of aggregate roots to assemble.<T extends org.javatuples.Tuple> AssemblePageWithQualifier assembleTuples(Page<T> page)
T
- the type of the tuple.page
- the page of tuples of aggregate roots to assemble.<D> MergeSingleWithQualifier merge(D dto)
D
- the DTO type.dto
- the dto to merge<D> MergeMultipleWithQualifier merge(Stream<D> stream)
D
- the DTO type.stream
- the stream of DTO.<D> MergeMultipleWithQualifier merge(Iterable<D> iterable)
D
- the DTO type.iterable
- the iterable of DTO.Copyright © 2013-2018–2019 SeedStack. All rights reserved.