Top Description Fields Constructors Methods
org.hibernate.jpa.spi

public Class NativeQueryConstructorTransformer<T>

extends Object
implements TupleTransformer<T>
Class Inheritance
All Implemented Interfaces
org.hibernate.query.TupleTransformer
Imports
org.hibernate.InstantiationException, org.hibernate.query.TupleTransformer, java.lang.reflect.Constructor, java.util.List

A TupleTransformer for handling List results from native queries.
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private Constructor<T>
private final Class<T>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private Constructor<T>
constructor(Object[] elements)

public T
transformTuple(Object[]
The result elements
tuple
,
String[]
The result aliases ("parallel" array to tuple)
aliases
)

Implements org.hibernate.query.TupleTransformer.transformTuple.

Tuples are the elements making up each "row" of the query result.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

constructorback to summary
private Constructor<T> constructor
resultClassback to summary
private final Class<T> resultClass

Constructor Detail

NativeQueryConstructorTransformerback to summary
public NativeQueryConstructorTransformer(Class<T> resultClass)

Method Detail

constructorback to summary
private Constructor<T> constructor(Object[] elements)
transformTupleback to summary
public T transformTuple(Object[] tuple, String[] aliases)

Implements org.hibernate.query.TupleTransformer.transformTuple.

Doc from org.hibernate.query.TupleTransformer.transformTuple.

Tuples are the elements making up each "row" of the query result. The contract here is to transform these elements into the final row shape.

Parameters
tuple:Object[]

The result elements

aliases:String[]

The result aliases ("parallel" array to tuple)

Returns:T

The transformed row.

Annotations
@Override