Class DynamicInstantiationAssemblerConstructorImpl<R>
java.lang.Object
org.hibernate.sql.results.graph.instantiation.internal.DynamicInstantiationAssemblerConstructorImpl<R>
- All Implemented Interfaces:
DomainResultAssembler<R>
public class DynamicInstantiationAssemblerConstructorImpl<R>
extends Object
implements DomainResultAssembler<R>
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicInstantiationAssemblerConstructorImpl
(Constructor<R> targetConstructor, JavaType<R> resultType, List<ArgumentReader<?>> argumentReaders) -
Method Summary
Modifier and TypeMethodDescriptionassemble
(RowProcessingState rowProcessingState) The main "assembly" contract.<X> void
forEachResultAssembler
(BiConsumer<Initializer<?>, X> consumer, X arg) Invokes the consumer with every initializer part of this assembler that returnstrue
forInitializer.isResultInitializer()
.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.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 Details
-
DynamicInstantiationAssemblerConstructorImpl
public DynamicInstantiationAssemblerConstructorImpl(Constructor<R> targetConstructor, JavaType<R> resultType, List<ArgumentReader<?>> argumentReaders)
-
-
Method Details
-
getAssembledJavaType
Description copied from interface:DomainResultAssembler
The JavaType describing the Java type that this assembler assembles.- Specified by:
getAssembledJavaType
in interfaceDomainResultAssembler<R>
-
assemble
Description copied from interface:DomainResultAssembler
The main "assembly" contract. Assemble the result and return it.- Specified by:
assemble
in interfaceDomainResultAssembler<R>
-
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<R>
-
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<R>
-