查询条件
使用例子如下
new Condition("std.id=?",new Long(2)); 或者 Condition("std.id=:std_id",new Long(2)); ?绑定单值.命名参数允许绑定多值.但是只能由字母,数组和下划线组成 一组condition只能采取上面一种形式
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Any implementation of this method should be an equivalence relation:
- It is reflexive: for any instance
x
of typeAny
,x.equals(x)
should returntrue
. - It is symmetric: for any instances
x
andy
of typeAny
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any instances
x
,y
, andz
of typeAny
ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
.
If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode
to ensure that objects which are "equal" (o1.equals(o2)
returns true
) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)
).
Value parameters
- that
-
the object to compare against this object for equality.
Attributes
- Returns
-
true
if the receiver object is equivalent to the argument;false
otherwise. - Definition Classes
-
Any
hashCode
hashCode
Attributes
- Returns
-
a int.
- Definition Classes
-
Any
是否是包含命名参数
是否是包含命名参数
Attributes
- Returns
-
a boolean.
添加参数
添加参数
Value parameters
- value
-
a { @link java.lang.Object} object.
Attributes
- Returns
-
a { @link org.beangle.data.dao.query.builder.Condition} object.
得到查询条件中所有的命名参数.
得到查询条件中所有的命名参数.
Attributes
添加多个参数 params.
添加多个参数 params.
Attributes
toString
toString
Attributes
- Returns
-
a String object.
- See also
-
java.lang.Object#toString()
- Definition Classes
-
Any