01: /*
02: * This file is part of the GeOxygene project source files.
03: *
04: * GeOxygene aims at providing an open framework which implements OGC/ISO specifications for
05: * the development and deployment of geographic (GIS) applications. It is a open source
06: * contribution of the COGIT laboratory at the Institut Géographique National (the French
07: * National Mapping Agency).
08: *
09: * See: http://oxygene-project.sourceforge.net
10: *
11: * Copyright (C) 2005 Institut Géographique National
12: *
13: * This library is free software; you can redistribute it and/or modify it under the terms
14: * of the GNU Lesser General Public License as published by the Free Software Foundation;
15: * either version 2.1 of the License, or any later version.
16: *
17: * This library is distributed in the hope that it will be useful, but WITHOUT ANY
18: * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
19: * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
20: *
21: * You should have received a copy of the GNU Lesser General Public License along with
22: * this library (see file LICENSE if present); if not, write to the Free Software
23: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24: *
25: */
26:
27: package fr.ign.cogit.geoxygene.datatools.castor.conf;
28:
29: /*
30: * This class was automatically generated with
31: * <a href="http://castor.exolab.org">Castor 0.9.2</a>, using an
32: * XML Schema.
33: * Creee a partir du schema jdo-conf.xsd (modifie en jdo-conf.xsd.2001).
34: * Cette classe a ete creee pour recuperer les donnees du fichier "database.xml" (driver, user, etc...)
35: * utiles pour etablir une connection JDBC. Elle est utilisee par la classe GeodatabaseCastorOracle.
36: *
37: * Attention ne pas confondre avec la classe "Database" de Castor JDO.
38: *
39: * @author Thierry Badard & Arnaud Braun
40: * @version 1.0
41: */
42:
43: /** Usage interne. */
44:
45: public class Database {
46:
47: private String _name;
48: private String _engine;
49: private Driver _driver;
50:
51: // autres champs du xsd
52: // private DataSource _dataSource;
53: // private Jndi _jndi;
54: // private Mapping _mapping;
55:
56: public Database() {
57: super ();
58: }
59:
60: public Driver getDriver() {
61: return this ._driver;
62: }
63:
64: public String getEngine() {
65: return this ._engine;
66: }
67:
68: public String getName() {
69: return this ._name;
70: }
71:
72: public void setDriver(Driver driver) {
73: this ._driver = driver;
74: }
75:
76: public void setEngine(String engine) {
77: this ._engine = engine;
78: }
79:
80: public void setName(String name) {
81: this._name = name;
82: }
83: }
|