Class DynamicInstantiationAssemblerInjectionImpl<T>
- java.lang.Object
-
- org.hibernate.sql.results.graph.instantiation.internal.DynamicInstantiationAssemblerInjectionImpl<T>
-
- All Implemented Interfaces:
DomainResultAssembler<T>
public class DynamicInstantiationAssemblerInjectionImpl<T> extends Object implements DomainResultAssembler<T>
-
-
Constructor Summary
Constructors Constructor Description DynamicInstantiationAssemblerInjectionImpl(JavaType<T> target, List<ArgumentReader<?>> argumentReaders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tassemble(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<T>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
-
DynamicInstantiationAssemblerInjectionImpl
public DynamicInstantiationAssemblerInjectionImpl(JavaType<T> target, List<ArgumentReader<?>> argumentReaders)
-
-
Method Detail
-
getAssembledJavaType
public JavaType<T> getAssembledJavaType()
Description copied from interface:DomainResultAssemblerThe JavaType describing the Java type that this assembler assembles.- Specified by:
getAssembledJavaTypein interfaceDomainResultAssembler<T>
-
assemble
public T assemble(RowProcessingState rowProcessingState)
Description copied from interface:DomainResultAssemblerThe main "assembly" contract. Assemble the result and return it.- Specified by:
assemblein interfaceDomainResultAssembler<T>
-
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<T>
-
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<T>
-
-