KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > olap > query > QuaxBean


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 package com.tonbeller.jpivot.olap.query;
14
15 import java.io.Serializable JavaDoc;
16
17 /**
18  * Java Bean object to hold the state of Quax.
19  */

20 public class QuaxBean implements Serializable JavaDoc {
21
22   boolean qubonMode = false;
23   int ordinal; // ordinal of query axis, never changed by swap
24
int nDimension;
25   PositionNodeBean posTreeRoot;
26   boolean hierarchizeNeeded;
27   int generateIndex = 0;
28   int generateMode = 0;
29   int nHierExclude = 0;
30
31   /**
32    * Get nDimension.
33    * @return nDimension
34    */

35   public int getNDimension() {
36     return nDimension;
37   }
38
39   /**
40    * Set nDimension.
41    * @param nDimension
42    */

43   public void setNDimension(int nDimension) {
44     this.nDimension = nDimension;
45   }
46
47   /**
48    * Get ordinal.
49    * @return ordinal
50    */

51   public int getOrdinal() {
52     return ordinal;
53   }
54
55   /**
56    * Set ordinal.
57    * @param ordinal
58    */

59   public void setOrdinal(int ordinal) {
60     this.ordinal = ordinal;
61   }
62
63   /**
64    * Get qubonMode.
65    * @return qubonMode
66    */

67   public boolean isQubonMode() {
68     return qubonMode;
69   }
70
71   /**
72    * Set qubonMode.
73    * @param qubonMode
74    */

75   public void setQubonMode(boolean qubonMode) {
76     this.qubonMode = qubonMode;
77   }
78
79   /**
80    * @return posTreeRoot
81    */

82   public PositionNodeBean getPosTreeRoot() {
83     return posTreeRoot;
84   }
85
86   /**
87    * @param posTreeRoot
88    */

89   public void setPosTreeRoot(PositionNodeBean posTreeRoot) {
90     this.posTreeRoot = posTreeRoot;
91   }
92
93   /**
94    * @return
95    */

96   public boolean isHierarchizeNeeded() {
97     return hierarchizeNeeded;
98   }
99
100   /**
101    * @param b
102    */

103   public void setHierarchizeNeeded(boolean b) {
104     hierarchizeNeeded = b;
105   }
106
107   /**
108    * @return
109    */

110   public int getGenerateIndex() {
111     return generateIndex;
112   }
113
114   /**
115    * @return
116    */

117   public int getGenerateMode() {
118     return generateMode;
119   }
120
121   /**
122    * @param i
123    */

124   public void setGenerateIndex(int i) {
125     generateIndex = i;
126   }
127
128   /**
129    * @param i
130    */

131   public void setGenerateMode(int i) {
132     generateMode = i;
133   }
134
135   /**
136    * @return Returns the nHierExclude.
137    */

138   public int getNHierExclude() {
139     return nHierExclude;
140   }
141   /**
142    * @param hierExclude The nHierExclude to set.
143    */

144   public void setNHierExclude(int hierExclude) {
145     nHierExclude = hierExclude;
146   }
147 } // QuaxBean
148
Popular Tags