Interface DomainResultAssembler<J>
- All Known Implementing Classes:
BasicResultAssembler, CoercingResultAssembler, TupleResultAssembler, UnfetchedBasicPartResultAssembler, UnfetchedResultAssembler
@Incubating(since="6.0",
group="result-processing")
@SPI({USE,IMPLEMENT,SUPPLY})
public interface DomainResultAssembler<J>
Responsible for "assembling" a result for inclusion in the domain query
result. "Assembling" the result basically means building the result object
(whatever that means for a specific result type) and returning it for
injection into the result "row" currently being processed
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionassemble(RowProcessingState rowProcessingState) The main "assembly" contract.default <X> voidforEachResultAssembler(BiConsumer<Initializer<?>, X> consumer, X arg) Invokes the consumer with every initializer part of this assembler that returnstrueforInitializer.isResultInitializer().The JavaType describing the Java type that this assembler assembles.default Initializer<?> Supplies the initializer owned by this assembler, when one is required.default booleandefault booleanisEager()default voidresolveState(RowProcessingState rowProcessingState) This method is used to resolve the assembler's state, i.e.
-
Method Details
-
assemble
The main "assembly" contract. Assemble the result and return it. -
getAssembledJavaType
-
resolveState
This method is used to resolve the assembler's state, i.e. reading the result values, with some performance optimization when we don't need the result object itself -
getInitializer
Supplies the initializer owned by this assembler, when one is required.- See Also:
-
forEachResultAssembler
Invokes the consumer with every initializer part of this assembler that returnstrueforInitializer.isResultInitializer(). -
isEager
default boolean isEager() -
hasLazySubInitializers
default boolean hasLazySubInitializers()
-