Package org.kie.api.runtime.query
Class AdvancedQueryContext
java.lang.Object
org.kie.api.runtime.query.QueryContext
org.kie.api.runtime.query.AdvancedQueryContext
- All Implemented Interfaces:
Serializable
Extension class to the basic ordering and pagination queries which use
QueryContext.
The AdvancedQueryContext is intended for use wherever advanced query functionality provided by the
KIE Query Service which provides advanced search capabilities that are based on Dashbuilder DataSets.- See Also:
-
Field Summary
Fields inherited from class org.kie.api.runtime.query.QueryContext
ascending, count, offset, orderBy -
Constructor Summary
ConstructorsConstructorDescriptionAdvancedQueryContext(String orderByClause) AdvancedQueryContext(QueryContext queryContext) AdvancedQueryContext(QueryContext queryContext, String orderByClause) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetOrderByClause(String orderByClause) Set the ORDER BY clause for advanced query.Methods inherited from class org.kie.api.runtime.query.QueryContext
clear, getCount, getOffset, getOrderBy, isAscending, setAscending, setCount, setOffset, setOrderBy
-
Constructor Details
-
AdvancedQueryContext
public AdvancedQueryContext() -
AdvancedQueryContext
-
AdvancedQueryContext
-
AdvancedQueryContext
-
-
Method Details
-
getOrderByClause
- Returns:
- the SQL Order By clause
-
setOrderByClause
Set the ORDER BY clause for advanced query. For instance: SELECT * FROM PROCESSINSTANCELOG ORDER BY PROCESSID ASC, PROCESSINSTANCEID DESC has orderByClause of "PROCESSID ASC, PROCESSINSTANCEID DESC"- Parameters:
orderByClause- the SQL Order By clause to set
-