Class CoercingResultAssembler<J>
- java.lang.Object
-
- org.hibernate.sql.results.graph.basic.BasicResultAssembler<J>
-
- org.hibernate.sql.results.graph.basic.CoercingResultAssembler<J>
-
- All Implemented Interfaces:
DomainResultAssembler<J>
public class CoercingResultAssembler<J> extends BasicResultAssembler<J>
ABasicResultAssembler
which does type coercion to handle cases where the expression type and the expected resultJavaType
are different (e.g. same column mapped with differently typed properties).
-
-
Field Summary
-
Fields inherited from class org.hibernate.sql.results.graph.basic.BasicResultAssembler
assembledJavaType, valuesArrayPosition
-
-
Constructor Summary
Constructors Constructor Description CoercingResultAssembler(int valuesArrayPosition, JavaType<J> assembledJavaType, BasicValueConverter<J,?> valueConverter, boolean nestedInAggregateComponent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
extractRawValue(RowProcessingState rowProcessingState)
Access to the row value, coerced to expected type-
Methods inherited from class org.hibernate.sql.results.graph.basic.BasicResultAssembler
assemble, from, getAssembledJavaType, getValueConverter, resolveState
-
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
-
-
-
-
Constructor Detail
-
CoercingResultAssembler
public CoercingResultAssembler(int valuesArrayPosition, JavaType<J> assembledJavaType, BasicValueConverter<J,?> valueConverter, boolean nestedInAggregateComponent)
-
-
Method Detail
-
extractRawValue
public Object extractRawValue(RowProcessingState rowProcessingState)
Access to the row value, coerced to expected type- Overrides:
extractRawValue
in classBasicResultAssembler<J>
-
-