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 Rassemble(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<R>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
-
DynamicInstantiationAssemblerConstructorImpl
public DynamicInstantiationAssemblerConstructorImpl(Constructor<R> targetConstructor, JavaType<R> resultType, List<ArgumentReader<?>> argumentReaders)
-
-
Method Detail
-
getAssembledJavaType
public JavaType<R> getAssembledJavaType()
Description copied from interface:DomainResultAssemblerThe JavaType describing the Java type that this assembler assembles.- Specified by:
getAssembledJavaTypein interfaceDomainResultAssembler<R>
-
assemble
public R assemble(RowProcessingState rowProcessingState)
Description copied from interface:DomainResultAssemblerThe main "assembly" contract. Assemble the result and return it.- Specified by:
assemblein interfaceDomainResultAssembler<R>
-
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<R>
-
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<R>
-
-