source: contrib/MailArchiver/sources/docs/references/jdo_xml_metadata/jdoconfig_2_2.xsd @ 6785

Revision 6785, 8.3 KB checked in by rafaelraymundo, 12 years ago (diff)

Ticket #2946 - Liberado codigo do MailArchiver?. Documentação na subpasta DOCS.

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3  Licensed to the Apache Software Foundation (ASF) under one or more
4  contributor license agreements.  See the NOTICE file distributed with
5  this work for additional information regarding copyright ownership.
6  The ASF licenses this file to You under the Apache License, Version 2.0
7  (the "License"); you may not use this file except in compliance with
8  the License.  You may obtain a copy of the License at
9
10      http://www.apache.org/licenses/LICENSE-2.0
11
12  Unless required by applicable law or agreed to in writing, software
13  distributed under the License is distributed on an "AS IS" BASIS,
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  See the License for the specific language governing permissions and
16  limitations under the License.
17-->
18
19<xs:schema
20  targetNamespace="http://java.sun.com/xml/ns/jdo/jdoconfig"
21  xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
22  xmlns:xs="http://www.w3.org/2001/XMLSchema"
23  xmlns:jdoconfig="http://java.sun.com/xml/ns/jdo/jdoconfig"
24  elementFormDefault="qualified"
25  attributeFormDefault="unqualified"
26  version="2.2">
27  <xs:annotation>
28    <xs:documentation>
29      This is the XML Schema for the JDO configuration file.
30    </xs:documentation>
31  </xs:annotation>
32
33  <xs:element name="jdoconfig">
34    <xs:complexType>
35      <xs:annotation>
36        <xs:documentation>
37          The root configuration element for JDO.
38        </xs:documentation>
39      </xs:annotation>
40      <xs:sequence>
41        <xs:element name="persistence-manager-factory" minOccurs="1"
42              maxOccurs="unbounded">
43          <xs:complexType>
44            <xs:annotation>
45              <xs:documentation>
46                Standard JDO PersistenceManagerFactory configuration properties.
47                Vendor-specific properties are set using additional
48                vendor-specific attributes and/or property elements.
49              </xs:documentation>
50            </xs:annotation>
51            <xs:sequence minOccurs="0" maxOccurs="1">
52              <xs:element name="property" minOccurs="0"
53                    maxOccurs="unbounded">
54                <xs:complexType>
55                  <xs:annotation>
56                    <xs:documentation>
57                      Vendor-specific properties.
58                    </xs:documentation>
59                  </xs:annotation>
60                  <xs:attributeGroup ref="attlist.property"/>
61                </xs:complexType>
62              </xs:element>
63              <xs:element name="instance-lifecycle-listener"
64                    minOccurs="0" maxOccurs="unbounded">
65                <xs:complexType>
66                  <xs:annotation>
67                    <xs:documentation>
68                      javax.jdo.listener.InstanceLifecycleListener instance
69                      configuration. There is one instance-lifecycle-listener
70                      element per listener instance. Only one instance of the
71                      listener class is supported in this configuration file.
72                      If multiple instances of the same listener class is
73                      required, then the API
74                      PersistenceManagerFactory.addInstanceLifecycleListener(...)
75                      must be used.
76
77                      If attribute "classes" is missing, all persistence-capable
78                      instances are observed; otherwise it is a comma- or
79                      whitespace-delimited list of persistence-capable
80                      classes whose instances will be observed.
81                    </xs:documentation>
82                  </xs:annotation>
83                  <xs:attributeGroup
84                    ref="attlist.instance-lifecycle-listener"/>
85                </xs:complexType>
86              </xs:element>
87            </xs:sequence>
88            <xs:attributeGroup
89              ref="attlist.persistence-manager-factory"/>
90          </xs:complexType>
91        </xs:element>
92      </xs:sequence>
93      <xs:attributeGroup ref="attlist.jdoconfig"/>
94    </xs:complexType>
95  </xs:element>
96
97  <xs:attributeGroup name="attlist.jdoconfig"/>
98
99  <xs:attributeGroup name="attlist.persistence-manager-factory">
100    <xs:annotation>
101      <xs:documentation>
102        These are attributes corresponding to the standard properties
103        defined in JDO.
104        Any other attributes present, if unrecognized by a JDO
105        implementation, may be silently ignored.
106      </xs:documentation>
107    </xs:annotation>
108
109    <!-- Corresponds to standard JDO property javax.jdo.PersistenceManagerFactoryClass. -->
110    <xs:attribute name="class" use="optional"/>
111    <!-- Corresponds to standard JDO property javax.jdo.option.Name.
112        The absence of this attribute implies the anonymous PMF. -->
113    <xs:attribute name="name" use="optional"/>
114    <!-- Corresponds to standard JDO property javax.jdo.option.PersistenceUnitName. -->
115    <xs:attribute name="persistence-unit-name" use="optional"/>
116    <!-- Corresponds to standard JDO property javax.jdo.option.Optimistic. -->
117    <xs:attribute name="optimistic" use="optional"/>
118    <!-- Corresponds to standard JDO property javax.jdo.option.ReadOnly. -->
119    <xs:attribute name="readonly" use="optional"/>
120    <!-- Corresponds to standard JDO property javax.jdo.option.RetainValues. -->
121    <xs:attribute name="retain-values" use="optional"/>
122    <!-- Corresponds to standard JDO property javax.jdo.option.RestoreValues. -->
123    <xs:attribute name="restore-values" use="optional"/>
124    <!-- Corresponds to standard JDO property javax.jdo.option.IgnoreCache. -->
125    <xs:attribute name="ignore-cache" use="optional"/>
126    <!-- Corresponds to standard JDO property javax.jdo.option.NontransactionalRead. -->
127    <xs:attribute name="nontransactional-read" use="optional"/>
128    <!-- Corresponds to standard JDO property javax.jdo.option.NontransactionalWrite. -->
129    <xs:attribute name="nontransactional-write" use="optional"/>
130    <!-- Corresponds to standard JDO property javax.jdo.option.Multithreaded. -->
131    <xs:attribute name="multithreaded" use="optional"/>
132    <!-- Corresponds to standard JDO property javax.jdo.option.TransactionIsolationLevel. -->
133    <xs:attribute name="transaction-isolation-level" use="optional"/>
134    <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionDriverName. -->
135    <xs:attribute name="connection-driver-name" use="optional"/>
136    <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionUserName. -->
137    <xs:attribute name="connection-user-name" use="optional"/>
138    <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionPassword. -->
139    <xs:attribute name="connection-password" use="optional"/>
140    <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionURL. -->
141    <xs:attribute name="connection-url" use="optional"/>
142    <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionFactoryName. -->
143    <xs:attribute name="connection-factory-name" use="optional"/>
144    <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionFactory2Name. -->
145    <xs:attribute name="connection-factory2-name" use="optional"/>
146    <!-- Corresponds to standard JDO property javax.jdo.option.Mapping. -->
147    <xs:attribute name="mapping" use="optional"/>
148    <!-- Corresponds to standard JDO property javax.jdo.option.DetachAllOnCommit. -->
149    <xs:attribute name="detach-all-on-commit" use="optional"/>
150    <!-- Corresponds to standard JDO property javax.jdo.option.ServerTimeZoneID. -->
151    <xs:attribute name="server-time-zone-id" use="optional"/>
152    <!-- Any other vendor-specific attributes are allowed and passed literally
153        to the underlying implementation. -->
154    <xs:anyAttribute processContents="lax"/>
155  </xs:attributeGroup>
156
157  <xs:attributeGroup name="attlist.property">
158    <!-- The name of the vendor-specific property. -->
159    <xs:attribute name="name" use="required"/>
160    <!-- The value of the vendor-specific property. -->
161    <xs:attribute name="value" use="optional"/>
162  </xs:attributeGroup>
163
164  <xs:attributeGroup name="attlist.instance-lifecycle-listener">
165    <!-- The name of the listener class to instantiate. -->
166    <xs:attribute name="listener" use="required"/>
167    <!-- Comma- or whitespace-delimited list of persistence-capable classes
168        whose instances to observe.  The absence of this attribute means
169        to observe all. -->
170    <xs:attribute name="classes" use="optional"/>
171  </xs:attributeGroup>
172
173</xs:schema>
174
Note: See TracBrowser for help on using the repository browser.