public enum Operator extends Enum<Operator>
| 查询方式 | 说明 |
|---|---|
| eq | 等于= |
| gt | 大于> |
| lt | 小于< |
| ge | 大于等于>= |
| le | 小于等于<= |
| notEq | 不等于<> |
| like | 模糊查询 |
| in | in()查询 |
| notIn | not in()查询 |
| 枚举常量和说明 |
|---|
eq
等于=
|
ge
大于等于>=
|
gt
大于>
|
in
in()查询
|
le
小于等于<=
|
like
模糊查询,两边模糊查询,like '%xx%'
|
likeLeft
左模糊查询,like '%xx'
|
likeRight
右模糊查询,like 'xx%'
|
lt
小于<
|
nil |
notEq
不等于<>
|
notIn
not in()查询
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getOperator()
返回操作符,=,>=,<...
|
static Operator |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Operator[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Operator eq
public static final Operator gt
public static final Operator lt
public static final Operator ge
public static final Operator le
public static final Operator notEq
public static final Operator in
public static final Operator notIn
public static final Operator like
public static final Operator likeLeft
public static final Operator likeRight
public static final Operator nil
public static Operator[] values()
for (Operator c : Operator.values()) System.out.println(c);
public static Operator valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getOperator()
Copyright © 2021. All Rights Reserved.