This patch provides the fundamentals to resolve an issue where the sorting of null values were inconsistent (sometimes sorting first and other times sorting last). Specifically, this patch allows one to create an order-by clause via any of the order-by elements of "-myField NULLS LAST" where this text parses out the - (as descending) and the "nulls last". Since not all databases support the "nulls" argument on an order by clause (it was introduced as part of the OLAP support specification) , our entity-engine.xml file allows each data source to indicate if it has this support. If the support does not exist and nulls first/last is specified, the sql that is generated uses native sql to simulate the nulls first/last intent. At this time, the derby, postgres, and oracle databases are marked to use the nulls first grammar. Right now, if you do not specify "NULLS XXX" in the field-name for the order-by it makes no change whatsever (naturally this assumption could be changed to have a default). It should be noted, that my intent here was ultimately to "properly" model the order by into something whose xml representation could look something like ... <entity-order-by field-name="fieldName" ascending="true" nulls-first="true" /> Divesh Dutta added a comment - 07/May/10 01:44 AM HI Bob, This patch works as expected for derby, postgres, and oracle databases as you have already mentioned. Cant we have some generic solution which supports all the databases. Or we can have some conditional code, where we can check which datasource is being used, and then generate the sql accordingly. Please let me know your views on this. Bob Morley added a comment - 07/May/10 08:07 AM Hi Divesh, I added a more detailed description in the forum thread; but in brief this is a generic solution which supports all databases which generates the sql accordingly. What this patch does not do is apply a standard default order for all databases; it just adds support for one to dictate how they want the nulls sorted. For example, when one sets the order-by they can set it to "lastName DESC NULLS FIRST" which should apply to all databases. The thread Bob was referring above ends at http://markmail.org/message/47z7fwtawehuem6b git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950901 13f79535-47bb-0310-9956-ffa450edef68
489 lines
22 KiB
XML
489 lines
22 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
|
|
<!-- ====================== Root Element ======================= -->
|
|
<xs:element name="entity-config">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element maxOccurs="unbounded" ref="resource-loader"/>
|
|
<xs:element ref="transaction-factory"/>
|
|
<xs:element ref="connection-factory"/>
|
|
<xs:element maxOccurs="unbounded" ref="delegator"/>
|
|
<xs:element maxOccurs="unbounded" ref="entity-model-reader"/>
|
|
<xs:element maxOccurs="unbounded" ref="entity-group-reader"/>
|
|
<xs:element minOccurs="0" maxOccurs="unbounded" ref="entity-eca-reader"/>
|
|
<xs:element minOccurs="0" maxOccurs="unbounded" ref="entity-data-reader"/>
|
|
<xs:element maxOccurs="unbounded" ref="field-type"/>
|
|
<xs:element maxOccurs="unbounded" ref="datasource"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:element name="resource-loader">
|
|
<xs:complexType>
|
|
<xs:attributeGroup ref="attlist.resource-loader"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:attributeGroup name="attlist.resource-loader">
|
|
<xs:attribute type="xs:string" name="name" use="required"/>
|
|
<xs:attribute type="xs:string" name="class" use="required"/>
|
|
<xs:attribute type="xs:string" name="prepend-env"/>
|
|
<xs:attribute type="xs:string" name="prefix"/>
|
|
</xs:attributeGroup>
|
|
<xs:element name="transaction-factory">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element minOccurs="0" ref="user-transaction-jndi"/>
|
|
<xs:element minOccurs="0" ref="transaction-manager-jndi"/>
|
|
</xs:sequence>
|
|
<xs:attributeGroup ref="attlist.transaction-factory"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:attributeGroup name="attlist.transaction-factory">
|
|
<xs:attribute type="xs:string" name="class" use="required"/>
|
|
</xs:attributeGroup>
|
|
<xs:element name="user-transaction-jndi">
|
|
<xs:complexType>
|
|
<xs:attributeGroup ref="attlist.user-transaction-jndi"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:attributeGroup name="attlist.user-transaction-jndi">
|
|
<xs:attribute type="xs:string" name="jndi-server-name" use="required"/>
|
|
<xs:attribute type="xs:string" name="jndi-name" use="required"/>
|
|
</xs:attributeGroup>
|
|
<xs:element name="transaction-manager-jndi">
|
|
<xs:complexType>
|
|
<xs:attributeGroup ref="attlist.transaction-manager-jndi"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:attributeGroup name="attlist.transaction-manager-jndi">
|
|
<xs:attribute type="xs:string" name="jndi-server-name" use="required"/>
|
|
<xs:attribute type="xs:string" name="jndi-name" use="required"/>
|
|
</xs:attributeGroup>
|
|
<xs:element name="connection-factory">
|
|
<xs:complexType>
|
|
<xs:attributeGroup ref="attlist.connection-factory"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:attributeGroup name="attlist.connection-factory">
|
|
<xs:attribute type="xs:string" name="class" use="required"/>
|
|
</xs:attributeGroup>
|
|
<xs:element name="delegator">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element maxOccurs="unbounded" ref="group-map"/>
|
|
</xs:sequence>
|
|
<xs:attributeGroup ref="attlist.delegator"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:attributeGroup name="attlist.delegator">
|
|
<xs:attribute type="xs:string" name="name" use="required"/>
|
|
<xs:attribute type="xs:string" name="entity-model-reader" use="required"/>
|
|
<xs:attribute type="xs:string" name="entity-group-reader" use="required"/>
|
|
<xs:attribute type="xs:string" name="entity-eca-reader"/>
|
|
<xs:attribute name="entity-eca-enabled" default="true">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="true"/>
|
|
<xs:enumeration value="false"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute type="xs:string" name="entity-eca-handler-class-name" default="org.ofbiz.entityext.eca.DelegatorEcaHandler"/>
|
|
<xs:attribute name="distributed-cache-clear-enabled" default="false">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="true"/>
|
|
<xs:enumeration value="false"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute type="xs:string" name="distributed-cache-clear-class-name" default="org.ofbiz.entityext.cache.EntityCacheServices"/>
|
|
<xs:attribute type="xs:string" name="distributed-cache-clear-user-login-id" default="system"/>
|
|
<xs:attribute type="xs:string" name="sequenced-id-prefix"/>
|
|
<xs:attribute type="xs:string" name="default-group-name" default="org.ofbiz"/>
|
|
</xs:attributeGroup>
|
|
<xs:element name="group-map">
|
|
<xs:complexType>
|
|
<xs:attributeGroup ref="attlist.group-map"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:attributeGroup name="attlist.group-map">
|
|
<xs:attribute type="xs:string" name="group-name" use="required"/>
|
|
<xs:attribute type="xs:string" name="datasource-name" use="required"/>
|
|
</xs:attributeGroup>
|
|
<xs:element name="entity-model-reader">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element minOccurs="0" maxOccurs="unbounded" ref="resource"/>
|
|
</xs:sequence>
|
|
<xs:attributeGroup ref="attlist.entity-model-reader"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:attributeGroup name="attlist.entity-model-reader">
|
|
<xs:attribute type="xs:string" name="name" use="required"/>
|
|
</xs:attributeGroup>
|
|
<xs:element name="resource">
|
|
<xs:complexType>
|
|
<xs:attributeGroup ref="attlist.resource"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:attributeGroup name="attlist.resource">
|
|
<xs:attribute type="xs:string" name="loader" use="required"/>
|
|
<xs:attribute type="xs:string" name="location" use="required"/>
|
|
</xs:attributeGroup>
|
|
<xs:element name="entity-eca-reader">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element minOccurs="0" maxOccurs="unbounded" ref="resource"/>
|
|
</xs:sequence>
|
|
<xs:attributeGroup ref="attlist.entity-eca-reader"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:attributeGroup name="attlist.entity-eca-reader">
|
|
<xs:attribute type="xs:string" name="name" use="required"/>
|
|
</xs:attributeGroup>
|
|
<xs:element name="entity-group-reader">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element minOccurs="0" maxOccurs="unbounded" ref="resource"/>
|
|
</xs:sequence>
|
|
<xs:attributeGroup ref="attlist.entity-group-reader"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:attributeGroup name="attlist.entity-group-reader">
|
|
<xs:attribute type="xs:string" name="name" use="required"/>
|
|
<xs:attribute type="xs:string" name="loader"/>
|
|
<xs:attribute type="xs:string" name="location"/>
|
|
</xs:attributeGroup>
|
|
<xs:element name="entity-data-reader">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element minOccurs="0" maxOccurs="unbounded" ref="resource"/>
|
|
</xs:sequence>
|
|
<xs:attributeGroup ref="attlist.entity-data-reader"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:attributeGroup name="attlist.entity-data-reader">
|
|
<xs:attribute type="xs:string" name="name" use="required"/>
|
|
</xs:attributeGroup>
|
|
<xs:element name="field-type">
|
|
<xs:complexType>
|
|
<xs:attributeGroup ref="attlist.field-type"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:attributeGroup name="attlist.field-type">
|
|
<xs:attribute type="xs:string" name="name" use="required"/>
|
|
<xs:attribute type="xs:string" name="loader" use="required"/>
|
|
<xs:attribute type="xs:string" name="location" use="required"/>
|
|
</xs:attributeGroup>
|
|
<xs:element name="datasource">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element minOccurs="0" maxOccurs="unbounded" ref="sql-load-path"/>
|
|
<xs:element minOccurs="0" maxOccurs="unbounded" ref="read-data"/>
|
|
<xs:choice minOccurs="1" maxOccurs="1">
|
|
<xs:element minOccurs="0" maxOccurs="1" ref="jndi-jdbc"/>
|
|
<xs:element minOccurs="0" maxOccurs="1" ref="inline-jdbc"/>
|
|
<xs:element minOccurs="0" maxOccurs="1" ref="tyrex-dataSource"/>
|
|
</xs:choice>
|
|
<!-- <xs:any minOccurs="0" maxOccurs="unbounded"/> -->
|
|
</xs:sequence>
|
|
<xs:attributeGroup ref="attlist.datasource"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<!-- main subelements of datasource are (sql-load-path*, (inline-jdbc | jndi-jdbc | tyrex-dataSource | ANY), but ANY must be used alone for certain XML parsers -->
|
|
<xs:attributeGroup name="attlist.datasource">
|
|
<xs:attribute type="xs:string" name="name" use="required"/>
|
|
<xs:attribute type="xs:string" name="helper-class" use="required"/>
|
|
<xs:attribute type="xs:string" name="field-type-name" use="required"/>
|
|
<xs:attribute name="use-schemas" default="true">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="true"/>
|
|
<xs:enumeration value="false"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute type="xs:string" name="schema-name"/>
|
|
<xs:attribute name="check-on-start" default="true">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="true"/>
|
|
<xs:enumeration value="false"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="add-missing-on-start" default="false">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="true"/>
|
|
<xs:enumeration value="false"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="use-pk-constraint-names" default="true">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="true"/>
|
|
<xs:enumeration value="false"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="check-pks-on-start" default="true">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="true"/>
|
|
<xs:enumeration value="false"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute type="xs:nonNegativeInteger" name="constraint-name-clip-length" default="30"/>
|
|
<xs:attribute name="use-proxy-cursor" default="false">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="true"/>
|
|
<xs:enumeration value="false"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute type="xs:string" name="proxy-cursor-name" default="p_cursor"/>
|
|
<xs:attribute type="xs:integer" name="result-fetch-size" default="-1"/>
|
|
<xs:attribute name="use-foreign-keys" default="true">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="true"/>
|
|
<xs:enumeration value="false"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="use-foreign-key-indices" default="true">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="true"/>
|
|
<xs:enumeration value="false"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="check-fks-on-start" default="false">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="true"/>
|
|
<xs:enumeration value="false"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="check-fk-indices-on-start" default="false">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="true"/>
|
|
<xs:enumeration value="false"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="fk-style" default="name_constraint">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="name_constraint"/>
|
|
<xs:enumeration value="name_fk"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="use-fk-initially-deferred" default="false">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="true"/>
|
|
<xs:enumeration value="false"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="use-indices" default="true">
|
|
<xs:annotation><xs:documentation>Use manually declared indices (indexes)?</xs:documentation></xs:annotation>
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="true"/>
|
|
<xs:enumeration value="false"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="use-indices-unique" default="true">
|
|
<xs:annotation><xs:documentation>For manually declared indices (if used), use the unique constraint?</xs:documentation></xs:annotation>
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="true"/>
|
|
<xs:enumeration value="false"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="check-indices-on-start" default="false">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="true"/>
|
|
<xs:enumeration value="false"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="join-style" default="ansi">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="ansi"/>
|
|
<xs:enumeration value="ansi-no-parenthesis"/>
|
|
<xs:enumeration value="theta-oracle"/>
|
|
<xs:enumeration value="theta-mssql"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="alias-view-columns" default="false">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="true"/>
|
|
<xs:enumeration value="false"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="always-use-constraint-keyword" default="false">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="true"/>
|
|
<xs:enumeration value="false"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="drop-fk-use-foreign-key-keyword" default="false">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="true"/>
|
|
<xs:enumeration value="false"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="use-binary-type-for-blob" default="false">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="true"/>
|
|
<xs:enumeration value="false"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute name="use-order-by-nulls" default="false">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="true"/>
|
|
<xs:enumeration value="false"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute type="xs:string" name="table-type"/>
|
|
<xs:attribute type="xs:string" name="character-set"/>
|
|
<xs:attribute type="xs:string" name="collate"/>
|
|
</xs:attributeGroup>
|
|
<xs:element name="sql-load-path">
|
|
<xs:complexType>
|
|
<xs:attributeGroup ref="attlist.sql-load-path"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:attributeGroup name="attlist.sql-load-path">
|
|
<xs:attribute type="xs:string" name="path" use="required"/>
|
|
<xs:attribute type="xs:string" name="prepend-env"/>
|
|
</xs:attributeGroup>
|
|
<xs:element name="read-data">
|
|
<xs:complexType>
|
|
<xs:attributeGroup ref="attlist.read-data"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:attributeGroup name="attlist.read-data">
|
|
<xs:attribute type="xs:string" name="reader-name" use="required"/>
|
|
</xs:attributeGroup>
|
|
<xs:element name="inline-jdbc">
|
|
<xs:complexType>
|
|
<xs:attributeGroup ref="attlist.inline-jdbc"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:attributeGroup name="attlist.inline-jdbc">
|
|
<xs:attribute type="xs:string" name="jdbc-driver" use="required"/>
|
|
<xs:attribute type="xs:string" name="jdbc-uri" use="required"/>
|
|
<xs:attribute type="xs:string" name="jdbc-username" use="required"/>
|
|
<xs:attribute type="xs:string" name="jdbc-password" use="required"/>
|
|
<xs:attribute name="isolation-level">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="None"/>
|
|
<xs:enumeration value="ReadCommitted"/>
|
|
<xs:enumeration value="ReadUncommitted"/>
|
|
<xs:enumeration value="RepeatableRead"/>
|
|
<xs:enumeration value="Serializable"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
<xs:attribute type="xs:nonNegativeInteger" name="pool-maxsize" default="50"/>
|
|
<xs:attribute type="xs:nonNegativeInteger" name="pool-minsize" default="2"/>
|
|
<xs:attribute type="xs:nonNegativeInteger" name="time-between-eviction-runs-millis" default="600000"/>
|
|
<xs:attribute type="xs:nonNegativeInteger" name="pool-sleeptime" default="300000"/>
|
|
<xs:attribute type="xs:nonNegativeInteger" name="pool-lifetime" default="600000"/>
|
|
<xs:attribute type="xs:nonNegativeInteger" name="pool-deadlock-maxwait" default="300000"/>
|
|
<xs:attribute type="xs:nonNegativeInteger" name="pool-deadlock-retrywait" default="10000"/>
|
|
<xs:attribute type="xs:string" name="pool-jdbc-test-stmt"/>
|
|
<xs:attribute type="xs:string" name="pool-xa-wrapper-class" default="org.enhydra.jdbc.standard.StandardXADataSource"/>
|
|
</xs:attributeGroup>
|
|
<xs:element name="jndi-jdbc">
|
|
<xs:complexType>
|
|
<xs:attributeGroup ref="attlist.jndi-jdbc"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:attributeGroup name="attlist.jndi-jdbc">
|
|
<xs:attribute type="xs:string" name="jndi-server-name" use="required"/>
|
|
<xs:attribute type="xs:string" name="jndi-name" use="required"/>
|
|
<xs:attribute name="isolation-level">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="None"/>
|
|
<xs:enumeration value="ReadCommitted"/>
|
|
<xs:enumeration value="ReadUncommitted"/>
|
|
<xs:enumeration value="RepeatableRead"/>
|
|
<xs:enumeration value="Serializable"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
</xs:attributeGroup>
|
|
<xs:element name="tyrex-dataSource">
|
|
<xs:complexType>
|
|
<xs:attributeGroup ref="attlist.tyrex-dataSource"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
<xs:attributeGroup name="attlist.tyrex-dataSource">
|
|
<xs:attribute type="xs:string" name="dataSource-name" use="required"/>
|
|
<xs:attribute name="isolation-level">
|
|
<xs:simpleType>
|
|
<xs:restriction base="xs:token">
|
|
<xs:enumeration value="None"/>
|
|
<xs:enumeration value="ReadCommitted"/>
|
|
<xs:enumeration value="ReadUncommitted"/>
|
|
<xs:enumeration value="RepeatableRead"/>
|
|
<xs:enumeration value="Serializable"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:attribute>
|
|
</xs:attributeGroup>
|
|
<xs:complexType name="any" mixed="true">
|
|
<xs:sequence>
|
|
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
</xs:schema>
|