public class Filters extends Object
Modifier and Type | Method and Description |
---|---|
static Filter |
between(String field,
Date lower,
Date upper)
Returns a filter that checks if a given field value is between two values defined by expressions.
|
static Filter |
between(String field,
Date lower,
Date upper)
Returns a filter that checks if a given field value is between two values defined by expressions.
|
static Filter |
between(String field,
double lower,
double upper)
Returns a filter that checks if a given field value is between two values defined by expressions.
|
static Filter |
between(String field,
Expression lower,
Expression upper)
Returns a filter that checks if a given field value is between two values defined by expressions.
|
static Filter |
between(String field,
int lower,
int upper)
Returns a filter that checks if a given field value is between two values defined by expressions.
|
static Filter |
between(String field,
long lower,
long upper)
Returns a filter that checks if a given field value is between two values defined by expressions.
|
static Filter |
between(String field,
String lower,
String upper)
Returns a filter that checks if a given field value is between two values defined by expressions.
|
static Filter |
between(String field,
Time lower,
Time upper)
Returns a filter that checks if a given field value is between two values defined by expressions.
|
static Filter |
eq(Expression exp1,
Expression exp2)
Returns a filter that checks if two expressions are equals.
|
static Filter |
eq(String field,
boolean expression)
Return a filter that checks if the field value is equal to an expression.
|
static Filter |
eq(String field,
Date expression)
Return a filter that checks if the field value is equal to an expression.
|
static Filter |
eq(String field,
Date expression)
Return a filter that checks if the field value is equal to an expression.
|
static Filter |
eq(String field,
double expression)
Return a filter that checks if the field value is equal to an expression.
|
static Filter |
eq(String field,
Expression expression)
Return a filter that checks if the field value is equal to an expression.
|
static Filter |
eq(String field,
int expression)
Return a filter that checks if the field value is equal to an expression.
|
static Filter |
eq(String field,
long expression)
Return a filter that checks if the field value is equal to an expression.
|
static Filter |
eq(String field,
String expression)
Return a filter that checks if the field value is equal to an expression.
|
static Filter |
eq(String field,
Time expression)
Return a filter that checks if the field value is equal to an expression.
|
static Filter |
ge(Expression exp1,
Expression exp2)
Returns a filter that checks if a expression is greater or equal to another.
|
static Filter |
ge(String field,
Date expression)
Return a filter that checks if the field value is greater or equal to an expression.
|
static Filter |
ge(String field,
Date expression)
Return a filter that checks if the field value is greater or equal to an expression.
|
static Filter |
ge(String field,
double expression)
Return a filter that checks if the field value is greater or equal to an expression.
|
static Filter |
ge(String field,
Expression expression)
Return a filter that checks if the field value is greater or equal to an expression.
|
static Filter |
ge(String field,
int expression)
Return a filter that checks if the field value is greater or equal to an expression.
|
static Filter |
ge(String field,
long expression)
Return a filter that checks if the field value is greater or equal to an expression.
|
static Filter |
ge(String field,
String expression)
Return a filter that checks if the field value is greater or equal to an expression.
|
static Filter |
ge(String field,
Time expression)
Return a filter that checks if the field value is greater or equal to an expression.
|
static Filter |
gt(Expression exp1,
Expression exp2)
Returns a filter that checks if a expression is greater than another.
|
static Filter |
gt(String field,
Date expression)
Return a filter that checks if the field value is greater than an expression.
|
static Filter |
gt(String field,
Date expression)
Return a filter that checks if the field value is greater than an expression.
|
static Filter |
gt(String field,
double expression)
Return a filter that checks if the field value is greater than an expression.
|
static Filter |
gt(String field,
Expression expression)
Return a filter that checks if the field value is greater than an expression.
|
static Filter |
gt(String field,
int expression)
Return a filter that checks if the field value is greater than an expression.
|
static Filter |
gt(String field,
long expression)
Return a filter that checks if the field value is greater than an expression.
|
static Filter |
gt(String field,
String expression)
Return a filter that checks if the field value is greater than an expression.
|
static Filter |
gt(String field,
Time expression)
Return a filter that checks if the field value is greater than an expression.
|
static Filter |
in(String field,
List<Constant> values)
Return a filter that checks if the field value is contained in a given constant list.
|
static Filter |
le(Expression exp1,
Expression exp2)
Returns a filter that checks if a expression is lower or equal to another.
|
static Filter |
le(String field,
Date expression)
Return a filter that checks if the field value is lower or equal to an expression.
|
static Filter |
le(String field,
Date expression)
Return a filter that checks if the field value is lower or equal to an expression.
|
static Filter |
le(String field,
double expression)
Return a filter that checks if the field value is lower or equal to an expression.
|
static Filter |
le(String field,
Expression expression)
Return a filter that checks if the field value is lower or equal to an expression.
|
static Filter |
le(String field,
int expression)
Return a filter that checks if the field value is lower or equal to an expression.
|
static Filter |
le(String field,
long expression)
Return a filter that checks if the field value is lower or equal to an expression.
|
static Filter |
le(String field,
String expression)
Return a filter that checks if the field value is lower or equal to an expression.
|
static Filter |
le(String field,
Time expression)
Return a filter that checks if the field value is lower or equal to an expression.
|
static Filter |
like(String field,
Expression expression)
Returns a filter that makes a like comparison between a field an a regexp defined by an expression.
|
static Filter |
like(String field,
String expression)
Returns a filter that makes a like comparison between a field an a regexp defined by an expression.
|
static Filter |
lt(Expression exp1,
Expression exp2)
Returns a filter that checks if a expression is lower than another.
|
static Filter |
lt(String field,
Date expression)
Return a filter that checks if the field value is lower than an expression.
|
static Filter |
lt(String field,
Date expression)
Return a filter that checks if the field value is lower than an expression.
|
static Filter |
lt(String field,
double expression)
Return a filter that checks if the field value is lower than an expression.
|
static Filter |
lt(String field,
Expression expression)
Return a filter that checks if the field value is lower than an expression.
|
static Filter |
lt(String field,
int expression)
Return a filter that checks if the field value is lower than an expression.
|
static Filter |
lt(String field,
long expression)
Return a filter that checks if the field value is lower than an expression.
|
static Filter |
lt(String field,
String expression)
Return a filter that checks if the field value is lower than an expression.
|
static Filter |
lt(String field,
Time expression)
Return a filter that checks if the field value is lower than an expression.
|
static Filter |
ne(Expression exp1,
Expression exp2)
Returns a filter that checks if two expressions are not equals.
|
static Filter |
ne(String field,
Date expression)
Return a filter that checks if the field value is not equal to an expression.
|
static Filter |
ne(String field,
Date expression)
Return a filter that checks if the field value is not equal to an expression.
|
static Filter |
ne(String field,
double expression)
Return a filter that checks if the field value is not equal to an expression.
|
static Filter |
ne(String field,
Expression expression)
Return a filter that checks if the field value is not equal to an expression.
|
static Filter |
ne(String field,
int expression)
Return a filter that checks if the field value is not equal to an expression.
|
static Filter |
ne(String field,
long expression)
Return a filter that checks if the field value is not equal to an expression.
|
static Filter |
ne(String field,
String expression)
Return a filter that checks if the field value is not equal to an expression.
|
static Filter |
ne(String field,
Time expression)
Return a filter that checks if the field value is not equal to an expression.
|
static Filter |
nullValue(String field)
Returns a filter that checks if a field value is null.
|
static Filter |
startsWith(String field,
Expression expression)
Returns a filter that checks if a field starts with a given prefix, defined by an expression.
|
static Filter |
startsWith(String field,
String expression)
Returns a filter that checks if a field starts with a given prefix, defined by an expression.
|
public static Filter eq(String field, Expression expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter eq(String field, String expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter eq(String field, double expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter eq(String field, int expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter eq(String field, long expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter eq(String field, Time expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter eq(String field, Date expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter eq(String field, Date expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter eq(String field, boolean expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter in(String field, List<Constant> values)
field
- Name of the field to be compared.values
- List of constants to search in.public static Filter ne(String field, Expression expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter ne(String field, String expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter ne(String field, double expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter ne(String field, int expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter ne(String field, long expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter ne(String field, Time expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter ne(String field, Date expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter ne(String field, Date expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter gt(String field, Expression expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter gt(String field, String expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter gt(String field, double expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter gt(String field, int expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter gt(String field, long expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter gt(String field, Time expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter gt(String field, Date expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter gt(String field, Date expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter ge(String field, Expression expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter ge(String field, String expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter ge(String field, double expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter ge(String field, int expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter ge(String field, long expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter ge(String field, Time expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter ge(String field, Date expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter ge(String field, Date expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter lt(String field, Expression expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter lt(String field, String expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter lt(String field, double expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter lt(String field, int expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter lt(String field, long expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter lt(String field, Time expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter lt(String field, Date expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter lt(String field, Date expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter le(String field, Expression expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter le(String field, String expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter le(String field, double expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter le(String field, int expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter le(String field, long expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter le(String field, Time expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter le(String field, Date expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter le(String field, Date expression)
field
- Name of the field to be compared.expression
- Expression to compare topublic static Filter eq(Expression exp1, Expression exp2)
exp1
- First expression to be comparedexp2
- Second expression to be comparedpublic static Filter ne(Expression exp1, Expression exp2)
exp1
- First expression to be comparedexp2
- Second expression to be comparedpublic static Filter gt(Expression exp1, Expression exp2)
exp1
- First expression to be comparedexp2
- Second expression to be comparedpublic static Filter ge(Expression exp1, Expression exp2)
exp1
- First expression to be comparedexp2
- Second expression to be comparedpublic static Filter lt(Expression exp1, Expression exp2)
exp1
- First expression to be comparedexp2
- Second expression to be comparedpublic static Filter le(Expression exp1, Expression exp2)
exp1
- First expression to be comparedexp2
- Second expression to be comparedpublic static Filter between(String field, Expression lower, Expression upper)
field
- Name of the field to be compared.lower
- Expression that defined the lower boundaryupper
- Expression that defined the upper boundarypublic static Filter between(String field, String lower, String upper)
field
- Name of the field to be compared.lower
- Expression that defined the lower boundaryupper
- Expression that defined the upper boundarypublic static Filter between(String field, double lower, double upper)
field
- Name of the field to be compared.lower
- Expression that defined the lower boundaryupper
- Expression that defined the upper boundarypublic static Filter between(String field, int lower, int upper)
field
- Name of the field to be compared.lower
- Expression that defined the lower boundaryupper
- Expression that defined the upper boundarypublic static Filter between(String field, long lower, long upper)
field
- Name of the field to be compared.lower
- Expression that defined the lower boundaryupper
- Expression that defined the upper boundarypublic static Filter between(String field, Date lower, Date upper)
field
- Name of the field to be compared.lower
- Expression that defined the lower boundaryupper
- Expression that defined the upper boundarypublic static Filter between(String field, Time lower, Time upper)
field
- Name of the field to be compared.lower
- Expression that defined the lower boundaryupper
- Expression that defined the upper boundarypublic static Filter between(String field, Date lower, Date upper)
field
- Name of the field to be compared.lower
- Expression that defined the lower boundaryupper
- Expression that defined the upper boundarypublic static Filter like(String field, Expression expression)
field
- Name of the field to be compared.expression
- String expression which defines the regexp to be used.public static Filter like(String field, String expression)
field
- Name of the field to be compared.expression
- String expression which defines the regexp to be used.public static Filter startsWith(String field, Expression expression)
field
- Name of the field to be compared.expression
- A String expression which contains a prefix to be checkedpublic static Filter startsWith(String field, String expression)
field
- Name of the field to be compared.expression
- A String expression which contains a prefix to be checkedCopyright © 2020. All rights reserved.