public abstract class Expression extends Object
Modifier and Type | Method and Description |
---|---|
Expression |
add(Expression expression)
Create an add expression to add the given expression to the current expression
|
static PropertyExpression |
all()
Creates a * expression to express all properties
|
Expression |
and(Expression expression)
Create a logical AND expression that performs logical AND operation with
the current expression.
|
Expression |
between(Expression expression1,
Expression expression2)
Create a between expression that evaluates whether or not the current expression is
between the given expressions inclusively.
|
static Expression |
booleanValue(boolean value)
Create value expression with given boolean value
|
Expression |
collate(Collation collation)
Creates a Collate expression with the given Collation specification.
|
static Expression |
date(Date value)
Create value expression with given Date value
|
Expression |
divide(Expression expression)
Create a divide expression to divide the current expression by the given expression.
|
static Expression |
doubleValue(double value)
Create value expression with given double value
|
Expression |
equalTo(Expression expression)
Create an equal to expression that evaluates whether or not the current expression
is equal to the given expression.
|
static Expression |
floatValue(float value)
Create value expression with given float value
|
Expression |
greaterThan(Expression expression)
Create a greater than expression that evaluates whether or not the current expression
is greater than the given expression.
|
Expression |
greaterThanOrEqualTo(Expression 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(Expression... expressions)
Create an IN expression that evaluates whether or not the current expression is in the
given expressions.
|
static Expression |
intValue(int value)
Create value expression with given integer value
|
Expression |
is(Expression expression)
Create an IS expression that evaluates whether or not the current expression is equal to
the given expression.
|
Expression |
isNot(Expression expression)
Create an IS NOT expression that evaluates whether or not the current expression is not
equal to the given expression.
|
Expression |
isNullOrMissing()
Creates an IS NULL OR MISSING expression that evaluates whether or not the current
expression is null or missing.
|
Expression |
lessThan(Expression expression)
Create a less than expression that evaluates whether or not the current expression
is less than the given expression.
|
Expression |
lessThanOrEqualTo(Expression 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(Expression expression)
Create a Like expression that evaluates whether or not the current expression is LIKE
the given expression.
|
static Expression |
longValue(long value)
Create value expression with given long value
|
Expression |
modulo(Expression expression)
Create a modulo expression to modulo the current expression by the given expression.
|
Expression |
multiply(Expression expression)
Create a multiply expression to multiply the current expression by the given expression.
|
static Expression |
negated(Expression expression)
Create a negated expression to represent the negated result of the given expression.
|
static Expression |
not(Expression expression)
Create a negated expression to represent the negated result of the given expression.
|
Expression |
notEqualTo(Expression expression)
Create a NOT equal to expression that evaluates whether or not the current expression
is not equal to the given expression.
|
Expression |
notNullOrMissing()
Creates an IS NOT NULL OR MISSING expression that evaluates whether or not the current
expression is NOT null or missing.
|
static Expression |
number(Number value)
Create value expression with given Number value
|
Expression |
or(Expression expression)
Create a logical OR expression that performs logical OR operation with
the current expression.
|
static Expression |
parameter(String name)
Creates a parameter expression with the given parameter name.
|
static PropertyExpression |
property(String property)
Create a property expression representing the value of the given property.
|
Expression |
regex(Expression expression)
Create a regex match expression that evaluates whether or not the current expression
regex matches the given expression.
|
static Expression |
string(String value)
Create value expression with given String value
|
Expression |
subtract(Expression expression)
Create a subtract expression to subtract the given expression from the current expression.
|
String |
toString() |
static Expression |
value(Object value)
Create value expression with given value
|
public static Expression value(Object value)
value
- the valuepublic static Expression string(String value)
value
- the String valuepublic static Expression number(Number value)
value
- the Number valuepublic static Expression intValue(int value)
value
- the integer valuepublic static Expression longValue(long value)
value
- the long valuepublic static Expression floatValue(float value)
value
- the float valuepublic static Expression doubleValue(double value)
value
- the double valuepublic static Expression booleanValue(boolean value)
value
- the boolean valuepublic static Expression date(Date value)
value
- the Date valuepublic static PropertyExpression all()
public static PropertyExpression property(String property)
property
- the name of the property in the form of a key path.public static Expression parameter(String name)
name
- The parameter namepublic static Expression negated(Expression expression)
expression
- the expression to be negated.public static Expression not(Expression expression)
expression
- the expression to be negated.public Expression multiply(Expression expression)
expression
- the expression to multiply by.public Expression divide(Expression expression)
expression
- the expression to divide by.public Expression modulo(Expression expression)
expression
- the expression to modulo by.public Expression add(Expression expression)
expression
- an expression to add to the current expression.public Expression subtract(Expression expression)
expression
- an expression to subtract from the current expression.public Expression lessThan(Expression expression)
expression
- the expression to compare with the current expression.public Expression lessThanOrEqualTo(Expression expression)
expression
- the expression to compare with the current expression.public Expression greaterThan(Expression expression)
expression
- the expression to compare with the current expression.public Expression greaterThanOrEqualTo(Expression expression)
expression
- the expression to compare with the current expression.public Expression equalTo(Expression expression)
expression
- the expression to compare with the current expression.public Expression notEqualTo(Expression expression)
expression
- the expression to compare with the current expression.public Expression and(Expression expression)
expression
- the expression to AND with the current expression.public Expression or(Expression expression)
expression
- the expression to OR with the current expression.public Expression like(Expression expression)
expression
- the expression to compare with the current expression.public Expression regex(Expression expression)
expression
- the expression to compare with the current expression.public Expression is(Expression expression)
expression
- the expression to compare with the current expression.public Expression isNot(Expression expression)
expression
- the expression to compare with the current expression.public Expression between(Expression expression1, Expression expression2)
expression1
- the inclusive lower bound expression.expression2
- the inclusive upper bound expression.public Expression isNullOrMissing()
public Expression notNullOrMissing()
public Expression collate(Collation collation)
collation
- The collation object.public Expression in(Expression... expressions)
expressions
- the expression array to evaluate with.