Top Description Fields Constructors Methods
org.hibernate.sql.results.graph.basic

public Class CoercingResultAssembler<J>

extends BasicResultAssembler<J>
Class Inheritance
Imports
org.hibernate.sql.results.jdbc.spi.RowProcessingState, org.hibernate.type.descriptor.converter.spi.BasicValueConverter, org.hibernate.type.descriptor.java.JavaType

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).
Author
Marco Belladelli

Field Summary

Inherited from org.hibernate.sql.results.graph.basic.BasicResultAssembler:
assembledJavaTypevaluesArrayPosition

Constructor Summary

AccessConstructor and Description
public
CoercingResultAssembler(int valuesArrayPosition, JavaType<J> assembledJavaType, BasicValueConverter<J, ?> valueConverter)

Method Summary

Modifier and TypeMethod and Description
public Object
extractRawValue(RowProcessingState rowProcessingState)

Overrides org.hibernate.sql.results.graph.basic.BasicResultAssembler.extractRawValue.

Access to the row value, coerced to expected type
Inherited from org.hibernate.sql.results.graph.basic.BasicResultAssembler:
assemblefromgetAssembledJavaTypegetValueConverterresolveState

Constructor Detail

CoercingResultAssemblerback to summary
public CoercingResultAssembler(int valuesArrayPosition, JavaType<J> assembledJavaType, BasicValueConverter<J, ?> valueConverter)

Method Detail

extractRawValueback to summary
public Object extractRawValue(RowProcessingState rowProcessingState)

Overrides org.hibernate.sql.results.graph.basic.BasicResultAssembler.extractRawValue.

Access to the row value, coerced to expected type

Annotations
@Override