Interface UserQuery.IFilterLink
- All Known Subinterfaces:
UserQuery.IFilterQuery
- All Known Implementing Classes:
UserQuery.FilterLink,UserQuery.FilterQuery
- Enclosing class:
UserQuery
- API:
- This is a public API.
-
Method Summary
Modifier and TypeMethodDescriptionand()Adds an AND statement to thewherecondition.Adds and AND statement with the given filtersubQuery.Adds an AND statement to the wholewherecondition configured before.andOverall(UserQuery subQuery) Adds and AND statement with the given filtersubQueryto the wholewherecondition configured before.or()Adds an OR statement to thewherecondition.Adds and OR statement with the given filtersubQuery.
Only thewherecondition of the givensubQueryis considered.
-
Method Details
-
and
UserQuery.FilterQuery and()Adds an AND statement to the
wherecondition.
Must be followed by other query conditions.Note that
andoperations are always evaluated beforeoroperations, e.g. the expressionA OR B AND Cis evaluated toA OR (B AND C). If you need to get(A OR B) AND C, then use theandOverallmethod.Example
A OR (B AND C):UserQuery.create().description().isEqual("A").or().description().isEqual("B") .and().name().isEqual("C");SQL part:
AND- Returns:
- query for further composition
- See Also:
- API:
- This public API is available in Java.
-
and
Adds and AND statement with the given filter
subQuery. Only thewherecondition of the givensubQueryis considered. All other parts are ignored. The wholewherecondition of the given filtersubQueryis and-ed to the query as one term with brackets around it.Note that
andoperations are always evaluated beforeoroperations, e.g. the expressionA OR B AND (subQuery)is evaluated toA OR (B AND (subQuery)). If you need to get(A OR B) AND (subQuery), then use theandOverallmethod.Example
A AND (B OR C):UserQuery.create().description().isEqual("A") .and(UserQuery.create().name().isEqual("B").or().name().isEqual("C"));SQL part:
AND([subQueryWhereClause])- Parameters:
subQuery- query with a set of where conditions.- Returns:
- query for further composition
- Throws:
IllegalArgumentException- when the query parameter is the same instance or null.- See Also:
- API:
- This public API is available in Java.
-
andOverall
UserQuery.FilterQuery andOverall()Adds an AND statement to the whole
wherecondition configured before.
Must be followed by other query conditions.Example
(A OR B) AND C:UserQuery.create().description().isEqual("A").or().description().isEqual("B") .andOverall().name().isEqual("C");- Returns:
- query for further composition
- See Also:
- API:
- This public API is available in Java.
-
andOverall
Adds and AND statement with the given filter
subQueryto the wholewherecondition configured before. Only thewherecondition of the givensubQueryis considered. All other parts are ignored. The wholewherecondition of the given filtersubQueryis and-ed to the query as one term with brackets around it.Example (A OR B) AND (C OR D):
UserQuery.create().description().isEqual("A").or().description().isEqual("B") .andOverall(UserQuery.create().name().isEqual("C").or().name().isEqual("D"));SQL part:
AND([subQueryWhereClause])- Parameters:
subQuery- query with a set of where conditions.- Returns:
- query for further composition
- Throws:
IllegalArgumentException- when the query parameter is the same instance or null.- See Also:
- API:
- This public API is available in Java.
-
or
Adds an OR statement to the
wherecondition.
Must be followed by other query conditions.Note that
andoperations are evaluated beforeoroperations. E.g. the expressionA and B or Cis evaluated like(A and B) or CSQL part:
OR- Returns:
- query for further composition
- API:
- This public API is available in Java.
-
or
Adds and OR statement with the given filter
subQuery.
Only thewherecondition of the givensubQueryis considered. All other parts are ignored. The wholewherecondition of the given filtersubQueryis or-ed to the query as one term with brackets around it.Note that
andoperations are always evaluated beforeoroperations, e.g. the expressionA AND B OR Cis evaluated to(A AND B) OR C. If you need to getA AND (B OR C), then use this method to add a sub query (B OR C) with aANDoperation to the current query (A).SQL part:
OR([subQueryWhereClause])- Parameters:
subQuery- query with a set of where conditions.- Returns:
- query for further composition
- Throws:
IllegalArgumentException- when the query parameter is the same instance or null.- API:
- This public API is available in Java.
-