public static final class GenericQuery.GenericBuilder.FilterOpLiteral
extends java.lang.Object
This class is available as a preview of functionality that will be added to the supported public API in a future release. While it is in the preview phase, it is subject to change or removal without deprecation or notice. Although notice of change is not guaranteed, we will try to let developers know of major changes through announcements in release notes.
This class encapsulates the available filters and allows to specify an specific value to filter by.
Constructor and Description |
---|
FilterOpLiteral() |
Modifier and Type | Method and Description |
---|---|
static Criteria |
between(java.lang.String c,
java.lang.Object lowBound,
java.lang.Object highBound)
Apply an "in bound between" constraint to the given column or alias.
|
static Filter<java.lang.Object> |
endsWith(java.lang.String c,
java.lang.String sufix)
Apply a "ends with" constraint to the given column or alias
Checks if ends with the given suffix.
|
static Filter<java.lang.Object> |
eq(java.lang.String c,
java.lang.Object v)
Apply an equality constraint to the given column or alias
|
static Filter<java.lang.Object> |
equal(java.lang.String c,
java.lang.Object v)
Apply an equality constraint to the given column or alias
|
static Filter<java.lang.Object> |
filter(java.lang.String c,
FilterOperator fo,
java.lang.Object v)
Creates a
GenericFilter instance with the given values. |
static Filter<java.lang.Object> |
greaterThan(java.lang.String c,
java.lang.Object v)
Apply a "greater than" constraint to the given column or alias
|
static Filter<java.lang.Object> |
greaterThanOrEqual(java.lang.String c,
java.lang.Object v)
Apply a "greater than or equal" constraint to the given column or alias
|
static Filter<java.lang.Object> |
gt(java.lang.String c,
java.lang.Object v)
Apply a "greater than" constraint to the given column or alias
|
static Filter<java.lang.Object> |
gte(java.lang.String c,
java.lang.Object v)
Apply a "greater than or equal" constraint to the given column or alias
|
static Filter<java.lang.Object> |
in(java.lang.String c,
java.util.Collection<?> values)
Apply an "in" constraint to the given column or alias
|
static Filter<java.lang.Object> |
in(java.lang.String c,
java.lang.Object v)
Apply an "in" constraint to the given column or alias
|
static <T> Filter<java.lang.Object> |
in(java.lang.String c,
T... values)
Apply an "in" constraint to the given column or alias
|
static Filter<java.lang.Object> |
includes(java.lang.String c,
java.lang.String infix)
Apply a "includes" constraint to the given column or alias
Checks if it contains the given substring.
|
static Filter<java.lang.Object> |
isNull(java.lang.String c)
Apply an "is null" constraint to the given column or alias
|
static Filter<java.lang.Object> |
lessThan(java.lang.String c,
java.lang.Object v)
Apply a "less than" constraint to the given column or alias
|
static Filter<java.lang.Object> |
lessThanOrEqual(java.lang.String c,
java.lang.Object v)
Apply a "less than or equal" constraint to the given column or alias
|
static Filter<java.lang.Object> |
lt(java.lang.String c,
java.lang.Object v)
Apply a "less than" constraint to the given column or alias
|
static Filter<java.lang.Object> |
lte(java.lang.String c,
java.lang.Object v)
Apply a "less than or equal" constraint to the given column or alias
|
static Filter<java.lang.Object> |
neq(java.lang.String c,
java.lang.Object v)
Apply a "not equals" constraint to the given column or alias
|
static Filter<java.lang.Object> |
notEndsWith(java.lang.String c,
java.lang.String sufix)
Apply a "not ends with" constraint to the given column or alias
Checks if it doesn't ends with the given suffix.
|
static Filter<java.lang.Object> |
notEquals(java.lang.String c,
java.lang.Object v)
Apply a "not equals" constraint to the given column or alias
|
static Filter<java.lang.Object> |
notIn(java.lang.String c,
java.util.Collection<?> values)
Apply a "not in" constraint to the given column or alias
|
static Filter<java.lang.Object> |
notIn(java.lang.String c,
java.lang.Object v)
Apply a "not in" constraint to the given column or alias
|
static <T> Filter<java.lang.Object> |
notIn(java.lang.String c,
T... values)
Apply a "not in" constraint to the given column or alias
|
static Filter<java.lang.Object> |
notIncludes(java.lang.String c,
java.lang.String infix)
Apply a "not includes" constraint to the given column or alias
Checks if it doesn't contains the given substring.
|
static Filter<java.lang.Object> |
notNull(java.lang.String c)
Apply a "not null" constraint to the given column or alias
|
static Filter<java.lang.Object> |
notStartsWith(java.lang.String c,
java.lang.String prefix)
Apply a "not starts with" constraint to the given column or alias
Checks if it doesn't starts with the given prefix.
|
static Filter<java.lang.Object> |
startsWith(java.lang.String c,
java.lang.String prefix)
Apply a "starts with" constraint to the given column or alias
Checks if starts with the given prefix.
|
public static Filter<java.lang.Object> filter(java.lang.String c, FilterOperator fo, java.lang.Object v)
GenericFilter
instance with the given values.c
- column or alias namefo
- filter type define as FilterOperator
v
- Object use to constraint the column or aliasFilter<Object>
constraint instancepublic static Filter<java.lang.Object> equal(java.lang.String c, java.lang.Object v)
c
- column or aliasv
- Object use to constraint the column or aliasFilter<Object>
"equals" constraintpublic static Filter<java.lang.Object> eq(java.lang.String c, java.lang.Object v)
c
- column or aliasv
- Object use to constraint the column or aliasFilter<Object>
"equals" constraintpublic static Filter<java.lang.Object> isNull(java.lang.String c)
c
- column or aliasFilter<Object>
"is null" constraintpublic static Filter<java.lang.Object> startsWith(java.lang.String c, java.lang.String prefix)
c
- column or aliasprefix
- the prefixFilter<Object>
"starts with" constraintpublic static Filter<java.lang.Object> endsWith(java.lang.String c, java.lang.String sufix)
c
- column or aliassufix
- the suffixFilter<Object>
"ends with" constraintpublic static Filter<java.lang.Object> includes(java.lang.String c, java.lang.String infix)
c
- column or aliassubstring
- the substringFilter<Object>
"includes" constraintpublic static Filter<java.lang.Object> in(java.lang.String c, java.lang.Object v)
c
- column or aliasv
- Object use to constraint the column or aliasFilter<Object>
"in" constraint@SafeVarargs public static <T> Filter<java.lang.Object> in(java.lang.String c, T... values)
c
- column or aliasvalues
- array of Objects to constraint the column or aliasFilter<Object>
"in" constraintpublic static Filter<java.lang.Object> in(java.lang.String c, java.util.Collection<?> values)
c
- column or aliasvalues
- collection of Objects to constraint the column or aliasFilter<Object>
"in" constraintpublic static Filter<java.lang.Object> notEquals(java.lang.String c, java.lang.Object v)
c
- column or aliasv
- Object use to constraint the column or aliasFilter<Object>
"not equals" constraintpublic static Filter<java.lang.Object> neq(java.lang.String c, java.lang.Object v)
c
- column or aliasv
- Object use to constraint the column or aliasFilter<Object>
"not equals" constraintpublic static Filter<java.lang.Object> notNull(java.lang.String c)
c
- column or aliasFilter<Object>
"not null" constraintpublic static Filter<java.lang.Object> notStartsWith(java.lang.String c, java.lang.String prefix)
c
- column or aliasprefix
- the prefixFilter<Object>
"not starts with" constraintpublic static Filter<java.lang.Object> notEndsWith(java.lang.String c, java.lang.String sufix)
c
- column or aliassuffix
- the suffixFilter<Object>
"not ends with" constraintpublic static Filter<java.lang.Object> notIncludes(java.lang.String c, java.lang.String infix)
c
- column or aliassubstring
- the substringFilter<Object>
"not includes" constraintpublic static Filter<java.lang.Object> notIn(java.lang.String c, java.lang.Object v)
c
- column or aliasv
- Object use to constraint the column or aliasFilter<Object>
"not in" constraint@SafeVarargs public static <T> Filter<java.lang.Object> notIn(java.lang.String c, T... values)
c
- column or aliasvalues
- array of Objects to constraint the column or aliasFilter<Object>
"not in" constraintpublic static Filter<java.lang.Object> notIn(java.lang.String c, java.util.Collection<?> values)
c
- column or aliasvalues
- collection of Objects to constraint the column or aliasFilter<Object>
"not in" constraintpublic static Criteria between(java.lang.String c, java.lang.Object lowBound, java.lang.Object highBound)
c
- column or aliaslowBound
- low in bound Object value to constraint the column or aliashighBound
- high in bound Object value to constraint the column or aliasFilter<Object>
"between" constraintpublic static Filter<java.lang.Object> greaterThan(java.lang.String c, java.lang.Object v)
c
- column or aliasv
- Object use to constraint the column or aliasFilter<Object>
"greater than" constraintpublic static Filter<java.lang.Object> gt(java.lang.String c, java.lang.Object v)
c
- column or aliasv
- Object use to constraint the column or aliasFilter<Object>
"greater than" constraintpublic static Filter<java.lang.Object> greaterThanOrEqual(java.lang.String c, java.lang.Object v)
c
- column or aliasv
- Object use to constraint the column or aliasFilter<Object>
"greater than or equal" constraintpublic static Filter<java.lang.Object> gte(java.lang.String c, java.lang.Object v)
c
- column or aliasv
- Object use to constraint the column or aliasFilter<Object>
"greater than or equal" constraintpublic static Filter<java.lang.Object> lessThan(java.lang.String c, java.lang.Object v)
c
- column or aliasv
- Object use to constraint the column or aliasFilter<Object>
"less than" constraintpublic static Filter<java.lang.Object> lt(java.lang.String c, java.lang.Object v)
c
- column or aliasv
- Object use to constraint the column or aliasFilter<Object>
"less than" constraintpublic static Filter<java.lang.Object> lessThanOrEqual(java.lang.String c, java.lang.Object v)
c
- column or aliasv
- Object use to constraint the column or aliasFilter<Object>
"less than or equal" constraintpublic static Filter<java.lang.Object> lte(java.lang.String c, java.lang.Object v)
c
- column or aliasv
- Object use to constraint the column or aliasFilter<Object>
"less than or equal" constraintCopyright © 2003-2024 Appian Corporation. All Rights Reserved.