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
Tranforms each result row from a tuple into aList
whose elements are each tuple value- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ToListResultTransformer
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
transformTuple(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:ResultTransformer
Tuples 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:
transformTuple
in interfaceResultTransformer
- Overrides:
transformTuple
in classBasicTransformerAdapter
- Parameters:
tuple
- The result elementsaliases
- The result aliases ("parallel" array to tuple)- Returns:
- The transformed row.
-
-