You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-commits@db.apache.org by mb...@apache.org on 2013/08/02 18:50:43 UTC
svn commit: r1509771 - in /db/jdo/branches/3.1-rc1/api/src/schema/javax/jdo:
jdoconfig_3_1.dtd jdoconfig_3_1.xsd jdoquery_3_1.dtd jdoquery_3_1.xsd
Author: mbo
Date: Fri Aug 2 16:50:42 2013
New Revision: 1509771
URL: http://svn.apache.org/r1509771
Log:
jdoconfig and jdoquery metadata files for 3.1
Added:
db/jdo/branches/3.1-rc1/api/src/schema/javax/jdo/jdoconfig_3_1.dtd
db/jdo/branches/3.1-rc1/api/src/schema/javax/jdo/jdoconfig_3_1.xsd
db/jdo/branches/3.1-rc1/api/src/schema/javax/jdo/jdoquery_3_1.dtd
db/jdo/branches/3.1-rc1/api/src/schema/javax/jdo/jdoquery_3_1.xsd
Added: db/jdo/branches/3.1-rc1/api/src/schema/javax/jdo/jdoconfig_3_1.dtd
URL: http://svn.apache.org/viewvc/db/jdo/branches/3.1-rc1/api/src/schema/javax/jdo/jdoconfig_3_1.dtd?rev=1509771&view=auto
==============================================================================
--- db/jdo/branches/3.1-rc1/api/src/schema/javax/jdo/jdoconfig_3_1.dtd (added)
+++ db/jdo/branches/3.1-rc1/api/src/schema/javax/jdo/jdoconfig_3_1.dtd Fri Aug 2 16:50:42 2013
@@ -0,0 +1,56 @@
+<!--
+ 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.
+-->
+<!--
+<!DOCTYPE jdoconfig
+ PUBLIC "-//Sun Microsystems, Inc.//DTD Java Data Objects Configuration 3.1//EN"
+ "http://java.sun.com/dtd/jdoconfig_3_1.dtd">
+-->
+<!ELEMENT jdoconfig (persistence-manager-factory+)>
+
+<!ELEMENT persistence-manager-factory (property*, instance-lifecycle-listener*)>
+<!ATTLIST persistence-manager-factory class CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory name CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory persistence-unit-name CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory optimistic (true|false) CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory readonly (true|false) CDATA 'false'>
+<!ATTLIST persistence-manager-factory retain-values (true|false) CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory restore-values (true|false) CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory ignore-cache (true|false) CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory nontransactional-read (true|false) CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory nontransactional-write (true|false) CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory multithreaded (true|false) CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory transaction-isolation-level CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory connection-driver-name CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory connection-user-name CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory connection-password CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory connection-url CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory connection-factory-name CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory connection-factory2-name CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory mapping CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory detach-all-on-commit (true|false) CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory server-time-zone-id CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory datastore-read-timeout-millis CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory datastore-write-timeout-millis CDATA #IMPLIED>
+
+<!ELEMENT property EMPTY>
+<!ATTLIST property name CDATA #REQUIRED>
+<!ATTLIST property value CDATA #IMPLIED>
+
+<!ELEMENT instance-lifecycle-listener EMPTY>
+<!ATTLIST instance-lifecycle-listener listener CDATA #REQUIRED>
+<!ATTLIST instance-lifecycle-listener classes CDATA #IMPLIED>
+
Added: db/jdo/branches/3.1-rc1/api/src/schema/javax/jdo/jdoconfig_3_1.xsd
URL: http://svn.apache.org/viewvc/db/jdo/branches/3.1-rc1/api/src/schema/javax/jdo/jdoconfig_3_1.xsd?rev=1509771&view=auto
==============================================================================
--- db/jdo/branches/3.1-rc1/api/src/schema/javax/jdo/jdoconfig_3_1.xsd (added)
+++ db/jdo/branches/3.1-rc1/api/src/schema/javax/jdo/jdoconfig_3_1.xsd Fri Aug 2 16:50:42 2013
@@ -0,0 +1,178 @@
+<?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
+ targetNamespace="http://java.sun.com/xml/ns/jdo/jdoconfig"
+ xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:jdoconfig="http://java.sun.com/xml/ns/jdo/jdoconfig"
+ elementFormDefault="qualified"
+ attributeFormDefault="unqualified"
+ version="3.1">
+ <xs:annotation>
+ <xs:documentation>
+ This is the XML Schema for the JDO configuration file.
+ </xs:documentation>
+ </xs:annotation>
+
+ <xs:element name="jdoconfig">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation>
+ The root configuration element for JDO.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element name="persistence-manager-factory" minOccurs="1"
+ maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation>
+ Standard JDO PersistenceManagerFactory configuration properties.
+ Vendor-specific properties are set using additional
+ vendor-specific attributes and/or property elements.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:sequence minOccurs="0" maxOccurs="1">
+ <xs:element name="property" minOccurs="0"
+ maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation>
+ Vendor-specific properties.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:attributeGroup ref="attlist.property"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="instance-lifecycle-listener"
+ minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation>
+ javax.jdo.listener.InstanceLifecycleListener instance
+ configuration. There is one instance-lifecycle-listener
+ element per listener instance. Only one instance of the
+ listener class is supported in this configuration file.
+ If multiple instances of the same listener class is
+ required, then the API
+ PersistenceManagerFactory.addInstanceLifecycleListener(...)
+ must be used.
+
+ If attribute "classes" is missing, all persistence-capable
+ instances are observed; otherwise it is a comma- or
+ whitespace-delimited list of persistence-capable
+ classes whose instances will be observed.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:attributeGroup
+ ref="attlist.instance-lifecycle-listener"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attributeGroup
+ ref="attlist.persistence-manager-factory"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attributeGroup ref="attlist.jdoconfig"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:attributeGroup name="attlist.jdoconfig"/>
+
+ <xs:attributeGroup name="attlist.persistence-manager-factory">
+ <xs:annotation>
+ <xs:documentation>
+ These are attributes corresponding to the standard properties
+ defined in JDO.
+ Any other attributes present, if unrecognized by a JDO
+ implementation, may be silently ignored.
+ </xs:documentation>
+ </xs:annotation>
+
+ <!-- Corresponds to standard JDO property javax.jdo.PersistenceManagerFactoryClass. -->
+ <xs:attribute name="class" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.Name.
+ The absence of this attribute implies the anonymous PMF. -->
+ <xs:attribute name="name" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.PersistenceUnitName. -->
+ <xs:attribute name="persistence-unit-name" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.Optimistic. -->
+ <xs:attribute name="optimistic" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ReadOnly. -->
+ <xs:attribute name="readonly" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.RetainValues. -->
+ <xs:attribute name="retain-values" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.RestoreValues. -->
+ <xs:attribute name="restore-values" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.IgnoreCache. -->
+ <xs:attribute name="ignore-cache" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.NontransactionalRead. -->
+ <xs:attribute name="nontransactional-read" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.NontransactionalWrite. -->
+ <xs:attribute name="nontransactional-write" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.Multithreaded. -->
+ <xs:attribute name="multithreaded" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.TransactionIsolationLevel. -->
+ <xs:attribute name="transaction-isolation-level" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionDriverName. -->
+ <xs:attribute name="connection-driver-name" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionUserName. -->
+ <xs:attribute name="connection-user-name" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionPassword. -->
+ <xs:attribute name="connection-password" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionURL. -->
+ <xs:attribute name="connection-url" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionFactoryName. -->
+ <xs:attribute name="connection-factory-name" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionFactory2Name. -->
+ <xs:attribute name="connection-factory2-name" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.Mapping. -->
+ <xs:attribute name="mapping" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.DetachAllOnCommit. -->
+ <xs:attribute name="detach-all-on-commit" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ServerTimeZoneID. -->
+ <xs:attribute name="server-time-zone-id" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.DatastoreReadTimeoutMillis. -->
+ <xs:attribute name="datastore-read-timeout-millis" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.DatastoreWriteTimeoutMillis. -->
+ <xs:attribute name="datastore-write-timeout-millis" use="optional"/>
+ <!-- Any other vendor-specific attributes are allowed and passed literally
+ to the underlying implementation. -->
+ <xs:anyAttribute processContents="lax"/>
+ </xs:attributeGroup>
+
+ <xs:attributeGroup name="attlist.property">
+ <!-- The name of the vendor-specific property. -->
+ <xs:attribute name="name" use="required"/>
+ <!-- The value of the vendor-specific property. -->
+ <xs:attribute name="value" use="optional"/>
+ </xs:attributeGroup>
+
+ <xs:attributeGroup name="attlist.instance-lifecycle-listener">
+ <!-- The name of the listener class to instantiate. -->
+ <xs:attribute name="listener" use="required"/>
+ <!-- Comma- or whitespace-delimited list of persistence-capable classes
+ whose instances to observe. The absence of this attribute means
+ to observe all. -->
+ <xs:attribute name="classes" use="optional"/>
+ </xs:attributeGroup>
+
+</xs:schema>
+
Added: db/jdo/branches/3.1-rc1/api/src/schema/javax/jdo/jdoquery_3_1.dtd
URL: http://svn.apache.org/viewvc/db/jdo/branches/3.1-rc1/api/src/schema/javax/jdo/jdoquery_3_1.dtd?rev=1509771&view=auto
==============================================================================
--- db/jdo/branches/3.1-rc1/api/src/schema/javax/jdo/jdoquery_3_1.dtd (added)
+++ db/jdo/branches/3.1-rc1/api/src/schema/javax/jdo/jdoquery_3_1.dtd Fri Aug 2 16:50:42 2013
@@ -0,0 +1,45 @@
+<!--
+ 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.
+-->
+<!-- The DOCTYPE should be as follows for jdoquery documents.
+<!DOCTYPE jdoquery
+ PUBLIC "-//Sun Microsystems, Inc.//DTD Java Data Objects Query Metadata 3.1//EN"
+ "http://java.sun.com/dtd/jdoquery_3_1.dtd">
+-->
+<!ELEMENT jdoquery (extension*, (package|query)+, (extension)*)>
+
+<!ELEMENT package (extension*, (interface|class)+, (extension)*)>
+<!ATTLIST package name CDATA ''>
+
+<!ELEMENT interface (extension*, query+, extension*)>
+<!ATTLIST interface name CDATA #REQUIRED>
+
+<!ELEMENT class (extension*, query+, extension*)>
+<!ATTLIST class name CDATA #REQUIRED>
+
+<!ELEMENT query (#PCDATA|extension)*>
+<!ATTLIST query name CDATA #REQUIRED>
+<!ATTLIST query language CDATA #IMPLIED>
+<!ATTLIST query unmodifiable (true|false) 'false'>
+<!ATTLIST query unique (true|false) #IMPLIED>
+<!ATTLIST query result-class CDATA #IMPLIED>
+<!ATTLIST query datastore-read-timeout-millis CDATA #IMPLIED>
+<!ATTLIST query datastore-write-timeout-millis CDATA #IMPLIED>
+
+<!ELEMENT extension ANY>
+<!ATTLIST extension vendor-name CDATA #REQUIRED>
+<!ATTLIST extension key CDATA #IMPLIED>
+<!ATTLIST extension value CDATA #IMPLIED>
Added: db/jdo/branches/3.1-rc1/api/src/schema/javax/jdo/jdoquery_3_1.xsd
URL: http://svn.apache.org/viewvc/db/jdo/branches/3.1-rc1/api/src/schema/javax/jdo/jdoquery_3_1.xsd?rev=1509771&view=auto
==============================================================================
--- db/jdo/branches/3.1-rc1/api/src/schema/javax/jdo/jdoquery_3_1.xsd (added)
+++ db/jdo/branches/3.1-rc1/api/src/schema/javax/jdo/jdoquery_3_1.xsd Fri Aug 2 16:50:42 2013
@@ -0,0 +1,118 @@
+<?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 targetNamespace="http://java.sun.com/xml/ns/jdo/jdoquery"
+ xmlns="http://java.sun.com/xml/ns/jdo/jdoquery"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ version="3.1">
+ <xs:element name="jdoquery">
+ <xs:complexType>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element ref="extension"/>
+ <xs:element ref="package"/>
+ <xs:element ref="query"/>
+ </xs:choice>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="package">
+ <xs:complexType>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element ref="extension"/>
+ <xs:element ref="interface"/>
+ <xs:element ref="class"/>
+ </xs:choice>
+ <xs:attributeGroup ref="attlist.package"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.package">
+ <xs:attribute name="name" default=""/>
+ </xs:attributeGroup>
+ <xs:element name="interface">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="extension"/>
+ <xs:element ref="query"/>
+ </xs:choice>
+ <xs:attributeGroup ref="attlist.interface"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.interface">
+ <xs:attribute name="name" use="required"/>
+ </xs:attributeGroup>
+ <xs:element name="class">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="extension"/>
+ <xs:element ref="query"/>
+ </xs:choice>
+ <xs:attributeGroup ref="attlist.class"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.class">
+ <xs:attribute name="name" use="required"/>
+ </xs:attributeGroup>
+ <xs:element name="query">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="extension"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="attlist.query"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.query">
+ <xs:attribute name="name" use="required"/>
+ <xs:attribute name="language"/>
+ <xs:attribute name="unmodifiable" 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="unique">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="result-class"/>
+ <xs:attribute name="datastore-read-timeout-millis"/>
+ <xs:attribute name="datastore-write-timeout-millis"/>
+ </xs:attributeGroup>
+ <xs:element name="extension">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="any">
+ <xs:attributeGroup ref="attlist.extension"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.extension">
+ <xs:attribute name="vendor-name" use="required"/>
+ <xs:attribute name="key"/>
+ <xs:attribute name="value"/>
+ </xs:attributeGroup>
+ <xs:complexType name="any" mixed="true">
+ <xs:sequence>
+ <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:schema>