Package org.hibernate.jpa.spi
Class NativeQueryMapTransformer
java.lang.Object
org.hibernate.jpa.spi.NativeQueryMapTransformer
- All Implemented Interfaces:
TupleTransformer<Map<String,
Object>>
public class NativeQueryMapTransformer
extends Object
implements TupleTransformer<Map<String,Object>>
A
TupleTransformer
for handling Map
results from native queries.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NativeQueryMapTransformer
public NativeQueryMapTransformer()
-
-
Method Details
-
transformTuple
Description copied from interface:TupleTransformer
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.- Specified by:
transformTuple
in interfaceTupleTransformer<Map<String,
Object>> - Parameters:
tuple
- The result elementsaliases
- The result aliases ("parallel" array to tuple)- Returns:
- The transformed row.
-