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
Constructors Constructor Description DynamicInstantiationAssemblerConstructorImpl(Constructor<R> targetConstructor, JavaType<R> resultType, List<ArgumentReader<?>> argumentReaders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description R
assemble(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()
.JavaType<R>
getAssembledJavaType()
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 Detail
-
DynamicInstantiationAssemblerConstructorImpl
public DynamicInstantiationAssemblerConstructorImpl(Constructor<R> targetConstructor, JavaType<R> resultType, List<ArgumentReader<?>> argumentReaders)
-
-
Method Detail
-
getAssembledJavaType
public JavaType<R> getAssembledJavaType()
Description copied from interface:DomainResultAssembler
The JavaType describing the Java type that this assembler assembles.- Specified by:
getAssembledJavaType
in interfaceDomainResultAssembler<R>
-
assemble
public R assemble(RowProcessingState rowProcessingState)
Description copied from interface:DomainResultAssembler
The main "assembly" contract. Assemble the result and return it.- Specified by:
assemble
in interfaceDomainResultAssembler<R>
-
resolveState
public void resolveState(RowProcessingState rowProcessingState)
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
public <X> void forEachResultAssembler(BiConsumer<Initializer<?>,X> consumer, X arg)
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>
-
-