public static class Query.QueryBuilder extends Object
Query objects.for more information| Modifier and Type | Method and Description |
|---|---|
Query.QueryBuilder |
and(Query.QueryBuilder qb)
Generates a builder by applying the logical "and" operator between the current builder and the input builder.
|
Query.QueryBuilder |
and(String fieldName,
QueryMethod method,
Object fieldValue)
Generates a builder by applying the logical "and" operator between the current builder and the resulting operation of the input values.
|
Query.QueryBuilder |
andNot(Query.QueryBuilder qb)
Generates a builder by applying the logical "and" operator between the current builder and the input builder after negation.
|
Query.QueryBuilder |
andNot(String fieldName,
QueryMethod method,
Object fieldValue)
Generates a builder by applying the logical "and" operator between the current builder and the resulting operation of the input values after negation.
|
Query |
build()
Builds a query from the current builder
|
Query.QueryBuilder |
or(Query.QueryBuilder qb)
Generates a builder by applying the logical "or" operator between the current builder and the input builder.
|
Query.QueryBuilder |
or(String fieldName,
QueryMethod method,
Object fieldValue)
Generates a builder by applying the logical "or" operator between the current builder and the resulting operation of the input values.
|
Query.QueryBuilder |
orNot(Query.QueryBuilder qb)
Generates a builder by applying the logical "or" operator between the current builder and the input builder after negation.
|
Query.QueryBuilder |
orNot(String fieldName,
QueryMethod method,
Object fieldValue)
Generates a builder by applying the logical "or" operator between the current builder and the resulting operation of the input values after negation.
|
static Query.QueryBuilder |
parenthesis(Query.QueryBuilder queryBuilder)
Wraps current builder content into a parenthesis
|
public Query build()
public Query.QueryBuilder and(String fieldName, QueryMethod method, Object fieldValue)
fieldName - - field namemethod - - comparison function to usefieldValue - - value to compare withpublic Query.QueryBuilder andNot(String fieldName, QueryMethod method, Object fieldValue)
fieldName - - field namemethod - - comparison function to usefieldValue - - value to compare withpublic Query.QueryBuilder and(Query.QueryBuilder qb)
qb - - query builderpublic Query.QueryBuilder andNot(Query.QueryBuilder qb)
qb - - query builderpublic Query.QueryBuilder or(String fieldName, QueryMethod method, Object fieldValue)
fieldName - - field namemethod - - comparison function to usefieldValue - - value to compare withpublic Query.QueryBuilder orNot(String fieldName, QueryMethod method, Object fieldValue)
fieldName - - field namemethod - - comparison function to usefieldValue - - value to compare withpublic Query.QueryBuilder or(Query.QueryBuilder qb)
qb - - query builderpublic Query.QueryBuilder orNot(Query.QueryBuilder qb)
qb - - query builderpublic static Query.QueryBuilder parenthesis(Query.QueryBuilder queryBuilder)
queryBuilder - Query.QueryBuilder to wrap into parenthesisCopyright © 2021 Micro Focus. All rights reserved.