Class BasicResultAssembler<J>
java.lang.Object
org.hibernate.sql.results.graph.basic.BasicResultAssembler<J>
- All Implemented Interfaces:
DomainResultAssembler<J>
- Direct Known Subclasses:
CoercingResultAssembler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final int
-
Constructor Summary
ConstructorsConstructorDescriptionBasicResultAssembler
(int valuesArrayPosition, JavaType<J> assembledJavaType) BasicResultAssembler
(int valuesArrayPosition, JavaType<J> assembledJavaType, BasicValueConverter<J, ?> valueConverter, boolean unwrapRowProcessingState) -
Method Summary
Modifier and TypeMethodDescriptionassemble
(RowProcessingState rowProcessingState) The main "assembly" contract.extractRawValue
(RowProcessingState rowProcessingState) Access to the raw value (unconverted, if a converter applied)static <X> BasicResultAssembler<X>
from
(SqlSelection selection, JavaType<X> javaType) The JavaType describing the Java type that this assembler assembles.Exposed for testing purposesvoid
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
forEachResultAssembler, getInitializer
-
Field Details
-
valuesArrayPosition
protected final int valuesArrayPosition -
assembledJavaType
-
-
Constructor Details
-
BasicResultAssembler
-
BasicResultAssembler
public BasicResultAssembler(int valuesArrayPosition, JavaType<J> assembledJavaType, BasicValueConverter<J, ?> valueConverter, boolean unwrapRowProcessingState)
-
-
Method Details
-
from
-
extractRawValue
Access to the raw value (unconverted, if a converter applied) -
assemble
Description copied from interface:DomainResultAssembler
The main "assembly" contract. Assemble the result and return it.- Specified by:
assemble
in interfaceDomainResultAssembler<J>
-
resolveState
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<J>
-
getAssembledJavaType
Description copied from interface:DomainResultAssembler
The JavaType describing the Java type that this assembler assembles.- Specified by:
getAssembledJavaType
in interfaceDomainResultAssembler<J>
-
getValueConverter
Exposed for testing purposes
-