]> SALOME platform Git repositories - tools/siman.git/blob - Workspace/3dparty_src/spring/schema/spring-jdbc-3.0.xsd
Salome HOME
*** empty log message ***
[tools/siman.git] / Workspace / 3dparty_src / spring / schema / spring-jdbc-3.0.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.0.xsd" />
10         <xsd:import namespace="http://www.springframework.org/schema/tool"
11                 schemaLocation="http://www.springframework.org/schema/tool/spring-tool-3.0.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:complexType>
127
128         <xsd:simpleType name="databaseType">
129                 <xsd:restriction base="xsd:string">
130                         <xsd:enumeration value="HSQL">
131                                 <xsd:annotation>
132                                         <xsd:documentation><![CDATA[
133                         Hyper SQL Java Database Engine
134                                         ]]></xsd:documentation>
135                                 </xsd:annotation>
136                         </xsd:enumeration>
137                         <xsd:enumeration value="H2">
138                                 <xsd:annotation>
139                                         <xsd:documentation><![CDATA[
140                         H2 Java Database Engine
141                                         ]]></xsd:documentation>
142                                 </xsd:annotation>
143                         </xsd:enumeration>
144                         <xsd:enumeration value="DERBY">
145                                 <xsd:annotation>
146                                         <xsd:documentation><![CDATA[
147                         Derby Java Database Engine
148                                         ]]></xsd:documentation>
149                                 </xsd:annotation>
150                         </xsd:enumeration>
151                 </xsd:restriction>
152         </xsd:simpleType>
153
154 </xsd:schema>