Salome HOME
2d3837e79614c1af45f23f71366bd33fa0564dbc
[tools/siman.git] / Workspace / 3dparty_src / spring / schema / spring-tx-2.0.xsd
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
3 <xsd:schema xmlns="http://www.springframework.org/schema/tx"
4                 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5                 xmlns:beans="http://www.springframework.org/schema/beans"
6                 xmlns:tool="http://www.springframework.org/schema/tool"
7                 targetNamespace="http://www.springframework.org/schema/tx"
8                 elementFormDefault="qualified"
9                 attributeFormDefault="unqualified">
10
11         <xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"/>
12         <xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-2.0.xsd"/>
13
14         <xsd:annotation>
15                 <xsd:documentation><![CDATA[
16         Defines the elements used in the Spring Framework's declarative
17         transaction management infrastructure.
18                 ]]></xsd:documentation>
19         </xsd:annotation>
20
21         <xsd:element name="advice">
22                 <xsd:complexType>
23                         <xsd:annotation>
24                                 <xsd:documentation source="java:org.springframework.transaction.interceptor.TransactionInterceptor"><![CDATA[
25         Defines the transactional semantics of the AOP advice that is to be
26         executed.
27         
28         That is, this advice element is where the transactional semantics of
29         any     number of methods are defined (where transactional semantics
30         includes the propagation settings, the isolation level, the rollback
31         rules, and suchlike).
32                                 ]]></xsd:documentation>
33                                 <xsd:appinfo>
34                                         <tool:annotation>
35                                                 <tool:exports type="org.springframework.transaction.interceptor.TransactionInterceptor"/>
36                                         </tool:annotation>
37                                 </xsd:appinfo>
38                         </xsd:annotation>
39                         <xsd:complexContent>
40                                 <xsd:extension base="beans:identifiedType">
41                                         <xsd:sequence>
42                                                 <xsd:element name="attributes" type="attributesType" minOccurs="0" maxOccurs="1"/>
43                                         </xsd:sequence>
44                                         <xsd:attribute name="transaction-manager" type="xsd:string" default="transactionManager">
45                                                 <xsd:annotation>
46                                                         <xsd:documentation source="java:org.springframework.transaction.PlatformTransactionManager"><![CDATA[
47         The bean name of the PlatformTransactionManager that is to be used
48         to drive transactions.
49         
50         This attribute is not required, and only needs to be specified
51         explicitly if the bean name of the desired PlatformTransactionManager
52         is not 'transactionManager'.
53                                                         ]]></xsd:documentation>
54                                                         <xsd:appinfo>
55                                                                 <tool:annotation kind="ref">
56                                                                         <tool:expected-type type="org.springframework.transaction.PlatformTransactionManager"/>
57                                                                 </tool:annotation>
58                                                         </xsd:appinfo>
59                                                 </xsd:annotation>
60                                         </xsd:attribute>
61                                 </xsd:extension>
62                         </xsd:complexContent>
63                 </xsd:complexType>
64         </xsd:element>
65
66         <xsd:element name="annotation-driven">
67                 <xsd:complexType>
68                         <xsd:annotation>
69                                 <xsd:documentation source="java:org.springframework.transaction.annotation.AnnotationTransactionAttributeSource"><![CDATA[
70         Indicates that transaction configuration is defined by Java 5
71         annotations on bean classes, and that proxies are automatically
72         to be created for the relevant annotated beans.
73
74         The default annotation supported is Spring's @Transactional.
75         Transaction semantics such as propagation settings, the isolation level,
76         the rollback rules, etc are all defined in the annotation metadata.
77                                 ]]></xsd:documentation>
78                         </xsd:annotation>
79                         <xsd:attribute name="transaction-manager" type="xsd:string" default="transactionManager">
80                                 <xsd:annotation>
81                                         <xsd:documentation source="java:org.springframework.transaction.PlatformTransactionManager"><![CDATA[
82         The bean name of the PlatformTransactionManager that is to be used
83         to drive transactions.
84         
85         This attribute is not required, and only needs to be specified
86         explicitly if the bean name of the desired PlatformTransactionManager
87         is not 'transactionManager'.
88                                         ]]></xsd:documentation>
89                                         <xsd:appinfo>
90                                                 <tool:annotation kind="ref">
91                                                         <tool:expected-type type="org.springframework.transaction.PlatformTransactionManager"/>
92                                                 </tool:annotation>
93                                         </xsd:appinfo>
94                                 </xsd:annotation>
95                         </xsd:attribute>
96                         <xsd:attribute name="proxy-target-class" type="xsd:boolean" default="false">
97                                 <xsd:annotation>
98                                         <xsd:documentation><![CDATA[
99         Are class-based (CGLIB) proxies to be created? By default, standard
100         Java interface-based proxies are created.
101                                         ]]></xsd:documentation>
102                                 </xsd:annotation>
103                         </xsd:attribute>
104                         <xsd:attribute name="order" type="xsd:int">
105                                 <xsd:annotation>
106                                         <xsd:documentation source="java:org.springframework.core.Ordered"><![CDATA[
107         Controls the ordering of the execution of the transaction advisor
108         when multiple advice executes at a specific joinpoint.
109                                         ]]></xsd:documentation>
110                                 </xsd:annotation>
111                         </xsd:attribute>
112                 </xsd:complexType>
113         </xsd:element>
114
115         <xsd:complexType name="attributesType">
116                 <xsd:sequence>
117                         <xsd:element name="method" minOccurs="1" maxOccurs="unbounded">
118                                 <xsd:complexType>
119                                         <xsd:attribute name="name" type="xsd:string" use="required">
120                                                 <xsd:annotation>
121                                                         <xsd:documentation><![CDATA[
122         The method name(s) with which the transaction attributes are to be
123         associated. The wildcard (*) character can be used to associate the
124         same transaction attribute settings with a number of methods; for
125         example, 'get*', 'handle*', '*Order', etc.
126                                                         ]]></xsd:documentation>
127                                                 </xsd:annotation>
128                                         </xsd:attribute>
129                                         <xsd:attribute name="propagation" default="REQUIRED">
130                                                 <xsd:annotation>
131                                                         <xsd:documentation source="java:org.springframework.transaction.annotation.Propagation"><![CDATA[
132         The transaction propagation behavior.
133                                                         ]]></xsd:documentation>
134                                                 </xsd:annotation>
135                                                 <xsd:simpleType>
136                                                         <xsd:restriction base="xsd:string">
137                                                                 <xsd:enumeration value="REQUIRED"/>
138                                                                 <xsd:enumeration value="SUPPORTS"/>
139                                                                 <xsd:enumeration value="MANDATORY"/>
140                                                                 <xsd:enumeration value="REQUIRES_NEW"/>
141                                                                 <xsd:enumeration value="NOT_SUPPORTED"/>
142                                                                 <xsd:enumeration value="NEVER"/>
143                                                                 <xsd:enumeration value="NESTED"/>
144                                                         </xsd:restriction>
145                                                 </xsd:simpleType>
146                                         </xsd:attribute>
147                                         <xsd:attribute name="isolation" default="DEFAULT">
148                                                 <xsd:annotation>
149                                                         <xsd:documentation source="java:org.springframework.transaction.annotation.Isolation"><![CDATA[
150         The transaction isolation level.
151                                                         ]]></xsd:documentation>
152                                                 </xsd:annotation>
153                                                 <xsd:simpleType>
154                                                         <xsd:restriction base="xsd:string">
155                                                                 <xsd:enumeration value="DEFAULT"/>
156                                                                 <xsd:enumeration value="READ_UNCOMMITTED"/>
157                                                                 <xsd:enumeration value="READ_COMMITTED"/>
158                                                                 <xsd:enumeration value="REPEATABLE_READ"/>
159                                                                 <xsd:enumeration value="SERIALIZABLE"/>
160                                                         </xsd:restriction>
161                                                 </xsd:simpleType>
162                                         </xsd:attribute>
163                                         <xsd:attribute name="timeout" type="xsd:integer" default="-1">
164                                                 <xsd:annotation>
165                                                         <xsd:documentation><![CDATA[
166         The transaction timeout value (in seconds).
167                                                         ]]></xsd:documentation>
168                                                 </xsd:annotation>
169                                         </xsd:attribute>
170                                         <xsd:attribute name="read-only" type="xsd:boolean" default="false">
171                                                 <xsd:annotation>
172                                                         <xsd:documentation><![CDATA[
173         Is this transaction read-only?
174                                                         ]]></xsd:documentation>
175                                                 </xsd:annotation>
176                                         </xsd:attribute>
177                                         <xsd:attribute name="rollback-for" type="xsd:string">
178                                                 <xsd:annotation>
179                                                         <xsd:documentation><![CDATA[
180         The Exception(s) that will trigger rollback; comma-delimited.
181         For example, 'com.foo.MyBusinessException,ServletException'
182                                                         ]]></xsd:documentation>
183                                                 </xsd:annotation>
184                                         </xsd:attribute>
185                                         <xsd:attribute name="no-rollback-for" type="xsd:string">
186                                                 <xsd:annotation>
187                                                         <xsd:documentation><![CDATA[
188         The Exception(s) that will *not* trigger rollback; comma-delimited.
189         For example, 'com.foo.MyBusinessException,ServletException'
190                                                         ]]></xsd:documentation>
191                                                 </xsd:annotation>
192                                         </xsd:attribute>
193                                 </xsd:complexType>
194                         </xsd:element>
195                 </xsd:sequence>
196         </xsd:complexType>
197
198 </xsd:schema>