KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mondrian > rolap > agg > QuerySpec


1 /*
2 // $Id: //open/mondrian/src/main/mondrian/rolap/agg/QuerySpec.java#5 $
3 // This software is subject to the terms of the Common Public License
4 // Agreement, available at the following URL:
5 // http://www.opensource.org/licenses/cpl.html.
6 // Copyright (C) 2001-2002 Kana Software, Inc.
7 // Copyright (C) 2001-2007 Julian Hyde and others
8 // All Rights Reserved.
9 // You must accept the terms of that agreement to use this software.
10 //
11 // jhyde, 30 August, 2001
12 */

13
14 package mondrian.rolap.agg;
15
16 import mondrian.rolap.RolapStar;
17 import mondrian.rolap.StarColumnPredicate;
18
19 /**
20  * Contains the information necessary to generate a SQL statement to
21  * retrieve a set of cells.
22  *
23  * @author jhyde
24  * @author Richard M. Emberson
25  * @version $Id: //open/mondrian/src/main/mondrian/rolap/agg/QuerySpec.java#5 $
26  */

27 public interface QuerySpec {
28     RolapStar getStar();
29     int getMeasureCount();
30     RolapStar.Measure getMeasure(int i);
31     String JavaDoc getMeasureAlias(int i);
32     RolapStar.Column[] getColumns();
33     String JavaDoc getColumnAlias(int i);
34
35     /**
36      * Returns the predicate on the <code>i</code>th column.
37      *
38      * <p>If the column is unconstrained, returns
39      * {@link LiteralStarPredicate}(true).
40      *
41      * @param i Column ordinal
42      * @return Constraint on column
43      */

44     StarColumnPredicate getColumnPredicate(int i);
45
46     String JavaDoc generateSqlQuery();
47 }
48
Popular Tags