-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmapper.dtd
131 lines (106 loc) · 4.19 KB
/
mapper.dtd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?xml version="1.0" encoding="UTF-8" ?>
<!ELEMENT mapper (resultMap* | sql* | select* | update* | delete* | insert* )+>
<!ATTLIST mapper
namespace CDATA #IMPLIED
prefix CDATA #IMPLIED
>
<!ELEMENT include (#PCDATA)>
<!ATTLIST include
refid CDATA #REQUIRED
>
<!ELEMENT trim (#PCDATA | include | trim | where | set | foreach | choose | if)*>
<!ATTLIST trim
prefix CDATA #IMPLIED
prefixOverrides CDATA #IMPLIED
suffix CDATA #IMPLIED
suffixOverrides CDATA #IMPLIED
>
<!ELEMENT where (#PCDATA | include | trim | where | set | foreach | choose | if)*>
<!ELEMENT set (#PCDATA | include | trim | where | set | foreach | choose | if)*>
<!ELEMENT foreach (#PCDATA | include | trim | where | set | foreach | choose | if)*>
<!ATTLIST foreach
collection CDATA #REQUIRED
item CDATA #IMPLIED
index CDATA #IMPLIED
open CDATA #IMPLIED
close CDATA #IMPLIED
separator CDATA #IMPLIED
>
<!ELEMENT choose (when | otherwise)*>
<!ELEMENT when (#PCDATA | include | trim | where | set | foreach | choose | if)*>
<!ATTLIST when
test CDATA #REQUIRED
>
<!ELEMENT otherwise (#PCDATA | include | trim | where | set | foreach | choose | if)*>
<!ELEMENT if (#PCDATA | include | trim | where | set | foreach | choose | if)*>
<!ATTLIST if
test CDATA #REQUIRED
>
<!ELEMENT alias (field+)>
<!ELEMENT field EMPTY>
<!ATTLIST field
name CDATA #REQUIRED
alias CDATA #REQUIRED
>
<!ELEMENT values (value)+>
<!ELEMENT value EMPTY>
<!ATTLIST value
column CDATA #REQUIRED
property CDATA #IMPLIED
>
<!ELEMENT select (#PCDATA | include | trim | where | set | foreach | choose | if | alias)*>
<!ATTLIST select
id CDATA #REQUIRED
resultMap CDATA #IMPLIED
useCache CDATA #IMPLIED
paramName CDATA #IMPLIED
dataSource CDATA #IMPLIED
>
<!ELEMENT update (#PCDATA | include | trim | where | set | foreach | choose | if )*>
<!ATTLIST update
id CDATA #REQUIRED
flushCache CDATA #IMPLIED
paramName CDATA #IMPLIED
>
<!ELEMENT delete (#PCDATA | include | trim | where | set | foreach | choose | if )*>
<!ATTLIST delete
id CDATA #REQUIRED
flushCache CDATA #IMPLIED
paramName CDATA #IMPLIED
>
<!ELEMENT insert (#PCDATA | include | trim | where | set | foreach | choose | if | values )*>
<!ATTLIST insert
id CDATA #REQUIRED
useGeneratedKeys CDATA #IMPLIED
keyProperty CDATA #IMPLIED
flushCache CDATA #IMPLIED
paramName CDATA #IMPLIED
batchSize CDATA #IMPLIED
batchInsertIDGenerateStrategy CDATA #IMPLIED
>
<!ELEMENT id EMPTY>
<!ATTLIST id
column CDATA #REQUIRED
property CDATA #REQUIRED
>
<!ELEMENT result EMPTY>
<!ATTLIST result
column CDATA #REQUIRED
property CDATA #REQUIRED
>
<!ELEMENT association (association*,result*)>
<!ATTLIST association
property CDATA #REQUIRED
>
<!ELEMENT collection (association*,result*)>
<!ATTLIST collection
property CDATA #REQUIRED
>
<!ELEMENT sql (#PCDATA | include | trim | where | set | foreach | choose | if )*>
<!ATTLIST sql
id CDATA #REQUIRED
>
<!ELEMENT resultMap (id*,result*,association*,collection*)>
<!ATTLIST resultMap
id CDATA #REQUIRED
>