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.
Implementors define a strategy for transforming query results into the
actual application-visible query result list.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiontransformList(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 Details
-
transformList
Deprecated.Description copied from interface:ResultListTransformerHere 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:
transformListin interfaceResultListTransformer<T>- Parameters:
resultList- The result list as would otherwise be returned by theQuerywithout the intervention of thisResultListTransformer- Returns:
- The transformed result.
-
TupleTransformerand/orResultListTransformerinstead