public abstract class AbstractCompareCriteria extends PredicateCriteria implements PredicateCriteria.Negatable
The common functionality of a CompareCriteria
and a
SubqueryCompareCriteria
. The comparison operators are defined
here.
PredicateCriteria.Negatable
LanguageObject.Util
Modifier and Type | Field and Description |
---|---|
static int |
EQ
Constant indicating the two operands are equal.
|
static int |
GE
Constant indicating the first operand is greater than or equal to the second.
|
static int |
GT
Constant indicating the first operand is greater than the second.
|
static int |
LE
Constant indicating the first operand is less than or equal to the second.
|
static int |
LT
Constant indicating the first operand is less than the second.
|
static int |
NE
Constant indicating the two operands are not equal.
|
Constructor and Description |
---|
AbstractCompareCriteria() |
Modifier and Type | Method and Description |
---|---|
static int |
getInverseOperator(int op) |
Expression |
getLeftExpression()
Get left expression.
|
int |
getOperator()
Returns the operator.
|
static int |
getOperator(String op)
Gets the operator constant given the string version
|
String |
getOperatorAsString()
Returns the operator as a string.
|
void |
negate() |
void |
setLeftExpression(Expression expression)
Set left expression.
|
void |
setOperator(int operator)
Sets the operator.
|
clone
applyDemorgan, combineCriteria, combineCriteria, combineCriteria, getType, separateCriteriaByAnd, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
acceptVisitor
public static final int EQ
public static final int NE
public static final int LT
public static final int GT
public static final int LE
public static final int GE
public int getOperator()
public void setOperator(int operator)
operator
- public static int getOperator(String op)
op
- Operator, string formpublic void setLeftExpression(Expression expression)
expression
- Left expressionpublic Expression getLeftExpression()
public String getOperatorAsString()
public void negate()
negate
in interface PredicateCriteria.Negatable
public static int getInverseOperator(int op)
Copyright © 2019. All rights reserved.