KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: PassThroughResultTransformer.java,v 1.3 2005/02/12 07:19:47 steveebersole Exp $
2
package org.hibernate.transform;
3
4 import java.util.List JavaDoc;
5
6 /**
7  * @author max
8  */

9 public class PassThroughResultTransformer implements ResultTransformer {
10
11     public Object JavaDoc transformTuple(Object JavaDoc[] tuple, String JavaDoc[] aliases) {
12         return tuple.length==1 ? tuple[0] : tuple;
13     }
14
15     public List JavaDoc transformList(List JavaDoc collection) {
16         return collection;
17     }
18
19 }
20
Popular Tags