Package org.hibernate.jpa.spi
Class TupleBuilderTransformer
- java.lang.Object
-
- org.hibernate.transform.BasicTransformerAdapter
-
- org.hibernate.jpa.spi.TupleBuilderTransformer
-
- All Implemented Interfaces:
java.io.Serializable,ResultTransformer
public class TupleBuilderTransformer extends BasicTransformerAdapter
ResultTransformer adapter for handling Tuple results from HQL/JPQL queries- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTupleBuilderTransformer.HqlTupleElementImpl<X>classTupleBuilderTransformer.HqlTupleImpl
-
Constructor Summary
Constructors Constructor Description TupleBuilderTransformer(Query hqlQuery)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjecttransformTuple(java.lang.Object[] tuple, java.lang.String[] aliases)Tuples are the elements making up each "row" of the query result.-
Methods inherited from class org.hibernate.transform.BasicTransformerAdapter
transformList
-
-
-
-
Constructor Detail
-
TupleBuilderTransformer
public TupleBuilderTransformer(Query hqlQuery)
-
-
Method Detail
-
transformTuple
public java.lang.Object transformTuple(java.lang.Object[] tuple, java.lang.String[] aliases)Description copied from interface:ResultTransformerTuples are the elements making up each "row" of the query result. The contract here is to transform these elements into the final row.- Specified by:
transformTuplein interfaceResultTransformer- Overrides:
transformTuplein classBasicTransformerAdapter- Parameters:
tuple- The result elementsaliases- The result aliases ("parallel" array to tuple)- Returns:
- The transformed row.
-
-