Package com.appiancorp.common.query
Class GenericQuery.GenericBuilder.FilterOpLiteral
java.lang.Object
com.appiancorp.common.query.GenericQuery.GenericBuilder.FilterOpLiteral
- Enclosing class:
- GenericQuery.GenericBuilder
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Criteria
Apply an "in bound between" constraint to the given column or alias.Apply a "ends with" constraint to the given column or alias Checks if ends with the given suffix.Apply an equality constraint to the given column or aliasApply an equality constraint to the given column or aliasfilter
(String c, FilterOperator fo, Object v) Creates aGenericFilter
instance with the given values.greaterThan
(String c, Object v) Apply a "greater than" constraint to the given column or aliasgreaterThanOrEqual
(String c, Object v) Apply a "greater than or equal" constraint to the given column or aliasApply a "greater than" constraint to the given column or aliasApply a "greater than or equal" constraint to the given column or aliasApply an "in" constraint to the given column or aliasin
(String c, Collection<?> values) Apply an "in" constraint to the given column or aliasApply an "in" constraint to the given column or aliasApply a "includes" constraint to the given column or alias Checks if it contains the given substring.Apply an "is null" constraint to the given column or aliasApply a "less than" constraint to the given column or aliaslessThanOrEqual
(String c, Object v) Apply a "less than or equal" constraint to the given column or aliasApply a "less than" constraint to the given column or aliasApply a "less than or equal" constraint to the given column or aliasApply a "not equals" constraint to the given column or aliasnotEndsWith
(String c, String sufix) Apply a "not ends with" constraint to the given column or alias Checks if it doesn't ends with the given suffix.Apply a "not equals" constraint to the given column or aliasApply a "not in" constraint to the given column or aliasnotIn
(String c, Collection<?> values) Apply a "not in" constraint to the given column or aliasApply a "not in" constraint to the given column or aliasnotIncludes
(String c, String infix) Apply a "not includes" constraint to the given column or alias Checks if it doesn't contains the given substring.Apply a "not null" constraint to the given column or aliasnotStartsWith
(String c, String prefix) Apply a "not starts with" constraint to the given column or alias Checks if it doesn't starts with the given prefix.startsWith
(String c, String prefix) Apply a "starts with" constraint to the given column or alias Checks if starts with the given prefix.
-
Constructor Details
-
FilterOpLiteral
public FilterOpLiteral()
-
-
Method Details
-
filter
Creates aGenericFilter
instance with the given values.- Parameters:
c
- column or alias namefo
- filter type define asFilterOperator
v
- Object use to constraint the column or alias- Returns:
- a
Filter<Object>
constraint instance
-
equal
Apply an equality constraint to the given column or alias- Parameters:
c
- column or aliasv
- Object use to constraint the column or alias- Returns:
- a
Filter<Object>
"equals" constraint
-
eq
Apply an equality constraint to the given column or alias- Parameters:
c
- column or aliasv
- Object use to constraint the column or alias- Returns:
- a
Filter<Object>
"equals" constraint
-
isNull
Apply an "is null" constraint to the given column or alias- Parameters:
c
- column or alias- Returns:
- a
Filter<Object>
"is null" constraint
-
startsWith
Apply a "starts with" constraint to the given column or alias Checks if starts with the given prefix. Applies to string values.- Parameters:
c
- column or aliasprefix
- the prefix- Returns:
- a
Filter<Object>
"starts with" constraint
-
endsWith
Apply a "ends with" constraint to the given column or alias Checks if ends with the given suffix. Applies to string values.- Parameters:
c
- column or aliassufix
- the suffix- Returns:
- a
Filter<Object>
"ends with" constraint
-
includes
Apply a "includes" constraint to the given column or alias Checks if it contains the given substring. Applies to string values.- Parameters:
c
- column or aliassubstring
- the substring- Returns:
- a
Filter<Object>
"includes" constraint
-
in
Apply an "in" constraint to the given column or alias- Parameters:
c
- column or aliasv
- Object use to constraint the column or alias- Returns:
- a
Filter<Object>
"in" constraint
-
in
Apply an "in" constraint to the given column or alias- Parameters:
c
- column or aliasvalues
- array of Objects to constraint the column or alias- Returns:
- a
Filter<Object>
"in" constraint
-
in
Apply an "in" constraint to the given column or alias- Parameters:
c
- column or aliasvalues
- collection of Objects to constraint the column or alias- Returns:
- a
Filter<Object>
"in" constraint
-
notEquals
Apply a "not equals" constraint to the given column or alias- Parameters:
c
- column or aliasv
- Object use to constraint the column or alias- Returns:
- a
Filter<Object>
"not equals" constraint
-
neq
Apply a "not equals" constraint to the given column or alias- Parameters:
c
- column or aliasv
- Object use to constraint the column or alias- Returns:
- a
Filter<Object>
"not equals" constraint
-
notNull
Apply a "not null" constraint to the given column or alias- Parameters:
c
- column or alias- Returns:
- a
Filter<Object>
"not null" constraint
-
notStartsWith
Apply a "not starts with" constraint to the given column or alias Checks if it doesn't starts with the given prefix. Applies to string values.- Parameters:
c
- column or aliasprefix
- the prefix- Returns:
- a
Filter<Object>
"not starts with" constraint
-
notEndsWith
Apply a "not ends with" constraint to the given column or alias Checks if it doesn't ends with the given suffix. Applies to string values.- Parameters:
c
- column or aliassuffix
- the suffix- Returns:
- a
Filter<Object>
"not ends with" constraint
-
notIncludes
Apply a "not includes" constraint to the given column or alias Checks if it doesn't contains the given substring. Applies to string values.- Parameters:
c
- column or aliassubstring
- the substring- Returns:
- a
Filter<Object>
"not includes" constraint
-
notIn
Apply a "not in" constraint to the given column or alias- Parameters:
c
- column or aliasv
- Object use to constraint the column or alias- Returns:
- a
Filter<Object>
"not in" constraint
-
notIn
Apply a "not in" constraint to the given column or alias- Parameters:
c
- column or aliasvalues
- array of Objects to constraint the column or alias- Returns:
- a
Filter<Object>
"not in" constraint
-
notIn
Apply a "not in" constraint to the given column or alias- Parameters:
c
- column or aliasvalues
- collection of Objects to constraint the column or alias- Returns:
- a
Filter<Object>
"not in" constraint
-
between
Apply an "in bound between" constraint to the given column or alias.- Parameters:
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 alias- Returns:
- a
Filter<Object>
"between" constraint
-
greaterThan
Apply a "greater than" constraint to the given column or alias- Parameters:
c
- column or aliasv
- Object use to constraint the column or alias- Returns:
- a
Filter<Object>
"greater than" constraint
-
gt
Apply a "greater than" constraint to the given column or alias- Parameters:
c
- column or aliasv
- Object use to constraint the column or alias- Returns:
- a
Filter<Object>
"greater than" constraint
-
greaterThanOrEqual
Apply a "greater than or equal" constraint to the given column or alias- Parameters:
c
- column or aliasv
- Object use to constraint the column or alias- Returns:
- a
Filter<Object>
"greater than or equal" constraint
-
gte
Apply a "greater than or equal" constraint to the given column or alias- Parameters:
c
- column or aliasv
- Object use to constraint the column or alias- Returns:
- a
Filter<Object>
"greater than or equal" constraint
-
lessThan
Apply a "less than" constraint to the given column or alias- Parameters:
c
- column or aliasv
- Object use to constraint the column or alias- Returns:
- a
Filter<Object>
"less than" constraint
-
lt
Apply a "less than" constraint to the given column or alias- Parameters:
c
- column or aliasv
- Object use to constraint the column or alias- Returns:
- a
Filter<Object>
"less than" constraint
-
lessThanOrEqual
Apply a "less than or equal" constraint to the given column or alias- Parameters:
c
- column or aliasv
- Object use to constraint the column or alias- Returns:
- a
Filter<Object>
"less than or equal" constraint
-
lte
Apply a "less than or equal" constraint to the given column or alias- Parameters:
c
- column or aliasv
- Object use to constraint the column or alias- Returns:
- a
Filter<Object>
"less than or equal" constraint
-