KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > criterion > CriteriaSpecification


1 //$Id: CriteriaSpecification.java,v 1.2 2005/02/12 07:19:13 steveebersole Exp $
2
package org.hibernate.criterion;
3
4 import org.hibernate.transform.AliasToEntityMapResultTransformer;
5 import org.hibernate.transform.DistinctRootEntityResultTransformer;
6 import org.hibernate.transform.PassThroughResultTransformer;
7 import org.hibernate.transform.ResultTransformer;
8 import org.hibernate.transform.RootEntityResultTransformer;
9
10 /**
11  * @author Gavin King
12  */

13 public interface CriteriaSpecification {
14
15     /**
16      * The alias that refers to the "root" entity of the criteria query.
17      */

18     public static final String JavaDoc ROOT_ALIAS = "this";
19     
20     /**
21      * Each row of results is a <tt>Map</tt> from alias to entity instance
22      */

23     public static final ResultTransformer ALIAS_TO_ENTITY_MAP = new AliasToEntityMapResultTransformer();
24     /**
25      * Each row of results is an instance of the root entity
26      */

27     public static final ResultTransformer ROOT_ENTITY = new RootEntityResultTransformer();
28     /**
29      * Each row of results is a distinct instance of the root entity
30      */

31     public static final ResultTransformer DISTINCT_ROOT_ENTITY = new DistinctRootEntityResultTransformer();
32     /**
33      * This result transformer is selected implicitly by calling <tt>setProjection()</tt>
34      */

35     public static final ResultTransformer PROJECTION = new PassThroughResultTransformer();
36     
37 }
38
Popular Tags