public abstract class Expression extends Object
| Constructor and Description |
|---|
Expression() |
| Modifier and Type | Method and Description |
|---|---|
Expression |
add(Object expression)
Create an add expression to add the given expression to the current expression
|
Expression |
and(Object expression)
Create a logical AND expression that performs logical AND operation with
the current expression.
|
protected abstract Object |
asJSON() |
Expression |
between(Object expression1,
Object expression2)
Create a between expression that evaluates whether or not the current expression is
between the given expressions inclusively.
|
Expression |
concat(Object expression)
Create a concat expression to concatenate the current expression with the given expression.
|
Expression |
divide(Object expression)
Create a divide expression to divide the current expression by the given expression.
|
Expression |
equalTo(Object expression)
Create an equal to expression that evaluates whether or not the current expression
is equal to the given expression.
|
Expression |
greaterThan(Object expression)
Create a greater than expression that evaluates whether or not the current expression
is greater than the given expression.
|
Expression |
greaterThanOrEqualTo(Object expression)
Create a greater than or equal to expression that evaluates whether or not the current
expression is greater than or equal to the given expression.
|
Expression |
in(Object... expressions)
Create an IN expression that evaluates whether or not the current expression is in the
given expressions.
|
Expression |
is(Object expression)
Create an IS expression that evaluates whether or not the current expression is equal to
the given expression.
|
Expression |
isNot(Object expression)
Create an IS NOT expression that evaluates whether or not the current expression is not
equal to the given expression.
|
Expression |
isNull()
Create an IS NULL expression that evaluates whether or not the current expression is null.
|
Expression |
lessThan(Object expression)
Create a less than expression that evaluates whether or not the current expression
is less than the given expression.
|
Expression |
lessThanOrEqualTo(Object expression)
Create a less than or equal to expression that evaluates whether or not the current
expression is less than or equal to the given expression.
|
Expression |
like(Object expression)
Create a Like expression that evaluates whether or not the current expression is LIKE
the given expression.
|
Expression |
match(Object expression)
Create a full text match expression that evaluates whether or not the current expression
full text matches the given expression.
|
Expression |
modulo(Object expression)
Create a modulo expression to modulo the current expression by the given expression.
|
Expression |
multiply(Object expression)
Create a multiply expression to multiply the current expression by the given expression.
|
static Expression |
negated(Object expression)
Create a negated expression to represent the negated result of the given expression.
|
static Expression |
not(Object expression)
Create a negated expression to represent the negated result of the given expression.
|
Expression |
notBetween(Object expression1,
Object expression2)
Create a NOT between expression that evaluates whether or not the current expression is
not between the given expressions.
|
Expression |
notEqualTo(Object expression)
Create a NOT equal to expression that evaluates whether or not the current expression
is not equal to the given expression.
|
Expression |
notGreaterThan(Object expression)
Create a NOT greater than expression that evaluates whether or not the current expression
is not greater than the given expression.
|
Expression |
notGreaterThanOrEqualTo(Object expression)
Create a NOT greater than or equal to expression that evaluates whether or not the current
expression is not greater than or equal to the given expression.
|
Expression |
notIn(Object... expressions)
Create a NOT IN expression that evaluates whether or not the current expression is not
in the given expressions.
|
Expression |
notLessThan(Object expression)
Create a NOT less than expression that evaluates whether or not the current expression
is not less than the given expression.
|
Expression |
notLessThanOrEqualTo(Object expression)
Create a NOT less than or equal to expression that evaluates whether or not the current
expression is not less than or equal to the given expression.
|
Expression |
notLike(Object expression)
Create a NOT Like expression that evaluates whether or not the current expression is NOT LIKE
the given expression.
|
Expression |
notMatch(Object expression)
Create a full text NOT match expression that evaluates whether or not the current expression
doesn't full text match the given expression.
|
Expression |
notNull()
Create an IS NOT NULL expression that evaluates whether or not the current expression is
not null.
|
Expression |
notRegex(Object expression)
Create a NOT regex match expression that evaluates whether or not the current expression
not regex matches the given expression.
|
Expression |
or(Object expression)
Create a logical OR expression that performs logical OR operation with
the current expression.
|
static Expression |
property(String property)
Create a property expression representing the value of the given property.
|
Expression |
regex(Object expression)
Create a regex match expression that evaluates whether or not the current expression
regex matches the given expression.
|
Expression |
subtract(Object expression)
Create a subtract expression to subtract the given expression from the current expression.
|
public static Expression property(String property)
property - the name of the property in the form of a key path.public static Expression negated(Object expression)
expression - the expression to be negated.public static Expression not(Object expression)
expression - the expression to be negated.public Expression concat(Object expression)
expression - the expression to concatenate with.public Expression multiply(Object expression)
expression - the expression to multiply by.public Expression divide(Object expression)
expression - the expression to divide by.public Expression modulo(Object expression)
expression - the expression to modulo by.public Expression add(Object expression)
expression - an expression to add to the current expression.public Expression subtract(Object expression)
expression - an expression to subtract from the current expression.public Expression lessThan(Object expression)
expression - the expression to compare with the current expression.public Expression notLessThan(Object expression)
expression - the expression to compare with the current expression.public Expression lessThanOrEqualTo(Object expression)
expression - the expression to compare with the current expression.public Expression notLessThanOrEqualTo(Object expression)
expression - the expression to compare with the current expression.public Expression greaterThan(Object expression)
expression - the expression to compare with the current expression.public Expression notGreaterThan(Object expression)
expression - the expression to compare with the current expression.public Expression greaterThanOrEqualTo(Object expression)
expression - the expression to compare with the current expression.public Expression notGreaterThanOrEqualTo(Object expression)
expression - the expression to compare with the current expression.public Expression equalTo(Object expression)
expression - the expression to compare with the current expression.public Expression notEqualTo(Object expression)
expression - the expression to compare with the current expression.public Expression and(Object expression)
expression - the expression to AND with the current expression.public Expression or(Object expression)
expression - the expression to OR with the current expression.public Expression like(Object expression)
expression - the expression to compare with the current expression.public Expression notLike(Object expression)
expression - the expression to compare with the current expression.public Expression regex(Object expression)
expression - the expression to compare with the current expression.public Expression notRegex(Object expression)
expression - the expression to compare with the current expression.public Expression match(Object expression)
expression - the expression to compare with the current expression.public Expression notMatch(Object expression)
expression - the expression to compare with the current expression.public Expression isNull()
public Expression notNull()
public Expression is(Object expression)
expression - the expression to compare with the current expression.public Expression isNot(Object expression)
expression - the expression to compare with the current expression.public Expression between(Object expression1, Object expression2)
expression1 - the inclusive lower bound expression.expression2 - the inclusive upper bound expression.public Expression notBetween(Object expression1, Object expression2)
expression1 - the lower bound expression.expression2 - the upper bound expression.public Expression in(Object... expressions)
expressions - the expression array to evaluate with.public Expression notIn(Object... expressions)
expressions - the expression array to evaluate with.protected abstract Object asJSON()