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

public Class BasicResultAssembler<J>

extends Object
implements DomainResultAssembler<J>
Class Inheritance
All Implemented Interfaces
org.hibernate.sql.results.graph.DomainResultAssembler
Known Direct Subclasses
org.hibernate.sql.results.graph.basic.CoercingResultAssembler
Imports
java.util.Locale, org.hibernate.HibernateException, .Internal, org.hibernate.type.descriptor.converter.spi.BasicValueConverter, org.hibernate.sql.ast.spi.SqlSelection, org.hibernate.sql.results.ResultsLogger, org.hibernate.sql.results.graph.DomainResultAssembler, org.hibernate.sql.results.jdbc.spi.JdbcValuesSourceProcessingOptions, .RowProcessingState, org.hibernate.type.descriptor.java.JavaType

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
protected final JavaType<J>
private final BasicValueConverter<J, ?>
protected final int

Constructor Summary

AccessConstructor and Description
public
BasicResultAssembler(int valuesArrayPosition, JavaType<J> assembledJavaType)

public
BasicResultAssembler(int valuesArrayPosition, JavaType<J> assembledJavaType, BasicValueConverter<J, ?> valueConverter)

Method Summary

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

Access to the raw value (unconverted, if a converter applied)

public static <X> BasicResultAssembler<X>
from(SqlSelection selection, JavaType<X> javaType)

public JavaType<J>
getAssembledJavaType()

Implements org.hibernate.sql.results.graph.DomainResultAssembler.getAssembledJavaType.

The JavaType describing the Java type that this assembler assembles.
public BasicValueConverter<J, ?>
getValueConverter()

Exposed for testing purposes

public void
resolveState(RowProcessingState rowProcessingState)

Overrides default org.hibernate.sql.results.graph.DomainResultAssembler.resolveState.

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
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

assembledJavaTypeback to summary
protected final JavaType<J> assembledJavaType
valueConverterback to summary
private final BasicValueConverter<J, ?> valueConverter
valuesArrayPositionback to summary
protected final int valuesArrayPosition

Constructor Detail

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

Method Detail

assembleback to summary
public J assemble(RowProcessingState rowProcessingState, JdbcValuesSourceProcessingOptions options)

Implements org.hibernate.sql.results.graph.DomainResultAssembler.assemble.

Doc from org.hibernate.sql.results.graph.DomainResultAssembler.assemble.

The main "assembly" contract. Assemble the result and return it.

Annotations
@Override
extractRawValueback to summary
public Object extractRawValue(RowProcessingState rowProcessingState)

Access to the raw value (unconverted, if a converter applied)

fromback to summary
public static <X> BasicResultAssembler<X> from(SqlSelection selection, JavaType<X> javaType)
getAssembledJavaTypeback to summary
public JavaType<J> getAssembledJavaType()

Implements org.hibernate.sql.results.graph.DomainResultAssembler.getAssembledJavaType.

Doc from org.hibernate.sql.results.graph.DomainResultAssembler.getAssembledJavaType.

The JavaType describing the Java type that this assembler assembles.

Annotations
@Override
getValueConverterback to summary
public BasicValueConverter<J, ?> getValueConverter()

Exposed for testing purposes

Annotations
@Internal
resolveStateback to summary
public void resolveState(RowProcessingState rowProcessingState)

Overrides default org.hibernate.sql.results.graph.DomainResultAssembler.resolveState.

Doc from org.hibernate.sql.results.graph.DomainResultAssembler.resolveState.

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

Annotations
@Override