KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > cjdbc > console > wizard > objects > Backend


1 /**
2  * C-JDBC: Clustered JDBC.
3  * Copyright (C) 2002-2004 French National Institute For Research In Computer
4  * Science And Control (INRIA).
5  * Contact: c-jdbc@objectweb.org
6  *
7  * This library is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License as published by the
9  * Free Software Foundation; either version 2.1 of the License, or any later
10  * version.
11  *
12  * This library is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
15  * for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this library; if not, write to the Free Software Foundation,
19  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
20  *
21  * Initial developer(s): Nicolas Modrzyk.
22  * Contributor(s): ______________________.
23  */

24
25 package org.objectweb.cjdbc.console.wizard.objects;
26
27 import java.util.Hashtable JavaDoc;
28
29 import javax.swing.JComponent JavaDoc;
30
31 import org.objectweb.cjdbc.common.i18n.WizardTranslate;
32
33 /**
34  * A backend object. Used to transfer and collect backend data between forms
35  *
36  * @author <a HREF="mailto:Nicolas.Modrzyk@inria.fr">Nicolas Modrzyk </a>
37  * @version 1.0
38  */

39 public class Backend extends JComponent JavaDoc
40 {
41   String JavaDoc name = WizardTranslate.get("label.backend.undefined");
42   String JavaDoc driver;
43   String JavaDoc driverPath;
44   String JavaDoc url;
45   String JavaDoc connectionTestStatement;
46   String JavaDoc dynamicPrecision;
47   String JavaDoc gatherSystemTables = "false";
48   Hashtable JavaDoc connectionManagers = new Hashtable JavaDoc();
49
50   /**
51    * Sets the connectionManagers value.
52    *
53    * @param connectionManagers The connectionManagers to set.
54    */

55   public void setConnectionManagers(Hashtable JavaDoc connectionManagers)
56   {
57     this.connectionManagers = connectionManagers;
58   }
59
60   /**
61    * Returns the connectionManagers value.
62    *
63    * @return Returns the connectionManagers.
64    */

65   public Hashtable JavaDoc getConnectionManagers()
66   {
67     return connectionManagers;
68   }
69
70   /**
71    * Returns the dynamicPrecision value.
72    *
73    * @return Returns the dynamicPrecision.
74    */

75   public String JavaDoc getDynamicPrecision()
76   {
77     return dynamicPrecision;
78   }
79
80   /**
81    * Sets the dynamicPrecision value.
82    *
83    * @param dynamicPrecision The dynamicPrecision to set.
84    */

85   public void setDynamicPrecision(String JavaDoc dynamicPrecision)
86   {
87     this.dynamicPrecision = dynamicPrecision;
88   }
89
90   /**
91    * Returns the gatherSystemTables value.
92    *
93    * @return Returns the gatherSystemTables.
94    */

95   public String JavaDoc getGatherSystemTables()
96   {
97     return gatherSystemTables;
98   }
99
100   /**
101    * Sets the gatherSystemTables value.
102    *
103    * @param gatherSystemTables The gatherSystemTables to set.
104    */

105   public void setGatherSystemTables(String JavaDoc gatherSystemTables)
106   {
107     this.gatherSystemTables = gatherSystemTables;
108   }
109
110   /**
111    * Returns the connectionTestStatement value.
112    *
113    * @return Returns the connectionTestStatement.
114    */

115   public String JavaDoc getConnectionTestStatement()
116   {
117     return connectionTestStatement;
118   }
119
120   /**
121    * Sets the connectionTestStatement value.
122    *
123    * @param connectionTestStatement The connectionTestStatement to set.
124    */

125   public void setConnectionTestStatement(String JavaDoc connectionTestStatement)
126   {
127     this.connectionTestStatement = connectionTestStatement;
128   }
129
130   /**
131    * Returns the driver value.
132    *
133    * @return Returns the driver.
134    */

135   public String JavaDoc getDriver()
136   {
137     return driver;
138   }
139
140   /**
141    * Sets the driver value.
142    *
143    * @param driver The driver to set.
144    */

145   public void setDriver(String JavaDoc driver)
146   {
147     this.driver = driver;
148   }
149
150   /**
151    * Returns the driverPath value.
152    *
153    * @return Returns the driverPath.
154    */

155   public String JavaDoc getDriverPath()
156   {
157     return driverPath;
158   }
159
160   /**
161    * Sets the driverPath value.
162    *
163    * @param driverPath The driverPath to set.
164    */

165   public void setDriverPath(String JavaDoc driverPath)
166   {
167     this.driverPath = driverPath;
168   }
169
170   /**
171    * Returns the name value.
172    *
173    * @return Returns the name.
174    */

175   public String JavaDoc getName()
176   {
177     return name;
178   }
179
180   /**
181    * Sets the name value.
182    *
183    * @param name The name to set.
184    */

185   public void setName(String JavaDoc name)
186   {
187     this.name = name;
188   }
189
190   /**
191    * Returns the url value.
192    *
193    * @return Returns the url.
194    */

195   public String JavaDoc getUrl()
196   {
197     return url;
198   }
199
200   /**
201    * Sets the url value.
202    *
203    * @param url The url to set.
204    */

205   public void setUrl(String JavaDoc url)
206   {
207     this.url = url;
208   }
209
210   /**
211    * @see java.lang.Object#toString()
212    */

213   public String JavaDoc toString()
214   {
215     return name;
216   }
217 }
Popular Tags