001: /*********************************************************************************
002: * The contents of this file are subject to the OpenI Public License Version 1.0
003: * ("License"); You may not use this file except in compliance with the
004: * License. You may obtain a copy of the License at
005: * http://www.openi.org/docs/LICENSE.txt
006: *
007: * Software distributed under the License is distributed on an "AS IS" basis,
008: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
009: * the specific language governing rights and limitations under the License.
010: *
011: * The Original Code is: OpenI Open Source
012: *
013: * The Initial Developer of the Original Code is Loyalty Matrix, Inc.
014: * Portions created by Loyalty Matrix, Inc. are
015: * Copyright (C) 2005 Loyalty Matrix, Inc.; All Rights Reserved.
016: *
017: * Contributor(s): ______________________________________.
018: *
019: ********************************************************************************/package org.openi.analysis;
020:
021: import java.io.*;
022:
023: /**
024: * @author plucas
025: * @author Dipendra Pokhrel - added xmladatasource
026: * TODO To change the template for this generated type comment go to
027: * Window - Preferences - Java - Code Style - Code Templates
028: */
029: public class Datasource implements Serializable {
030: private String server; // expects the fully qualified url
031: private String xmlaDatasource;
032: private String catalog;
033: private String username;
034: private String password;
035:
036: public Datasource() {
037: }
038:
039: /**
040: *
041: * @param server String
042: * @param xmlaDatasource String
043: */
044: public Datasource(String server, String catalog) {
045: this .server = server;
046: this .catalog = catalog;
047: }
048:
049: public Datasource(String server, String catalog, String username,
050: String password) {
051: this .server = server;
052: this .catalog = catalog;
053: this .username = username;
054: this .password = password;
055: }
056:
057: /**
058: * @return Returns the catalog.
059: */
060: public String getCatalog() {
061: return catalog;
062: }
063:
064: /**
065: * @param catalog The catalog to set.
066: */
067: public void setCatalog(String catalog) {
068: this .catalog = catalog;
069: }
070:
071: /**
072: * @return Returns the server.
073: */
074: public String getServer() {
075: return server;
076: }
077:
078: /**
079: * @param server The server to set.
080: */
081: public void setServer(String server) {
082: this .server = server;
083: }
084:
085: /**
086: * @return Returns the password.
087: */
088: public String getPassword() {
089: return password;
090: }
091:
092: /**
093: * @param password The password to set.
094: */
095: public void setPassword(String password) {
096: this .password = password;
097: }
098:
099: /**
100: * @return Returns the username.
101: */
102: public String getUsername() {
103: return username;
104: }
105:
106: /**
107: *
108: * @return String
109: */
110: public String getXmlaDatasource() {
111: return xmlaDatasource;
112: }
113:
114: /**
115: * @param username The username to set.
116: */
117: public void setUsername(String username) {
118: this .username = username;
119: }
120:
121: /**
122: *
123: * @param xmlaDatasource String
124: */
125: public void setXmlaDatasource(String xmlaDatasource) {
126: this.xmlaDatasource = xmlaDatasource;
127: }
128: }
|