<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.bridje.org/schemas/jdbc/config" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.bridje.org/schemas/jdbc/config" version="1.0">

  <xs:element name="jdbc" type="tns:jdbcConfig"/>

  <xs:complexType name="dataSourceConfig">
    <xs:annotation>
      <xs:documentation><![CDATA[Represents the configuration parameters needed to initialize a DataSource
object in the JdbcService. The changes to this object will not have any
effects once the DataSource is created.]]></xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element minOccurs="0" name="name" type="xs:string"/>
      <xs:element minOccurs="0" name="driver" type="xs:string"/>
      <xs:element minOccurs="0" name="url" type="xs:string"/>
      <xs:element minOccurs="0" name="user" type="xs:string"/>
      <xs:element minOccurs="0" name="password" type="xs:string"/>
      <xs:element name="maxConnections" type="xs:int"/>
      <xs:element name="idleTime" type="xs:long"/>
      <xs:element name="minConnections" type="xs:int"/>
      <xs:element name="reconnectTime" type="xs:int"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="jdbcConfig">
    <xs:annotation>
      <xs:documentation><![CDATA[Configuration object for the JdbcService. It specify all the data sources
available for the application. Users can specify their configurations by
putting the jdbc.xml file into the configuration folder.]]></xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element minOccurs="0" name="datasources">
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs="unbounded" minOccurs="0" name="datasource" type="tns:dataSourceConfig"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:schema>
