All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.query.ResultListTransformer Maven / Gradle / Ivy

There is a newer version: 7.0.0.Beta1
Show newest version
/*
 * 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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy