Class DynamicInstantiationAssemblerMapImpl
- java.lang.Object
-
- org.hibernate.sql.results.graph.instantiation.internal.DynamicInstantiationAssemblerMapImpl
-
- All Implemented Interfaces:
DomainResultAssembler<Map<?,?>>
public class DynamicInstantiationAssemblerMapImpl extends Object implements DomainResultAssembler<Map<?,?>>
A QueryResultAssembler implementation representing handling for dynamic- instantiations targeting a Map, e.g.`select new map( pers.name, pers.dateOfBirth ) ...`
-
-
Constructor Summary
Constructors Constructor Description DynamicInstantiationAssemblerMapImpl(JavaType<Map<?,?>> mapJavaType, List<ArgumentReader<?>> argumentReaders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<?,?>
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<Map<?,?>>
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
-
DynamicInstantiationAssemblerMapImpl
public DynamicInstantiationAssemblerMapImpl(JavaType<Map<?,?>> mapJavaType, List<ArgumentReader<?>> argumentReaders)
-
-
Method Detail
-
getAssembledJavaType
public JavaType<Map<?,?>> getAssembledJavaType()
Description copied from interface:DomainResultAssembler
The JavaType describing the Java type that this assembler assembles.- Specified by:
getAssembledJavaType
in interfaceDomainResultAssembler<Map<?,?>>
-
assemble
public Map<?,?> assemble(RowProcessingState rowProcessingState)
Description copied from interface:DomainResultAssembler
The main "assembly" contract. Assemble the result and return it.- Specified by:
assemble
in interfaceDomainResultAssembler<Map<?,?>>
-
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<Map<?,?>>
-
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<Map<?,?>>
-
-