Top Description Fields Constructors Methods
org.hibernate.loader.custom

public Class NonScalarResultColumnProcessor

extends Object
implements ResultColumnProcessor
Class Inheritance
All Implemented Interfaces
org.hibernate.loader.custom.ResultColumnProcessor
Imports
java.sql.ResultSet, .SQLException, java.util.List, org.hibernate.HibernateException, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.type.Type

Represents non-scalar returns within the custom query. Most of the heavy lifting for non-scalar results is done within Loader itself.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
extract(Object[]
All non-scalar results (handled at a higher level than these processors)
data
,
ResultSet
The JDBC result set.
resultSet
,
SharedSessionContractImplementor
The Hibernate Session
session
)

Implements org.hibernate.loader.custom.ResultColumnProcessor.extract.

Perform The extraction
public void
performDiscovery(JdbcResultMetadata
Delegate for accessing metadata about the JDBC ResultSet
metadata
,
List<Type>
The building List of types
types
,
List<String>
The building list of column names/aliases
aliases
)

Implements org.hibernate.loader.custom.ResultColumnProcessor.performDiscovery.

Perform discovery, if needed.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

positionback to summary
private final int position

Constructor Detail

NonScalarResultColumnProcessorback to summary
public NonScalarResultColumnProcessor(int position)

Method Detail

extractback to summary
public Object extract(Object[] data, ResultSet resultSet, SharedSessionContractImplementor session) throws SQLException, HibernateException

Implements org.hibernate.loader.custom.ResultColumnProcessor.extract.

Doc from org.hibernate.loader.custom.ResultColumnProcessor.extract.

Perform The extraction

Parameters
data:Object[]

All non-scalar results (handled at a higher level than these processors)

resultSet:ResultSet

The JDBC result set.

session:SharedSessionContractImplementor

The Hibernate Session

Returns:Object

The extracted value

Annotations
@Override
Exceptions
SQLException:
Indicates a problem accessing the JDBC objects
HibernateException:
Indicates a higher-level problem already categorized by Hibernate
performDiscoveryback to summary
public void performDiscovery(JdbcResultMetadata metadata, List<Type> types, List<String> aliases)

Implements org.hibernate.loader.custom.ResultColumnProcessor.performDiscovery.

Doc from org.hibernate.loader.custom.ResultColumnProcessor.performDiscovery.

Perform discovery, if needed. Typically discovery activities include looking up the column name in the ResultSet or JDBC type codes.

Parameters
metadata:JdbcResultMetadata

Delegate for accessing metadata about the JDBC ResultSet

types:List<Type>

The building List of types

aliases:List<String>

The building list of column names/aliases

Annotations
@Override