01: //$Id: CriteriaSpecification.java 9116 2006-01-23 21:21:01Z steveebersole $
02: package org.hibernate.criterion;
03:
04: import org.hibernate.transform.AliasToEntityMapResultTransformer;
05: import org.hibernate.transform.DistinctRootEntityResultTransformer;
06: import org.hibernate.transform.PassThroughResultTransformer;
07: import org.hibernate.transform.ResultTransformer;
08: import org.hibernate.transform.RootEntityResultTransformer;
09:
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 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: /**
26: * Each row of results is an instance of the root entity
27: */
28: public static final ResultTransformer ROOT_ENTITY = new RootEntityResultTransformer();
29:
30: /**
31: * Each row of results is a distinct instance of the root entity
32: */
33: public static final ResultTransformer DISTINCT_ROOT_ENTITY = new DistinctRootEntityResultTransformer();
34:
35: /**
36: * This result transformer is selected implicitly by calling <tt>setProjection()</tt>
37: */
38: public static final ResultTransformer PROJECTION = new PassThroughResultTransformer();
39:
40: /**
41: * Specifies joining to an entity based on an inner join.
42: */
43: public static final int INNER_JOIN = org.hibernate.sql.JoinFragment.INNER_JOIN;
44:
45: /**
46: * Specifies joining to an entity based on a full join.
47: */
48: public static final int FULL_JOIN = org.hibernate.sql.JoinFragment.FULL_JOIN;
49:
50: /**
51: * Specifies joining to an entity based on a left outer join.
52: */
53: public static final int LEFT_JOIN = org.hibernate.sql.JoinFragment.LEFT_OUTER_JOIN;
54:
55: }
|