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>
A
ResultTransformer for handling JPA Tuple results from native queries.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe type resulting from this transformationtransformTuple(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, waitMethods inherited from interface org.hibernate.transform.ResultTransformer
transformList
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NativeQueryTupleTransformer
public NativeQueryTupleTransformer()
-
-
Method Details
-
transformTuple
Description copied from interface:TupleTransformerTuples 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:
transformTuplein interfaceTupleTransformer<Tuple>- Parameters:
tuple- The result elementsaliases- The result aliases ("parallel" array to tuple)- Returns:
- The transformed row.
-
getTransformedType
Description copied from interface:TypedTupleTransformerThe type resulting from this transformation- Specified by:
getTransformedTypein interfaceTypedTupleTransformer<Tuple>
-