-
Notifications
You must be signed in to change notification settings - Fork 6
/
gen.schemas-1.0.dtd
569 lines (520 loc) · 23.6 KB
/
gen.schemas-1.0.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright 2004 Clinton Begin
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!ELEMENT table ( sql* | operation* | column*)+>
<!ATTLIST table
sqlName CDATA #REQUIRED
className CDATA #IMPLIED
remarks CDATA #IMPLIED
isSimple (true | false) #IMPLIED
>
<!ELEMENT column EMPTY>
<!ATTLIST column
name CDATA #REQUIRED
javaType CDATA #REQUIRED
columnAlias CDATA #IMPLIED
nullValue CDATA #IMPLIED
>
<!ELEMENT param EMPTY>
<!ATTLIST param
name CDATA #REQUIRED
javaType CDATA #REQUIRED
nullValue CDATA #IMPLIED
>
<!ELEMENT sql (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual | selectKey)*>
<!ATTLIST sql
id CDATA #IMPLIED
remarks CDATA #IMPLIED
>
<!ELEMENT sqlmap (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual | selectKey)*>
<!ATTLIST sql
id CDATA #IMPLIED
remarks CDATA #IMPLIED
>
<!-- resultClass CDATA #IMPLIED -->
<!ELEMENT operation (#PCDATA | extraparams | sql | sqlmap)*>
<!ATTLIST operation
name CDATA #REQUIRED
multiplicity (many | one | paging) #IMPLIED
countService (true | false) #IMPLIED
facade (true | false) #IMPLIED
remarks CDATA #IMPLIED
resultClass (object | dto) #IMPLIED
parameterClass CDATA #IMPLIED
resultMap CDATA #IMPLIED
paramType (primitive | object) #IMPLIED
>
<!ELEMENT extraparams (#PCDATA | param)*>
<!--
cacheModel CDATA #IMPLIED
resultSetType (FORWARD_ONLY | SCROLL_INSENSITIVE | SCROLL_SENSITIVE) #IMPLIED
fetchSize CDATA #IMPLIED
xmlResultName CDATA #IMPLIED
remapResults (true|false) #IMPLIED
timeout CDATA #IMPLIED
-->
<!--The parameterMap is responsible for mapping JavaBeans properties to the parameters of a statement.
The parameterMap itself only requires a id attribute that is an identifier that statements will use to refer to it.
The class attribute is optional but highly recommended. Similar to the parameterClass attribute of a statement,
the class attribute allows the framework to validate the incoming parameter as well as optimize the engine
for performance. The parameterMap can contain any number of parameter mappings that map directly to the
parameters of a statement.-->
<!ELEMENT parameterMap (parameter+)>
<!ATTLIST parameterMap
id CDATA #REQUIRED
class CDATA #REQUIRED
>
<!-- The <parameter> tag is used to describe the parameters of a parameterMap.-->
<!ELEMENT parameter EMPTY>
<!ATTLIST parameter
property CDATA #REQUIRED
javaType CDATA #IMPLIED
jdbcType CDATA #IMPLIED
typeName CDATA #IMPLIED
nullValue CDATA #IMPLIED
mode (IN | OUT | INOUT) #IMPLIED
typeHandler CDATA #IMPLIED
resultMap CDATA #IMPLIED
numericScale CDATA #IMPLIED
>
<!--Result maps are an extremely important component of Data Mapper. The resultMap is responsible for
mapping JavaBeans properties to the columns of a ResultSet produced by executing a query mapped
statement.
The resultMap itself has a id attribute that statements will use to refer to it. The resultMap also has a
class attribute that is the fully qualified (i.e. full package) name of a class or a type alias. This class will
be instantiated and populated based on the result mappings it contains. The extends attribute can be
optionally set to the name of another resultMap upon which to base a resultMap. This is similar to
extending a class in Java, all properties of the super resultMap will be included as part of the sub
resultMap. The properties of the super resultMap are always inserted before the sub resultMap
properties and the parent resultMap must be defined before the child. The classes for the super/sub
resultMaps need not be the same, nor do they need to be related at all (they can each use any class).
The resultMap element also supports the attribute groupBy. The groupBy attribute is used to specify a list
of properties in this resultMap that are used to identify unique rows in the returned result set. Rows with
equal values for the specified properties will only generate one result object. Use groupBy in combination
with nested resultMaps to solve the N+1 query problem (see following discussion for examples).
The resultMap can contain any number of result mappings that map JavaBean properties to the columns of a
ResultSet. These property mappings will be applied in the order that they are defined in the document. The
associated class must be a JavaBeans compliant class with appropriate get/set methods for each of the
properties, a Map or XML.-->
<!ELEMENT resultMap (result*, discriminator?)>
<!ATTLIST resultMap
id CDATA #REQUIRED
class CDATA #REQUIRED
extends CDATA #IMPLIED
xmlName CDATA #IMPLIED
groupBy CDATA #IMPLIED
>
<!--Results map JavaBean properties to the columns of a ResultSet. These property mappings will be applied
in the order that they are defined in the document. The associated class must be a JavaBeans compliant
class with appropriate get/set methods for each of the properties, a Map or XML.-->
<!ELEMENT result EMPTY>
<!ATTLIST result
property CDATA #REQUIRED
javaType CDATA #IMPLIED
column CDATA #IMPLIED
columnIndex CDATA #IMPLIED
jdbcType CDATA #IMPLIED
nullValue CDATA #IMPLIED
notNullColumn CDATA #IMPLIED
select CDATA #IMPLIED
resultMap CDATA #IMPLIED
typeHandler CDATA #IMPLIED
>
<!-- TODO: add documentation. Could not find anything about this element in the official iabtis doc.-->
<!ELEMENT discriminator (subMap+)>
<!ATTLIST discriminator
javaType CDATA #REQUIRED
column CDATA #IMPLIED
columnIndex CDATA #IMPLIED
jdbcType CDATA #IMPLIED
nullValue CDATA #IMPLIED
typeHandler CDATA #IMPLIED
>
<!-- TODO: add documentation. Could not find anything about this element in the official iabtis doc. -->
<!ELEMENT subMap EMPTY>
<!ATTLIST subMap
value CDATA #REQUIRED
resultMap CDATA #REQUIRED
>
<!--A cacheModel is used to describe a cache for use with a query mapped statement. Each query mapped statement
can use a different cacheModel, or the same one. The following example will demonstrate how it looks related to a statement:
<br><br>
<cacheModel id="product-cache" type="LRU"><br>
<flushInterval hours="24"/><br>
<flushOnExecute statement="insertProduct"/><br>
<flushOnExecute statement="updateProduct"/><br>
<flushOnExecute statement="deleteProduct"/><br>
<property name=”size” value=”1000” /><br>
</cacheModel><br>
<br>
<select id=”getProductList” parameterClass=”int” cacheModel=”product-cache”><br>
select * from PRODUCT where PRD_CAT_ID = #value#<br>
</select><br>
In the above example, a cache is defined for products that uses a WEAK reference type and flushes every
24 hours or whenever associated update statements are executed.-->
<!ELEMENT cacheModel (flushInterval?, flushOnExecute*, property*)+>
<!ATTLIST cacheModel
id CDATA #REQUIRED
type CDATA #REQUIRED
readOnly (true | false) #IMPLIED
serialize (true | false) #IMPLIED
>
<!--Defines the interval of when the cache will be flushed. There can be only one flush interval element and it
can be set using hours, minutes, seconds or milliseconds.-->
<!ELEMENT flushInterval EMPTY>
<!ATTLIST flushInterval
milliseconds CDATA #IMPLIED
seconds CDATA #IMPLIED
minutes CDATA #IMPLIED
hours CDATA #IMPLIED
>
<!--Defines that the cache will be flushed when the specified statement is executed. There can
be any number of "flush on execute" elements specified for a cache.-->
<!ELEMENT flushOnExecute EMPTY>
<!ATTLIST flushOnExecute
statement CDATA #REQUIRED
>
<!--Defines a standard Java property. Is used by various elements to define settings.-->
<!ELEMENT property EMPTY>
<!ATTLIST property
name CDATA #REQUIRED
value CDATA #REQUIRED
>
<!--The typeAlias element simply allows you to specify a shorter name to refer to what is usually a long, fully
qualified classname. For example:
<typeAlias alias="shortname" type="com.long.class.path.Class"/>-->
<!ELEMENT typeAlias EMPTY>
<!ATTLIST typeAlias
alias CDATA #REQUIRED
type CDATA #REQUIRED
>
<!--The <sql> tag can be used to eliminate duplication of SQL code. You can define define a part of SQL code via
the use of the <sql> tag and use it in a statement by using the <include> tag. Here is a short example:
<br><br>
Example:<br>
<sql id="selectItem_fragment"><br>
FROM items<br>
WHERE parentid = 6<br>
</sql><br>
<br>
<select id="selectItemCount" resultClass="int"><br>
SELECT COUNT(*) AS total<br>
<include refid="selectItem_fragment"/><br>
</select><br>
<br>
<select id="selectItems" resultClass="Item"><br>
SELECT id, name<br>
<include refid="selectItem_fragment"/><br>
</select>-->
<!--The <include> tag can be used to insert SQL code fragments defined by the <sql> tag into
a SQL statement. Here is a short example:
<br>
Example:<br>
<sql id="selectItem_fragment"><br>
FROM items<br>
WHERE parentid = 6<br>
</sql><br>
<select id="selectItemCount" resultClass="int"><br>
SELECT COUNT(*) AS total<br>
<include refid="selectItem_fragment"/><br>
</select><br>
<select id="selectItems" resultClass="Item"><br>
SELECT id, name<br>
<include refid="selectItem_fragment"/><br>
</select>-->
<!ELEMENT include EMPTY>
<!ATTLIST include
refid CDATA #REQUIRED
>
<!-- The <statement> element is a general “catch all” statement that can be used for any type of SQL statement.
Generally it is a good idea to use one of the more specific statement elements. The more specific elements
provide a more intuitive XML DTD and sometimes provides additional features that a normal <statement>
element cannot. -->
<!ELEMENT statement (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST statement
id CDATA #REQUIRED
parameterMap CDATA #IMPLIED
parameterClass CDATA #IMPLIED
resultMap CDATA #IMPLIED
resultClass CDATA #IMPLIED
cacheModel CDATA #IMPLIED
resultSetType (FORWARD_ONLY | SCROLL_INSENSITIVE | SCROLL_SENSITIVE) #IMPLIED
fetchSize CDATA #IMPLIED
xmlResultName CDATA #IMPLIED
remapResults (true|false) #IMPLIED
timeout CDATA #IMPLIED
>
<!--Statement used for select queries.
Supports all dynamic elements and query methods.-->
<!ELEMENT select (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST select
id CDATA #REQUIRED
parameterMap CDATA #IMPLIED
parameterClass CDATA #IMPLIED
resultMap CDATA #IMPLIED
resultClass CDATA #IMPLIED
cacheModel CDATA #IMPLIED
resultSetType (FORWARD_ONLY | SCROLL_INSENSITIVE | SCROLL_SENSITIVE) #IMPLIED
fetchSize CDATA #IMPLIED
xmlResultName CDATA #IMPLIED
remapResults (true|false) #IMPLIED
timeout CDATA #IMPLIED
>
<!--Statement used for insert queries.
Supports all dynamic elements, <selectKey> and the query methods insert, update and delete.-->
<!ELEMENT insert (#PCDATA | include | selectKey | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST insert
id CDATA #REQUIRED
parameterMap CDATA #IMPLIED
parameterClass CDATA #IMPLIED
timeout CDATA #IMPLIED
>
<!--Many relational database systems support auto-generation of primary key fields. This feature of the
RDBMS is often (if not always) proprietary. Data Mapper supports auto-generated keys via the
<selectKey> stanza of the <insert> element. Both pre-generated keys (e.g. Oracle) and post-generated
(MS-SQL Server) keys are supported.
The selectKey statement is executed before the insert statement if it is placed before the insert SQL,
otherwise the selectKey statement is executed after the insert statement. In the previous examples, the
Oracle example shows that the selectKey will be executed before the insert statement (as is appropriate for
a sequence). The SQL Server example shows that the selectKey statement will be executed after the insert
statement (as is appropriate for an identity column).
With iBATIS versions 2.2.0 and later, you can explicitly state the order of execution of the statements if
you wish. The selectKey element supports an attribute type that can be used to explicitly set the execution
order. The value of the type attribute can be either “pre” or “post” - meaning that the statement will be
executed before or after the insert statement. If you specify the type attribute, then the value you specify
will be used regardless of the position of the selectKey element.-->
<!ELEMENT selectKey (#PCDATA | include)*>
<!ATTLIST selectKey
resultClass CDATA #IMPLIED
keyProperty CDATA #IMPLIED
type (pre|post) #IMPLIED
>
<!--Statement used for update queries.
Supports all dynamic elements and the query methods insert, update and delete.-->
<!ELEMENT update (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST update
id CDATA #REQUIRED
parameterMap CDATA #IMPLIED
parameterClass CDATA #IMPLIED
timeout CDATA #IMPLIED
>
<!--Statement used for delete queries.
Supports all dynamic elements and the query methods insert, update and delete.-->
<!ELEMENT delete (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST delete
id CDATA #REQUIRED
parameterMap CDATA #IMPLIED
parameterClass CDATA #IMPLIED
timeout CDATA #IMPLIED
>
<!--The <procedure> statement element is used for Stored Procedures. The following example shows
how a stored procedure would be used with output parameters:
<br><br>
<parameterMap id="swapParameters" class="map" ><br>
<parameter property="email1" jdbcType="VARCHAR" javaType="java.lang.String" mode="INOUT"/><br>
<parameter property="email2" jdbcType="VARCHAR" javaType="java.lang.String" mode="INOUT"/><br>
</parameterMap><br>
<br>
<procedure id="swapEmailAddresses" parameterMap="swapParameters" ><br>
{call swap_email_address (?, ?)}<br>
</procedure><br>
<br>
Calling the above procedure would swap two email addresses between two columns (database table) and
also in the parameter object (Map). The parameter object is only modified if the parameter mappings mode
attribute is set to “INOUT” or “OUT”. Otherwise they are left unchanged. Obviously immutable parameter
objects (e.g. String) cannot be modified.-->
<!ELEMENT procedure (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST procedure
id CDATA #REQUIRED
parameterMap CDATA #IMPLIED
parameterClass CDATA #IMPLIED
resultMap CDATA #IMPLIED
resultClass CDATA #IMPLIED
cacheModel CDATA #IMPLIED
fetchSize CDATA #IMPLIED
xmlResultName CDATA #IMPLIED
remapResults (true|false) #IMPLIED
timeout CDATA #IMPLIED
>
<!-- - - - - - - - - - - - - - - - - - - - - - - - -
DYNAMIC ELEMENTS
- - - - - - - - - - - - - - - - - - - - - - - - -->
<!--Wrapper tag that allows for an overall prepend, open and close.-->
<!--因兼容性 移除 for mybatis -->
<!--<!ELEMENT dynamic (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST dynamic
prepend CDATA #IMPLIED
>-->
<!--Checks if a property is not null.-->
<!--因兼容性 移除 open close for mybatis -->
<!ELEMENT isNotNull (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST isNotNull
prepend CDATA #IMPLIED
property CDATA #IMPLIED
removeFirstPrepend (true|false) #IMPLIED
>
<!--Checks if a property is null.-->
<!--因兼容性 移除 open close for mybatis -->
<!ELEMENT isNull (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST isNull
prepend CDATA #IMPLIED
property CDATA #IMPLIED
removeFirstPrepend (true|false) #IMPLIED
>
<!--Checks if a property is unavailable (i.e not a property of the parameter bean).-->
<!--因兼容性 移除 open close for mybatis -->
<!--<!ELEMENT isNotPropertyAvailable (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST isNotPropertyAvailable
prepend CDATA #IMPLIED
property CDATA #REQUIRED
removeFirstPrepend (true|false) #IMPLIED
>-->
<!--Checks if a property is available (i.e is a property of the parameter bean).-->
<!--因兼容性 移除 open close for mybatis -->
<!--<!ELEMENT isPropertyAvailable (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST isPropertyAvailable
prepend CDATA #IMPLIED
property CDATA #REQUIRED
removeFirstPrepend (true|false) #IMPLIED
>-->
<!--Checks the equality of a property and a value, or another property.-->
<!--因兼容性 移除 open close for mybatis -->
<!ELEMENT isEqual (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST isEqual
prepend CDATA #IMPLIED
property CDATA #IMPLIED
removeFirstPrepend (true|false) #IMPLIED
compareProperty CDATA #IMPLIED
compareValue CDATA #IMPLIED
>
<!--Checks the inequality of a property and a value, or another property.-->
<!--因兼容性 移除 open close for mybatis -->
<!ELEMENT isNotEqual (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST isNotEqual
prepend CDATA #IMPLIED
property CDATA #IMPLIED
removeFirstPrepend (true|false) #IMPLIED
compareProperty CDATA #IMPLIED
compareValue CDATA #IMPLIED
>
<!--Checks if a property is greater than a value or another property.-->
<!--因兼容性 移除 open close for mybatis -->
<!ELEMENT isGreaterThan (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST isGreaterThan
prepend CDATA #IMPLIED
property CDATA #IMPLIED
removeFirstPrepend (true|false) #IMPLIED
compareProperty CDATA #IMPLIED
compareValue CDATA #IMPLIED
>
<!--Checks if a property is greater than or equal to a value or another property.-->
<!--因兼容性 移除 open close for mybatis -->
<!ELEMENT isGreaterEqual (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST isGreaterEqual
prepend CDATA #IMPLIED
property CDATA #IMPLIED
removeFirstPrepend (true|false) #IMPLIED
compareProperty CDATA #IMPLIED
compareValue CDATA #IMPLIED
>
<!--Checks if a property is less than a value or another property.-->
<!--因兼容性 移除 open close for mybatis -->
<!ELEMENT isLessThan (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST isLessThan
prepend CDATA #IMPLIED
property CDATA #IMPLIED
removeFirstPrepend (true|false) #IMPLIED
compareProperty CDATA #IMPLIED
compareValue CDATA #IMPLIED
>
<!--Checks if a property is less than or equal to a value or another property.
<br>
Example Usage:<br>
<isLessEqual prepend=”AND” property=”age” compareValue=”18”><br>
ADOLESCENT = ‘TRUE’<br>
</isLessEqual>-->
<!--因兼容性 移除 open close for mybatis -->
<!ELEMENT isLessEqual (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST isLessEqual
prepend CDATA #IMPLIED
property CDATA #IMPLIED
removeFirstPrepend (true|false) #IMPLIED
compareProperty CDATA #IMPLIED
compareValue CDATA #IMPLIED
>
<!--Checks to see if the value of a Collection, String or String.valueOf() property
is null or empty (“” or size() < 1).-->
<!--因兼容性 移除 open close for mybatis -->
<!ELEMENT isEmpty (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST isEmpty
prepend CDATA #IMPLIED
property CDATA #IMPLIED
removeFirstPrepend (true|false) #IMPLIED
>
<!--Checks to see if the value of a Collection, String or String.valueOf() property
is not null and not empty (“” or size() < 1).
<br><br>
Example Usage:<br>
<isNotEmpty prepend=”AND” property=”firstName” ><br>
FIRST_NAME=#firstName#<br>
</isNotEmpty>-->
<!--因兼容性 移除 open close for mybatis -->
<!ELEMENT isNotEmpty (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST isNotEmpty
prepend CDATA #IMPLIED
property CDATA #IMPLIED
removeFirstPrepend (true|false) #IMPLIED
>
<!--Checks to see if the parameter object is present (not null).-->
<!--因兼容性 移除 open close for mybatis -->
<!--<!ELEMENT isParameterPresent (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST isParameterPresent
prepend CDATA #IMPLIED
removeFirstPrepend (true|false) #IMPLIED
>-->
<!--Checks to see if the parameter object is not present (null). -->
<!--因兼容性 移除 open close for mybatis -->
<!--<!ELEMENT isNotParameterPresent (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST isNotParameterPresent
prepend CDATA #IMPLIED
removeFirstPrepend (true|false) #IMPLIED
>-->
<!--Iterates over a property that is an implementation java.util.Collection, or
java.util.Iterator, or is an array.
<br><br>
Example Usage:<br>
<iterate prepend=”AND” property=”userNameList” open=”(” close=”)” conjunction=”OR”><br>
username=#userNameList[]#<br>
</iterate><br>
<br>
It is also possible to use the iterate when the collection is passed in as a
parameter to your mapped statement.
<br>
Example Usage:<br>
<iterate prepend=”AND” open=”(” close=”)” conjunction=”OR”><br>
username=#[]#<br>
</iterate><br>
Note: It is very important to include the square brackets[] at the end of the
property name when using the Iterate element. These brackets distinguish this
object as a collection to keep the parser from simply outputting the collection
as a string.-->
<!--因兼容性 移除 for mybatis -->
<!ELEMENT iterate (#PCDATA | include | iterate | isEmpty | isNotEmpty | isNotNull | isNull | isNotEqual | isEqual | isGreaterThan | isGreaterEqual | isLessThan | isLessEqual )*>
<!ATTLIST iterate
prepend CDATA #IMPLIED
property CDATA #IMPLIED
removeFirstPrepend (true|false|iterate) #IMPLIED
open CDATA #IMPLIED
close CDATA #IMPLIED
conjunction CDATA #IMPLIED
>