org.hibernate.query.ResultListTransformer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
Hibernate's core ORM functionality
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
*/
package org.hibernate.query;
import java.util.List;
/**
* Allows defining transformation of the result List from a Query to some
* other form.
*
* @see org.hibernate.transform.ResultTransformer
*
* @author Steve Ebersole
* @author Gavin King
*/
public interface ResultListTransformer {
/**
* 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.
*
* @param resultList The result list as would otherwise be returned from
* the Query without the intervention of this ResultListTransformer
*
* @return The transformed result.
*/
List transformList(List resultList);
}