Top Description Methods
org.hibernate.query

public Interface ResultListTransformer<T>

Known Direct Subinterfaces
org.hibernate.transform.ResultTransformer
Annotations
@Incubating
@FunctionalInterface
Imports
java.util.List, org.hibernate.Incubating

Defines some processing performed on the overall result List of a Query before the result list is returned to the caller.
Authors
Steve Ebersole, Gavin King
See Also
Query#setResultListTransformer, Query#list, Query#getResultList, TupleTransformer

Method Summary

Modifier and TypeMethod and Description
public List<T>

Returns:

The transformed result.
transformList
(List<T>
The result list as would otherwise be returned from the Query without the intervention of this ResultListTransformer
resultList
)

Here we have an opportunity to perform transformation on the query result as a whole.

Method Detail

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

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.