KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > piratepete > util > db > DBConnectionType


1 package com.piratepete.util.db;
2
3 /**
4  * DBConnectionType Class
5  * Copyright (C) 2003 David L. Whitehurst<p>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.<p>
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.<p>
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.<p>
20  *
21  * <a HREF="http://www.piratepetesoftware.com">piratepetesoftware.com</a><br>
22  * <a HREF="mailto:dlwhitehurst@comcast.net">dlwhitehurst@comcast.net</a>
23  *
24  * @version 1.0a
25  */

26 public class DBConnectionType {
27     private String JavaDoc dbName = null;
28     private String JavaDoc dbClass = null;
29     private String JavaDoc dbURL = null;
30     
31     public DBConnectionType() {} // base constructor
32
public DBConnectionType(String JavaDoc n, String JavaDoc c, String JavaDoc u) {
33         dbName = n;
34         dbClass = c;
35         dbURL = u;
36     }
37     
38     public void setName(String JavaDoc name) {
39         dbName = name;
40     }
41     
42     public String JavaDoc getName() {
43         return dbName;
44     }
45
46     public void setClassname(String JavaDoc classname){
47         dbClass = classname;
48     }
49     
50     public String JavaDoc getClassName() {
51         return dbClass;
52     }
53     
54     public void setURL(String JavaDoc url){
55         dbURL = url;
56     }
57     
58     public String JavaDoc getURL() {
59         return dbURL;
60     }
61     
62     public String JavaDoc toString() {
63         return this.dbName;
64     }
65     
66 }
67
Popular Tags