]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/3dparty_src/spring/schema/spring-tx-3.1.xsd
Salome HOME
*** empty log message ***
[tools/siman.git] / Workspace / 3dparty_src / spring / schema / spring-tx-3.1.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-3.1.xsd"/>
12         <xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-3.1.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 annotations supported are Spring's @Transactional
75         and EJB3's @TransactionAttribute (if available).
76
77         Transaction semantics such as propagation settings, the isolation level,
78         the rollback rules, etc are all defined in the annotation metadata.
79
80         See org.springframework.transaction.annotation.EnableTransactionManagement Javadoc
81         for information on code-based alternatives to this XML element.
82                                 ]]></xsd:documentation>
83                         </xsd:annotation>
84                         <xsd:attribute name="transaction-manager" type="xsd:string" default="transactionManager">
85                                 <xsd:annotation>
86                                         <xsd:documentation source="java:org.springframework.transaction.PlatformTransactionManager"><![CDATA[
87         The bean name of the PlatformTransactionManager that is to be used
88         to drive transactions.
89
90         This attribute is not required, and only needs to be specified
91         explicitly if the bean name of the desired PlatformTransactionManager
92         is not 'transactionManager'.
93                                         ]]></xsd:documentation>
94                                         <xsd:appinfo>
95                                                 <tool:annotation kind="ref">
96                                                         <tool:expected-type type="org.springframework.transaction.PlatformTransactionManager"/>
97                                                 </tool:annotation>
98                                         </xsd:appinfo>
99                                 </xsd:annotation>
100                         </xsd:attribute>
101                         <xsd:attribute name="mode" default="proxy">
102                                 <xsd:annotation>
103                                         <xsd:documentation><![CDATA[
104         Should annotated beans be proxied using Spring's AOP framework,
105         or should they rather be weaved with an AspectJ transaction aspect?
106
107         AspectJ weaving requires spring-aspects.jar on the classpath,
108         as well as load-time weaving (or compile-time weaving) enabled.
109
110         Note: The weaving-based aspect requires the @Transactional annotation to be
111         defined on the concrete class. Annotations in interfaces will not work
112         in that case (they will rather only work with interface-based proxies)!
113                                         ]]></xsd:documentation>
114                                 </xsd:annotation>
115                                 <xsd:simpleType>
116                                         <xsd:restriction base="xsd:string">
117                                                 <xsd:enumeration value="proxy"/>
118                                                 <xsd:enumeration value="aspectj"/>
119                                         </xsd:restriction>
120                                 </xsd:simpleType>
121                         </xsd:attribute>
122                         <xsd:attribute name="proxy-target-class" type="xsd:boolean" default="false">
123                                 <xsd:annotation>
124                                         <xsd:documentation><![CDATA[
125         Are class-based (CGLIB) proxies to be created? By default, standard
126         Java interface-based proxies are created.
127
128         Note: Class-based proxies require the @Transactional annotation to be
129         defined on the concrete class. Annotations in interfaces will not work
130         in that case (they will rather only work with interface-based proxies)!
131                                         ]]></xsd:documentation>
132                                 </xsd:annotation>
133                         </xsd:attribute>
134                         <xsd:attribute name="order" type="xsd:int">
135                                 <xsd:annotation>
136                                         <xsd:documentation source="java:org.springframework.core.Ordered"><![CDATA[
137         Controls the ordering of the execution of the transaction advisor
138         when multiple advice executes at a specific joinpoint.
139                                         ]]></xsd:documentation>
140                                 </xsd:annotation>
141                         </xsd:attribute>
142                 </xsd:complexType>
143         </xsd:element>
144
145         <xsd:element name="jta-transaction-manager">
146                 <xsd:annotation>
147                         <xsd:documentation><![CDATA[
148         Creates a default JtaTransactionManager bean with name "transactionManager",
149         matching the default bean name expected by the "annotation-driven" tag.
150         Automatically detects WebLogic, WebSphere and OC4J: creating a WebLogicJtaTransactionManager,
151         WebSphereUowTransactionManager or OC4JJtaTransactionManager, respectively.
152
153         For customization needs, consider defining a JtaTransactionManager bean as a regular
154         Spring bean definition with name "transactionManager", replacing this element.
155                         ]]></xsd:documentation>
156                         <xsd:appinfo>
157                                 <tool:annotation>
158                                         <tool:exports type="org.springframework.transaction.jta.JtaTransactionManager"/>
159                                 </tool:annotation>
160                         </xsd:appinfo>
161                 </xsd:annotation>
162         </xsd:element>
163
164         <xsd:complexType name="attributesType">
165                 <xsd:sequence>
166                         <xsd:element name="method" minOccurs="1" maxOccurs="unbounded">
167                                 <xsd:complexType>
168                                         <xsd:attribute name="name" type="xsd:string" use="required">
169                                                 <xsd:annotation>
170                                                         <xsd:documentation><![CDATA[
171         The method name(s) with which the transaction attributes are to be
172         associated. The wildcard (*) character can be used to associate the
173         same transaction attribute settings with a number of methods; for
174         example, 'get*', 'handle*', '*Order', 'on*Event', etc.
175                                                         ]]></xsd:documentation>
176                                                 </xsd:annotation>
177                                         </xsd:attribute>
178                                         <xsd:attribute name="propagation" default="REQUIRED">
179                                                 <xsd:annotation>
180                                                         <xsd:documentation source="java:org.springframework.transaction.annotation.Propagation"><![CDATA[
181         The transaction propagation behavior.
182                                                         ]]></xsd:documentation>
183                                                 </xsd:annotation>
184                                                 <xsd:simpleType>
185                                                         <xsd:restriction base="xsd:string">
186                                                                 <xsd:enumeration value="REQUIRED"/>
187                                                                 <xsd:enumeration value="SUPPORTS"/>
188                                                                 <xsd:enumeration value="MANDATORY"/>
189                                                                 <xsd:enumeration value="REQUIRES_NEW"/>
190                                                                 <xsd:enumeration value="NOT_SUPPORTED"/>
191                                                                 <xsd:enumeration value="NEVER"/>
192                                                                 <xsd:enumeration value="NESTED"/>
193                                                         </xsd:restriction>
194                                                 </xsd:simpleType>
195                                         </xsd:attribute>
196                                         <xsd:attribute name="isolation" default="DEFAULT">
197                                                 <xsd:annotation>
198                                                         <xsd:documentation source="java:org.springframework.transaction.annotation.Isolation"><![CDATA[
199         The transaction isolation level.
200                                                         ]]></xsd:documentation>
201                                                 </xsd:annotation>
202                                                 <xsd:simpleType>
203                                                         <xsd:restriction base="xsd:string">
204                                                                 <xsd:enumeration value="DEFAULT"/>
205                                                                 <xsd:enumeration value="READ_UNCOMMITTED"/>
206                                                                 <xsd:enumeration value="READ_COMMITTED"/>
207                                                                 <xsd:enumeration value="REPEATABLE_READ"/>
208                                                                 <xsd:enumeration value="SERIALIZABLE"/>
209                                                         </xsd:restriction>
210                                                 </xsd:simpleType>
211                                         </xsd:attribute>
212                                         <xsd:attribute name="timeout" type="xsd:integer" default="-1">
213                                                 <xsd:annotation>
214                                                         <xsd:documentation><![CDATA[
215         The transaction timeout value (in seconds).
216                                                         ]]></xsd:documentation>
217                                                 </xsd:annotation>
218                                         </xsd:attribute>
219                                         <xsd:attribute name="read-only" type="xsd:boolean" default="false">
220                                                 <xsd:annotation>
221                                                         <xsd:documentation><![CDATA[
222         Is this transaction read-only?
223                                                         ]]></xsd:documentation>
224                                                 </xsd:annotation>
225                                         </xsd:attribute>
226                                         <xsd:attribute name="rollback-for" type="xsd:string">
227                                                 <xsd:annotation>
228                                                         <xsd:documentation><![CDATA[
229         The Exception(s) that will trigger rollback; comma-delimited.
230         For example, 'com.foo.MyBusinessException,ServletException'
231                                                         ]]></xsd:documentation>
232                                                 </xsd:annotation>
233                                         </xsd:attribute>
234                                         <xsd:attribute name="no-rollback-for" type="xsd:string">
235                                                 <xsd:annotation>
236                                                         <xsd:documentation><![CDATA[
237         The Exception(s) that will *not* trigger rollback; comma-delimited.
238         For example, 'com.foo.MyBusinessException,ServletException'
239                                                         ]]></xsd:documentation>
240                                                 </xsd:annotation>
241                                         </xsd:attribute>
242                                 </xsd:complexType>
243                         </xsd:element>
244                 </xsd:sequence>
245         </xsd:complexType>
246
247 </xsd:schema>