Class CaseQuery.FilterLink
- java.lang.Object
-
- ch.ivyteam.ivy.persistence.query.Query<ICase>
-
- ch.ivyteam.ivy.workflow.query.CaseQuery
-
- ch.ivyteam.ivy.workflow.query.CaseQuery.FilterLink
-
- All Implemented Interfaces:
CaseQuery.IFilterLink
- Direct Known Subclasses:
CaseQuery.FilterQuery
- Enclosing class:
- CaseQuery
public static class CaseQuery.FilterLink extends CaseQuery implements CaseQuery.IFilterLink
Links a where condition with another.- API:
- This is a public API.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ch.ivyteam.ivy.workflow.query.CaseQuery
CaseQuery.AggregationQuery, CaseQuery.FilterLink, CaseQuery.FilterQuery, CaseQuery.GroupByQuery, CaseQuery.IAggregationQuery, CaseQuery.IBoolFilterQuery, CaseQuery.ICaseStateFilterQuery, CaseQuery.IClobColumnFilterQuery, CaseQuery.IColumnFilterQuery, CaseQuery.ICustomFieldAggregationQuery, CaseQuery.ICustomFieldFilterQuery, CaseQuery.ICustomFieldGroupBy, CaseQuery.ICustomFieldOrderBy, CaseQuery.IDateColumnFilterQuery, CaseQuery.IFilterableColumns, CaseQuery.IFilterLink, CaseQuery.IFilterQuery, CaseQuery.IGroupByQueryColumns, CaseQuery.IIntegerColumnFilterQuery, CaseQuery.INumberColumnFilterQuery, CaseQuery.IOrderByQueryColumns, CaseQuery.IPatternColumnFilterQuery, CaseQuery.IStringColumnFilterQuery, CaseQuery.IWorkflowPriorityFilterQuery, CaseQuery.OrderByColumnQuery, CaseQuery.OrderByQuery
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CaseQuery.FilterQueryand()Adds an AND statement to thewherecondition.CaseQuery.FilterLinkand(CaseQuery subQuery)Adds and AND statement with the given filtersubQuery.CaseQuery.FilterQueryandOverall()Adds an AND statement to the wholewherecondition configured before.CaseQuery.FilterLinkandOverall(CaseQuery subQuery)Adds and AND statement with the given filtersubQueryto the wholewherecondition configured before.CaseQuery.FilterQueryor()Adds an OR statement to thewherecondition.CaseQuery.FilterLinkor(CaseQuery subQuery)Adds and OR statement with the given filtersubQuery.
Only thewherecondition of the givensubQueryis considered.
-
-
-
Method Detail
-
and
public CaseQuery.FilterQuery and()
Description copied from interface:CaseQuery.IFilterLinkAdds 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):CaseQuery.businessCases().description().isEqual("A").or().description().isEqual("B") .and().name().isEqual("C");SQL part:
AND- Specified by:
andin interfaceCaseQuery.IFilterLink- Returns:
- query for further composition
- See Also:
CaseQuery.IFilterLink.and()- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
and
public CaseQuery.FilterLink and(CaseQuery subQuery)
Description copied from interface:CaseQuery.IFilterLinkAdds 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):CaseQuery.businessCases().description().isEqual("A") .and(CaseQuery.businessCases().name().isEqual("B").or().name().isEqual("C"));SQL part:
AND([subQueryWhereClause])- Specified by:
andin interfaceCaseQuery.IFilterLink- Parameters:
subQuery- query with a set of where conditions.- Returns:
- query for further composition
- See Also:
CaseQuery.IFilterLink.and(CaseQuery)- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
andOverall
public CaseQuery.FilterQuery andOverall()
Description copied from interface:CaseQuery.IFilterLinkAdds an AND statement to the whole
wherecondition configured before.
Must be followed by other query conditions.Example
(A OR B) AND C:CaseQuery.businessCases().description().isEqual("A").or().description().isEqual("B") .andOverall().name().isEqual("C");- Specified by:
andOverallin interfaceCaseQuery.IFilterLink- Returns:
- query for further composition
- See Also:
CaseQuery.IFilterLink.andOverall()- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
andOverall
public CaseQuery.FilterLink andOverall(CaseQuery subQuery)
Description copied from interface:CaseQuery.IFilterLinkAdds 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):
CaseQuery.businessCases().description().isEqual("A").or().description().isEqual("B") .andOverall(CaseQuery.businessCases().name().isEqual("C").or().name().isEqual("D"));SQL part:
AND([subQueryWhereClause])- Specified by:
andOverallin interfaceCaseQuery.IFilterLink- Parameters:
subQuery- query with a set of where conditions.- Returns:
- query for further composition
- See Also:
CaseQuery.IFilterLink.andOverall(CaseQuery)- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
or
public CaseQuery.FilterQuery or()
Description copied from interface:CaseQuery.IFilterLinkAdds 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- Specified by:
orin interfaceCaseQuery.IFilterLink- Returns:
- query for further composition
- See Also:
CaseQuery.IFilterLink.or()- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
or
public CaseQuery.FilterLink or(CaseQuery subQuery)
Description copied from interface:CaseQuery.IFilterLinkAdds 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])- Specified by:
orin interfaceCaseQuery.IFilterLink- Parameters:
subQuery- query with a set of where conditions.- Returns:
- query for further composition
- See Also:
CaseQuery.IFilterLink.or(CaseQuery)- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
-