KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > transform > ResultTransformer


1 //$Id: ResultTransformer.java,v 1.3 2005/02/12 07:19:47 steveebersole Exp $
2
package org.hibernate.transform;
3
4 import java.io.Serializable JavaDoc;
5 import java.util.List JavaDoc;
6
7 /**
8  * Implementors define a strategy for transforming criteria query
9  * results into the actual application-visible query result list.
10  * @see org.hibernate.Criteria#setResultTransformer(ResultTransformer)
11  * @author Gavin King
12  */

13 public interface ResultTransformer extends Serializable JavaDoc {
14     public Object JavaDoc transformTuple(Object JavaDoc[] tuple, String JavaDoc[] aliases);
15     public List JavaDoc transformList(List JavaDoc collection);
16 }
17
Popular Tags