Class CollectionAssembler
- java.lang.Object
-
- org.hibernate.sql.results.graph.collection.internal.CollectionAssembler
-
- All Implemented Interfaces:
DomainResultAssembler
public class CollectionAssembler extends Object implements DomainResultAssembler
-
-
Field Summary
Fields Modifier and Type Field Description protected CollectionInitializer<?>initializer
-
Constructor Summary
Constructors Constructor Description CollectionAssembler(PluralAttributeMapping fetchedMapping, CollectionInitializer<?> initializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectassemble(RowProcessingState rowProcessingState)The main "assembly" contract.voidforEachResultAssembler(BiConsumer consumer, Object arg)Invokes the consumer with every initializer part of this assembler that returnstrueforInitializer.isResultInitializer().JavaType<?>getAssembledJavaType()The JavaType describing the Java type that this assembler assembles.CollectionInitializer<?>getInitializer()voidresolveState(RowProcessingState rowProcessingState)This method is used to resolve the assembler's state, i.e.
-
-
-
Field Detail
-
initializer
protected final CollectionInitializer<?> initializer
-
-
Constructor Detail
-
CollectionAssembler
public CollectionAssembler(PluralAttributeMapping fetchedMapping, CollectionInitializer<?> initializer)
-
-
Method Detail
-
assemble
public Object assemble(RowProcessingState rowProcessingState)
Description copied from interface:DomainResultAssemblerThe main "assembly" contract. Assemble the result and return it.- Specified by:
assemblein interfaceDomainResultAssembler
-
getAssembledJavaType
public JavaType<?> getAssembledJavaType()
Description copied from interface:DomainResultAssemblerThe JavaType describing the Java type that this assembler assembles.- Specified by:
getAssembledJavaTypein interfaceDomainResultAssembler
-
getInitializer
public CollectionInitializer<?> getInitializer()
- Specified by:
getInitializerin interfaceDomainResultAssembler
-
resolveState
public void resolveState(RowProcessingState rowProcessingState)
Description copied from interface:DomainResultAssemblerThis 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:
resolveStatein interfaceDomainResultAssembler
-
forEachResultAssembler
public void forEachResultAssembler(BiConsumer consumer, Object arg)
Description copied from interface:DomainResultAssemblerInvokes the consumer with every initializer part of this assembler that returnstrueforInitializer.isResultInitializer().- Specified by:
forEachResultAssemblerin interfaceDomainResultAssembler
-
-