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

public Class NativeQueryMapTransformer

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

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

Field Summary

Modifier and TypeField and Description
public static final NativeQueryMapTransformer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Map<String, 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 NativeQueryMapTransformer INSTANCE

Constructor Detail

NativeQueryMapTransformerback to summary
public NativeQueryMapTransformer()

Method Detail

transformTupleback to summary
public Map<String, 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:Map<String, Object>

The transformed row.

Annotations
@Override