Salome HOME
cc1fb608d8d86ca5b5cc26af2595d4a5229834ff
[tools/siman.git] / Workspace / 3dparty_src / spring / schema / spring-jdbc-3.1.xsd
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <xsd:schema xmlns="http://www.springframework.org/schema/jdbc"
3         xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:beans="http://www.springframework.org/schema/beans"
4         xmlns:tool="http://www.springframework.org/schema/tool"
5         targetNamespace="http://www.springframework.org/schema/jdbc"
6         elementFormDefault="qualified" attributeFormDefault="unqualified">
7
8         <xsd:import namespace="http://www.springframework.org/schema/beans"
9                 schemaLocation="http://www.springframework.org/schema/beans/spring-beans-3.1.xsd" />
10         <xsd:import namespace="http://www.springframework.org/schema/tool"
11                 schemaLocation="http://www.springframework.org/schema/tool/spring-tool-3.1.xsd" />
12
13         <xsd:element name="embedded-database">
14                 <xsd:annotation>
15                         <xsd:documentation source="java:org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactoryBean"><![CDATA[
16         Creates an embedded database instance and makes it available to other beans as a javax.sql.DataSource.
17                         ]]></xsd:documentation>
18                         <xsd:appinfo>
19                                 <tool:annotation>
20                                         <tool:exports type="javax.sql.DataSource"/>
21                                 </tool:annotation>
22                         </xsd:appinfo>
23                 </xsd:annotation>
24                 <xsd:complexType>
25                         <xsd:complexContent>
26                                 <xsd:extension base="beans:identifiedType">
27                                         <xsd:sequence>
28                                                 <xsd:element name="script" type="scriptType" minOccurs="0" maxOccurs="unbounded">
29                                                         <xsd:annotation>
30                                                                 <xsd:documentation><![CDATA[
31                         A SQL script to execute during embedded database initialization.
32                                                                 ]]></xsd:documentation>
33                                                         </xsd:annotation>
34                                                 </xsd:element>
35                                         </xsd:sequence>
36                                         <xsd:attribute name="type" type="databaseType" default="HSQL">
37                                                 <xsd:annotation>
38                                                         <xsd:documentation><![CDATA[
39                         The type of embedded database to create, such as HSQL, H2 or Derby. Defaults to HSQL.
40                                                         ]]></xsd:documentation>
41                                                 </xsd:annotation>
42                                         </xsd:attribute>
43                                 </xsd:extension>
44                         </xsd:complexContent>
45                 </xsd:complexType>
46         </xsd:element>
47
48         <xsd:element name="initialize-database">
49                 <xsd:annotation>
50                         <xsd:documentation source="java:org.springframework.jdbc.datasource.init.DataSourceInitializer"><![CDATA[
51         Initializes a database instance with SQL scripts provided in nested <script/> elements.
52                         ]]></xsd:documentation>
53                 </xsd:annotation>
54                 <xsd:complexType>
55                         <xsd:sequence>
56                                 <xsd:element name="script" type="scriptType" minOccurs="1" maxOccurs="unbounded">
57                                         <xsd:annotation>
58                                                 <xsd:documentation><![CDATA[
59                         A SQL script to execute during database initialization.
60                                                 ]]></xsd:documentation>
61                                         </xsd:annotation>
62                                 </xsd:element>
63                         </xsd:sequence>
64                         <xsd:attribute name="data-source" type="xsd:string" default="dataSource">
65                                 <xsd:annotation>
66                                         <xsd:documentation><![CDATA[
67                         A reference to a data source that should be initialized. Defaults to "dataSource".
68                                         ]]></xsd:documentation>
69                                         <xsd:appinfo>
70                                                 <tool:annotation kind="ref"/>
71                                                 <tool:expected-type type="javax.sql.DataSource"/>
72                                         </xsd:appinfo>
73                                 </xsd:annotation>
74                         </xsd:attribute>
75                         <xsd:attribute name="enabled" type="xsd:string" use="optional" default="true">
76                                 <xsd:annotation>
77                                         <xsd:documentation>
78                                                 Is this bean "enabled", meaning the scripts will be executed?
79                                                 Defaults to true, but can be used to switch on and off the initialization depending on the environment.
80                                         </xsd:documentation>
81                                 </xsd:annotation>
82                         </xsd:attribute>
83                         <xsd:attribute name="ignore-failures" use="optional" default="NONE">
84                                 <xsd:annotation>
85                                         <xsd:documentation>
86                                                 Should failed SQL statements be ignored during initialization?
87                                         </xsd:documentation>
88                                 </xsd:annotation>
89                                 <xsd:simpleType>
90                                         <xsd:restriction base="xsd:string">
91                                                 <xsd:enumeration value="NONE">
92                                                         <xsd:annotation>
93                                                                 <xsd:documentation><![CDATA[
94                                                 Do not ignore failures (the default)
95                                                                 ]]></xsd:documentation>
96                                                         </xsd:annotation>
97                                                 </xsd:enumeration>
98                                                 <xsd:enumeration value="DROPS">
99                                                         <xsd:annotation>
100                                                                 <xsd:documentation><![CDATA[
101                                                 Ignore failed DROP statements
102                                                                 ]]></xsd:documentation>
103                                                         </xsd:annotation>
104                                                 </xsd:enumeration>
105                                                 <xsd:enumeration value="ALL">
106                                                         <xsd:annotation>
107                                                                 <xsd:documentation><![CDATA[
108                                                 Ignore all failures
109                                                                 ]]></xsd:documentation>
110                                                         </xsd:annotation>
111                                                 </xsd:enumeration>
112                                         </xsd:restriction>
113                                 </xsd:simpleType>
114                         </xsd:attribute>
115                 </xsd:complexType>
116         </xsd:element>
117
118         <xsd:complexType name="scriptType">
119                 <xsd:attribute name="location" type="xsd:string">
120                         <xsd:annotation>
121                                 <xsd:documentation><![CDATA[
122         The resource location of an SQL script to execute. Can be a single script location or a pattern (e.g. classpath:/com/foo/sql/*-data.sql).
123                                 ]]></xsd:documentation>
124                         </xsd:annotation>
125                 </xsd:attribute>
126                 <xsd:attribute name="encoding" type="xsd:string">
127                         <xsd:annotation>
128                                 <xsd:documentation><![CDATA[
129         The encoding for SQL scripts, if different from the platform encoding.
130                                 ]]></xsd:documentation>
131                         </xsd:annotation>
132                 </xsd:attribute>
133                 <xsd:attribute name="separator" type="xsd:string">
134                         <xsd:annotation>
135                                 <xsd:documentation><![CDATA[
136         The statement separator in the script (the default is to use ';' if it is present in the script, or '\n' otherwise).
137                                 ]]></xsd:documentation>
138                         </xsd:annotation>
139                 </xsd:attribute>
140                 <xsd:attribute name="execution">
141                         <xsd:annotation>
142                                 <xsd:documentation><![CDATA[
143         Indicate the timing of the execution of this script. Use INIT to execute on startup (as a bean initialization) and DESTROY to execute on shutdown (as a bean destruction callback).
144                                 ]]></xsd:documentation>
145                         </xsd:annotation>
146                         <xsd:simpleType>
147                                 <xsd:restriction base="xsd:string">
148                                         <xsd:enumeration value="INIT"/>
149                                         <xsd:enumeration value="DESTROY"/>
150                                 </xsd:restriction>
151                         </xsd:simpleType>
152                 </xsd:attribute>
153         </xsd:complexType>
154
155         <xsd:simpleType name="databaseType">
156                 <xsd:restriction base="xsd:string">
157                         <xsd:enumeration value="HSQL">
158                                 <xsd:annotation>
159                                         <xsd:documentation><![CDATA[
160                         Hyper SQL Java Database Engine
161                                         ]]></xsd:documentation>
162                                 </xsd:annotation>
163                         </xsd:enumeration>
164                         <xsd:enumeration value="H2">
165                                 <xsd:annotation>
166                                         <xsd:documentation><![CDATA[
167                         H2 Java Database Engine
168                                         ]]></xsd:documentation>
169                                 </xsd:annotation>
170                         </xsd:enumeration>
171                         <xsd:enumeration value="DERBY">
172                                 <xsd:annotation>
173                                         <xsd:documentation><![CDATA[
174                         Derby Java Database Engine
175                                         ]]></xsd:documentation>
176                                 </xsd:annotation>
177                         </xsd:enumeration>
178                 </xsd:restriction>
179         </xsd:simpleType>
180
181 </xsd:schema>