Class ArgumentReader<A>
- java.lang.Object
-
- org.hibernate.sql.results.graph.instantiation.internal.ArgumentReader<A>
-
- All Implemented Interfaces:
DomainResultAssembler<A>
public class ArgumentReader<A> extends Object implements DomainResultAssembler<A>
Specialized QueryResultAssembler for use as a "reader" for dynamic- instantiation arguments.
-
-
Constructor Summary
Constructors Constructor Description ArgumentReader(DomainResultAssembler<A> delegateAssembler, String alias)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable A
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()
.String
getAlias()
JavaType<A>
getAssembledJavaType()
The JavaType describing the Java type that this assembler assembles.@Nullable Initializer<?>
getInitializer()
void
resolveState(RowProcessingState rowProcessingState)
This method is used to resolve the assembler's state, i.e.
-
-
-
Constructor Detail
-
ArgumentReader
public ArgumentReader(DomainResultAssembler<A> delegateAssembler, String alias)
-
-
Method Detail
-
getAlias
public String getAlias()
-
assemble
public @Nullable A assemble(RowProcessingState rowProcessingState)
Description copied from interface:DomainResultAssembler
The main "assembly" contract. Assemble the result and return it.- Specified by:
assemble
in interfaceDomainResultAssembler<A>
-
getAssembledJavaType
public JavaType<A> getAssembledJavaType()
Description copied from interface:DomainResultAssembler
The JavaType describing the Java type that this assembler assembles.- Specified by:
getAssembledJavaType
in interfaceDomainResultAssembler<A>
-
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<A>
-
getInitializer
public @Nullable Initializer<?> getInitializer()
- Specified by:
getInitializer
in interfaceDomainResultAssembler<A>
-
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<A>
-
-