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 purposesvoidresolveState(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, waitMethods 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:DomainResultAssemblerThe main "assembly" contract. Assemble the result and return it.- Specified by:
assemblein interfaceDomainResultAssembler<J>
-
resolveState
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<J>
-
getAssembledJavaType
Description copied from interface:DomainResultAssemblerThe JavaType describing the Java type that this assembler assembles.- Specified by:
getAssembledJavaTypein interfaceDomainResultAssembler<J>
-
getValueConverter
Exposed for testing purposes
-