/*動態SQL的參數有
屬性關鍵字
含義
<isEqual>
如果參數相等於值則查詢條件有效。
<isNotEqual>
如果參數不等於值則查詢條件有效。
<isGreaterThan>
如果參數大於值則查詢條件有效。
<isGreaterEqual>
如果參數等於值則查詢條件有效。
<isLessEqual>
如果參數小於值則查詢條件有效。如下所示:
<isLessEqual prepend = ”AND” property = ”age” compareValue = ”18” >
ADOLESCENT = ‘TRUE’
</isLessEqual>
<isPropertyAvailable>
如果參數有使用則查詢條件有效。
<isNotPropertyAvailable>
如果參數沒有使用則查詢條件有效。
<isNull>
如果參數爲NULL則查詢條件有效。
<isNotNull>
如果參數不爲NULL則查詢條件有效。
<isEmpty>
如果參數爲空則查詢條件有效。
<isNotEmpty>
如果參數不爲空則查詢條件有效。參數的數據類型爲Collection、String 時參數不爲NULL或“”。如下所示:
<isNotEmpty prepend=”AND” property=”firstName” >
FIRST_NAME=#firstName#
</isNotEmpty>
<isParameterPresent>
如果參數類不爲NULL則查詢條件有效。
<isNotParameterPresent>
Checks to see if the parameter object is not present (null). Example Usage:
<isNotParameterPresent prepend=”AND”>
EMPLOYEE_TYPE = ‘DEFAULT’
</isNotParameterPresent>