KickJava   Java API By Example, From Geeks To Geeks.

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


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.Memento;
18
19 /**
20  * Java Bean object to hold the state of a Mondrian MDX session.
21  * Contains parts of MondrianModel and subordinate objects.
22  */

23 public class MondrianMemento extends Memento implements Serializable JavaDoc {
24
25   static final int CURRENT_VERSION = 3;
26   int version;
27
28   // properties of the session
29
String JavaDoc jdbcDriver;
30   String JavaDoc connectString;
31
32   /**
33    * Get connectString.
34    * @return connectString
35    */

36   public String JavaDoc getConnectString() {
37     return connectString;
38   }
39
40   /**
41    * Get jdbcDriver.
42    * @return jdbcDriver
43    */

44   public String JavaDoc getJdbcDriver() {
45     return jdbcDriver;
46   }
47
48
49   /**
50    * Set connectString.
51    * @param connectString
52    */

53   public void setConnectString(String JavaDoc connectString) {
54     this.connectString = connectString;
55   }
56
57   /**
58    * Set jdbcDriver.
59    * @param jdbcDriver
60    */

61   public void setJdbcDriver(String JavaDoc jdbcDriver) {
62     this.jdbcDriver = jdbcDriver;
63   }
64
65
66   /**
67    * @return version
68    */

69   public int getVersion() {
70     return version;
71   }
72
73   /**
74     * @param i
75     */

76   public void setVersion(int i) {
77     version = i;
78   }
79
80 } // End MondrianMemento
81
Popular Tags