- 4.3.3.2.1 概要
- 4.3.3.2.2 between(PredicateOperand, PredicateOperand)
- 4.3.3.2.3 等于(谓词操作数)
- 4.3.3.2.4 greaterEqual(PredicateOperand)
- 4.3.3.2.5 大于(谓词操作数)
- 4.3.3.2.6 in(PredicateOperand)
- 4.3.3.2.7 isNotNull()
- 4.3.3.2.8 isNull()
- 4.3.3.2.9 lessEqual(PredicateOperand)
- 4.3.3.2.10 小于(谓词操作数)
- 4.3.3.2.11 like(谓词操作数)
PredicateOperand 表示可以与另一个进行比较的列或参数
public interface PredicateOperand {
// 公共方法}public abstract Predicate between(PredicateOperand lower,
PredicateOperand upper);public abstract Predicate equal(PredicateOperand other);
public abstract Predicate greaterEqual(PredicateOperand other);
public abstract Predicate greaterThan(PredicateOperand other);
public abstract Predicate in(PredicateOperand other);
public abstract Predicate isNotNull();
public abstract Predicate isNull();
public abstract Predicate lessEqual(PredicateOperand other);
public abstract Predicate lessThan(PredicateOperand other);
public abstract Predicate like(PredicateOperand other);
public abstract Predicate between(PredicateOperand lower,
PredicateOperand upper);
返回表示使用“介于”语义将此与另一个进行比较的谓词。
表 4.101 between(PredicateOperand, PredicateOperand)
范围 | 描述 |
---|---|
降低 | 另一个 PredicateOperand |
上 | 另一个 PredicateOperand |
返回 | 一个新的谓词 |
public abstract Predicate equal(PredicateOperand other);
返回表示使用“等于”语义将此与另一个进行比较的谓词。
public abstract Predicate greaterEqual(PredicateOperand other);
Return a Predicate representing comparing this to another using "greater than or equal to" semantics.
Table 4.103 greaterEqual(PredicateOperand)
Parameter | Description |
---|---|
other | the other PredicateOperand |
return | a new Predicate |
public abstract Predicate greaterThan(PredicateOperand other);
Return a Predicate representing comparing this to another using "greater than" semantics.
Table 4.104 greaterThan(PredicateOperand)
Parameter | Description |
---|---|
other | the other PredicateOperand |
return | a new Predicate |
public abstract Predicate in(PredicateOperand other);
Return a Predicate representing comparing this to a collection of values using "in" semantics.
Table 4.105 in(PredicateOperand)
Parameter | Description |
---|---|
other | another PredicateOperand |
return | a new Predicate |
public abstract Predicate isNotNull();
Return a Predicate representing comparing this to not null.
public abstract Predicate isNull();
Return a Predicate representing comparing this to null.
public abstract Predicate lessEqual(PredicateOperand other);
Return a Predicate representing comparing this to another using "less than or equal to" semantics.
Table 4.108 lessEqual(PredicateOperand)
Parameter | Description |
---|---|
other | the other PredicateOperand |
return | a new Predicate |