Top Description Methods
org.hibernate.transform

public Interface ResultTransformer<T>

extends TupleTransformer<T>, ResultListTransformer<T>, Serializable
Known Direct Implementers
org.hibernate.transform.ToListResultTransformer, org.hibernate.jpa.spi.NativeQueryTupleTransformer, org.hibernate.transform.AliasToBeanConstructorResultTransformer, org.hibernate.transform.AliasToBeanResultTransformer, org.hibernate.transform.AliasToEntityMapResultTransformer
Annotations
@Deprecated
since:6.0
Imports
java.io.Serializable, java.util.List, org.hibernate.query.Query, .ResultListTransformer, .TupleTransformer

Deprecated

since 6.0.

Use TupleTransformer and/or ResultListTransformer instead

Implementors define a strategy for transforming query results into the actual application-visible query result list.
Author
Gavin King
See Also
Query#setResultTransformer(ResultTransformer)

Method Summary

Modifier and TypeMethod and Description
public default List<T>
transformList(List<T>
The result list as would otherwise be returned from the Query without the intervention of this ResultListTransformer
resultList
)

Implements org.hibernate.query.ResultListTransformer.transformList.

Here we have an opportunity to perform transformation on the query result as a whole.
Inherited from org.hibernate.query.TupleTransformer:
transformTuple

Method Detail

transformListback to summary
public default List<T> transformList(List<T> resultList)

Implements org.hibernate.query.ResultListTransformer.transformList.

Doc from org.hibernate.query.ResultListTransformer.transformList.

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.

Parameters
resultList:List<T>

The result list as would otherwise be returned from the Query without the intervention of this ResultListTransformer

Returns:List<T>

The transformed result.

Annotations
@Override