public enum ExpressionType extends Enum<ExpressionType>
Enum Constant and Description |
---|
SQL92
消息属性过滤,采用简单的SQL语法。
|
TAG
消息标签过滤,只支持或运算,eg: "tag1 || tag2 || tag3"
|
Modifier and Type | Method and Description |
---|---|
static ExpressionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExpressionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExpressionType SQL92
AND, OR, NOT, BETWEEN, IN, TRUE, FALSE, IS, NULL
AND, OR
>, >=, <, <=, =
BETWEEN A AND B
, 等价于 >=A AND <=B
NOT BETWEEN A AND B
, 等价于 >B OR <A
IN ('a', 'b')
, 等价于 ='a' OR ='b'
, 只支持String类型.IS NULL
, IS NOT NULL
, 检查属性是否为NUll.=TRUE
, =FALSE
, 检查属性为真或假.
如:
(a > 10 AND a < 100) OR (b IS NOT NULL AND b=TRUE)
表示需要属性a大于10并且a小于100,或者需要属性b不为空并且为真的消息
public static final ExpressionType TAG
public static ExpressionType[] values()
for (ExpressionType c : ExpressionType.values()) System.out.println(c);
public static ExpressionType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2012–2020. All rights reserved.