KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openi > project > JdbcDatasource


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.project;
21
22 import java.io.Serializable JavaDoc;
23
24
25 /**
26  *
27  * TODO need to integrate this with the jpivot xmla datasource concept
28  */

29 public class JdbcDatasource implements Serializable JavaDoc {
30     private String JavaDoc driverClassName = "net.sourceforge.jtds.jdbc.Driver";
31     private String JavaDoc url;
32     private String JavaDoc username;
33     private String JavaDoc password;
34
35     /**
36      * @return Returns the driverClassName.
37      */

38     public String JavaDoc getDriverClassName() {
39         return driverClassName;
40     }
41
42     /**
43      * @param driverClassName The driverClassName to set.
44      */

45     public void setDriverClassName(String JavaDoc driverClassName) {
46         this.driverClassName = driverClassName;
47     }
48
49     /**
50      * @return Returns the password.
51      */

52     public String JavaDoc getPassword() {
53         return password;
54     }
55
56     /**
57      * @param password The password to set.
58      */

59     public void setPassword(String JavaDoc password) {
60         this.password = password;
61     }
62
63     /**
64      * @return Returns the url.
65      */

66     public String JavaDoc getUrl() {
67         return url;
68     }
69
70     /**
71      * @param url The url to set.
72      */

73     public void setUrl(String JavaDoc url) {
74         this.url = url;
75     }
76
77     /**
78      * @return Returns the username.
79      */

80     public String JavaDoc getUsername() {
81         return username;
82     }
83
84     /**
85      * @param username The username to set.
86      */

87     public void setUsername(String JavaDoc username) {
88         this.username = username;
89     }
90 }
91
Popular Tags