KickJava   Java API By Example, From Geeks To Geeks.

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


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.mondrian;
14
15 import java.io.Serializable JavaDoc;
16
17 import com.tonbeller.jpivot.olap.query.*;
18
19 /**
20  * Java Bean object to hold the state of MondrianQuax.
21  * Used for serialization of MondrianModel via MondrianMemento.
22  * Referenced by MondrianMemento.
23  *
24  */

25 public class MondrianQuaxBean extends QuaxBean implements Serializable JavaDoc {
26     
27   
28   // old stuff
29
MondrianMemberSetBean[] memberSets = null; // Member sets, used in Qubon mode
30
MondrianDrillExBean[] drillExes; // List of drill expansions, used in normal mode
31

32 // HHTASK : support Non Empty
33

34
35   /**
36    * Set drillExes.
37    * @param drillExes
38    * Used by old memento (MDX Generation version 2)
39    * HHTASK: remove, when old Bookmarks are replaced
40    */

41   public void setDrillExes(MondrianDrillExBean[] drillExes) {
42     this.drillExes = drillExes;
43   }
44
45   /**
46    * Get drillExes.
47    * @return drillExes
48    * Used by old memento (MDX Generation version 2)
49    * HHTASK: remove, when old Bookmarks are replaced
50    */

51   public MondrianDrillExBean[] getDrillExes() {
52     if (drillExes != null)
53       return drillExes;
54     else
55       return new MondrianDrillExBean[0];
56   }
57
58   /**
59    * Get memberSets.
60    * @return memberSets
61    * Used by old memento (MDX Generation version 2)
62    * HHTASK: remove, when old Bookmarks are replaced
63    */

64   public MondrianMemberSetBean[] getMemberSets() {
65     if (memberSets != null)
66       return memberSets;
67     else
68       return new MondrianMemberSetBean[0];
69   }
70
71   /**
72    * Set memberSets.
73    * @param memberSets
74    * Used by old memento (MDX Generation version 2)
75    * HHTASK: remove, when old Bookmarks are replaced
76    */

77   public void setMemberSets(MondrianMemberSetBean[] memberSets) {
78     this.memberSets = memberSets;
79   }
80
81 } // End MondrianQuaxBean
82
Popular Tags