Interface ListResultTransformer

All Superinterfaces:
org.hibernate.query.ResultListTransformer, org.hibernate.transform.ResultTransformer, Serializable, org.hibernate.query.TupleTransformer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ListResultTransformer extends org.hibernate.transform.ResultTransformer
The ListResultTransformer simplifies the way we can use a ResultTransformer by defining a default implementation for the ResultTransformer.transformList(List) method.

This way, the ListResultTransformer can be used as a functional interface.

For more details about how to use it, check out this article on vladmihalcea.com.

Since:
2.9.0
Author:
Vlad Mihalcea
  • Method Summary

    Modifier and Type
    Method
    Description
    default List
    Default implementation returning the tuples list as-is.

    Methods inherited from interface org.hibernate.query.TupleTransformer

    transformTuple
  • Method Details

    • transformList

      default List transformList(List tuples)
      Default implementation returning the tuples list as-is.
      Specified by:
      transformList in interface org.hibernate.query.ResultListTransformer
      Specified by:
      transformList in interface org.hibernate.transform.ResultTransformer
      Parameters:
      tuples - tuples list
      Returns:
      tuples list