commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prick...@apache.org
Subject cvs commit: jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/xsd databases.xsd
Date Mon, 02 Dec 2002 01:17:52 GMT
prickett    2002/12/01 17:17:52

  Modified:    periodicity project.properties
               periodicity/src/plugins-build/database/src/xsd databases.xsd
  Added:       periodicity/src/plugins-build/database/src/xml databases.xml
  Log:
  Added database.port to project.properties
  Added database.name to project.properties
  Added database.path to project.properties
  Added admin.path to project.properties
  Changed databases name attribute to a type attribute
  Fixed the schema so that it is correct with the current databases.xml file.
  
  Moved databases.xml under the databases plugin.
  
  Revision  Changes    Path
  1.7       +61 -3     jakarta-commons-sandbox/periodicity/project.properties
  
  Index: project.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/periodicity/project.properties,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- project.properties	11 Oct 2002 18:44:59 -0000	1.6
  +++ project.properties	2 Dec 2002 01:17:51 -0000	1.7
  @@ -23,7 +23,7 @@
   # Default: none
   # -------------------------------------------------------------------
   
  -periodicity.database.type=postgresql
  +periodicity.database.type=
   
   # --------------------------------------------------------------------
   #
  @@ -69,9 +69,67 @@
   # localhost will be used as the database host. If the type of database
   # is an embedded java database the hostname will be ignored. If the
   # jdbc url uses a Data Source Naming convention instead of a host/port
  -# nameing convention it will be ignored in that case too.
  +# naming convention it will be ignored in that case too.
   #
   # --------------------------------------------------------------------
   
  -periodicity.database.host=localhost
  +periodicity.database.host=
  +
  +# --------------------------------------------------------------------
  +# 
  +# D A T A B A S E  P O R T 
  +#
  +# This periodicity server setting tells the periodicity server which 
  +# port the database is listening on. It is not used for embedded 
  +# databases or databases that utilize a DSN naming convention in the
  +# url. The default port varies by database. A port number does not have
  +# to be included at all and this setting for most cases can be totally
  +# ignored. The only time you need to set this is when the database
  +# is running on a port that is not standard for the given database type
  +#
  +# --------------------------------------------------------------------
  +
  +periodicity.database.port=
  +
  +
  +# --------------------------------------------------------------------
  +# 
  +# D A T A B A S E  N A M E
  +#
  +# The name of the database where the information is stored. This
  +# is the name of the actual database as it would be in the url.
  +# The default is periodicity.
  +#
  +# --------------------------------------------------------------------
  +
  +periodicity.database.name=
  +
  +# --------------------------------------------------------------------
  +# 
  +# D A T A B A S E  P A T H
  +#
  +# This periodicity server setting tells the periodicity server
  +# the location of the database in the computer's file system.
  +# It is a path which should point to a directory where the db
  +# should be either already located or created at run time. If a 
  +# a database path is not specified periodicity will use a directory
  +# called .periodicity in the home directory of the user who runs the
  +# maven install script.
  +#
  +# --------------------------------------------------------------------
  +
  +periodicity.database.path=
  +
  +# --------------------------------------------------------------------
  +# 
  +# A D M I N  P A T H
  +#
  +# This periodicity server setting tells the periodicity server
  +# the name of the administration path that can be used to 
  +# add users, change passwords, and add databases to the database 
  +# server.
  +# 
  +# --------------------------------------------------------------------
  +
  +periodicity.admin.path=
   
  
  
  
  1.1                  jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/xml/databases.xml
  
  Index: databases.xml
  ===================================================================
  <?xml version="1.0"?>
  <db-information-db>
  
    <databases>
    
      <defaults>
        <db-type>axion</db-type>
        <db-user>${user.name}</db-user>
        <db-password/>
        <db-name>periodicity</db-name>
        <db-path>${user.home}/.periodicity</db-path>
        <db-host>localhost</db-host>
      </defaults>  
  
      <database type="mysql">
        <short-description>MySQL Database</short-description>
        <description>MySQL is an Open Source database that is maintained, 
        distributed, and
        supported by the MySQL AB company. The MySQL Open Source
        project founders 
        are the company owners.</description>
        <web-url>http://www.mysql.com</web-url>
        <defaults>
          <db-user>root</db-user>
          <db-port>3306</db-port>
          <admin-path>mysql</admin-path>
        </defaults>  
      </database>
  
      <database type="postgresql">
        <short-description>PostgreSQL Database</short-description>
        <description>PostgreSQL is an Open Source Object Relational DBMS that 
        started out
        as a research prototype at the University of California, Berkeley.
        The original research was coordinated by Proessor Michael Stonebraker.
        The team consisted of students (both graduate and undergraduate) as
        well as UCB staff programmers. The project is now maintained by a team
        of volunteer programmers who are currently coordinated by 
        Marc G Fournier.</description>
        <web-url>http://www.postgresql.org</web-url>
        <defaults>
          <db-user>postgres</db-user>
          <db-port>5432</db-port>
          <admin-path>template1</admin-path>
        </defaults>  
      </database>
  
      <database type="mssql">
        <short-description>MS SQL Database</short-description>
        <description>MS SQL is a commercial relational database management 
        system developed and maintained by Microsoft Corporation</description>
        <web-url>http://www.microsoft.com/sql/default.asp</web-url>
      </database>
  
      <database type="oracle">
        <short-description>Oracle Database</short-description>
        <description>Oracle is a commercial relational database developed
        and maintained by Oracle Corporation</description>
        <web-url>http://www.oracle.com/ip/deploy/database</web-url>
        <defaults>
          <db-port>1521</db-port>
        </defaults>  
      </database>
  
      <database type="axion">
        <short-description>Axion Database</short-description>
        <description>Axion is an Open Source database written in the Java
        programming language. It features a small footprint. It
        supports SQL and JDBC. It is developed and maintained by
        a small team of programmers who are affiliated with the tigris.org
        open source community.</description>
        <web-url>http://axion.tigris.org</web-url>
      </database>
  
      <database type="cloudscape">
        <short-description>Cloudscape Database</short-description>
        <description>Cloudscape is a commercial database written in the Java
        programming language. It is developed and maintained by IBM Corporation.
        It features a small footprint. It supports
        SQL, JDBC, and transactions.</description>
        <web-url>http://www.cloudscape.com</web-url>
      </database>
  
      <database type="db2">
        <short-description>DB2 Database</short-description>
        <description>DB2 is a commercial relational database management system
        developed and maintained by IBM Corporation.</description>
        <web-url>http://www.ibm.com/software/data/db2</web-url>
        <defaults>
          <db-port>6790</db-port>
        </defaults>  
      </database>
  
      <database type="db2400">
        <short-description>DB2 400 Database</short-description>
        <description>DB2 400 is a commercial relational database management
        system developed and maintained by IBM Corporation.</description>
        <web-url>http://www.ibm.com/software/data/db2</web-url>
      </database>
  
      <database type="hypersonic">
        <short-description>HSQL Database Engine</short-description>
        <description>HSQL is an Open Source database engine written in Java.
        It is lightweight and was originally written by Thomas Muelller. 
        It is now maintained by a group of volunteers and is hosted at Source
        Forge</description>
        <web-url>http://hsqldb.sourceforge.net</web-url>
      </database>
  
      <database type="interbase">
        <short-description>Interbase Database</short-description>
        <description>Interbase is a commercial SQL compliant database that is
        developed and maintained by Borland Software Corporation</description>
        <web-url>http://www.interbase.com</web-url>
      </database>
      
    </databases>
  
    <drivers>
    
      <driver name="mysql.default">
        <short-description>MySQL Connector/J JDBC Driver</short-description>
        <description>MySQL Connector/J is an open source JDBC driver for 
        the MySQL database and was orignally called MM.MySQL. It was written
        by Mark Matthews who is now affiliated with MySQL AB</description>
        <web-url>http://mmmysql.sourceforge.net</web-url>
        <class-name>org.gjt.mm.mysql.Driver</class-name>
        <protocol>
          <scheme>jdbc:mysql</scheme>
          <url>jdbc:mysql://${databaseHost}${databasePort}/${databaseName}</url>
          <admin-url>jdbc:mysql://${databaseHost}${databasePort}/${adminPath}</admin-url>
        </protocol>  
      </driver>
  
      <driver name="postgresql.default">
        <short-description>PostgreSQL JDBC Driver</short-description>
        <description>The PostgreSQL JDBC driver is an open source JDBC driver
        for the PostgreSQL database. It is developed and maintained by the 
        PostgreSQL development team.</description>
        <class-name>org.postgresql.Driver</class-name>
        <protocol>
          <scheme>jdbc:postgresql</scheme>
          <url>jdbc:postgresql://${databaseHost}${databasePort}/${databaseName}</url>
          <admin-url>${scheme}://${databaseHost}${databasePort}/${adminPath}</admin-url>
        </protocol>  
      </driver>
  
      <driver name="oracle.default">
        <short-description>Oracle Thin JDBC Driver</short-description>
        <description>The Oracle Thin JDBC Driver is a JDBC Driver for the
        Oracle database. It is written completely in java. It is developed
        and maintained by Oracle Corporation.</description>
        <web-url>http://otn.oracle.com/tech/java/sqlj_jdbc/htdocs</web-url>
        <class-name>oracle.jdbc.driver.OracleDriver</class-name>
        <protocol>
          <scheme>jdbc:oracle:thin</scheme>
        </protocol>  
      </driver>
  
      <driver name="axion.default">
        <short-description>Axion JDBC Driver</short-description>
        <description>The Axion JDBC Driver is a JDBC Driver for the
        Axion database. It is developed and maintained my a small team of 
        programmers who are affiliated with the tigris.org open source
        community</description>
        <web-url>http://axion.tigris.org/quickstart.html</web-url>
        <class-name>org.axiondb.jdbc.AxionDriver</class-name>
        <protocol>
          <scheme>jdbc:axiondb</scheme>
          <url>jdbc:axiondb:${databasePath}/${databaseName}</url>
        </protocol>  
      </driver>
  
      <driver name="cloudscape.default">
        <class-name>com.ibm.db2j.jdbc.DB2jDriver</class-name>
        <protocol>
          <scheme>jdbc:db2j</scheme>
          <url>jdbc:db2j:${databaseName}</url>
        </protocol>  
      </driver>  
     
      <driver name="hypersonic.default">
        <short-description>HSQLDB JDBC Driver</short-description>
        <description>The HSQLDB JDBC driver is a JDBC driver for the 
        HSQL Database Engine.
        It was originally written by Thomas Muelller. 
        It is now maintained by a group of volunteers and is hosted at Source
        Forge.</description>
        <web-url>http://hsqldb.sourceforge.net</web-url>
        <class-name>org.hsqldb.jdbcDriver</class-name>
        <protocol name="protocol.default">
          <scheme>jdbc:hsqldb</scheme>
          <url>jdbc:hsqldb:${databasePath}/${databaseHost}</url>
        </protocol>
        <protocol name="protocol.http">
          <scheme>jdbc:hsqldb:HTTP</scheme>
        </protocol>
        <protocol name="protocol.hsql">
          <scheme>jdbc:hsqldb:hsql</scheme>
          <url>jdbc:hsqldb:hsql://${databaseHost}</url>
        </protocol>
      </driver>
  
      <driver name="interbase.default">
        <short-description>Interclient JDBC Driver</short-description>
        <description>The Interclient JDBC driver is a JDBC driver for
        the Interbase database. It is developed and maintained by 
        Borland Software Corporation</description>
        <web-url>http://www.interbase.com</web-url>
        <class-name>interbase.interclient.Driver</class-name>
        <protocol>
          <scheme>jdbc:interbase</scheme>
        </protocol>  
      </driver>
      
    </drivers>  
  </db-information-db>
  
  
  
  1.3       +28 -2     jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/xsd/databases.xsd
  
  Index: databases.xsd
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/xsd/databases.xsd,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- databases.xsd	25 Oct 2002 19:19:55 -0000	1.2
  +++ databases.xsd	2 Dec 2002 01:17:52 -0000	1.3
  @@ -13,6 +13,7 @@
     <xs:element name="databases">
       <xs:complexType>
         <xs:sequence>
  +        <xs:element ref="defaults" minOccurs="1" maxOccurs="1"/>
           <xs:element ref="database" minOccurs="1" maxOccurs="unbounded"/>
         </xs:sequence>
       </xs:complexType>
  @@ -28,14 +29,14 @@
   
     <xs:element name="database">
       <xs:complexType>
  -      <xs:attribute name="name" type="xs:string"/>
  +      <xs:attribute name="type" type="xs:string"/>
         <xs:sequence>
           <xs:element ref="short-description" minOccurs="0" maxOccurs="1"/>
           <xs:element ref="description" minOccurs="0" maxOccurs="1"/>
           <xs:element ref="web-url" minOccurs="0" maxOccurs="1"/>
  -        <xs:element ref="admin-path" minOccurs="0" maxOccurs="1"/>
           <xs:element ref="admin-url" minOccurs="0" maxOccurs="1"/>
           <xs:element ref="default-port" minOccurs="0" maxOccurs="1"/>
  +        <xs:element ref="defaults" minOccurs="0" maxOccurs="1"/>
         </xs:sequence>  
       </xs:complexType>
     </xs:element>
  @@ -58,10 +59,27 @@
         <xs:attribute name="name" type="xs:string"/>
         <xs:sequence>
           <xs:element ref="scheme" minOccurs="1" maxOccurs="1"/>
  +        <xs:element ref="url" minOccurs="0" maxOccurs="1"/>
  +        <xs:element ref="admin-url" minOccurs="0" maxOccurs="1"/>
         </xs:sequence>
       </xs:complexType>
     </xs:element>
   
  +  <xs:element name="defaults">
  +    <xs:complexType>
  +      <xs:sequence>
  +        <xs:element ref="db-type" minOccurs="0" maxOccurs="1"/>
  +        <xs:element ref="db-user" minOccurs="0" maxOccurs="1"/>
  +        <xs:element ref="db-password" minOccurs="0" maxOccurs="1"/>
  +        <xs:element ref="db-name" minOccurs="0" maxOccurs="1"/>
  +        <xs:element ref="db-path" minOccurs="0" maxOccurs="1"/>
  +        <xs:element ref="db-host" minOccurs="0" maxOccurs="1"/>
  +        <xs:element ref="db-port" minOccurs="0" maxOccurs="1"/>
  +        <xs:element ref="admin-path" minOccurs="0" maxOccurs="1"/>
  +      </xs:sequence>
  +    </xs:complexType>
  +  </xs:element>  
  +        
     <xs:element name="short-description" type="xs:string"/>
     <xs:element name="description" type="xs:string"/>
     <xs:element name="web-url" type="xs:string"/>
  @@ -70,5 +88,13 @@
     <xs:element name="admin-path" type="xs:string"/>
     <xs:element name="admin-url" type="xs:string"/>
     <xs:element name="default-port" type="xs:string"/>
  +  <xs:element name="db-type" type="xs:string"/>
  +  <xs:element name="db-user" type="xs:string"/>
  +  <xs:element name="db-password" type="xs:string"/>
  +  <xs:element name="db-name" type="xs:string"/>
  +  <xs:element name="db-path" type="xs:string"/>
  +  <xs:element name="db-host" type="xs:string"/>
  +  <xs:element name="db-port" type="xs:string"/>
  +  <xs:element name="url" type="xs:string"/>
   
   </xs:schema>  
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message