ibatis map标签记录
Table Binary conditional attributes
Element |
Description |
<isEqual> |
Checks the equality of a property and a value, or another property. Example Usage: <isEqual prepend="AND" |
<isNotEqual> |
Checks the inequality of a property and a value, or another property. Example Usage: <isNotEqual prepend="AND" |
<isGreaterThan> |
Checks if a property is greater than a value or another property. Example Usage: <isGreaterThan prepend="AND" |
<isGreaterEqual> |
Checks if a property is greater than or equal to a value or another property. Example Usage: <isGreaterEqual prepend="AND" |
<isLessEqual> |
Checks if a property is less than or equal to a value or another property. Example Usage: <isLessEqual prepend="AND" |
Table?.8.Bnary conditional attributes
Element |
Description |
<isPropertyAvailable> |
Checks if a property is available (i.e is a property of the parameter object). Example Usage: <isPropertyAvailable property="id" > |
<isNotPropertyAvailable> |
Checks if a property is unavailable (i.e not a property of the parameter object). Example Usage: <isNotPropertyAvailable property="age" > |
<isNull> |
Checks if a property is null. Example Usage: <isNull prepend="AND" property="order.id" > |
<isNotNull> |
Checks if a property is not null. Example Usage: <isNotNull prepend="AND" property="order.id" > |
<isEmpty> |
Checks to see if the value of a Collection, String property is null or empty ("" or size() < 1). Example Usage: <isEmpty property="firstName" > |
<isNotEmpty> |
Checks to see if the value of a Collection, String property is not null and not empty ("" or size() < 1). Example Usage: <isNotEmpty prepend="AND" property="firstName" > |
Element |
Description |
<isParameterPresent> |
Checks to see if the parameter object is present (not null). <isParameterPresent prepend="AND"> |
<isNotParameterPresent> |
Checks to see if the parameter object is not present (null). Example Usage: <isNotParameterPresent prepend="AND"> |
Table?.10.Creating a list of conditional clauses
Element |
Description |
<iterate> |
Iterates over a property that is of type IList Example Usage: <iterate prepend="AND" property="UserNameList" Note: It is very important to include the square brackets[] at the end of the List property name when using the Iterate element. These brackets distinguish this object as an List to keep the parser from simply outputting the List as a string. |
Tag标签: ibatis
从 <http://www.cnblogs.com/jifsu/archive/2010/03/01/1675342.html> 插入