Package org.hibernate.transform
Class ToListResultTransformer
- java.lang.Object
-
- org.hibernate.transform.BasicTransformerAdapter
-
- org.hibernate.transform.ToListResultTransformer
-
- All Implemented Interfaces:
java.io.Serializable,ResultTransformer
public class ToListResultTransformer extends BasicTransformerAdapter
Transforms each result row from a tuple into aListwhose elements are each tuple value- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ToListResultTransformerINSTANCE
-
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
-
-
-
-
Field Detail
-
INSTANCE
public static final ToListResultTransformer INSTANCE
-
-
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.
-
-