Package org.hibernate.transform
Interface ResultTransformer<T>
-
- All Superinterfaces:
ResultListTransformer<T>
,Serializable
,TupleTransformer<T>
- All Known Implementing Classes:
AliasToBeanConstructorResultTransformer
,AliasToBeanResultTransformer
,AliasToEntityMapResultTransformer
,NativeQueryTupleTransformer
,ToListResultTransformer
@Deprecated(since="6.0") public interface ResultTransformer<T> extends TupleTransformer<T>, ResultListTransformer<T>, Serializable
Deprecated.UseTupleTransformer
and/orResultListTransformer
insteadImplementors define a strategy for transforming query results into the actual application-visible query result list.
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default List<T>
transformList(List<T> resultList)
Deprecated.Here we have an opportunity to perform transformation on the query result as a whole.-
Methods inherited from interface org.hibernate.query.TupleTransformer
transformTuple
-
-
-
-
Method Detail
-
transformList
default List<T> transformList(List<T> resultList)
Deprecated.Description copied from interface:ResultListTransformer
Here we have an opportunity to perform transformation on the query result as a whole. This might be useful to convert from one collection type to another or to remove duplicates from the result, etc.- Specified by:
transformList
in interfaceResultListTransformer<T>
- Parameters:
resultList
- The result list as would otherwise be returned from the Query without the intervention of this ResultListTransformer- Returns:
- The transformed result.
-
-