2.支持嵌套
﹤isNotNull property ="id" ﹥
﹤!-- isGreaterThan判断参数是否大于compareValue,isGreaterEquals是大于等于 --﹥
﹤isGreaterThan prepend =" and " property ="id" compareValue ="0" ﹥ id = #id#
</isGreaterThan ﹥
﹤/isNotNull﹥
3.in 的用法 in(1,1,2)
<dynamic prepend="WHERE">
<isNotNull prepend="AND" property="emailAddress">
ACC_EMAIL = #emailAddress#
</isNotNull>
<isNotNull property="idList" prepend=" or ACC_ID in ">
<iterate property="idList" conjunction="," open="(" close=")" >
#id#
</iterate>
</isNotNull>
</dynamic>
4. iBATIS动态查询几个常用属性:
﹤isPropertyAvailable﹥: 属性是存在
﹤isNotPropertyAvailable﹥: 属性不存在
﹤isNull﹥: 属性值是null
﹤isEmpty﹥: 判断Collection.size ﹤ 1 或String.length()﹤1
﹤isEqual﹥: 等于
﹤isNotEqual﹥: 不等于
﹤isGreaterThan﹥: 大于
﹤isGreaterEqual﹥: 大于等于
﹤isLessThan﹥: 小于
﹤isLessEqual﹥: 小于等于