Class DynamicInstantiationAssemblerListImpl
- java.lang.Object
-
- org.hibernate.sql.results.graph.instantiation.internal.DynamicInstantiationAssemblerListImpl
-
- All Implemented Interfaces:
DomainResultAssembler<List<?>>
public class DynamicInstantiationAssemblerListImpl extends Object implements DomainResultAssembler<List<?>>
A QueryResultAssembler implementation representing handling for dynamic- instantiations targeting a List (per-"row"), E.g.`select new list( pers.name, pers.dateOfBirth ) ...`
-
-
Constructor Summary
Constructors Constructor Description DynamicInstantiationAssemblerListImpl(JavaType<List<?>> listJavaType, List<ArgumentReader<?>> argumentReaders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<?>assemble(RowProcessingState rowProcessingState)The main "assembly" contract.<X> voidforEachResultAssembler(BiConsumer<Initializer<?>,X> consumer, X arg)Invokes the consumer with every initializer part of this assembler that returnstrueforInitializer.isResultInitializer().JavaType<List<?>>getAssembledJavaType()The JavaType describing the Java type that this assembler assembles.voidresolveState(RowProcessingState rowProcessingState)This method is used to resolve the assembler's state, i.e.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.results.graph.DomainResultAssembler
getInitializer
-
-
-
-
Constructor Detail
-
DynamicInstantiationAssemblerListImpl
public DynamicInstantiationAssemblerListImpl(JavaType<List<?>> listJavaType, List<ArgumentReader<?>> argumentReaders)
-
-
Method Detail
-
getAssembledJavaType
public JavaType<List<?>> getAssembledJavaType()
Description copied from interface:DomainResultAssemblerThe JavaType describing the Java type that this assembler assembles.- Specified by:
getAssembledJavaTypein interfaceDomainResultAssembler<List<?>>
-
assemble
public List<?> assemble(RowProcessingState rowProcessingState)
Description copied from interface:DomainResultAssemblerThe main "assembly" contract. Assemble the result and return it.- Specified by:
assemblein interfaceDomainResultAssembler<List<?>>
-
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<List<?>>
-
forEachResultAssembler
public <X> void forEachResultAssembler(BiConsumer<Initializer<?>,X> consumer, X arg)
Description copied from interface:DomainResultAssemblerInvokes the consumer with every initializer part of this assembler that returnstrueforInitializer.isResultInitializer().- Specified by:
forEachResultAssemblerin interfaceDomainResultAssembler<List<?>>
-
-