public abstract class Expression extends Object
Constructor and Description |
---|
Expression() |
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 |
list(List<Object> value)
Create value expression with the given list.
|
static Expression |
longValue(long value)
Create value expression with given long value
|
static Expression |
map(Map<String,Object> value)
Creates value expression with the given map.
|
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
|
@NonNull public static Expression value(@Nullable Object value)
value
- the value@NonNull public static Expression string(@Nullable String value)
value
- the String value@NonNull public static Expression number(@Nullable Number value)
value
- the Number value@NonNull public static Expression intValue(int value)
value
- the integer value@NonNull public static Expression longValue(long value)
value
- the long value@NonNull public static Expression floatValue(float value)
value
- the float value@NonNull public static Expression doubleValue(double value)
value
- the double value@NonNull public static Expression booleanValue(boolean value)
value
- the boolean value@NonNull public static Expression date(@Nullable Date value)
value
- the Date value@NonNull public static Expression map(@Nullable Map<String,Object> value)
value
- the map value@NonNull public static Expression list(@Nullable List<Object> value)
value
- the list value.@NonNull public static PropertyExpression all()
@NonNull public static PropertyExpression property(@NonNull String property)
property
- the name of the property in the form of a key path.@NonNull public static Expression parameter(@NonNull String name)
name
- The parameter name@NonNull public static Expression negated(@NonNull Expression expression)
expression
- the expression to be negated.@NonNull public static Expression not(@NonNull Expression expression)
expression
- the expression to be negated.@NonNull public Expression multiply(@NonNull Expression expression)
expression
- the expression to multiply by.@NonNull public Expression divide(@NonNull Expression expression)
expression
- the expression to divide by.@NonNull public Expression modulo(@NonNull Expression expression)
expression
- the expression to modulo by.@NonNull public Expression add(@NonNull Expression expression)
expression
- an expression to add to the current expression.@NonNull public Expression subtract(@NonNull Expression expression)
expression
- an expression to subtract from the current expression.@NonNull public Expression lessThan(@NonNull Expression expression)
expression
- the expression to compare with the current expression.@NonNull public Expression lessThanOrEqualTo(@NonNull Expression expression)
expression
- the expression to compare with the current expression.@NonNull public Expression greaterThan(@NonNull Expression expression)
expression
- the expression to compare with the current expression.@NonNull public Expression greaterThanOrEqualTo(@NonNull Expression expression)
expression
- the expression to compare with the current expression.@NonNull public Expression equalTo(@NonNull Expression expression)
expression
- the expression to compare with the current expression.@NonNull public Expression notEqualTo(@NonNull Expression expression)
expression
- the expression to compare with the current expression.@NonNull public Expression and(@NonNull Expression expression)
expression
- the expression to AND with the current expression.@NonNull public Expression or(@NonNull Expression expression)
expression
- the expression to OR with the current expression.@NonNull public Expression like(@NonNull Expression expression)
expression
- the expression to compare with the current expression.@NonNull public Expression regex(@NonNull Expression expression)
expression
- the expression to compare with the current expression.@NonNull public Expression is(@NonNull Expression expression)
expression
- the expression to compare with the current expression.@NonNull public Expression isNot(@NonNull Expression expression)
expression
- the expression to compare with the current expression.@NonNull public Expression between(@NonNull Expression expression1, @NonNull Expression expression2)
expression1
- the inclusive lower bound expression.expression2
- the inclusive upper bound expression.@NonNull public Expression isNullOrMissing()
@NonNull public Expression notNullOrMissing()
@NonNull public Expression collate(@NonNull Collation collation)
collation
- The collation object.@NonNull public Expression in(@NonNull Expression... expressions)
expressions
- the expression array to evaluate with.