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>
A
BasicResultAssembler which does type coercion to handle cases
where the expression type and the expected result JavaType are different
(e.g. same column mapped with differently typed properties).-
Field Summary
Fields inherited from class BasicResultAssembler
assembledJavaType, valuesArrayPosition -
Constructor Summary
ConstructorsConstructorDescriptionCoercingResultAssembler(int valuesArrayPosition, JavaType<J> assembledJavaType, BasicValueConverter<J, ?> valueConverter, boolean nestedInAggregateComponent) -
Method Summary
Modifier and TypeMethodDescriptionextractRawValue(RowProcessingState rowProcessingState) Access to the row value, coerced to expected typeMethods inherited from class BasicResultAssembler
assemble, from, getAssembledJavaType, getValueConverter, resolveStateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DomainResultAssembler
forEachResultAssembler, getInitializer, hasLazySubInitializers, isEager
-
Constructor Details
-
CoercingResultAssembler
public CoercingResultAssembler(int valuesArrayPosition, JavaType<J> assembledJavaType, BasicValueConverter<J, ?> valueConverter, boolean nestedInAggregateComponent)
-
-
Method Details
-
extractRawValue
Access to the row value, coerced to expected type- Overrides:
extractRawValuein classBasicResultAssembler<J>
-