KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > mondrian > MondrianQuax


1 /*
2  * ====================================================================
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) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  *
11  *
12  */

13
14 package com.tonbeller.jpivot.mondrian;
15
16 import mondrian.olap.Exp;
17 import mondrian.olap.QueryAxis;
18
19 import org.apache.log4j.Logger;
20
21
22 /**
23  * Quax implementation for Mondrian
24  */

25 public class MondrianQuax extends com.tonbeller.jpivot.olap.query.Quax {
26
27   private MondrianModel model;
28   private Exp originalSet;
29
30   static Logger logger = Logger.getLogger(MondrianQuax.class);
31
32   /**
33    * c'tor
34    * @param monQuax
35    */

36   MondrianQuax(int ordinal, QueryAxis queryAxis, MondrianModel model) {
37     super(ordinal);
38
39     this.model = model;
40     originalSet = queryAxis.getSet();
41  
42     super.setUti(new MondrianQuaxUti(model));
43   }
44
45
46   /**
47    * @return the original set
48    */

49   public Exp getOriginalSet() {
50     return originalSet;
51   }
52  
53 } // End MondrianQuax
54
Popular Tags