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

public Class NativeQueryListTransformer

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

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

Field Summary

Modifier and TypeField and Description
public static final NativeQueryListTransformer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<Object>
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

INSTANCEback to summary
public static final NativeQueryListTransformer INSTANCE

Constructor Detail

NativeQueryListTransformerback to summary
public NativeQueryListTransformer()

Method Detail

transformTupleback to summary
public List<Object> 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:List<Object>

The transformed row.

Annotations
@Override