Package org.hibernate.query
Interface TupleTransformer<T>
-
- All Known Subinterfaces:
ResultTransformer<T>
,TypedTupleTransformer<T>
- All Known Implementing Classes:
AliasToBeanConstructorResultTransformer
,AliasToBeanResultTransformer
,AliasToEntityMapResultTransformer
,NativeQueryTupleTransformer
,ToListResultTransformer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface TupleTransformer<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
transformTuple(Object[] tuple, String[] aliases)
Tuples are the elements making up each "row" of the query result.
-
-
-
Method Detail
-
transformTuple
T transformTuple(Object[] tuple, String[] aliases)
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.- Parameters:
tuple
- The result elementsaliases
- The result aliases ("parallel" array to tuple)- Returns:
- The transformed row.
-
-