Interface ResultListTransformer<T>

All Known Subinterfaces:
ResultTransformer<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.

@Incubating @FunctionalInterface public interface ResultListTransformer<T>
Defines some processing performed on the overall result List of a Query before the result list is returned to the caller.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    transformList(List<T> resultList)
    Here we have an opportunity to perform transformation on the query result as a whole.
  • Method Details

    • transformList

      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 - The result list as would otherwise be returned from the Query without the intervention of this ResultListTransformer
      Returns:
      The transformed result.