KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openi > analysis > Datasource


1 /*********************************************************************************
2  * The contents of this file are subject to the OpenI Public License Version 1.0
3  * ("License"); You may not use this file except in compliance with the
4  * License. You may obtain a copy of the License at
5  * http://www.openi.org/docs/LICENSE.txt
6  *
7  * Software distributed under the License is distributed on an "AS IS" basis,
8  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
9  * the specific language governing rights and limitations under the License.
10  *
11  * The Original Code is: OpenI Open Source
12  *
13  * The Initial Developer of the Original Code is Loyalty Matrix, Inc.
14  * Portions created by Loyalty Matrix, Inc. are
15  * Copyright (C) 2005 Loyalty Matrix, Inc.; All Rights Reserved.
16  *
17  * Contributor(s): ______________________________________.
18  *
19  ********************************************************************************/

20 package org.openi.analysis;
21
22 import java.io.*;
23
24
25 /**
26  * @author plucas
27  * @author Dipendra Pokhrel - added xmladatasource
28  * TODO To change the template for this generated type comment go to
29  * Window - Preferences - Java - Code Style - Code Templates
30  */

31 public class Datasource implements Serializable {
32     private String JavaDoc server; // expects the fully qualified url
33
private String JavaDoc xmlaDatasource;
34     private String JavaDoc catalog;
35     private String JavaDoc username;
36     private String JavaDoc password;
37
38     public Datasource() {
39     }
40
41     /**
42      *
43      * @param server String
44      * @param xmlaDatasource String
45      */

46     public Datasource(String JavaDoc server, String JavaDoc catalog) {
47         this.server = server;
48         this.catalog = catalog;
49     }
50
51     /**
52      * @return Returns the catalog.
53      */

54     public String JavaDoc getCatalog() {
55         return catalog;
56     }
57
58     /**
59      * @param catalog The catalog to set.
60      */

61     public void setCatalog(String JavaDoc catalog) {
62         this.catalog = catalog;
63     }
64
65     /**
66      * @return Returns the server.
67      */

68     public String JavaDoc getServer() {
69         return server;
70     }
71
72     /**
73      * @param server The server to set.
74      */

75     public void setServer(String JavaDoc server) {
76         this.server = server;
77     }
78
79     /**
80      * @return Returns the password.
81      */

82     public String JavaDoc getPassword() {
83         return password;
84     }
85
86     /**
87      * @param password The password to set.
88      */

89     public void setPassword(String JavaDoc password) {
90         this.password = password;
91     }
92
93     /**
94      * @return Returns the username.
95      */

96     public String JavaDoc getUsername() {
97         return username;
98     }
99
100     /**
101      *
102      * @return String
103      */

104     public String JavaDoc getXmlaDatasource() {
105         return xmlaDatasource;
106     }
107
108     /**
109      * @param username The username to set.
110      */

111     public void setUsername(String JavaDoc username) {
112         this.username = username;
113     }
114
115     /**
116      *
117      * @param xmlaDatasource String
118      */

119     public void setXmlaDatasource(String JavaDoc xmlaDatasource) {
120         this.xmlaDatasource = xmlaDatasource;
121     }
122 }
123
Popular Tags