Top Description Methods
org.hibernate.loader.custom

pack-priv Interface ResultColumnProcessor

Known Direct Implementers
org.hibernate.loader.custom.ScalarResultColumnProcessor, org.hibernate.loader.custom.ConstructorResultColumnProcessor, org.hibernate.loader.custom.NonScalarResultColumnProcessor
Imports
java.sql.ResultSet, .SQLException, java.util.List, org.hibernate.HibernateException, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.type.Type

Processor for each "column" in a custom query result. May map to more than one physical column in the JDBC ResultSert.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

The extracted value
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
)

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
)

Perform discovery, if needed.

Method Detail

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

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

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) throws SQLException, HibernateException

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

Exceptions
SQLException:
Indicates a problem accessing the JDBC objects
HibernateException:
Indicates a higher-level problem already categorized by Hibernate