Class CollectionAssembler
java.lang.Object
org.hibernate.sql.results.graph.collection.internal.CollectionAssembler
- All Implemented Interfaces:
DomainResultAssembler
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCollectionAssembler
(PluralAttributeMapping fetchedMapping, CollectionInitializer<?> initializer) -
Method Summary
Modifier and TypeMethodDescriptionassemble
(RowProcessingState rowProcessingState) The main "assembly" contract.void
forEachResultAssembler
(BiConsumer consumer, Object arg) Invokes the consumer with every initializer part of this assembler that returnstrue
forInitializer.isResultInitializer()
.JavaType<?>
The JavaType describing the Java type that this assembler assembles.void
resolveState
(RowProcessingState rowProcessingState) This method is used to resolve the assembler's state, i.e.
-
Field Details
-
initializer
-
-
Constructor Details
-
CollectionAssembler
public CollectionAssembler(PluralAttributeMapping fetchedMapping, CollectionInitializer<?> initializer)
-
-
Method Details
-
assemble
Description copied from interface:DomainResultAssembler
The main "assembly" contract. Assemble the result and return it.- Specified by:
assemble
in interfaceDomainResultAssembler
-
getAssembledJavaType
Description copied from interface:DomainResultAssembler
The JavaType describing the Java type that this assembler assembles.- Specified by:
getAssembledJavaType
in interfaceDomainResultAssembler
-
getInitializer
- Specified by:
getInitializer
in interfaceDomainResultAssembler
-
resolveState
Description copied from interface:DomainResultAssembler
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- Specified by:
resolveState
in interfaceDomainResultAssembler
-
forEachResultAssembler
Description copied from interface:DomainResultAssembler
Invokes the consumer with every initializer part of this assembler that returnstrue
forInitializer.isResultInitializer()
.- Specified by:
forEachResultAssembler
in interfaceDomainResultAssembler
-