KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > xmla > XMLA_Memento


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.xmla;
14
15 import java.io.Serializable JavaDoc;
16 import java.util.Map JavaDoc;
17
18 import com.tonbeller.jpivot.olap.query.Memento;
19
20 /**
21  * Java Bean object to hold the state of an XMLA MDX session.
22  * Contains parts of XMLA_Model and subordinate objects.
23  */

24 public class XMLA_Memento extends Memento implements Serializable JavaDoc {
25
26   static final int CURRENT_VERSION = 1;
27   int version;
28   private String JavaDoc uri = null;
29   private String JavaDoc user = null;
30   private String JavaDoc password = null;
31   private String JavaDoc catalog = null;
32   private String JavaDoc dataSource = null;
33   
34   private Map JavaDoc calcMeasurePropMap = null;
35
36   /**
37    * @return
38    */

39   public String JavaDoc getDataSource() {
40     return dataSource;
41   }
42
43   /**
44    * @return
45    */

46   public String JavaDoc getPassword() {
47     return password;
48   }
49
50   /**
51    * @return
52    */

53   public String JavaDoc getUri() {
54     return uri;
55   }
56
57   /**
58    * @return
59    */

60   public String JavaDoc getUser() {
61     return user;
62   }
63
64   /**
65    * @param string
66    */

67   public void setDataSource(String JavaDoc string) {
68     dataSource = string;
69   }
70
71   /**
72    * @param string
73    */

74   public void setPassword(String JavaDoc string) {
75     password = string;
76   }
77
78   /**
79    * @param string
80    */

81   public void setUri(String JavaDoc string) {
82     uri = string;
83   }
84
85   /**
86    * @param string
87    */

88   public void setUser(String JavaDoc string) {
89     user = string;
90   }
91
92   /**
93    * @return
94    */

95   public int getVersion() {
96     return version;
97   }
98
99   /**
100    * @param i
101    */

102   public void setVersion(int i) {
103     version = i;
104   }
105
106   /**
107    * @return
108    */

109   public String JavaDoc getCatalog() {
110     return catalog;
111   }
112
113   /**
114    * @param string
115    */

116   public void setCatalog(String JavaDoc string) {
117     catalog = string;
118   }
119
120   /**
121    * @return
122    */

123   public Map JavaDoc getCalcMeasurePropMap() {
124     return calcMeasurePropMap;
125   }
126
127   /**
128    * @param map
129    */

130   public void setCalcMeasurePropMap(Map JavaDoc map) {
131     calcMeasurePropMap = map;
132   }
133
134 } // XMLA_Memento
135
Popular Tags