4.3.3.2 谓词操作数

PredicateOperand 表示可以与另一个进行比较的列或参数

4.3.3.2.1 概要
 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);
4.3.3.2.2 between(PredicateOperand, PredicateOperand)
public abstract Predicate between(PredicateOperand lower,
                                  PredicateOperand upper);

返回表示使用“介于”语义将此与另一个进行比较的谓词。

表 4.101 between(PredicateOperand, PredicateOperand)

范围 描述
降低 另一个 PredicateOperand
另一个 PredicateOperand
返回 一个新的谓词

4.3.3.2.3 等于(谓词操作数)
public abstract Predicate equal(PredicateOperand other);

返回表示使用“等于”语义将此与另一个进行比较的谓词。

表 4.102 equal(PredicateOperand)

范围 描述
其他 另一个 PredicateOperand
返回 一个新的谓词

4.3.3.2.4 greaterEqual(PredicateOperand)
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

4.3.3.2.5 greaterThan(PredicateOperand)
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

4.3.3.2.6 in(PredicateOperand)
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

4.3.3.2.7 isNotNull()
public abstract Predicate isNotNull();

Return a Predicate representing comparing this to not null.

Table 4.106 isNotNull()

Parameter Description
return a new Predicate

4.3.3.2.8 isNull()
public abstract Predicate isNull();

Return a Predicate representing comparing this to null.

Table 4.107 isNull()

Parameter Description
return a new Predicate

4.3.3.2.9 lessEqual(PredicateOperand)
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

4.3.3.2.10 lessThan(PredicateOperand)
public abstract Predicate lessThan(PredicateOperand other);

Return a Predicate representing comparing this to another using "less than" semantics.

Table 4.109 lessThan(PredicateOperand)

Parameter Description
other the other PredicateOperand
return a new Predicate

4.3.3.2.11 like(PredicateOperand)
public abstract Predicate like(PredicateOperand other);

Return a Predicate representing comparing this to another using "like" semantics.

Table 4.110 like(PredicateOperand)

Parameter Description
other another PredicateOperand
return a new Predicate