Package org.hibernate.jpa.spi
Class NativeQueryTupleTransformer
- java.lang.Object
-
- org.hibernate.jpa.spi.NativeQueryTupleTransformer
-
- All Implemented Interfaces:
Serializable
,ResultListTransformer<Tuple>
,TupleTransformer<Tuple>
,TypedTupleTransformer<Tuple>
,ResultTransformer<Tuple>
public class NativeQueryTupleTransformer extends Object implements ResultTransformer<Tuple>, TypedTupleTransformer<Tuple>
AResultTransformer
for handling JPATuple
results from native queries.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NativeQueryTupleTransformer
INSTANCE
-
Constructor Summary
Constructors Constructor Description NativeQueryTupleTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<Tuple>
getTransformedType()
The type resulting from this transformationTuple
transformTuple(Object[] tuple, String[] aliases)
Tuples are the elements making up each "row" of the query result.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.transform.ResultTransformer
transformList
-
-
-
-
Field Detail
-
INSTANCE
public static final NativeQueryTupleTransformer INSTANCE
-
-
Method Detail
-
transformTuple
public Tuple transformTuple(Object[] tuple, String[] aliases)
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<Tuple>
- Parameters:
tuple
- The result elementsaliases
- The result aliases ("parallel" array to tuple)- Returns:
- The transformed row.
-
getTransformedType
public Class<Tuple> getTransformedType()
Description copied from interface:TypedTupleTransformer
The type resulting from this transformation- Specified by:
getTransformedType
in interfaceTypedTupleTransformer<Tuple>
-
-