public class JobDefinitionQueryImpl extends AbstractQuery<JobDefinitionQuery,JobDefinition> implements JobDefinitionQuery, Serializable
AbstractQuery.ResultType
Modifier and Type | Field and Description |
---|---|
protected String[] |
activityIds |
protected String |
id |
protected boolean |
includeJobDefinitionsWithoutTenantId |
protected boolean |
isTenantIdSet |
protected String |
jobConfiguration |
protected String |
jobType |
protected String |
processDefinitionId |
protected String |
processDefinitionKey |
protected SuspensionState |
suspensionState |
protected String[] |
tenantIds |
protected Boolean |
withOverridingJobPriority |
commandExecutor, expressions, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
Constructor and Description |
---|
JobDefinitionQueryImpl() |
JobDefinitionQueryImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
JobDefinitionQuery |
active()
Only selects job definitions which are active
|
JobDefinitionQuery |
activityIdIn(String... activityIds)
Only select job definitions which exist for the listed activity ids
|
long |
executeCount(CommandContext commandContext) |
List<JobDefinition> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results.
|
String[] |
getActivityIds() |
String |
getId() |
String |
getJobConfiguration() |
String |
getJobType() |
String |
getProcessDefinitionId() |
String |
getProcessDefinitionKey() |
SuspensionState |
getSuspensionState() |
Boolean |
getWithOverridingJobPriority() |
JobDefinitionQuery |
includeJobDefinitionsWithoutTenantId()
Select job definitions which have no tenant id.
|
JobDefinitionQuery |
jobConfiguration(String jobConfiguration)
Only select job definitions which contain the configuration.
|
JobDefinitionQuery |
jobDefinitionId(String jobDefinitionId)
Only select job definitions with the given id
|
JobDefinitionQuery |
jobType(String jobType)
Only select job definitions which have the given job type.
|
JobDefinitionQuery |
orderByActivityId()
Order by activty id (needs to be followed by
Query.asc() or Query.desc() ). |
JobDefinitionQuery |
orderByJobConfiguration()
Order by job configuration (needs to be followed by
Query.asc() or Query.desc() ). |
JobDefinitionQuery |
orderByJobDefinitionId()
Order by id (needs to be followed by
Query.asc() or Query.desc() ). |
JobDefinitionQuery |
orderByJobType()
Order by job type (needs to be followed by
Query.asc() or Query.desc() ). |
JobDefinitionQuery |
orderByProcessDefinitionId()
Order by process defintion id (needs to be followed by
Query.asc() or Query.desc() ). |
JobDefinitionQuery |
orderByProcessDefinitionKey()
Order by process definition key (needs to be followed by
Query.asc() or Query.desc() ). |
JobDefinitionQuery |
orderByTenantId()
Order by tenant id (needs to be followed by
Query.asc() or Query.desc() ). |
JobDefinitionQuery |
processDefinitionId(String processDefinitionId)
Only select job definitions which exist for the given process definition id.
|
JobDefinitionQuery |
processDefinitionKey(String processDefinitionKey)
Only select job definitions which exist for the given process definition key.
|
JobDefinitionQuery |
suspended()
Only selects job definitions which are suspended
|
JobDefinitionQuery |
tenantIdIn(String... tenantIds)
Only select job definitions that belong to one of the given tenant ids.
|
JobDefinitionQuery |
withoutTenantId()
Only select job definitions which have no tenant id.
|
JobDefinitionQuery |
withOverridingJobPriority()
Only selects job definitions which have a job priority defined.
|
addExpression, addValidator, asc, checkQueryOk, count, desc, direction, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeIdsList, executeSingleResult, extend, getExpressions, getMethod, hasExcludingConditions, list, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, validate, validate
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
protected String id
protected String[] activityIds
protected String processDefinitionId
protected String processDefinitionKey
protected String jobType
protected String jobConfiguration
protected SuspensionState suspensionState
protected Boolean withOverridingJobPriority
protected boolean isTenantIdSet
protected String[] tenantIds
protected boolean includeJobDefinitionsWithoutTenantId
public JobDefinitionQueryImpl()
public JobDefinitionQueryImpl(CommandExecutor commandExecutor)
public JobDefinitionQuery jobDefinitionId(String jobDefinitionId)
JobDefinitionQuery
jobDefinitionId
in interface JobDefinitionQuery
public JobDefinitionQuery activityIdIn(String... activityIds)
JobDefinitionQuery
activityIdIn
in interface JobDefinitionQuery
public JobDefinitionQuery processDefinitionId(String processDefinitionId)
JobDefinitionQuery
processDefinitionId
in interface JobDefinitionQuery
public JobDefinitionQuery processDefinitionKey(String processDefinitionKey)
JobDefinitionQuery
processDefinitionKey
in interface JobDefinitionQuery
public JobDefinitionQuery jobType(String jobType)
JobDefinitionQuery
jobType
in interface JobDefinitionQuery
public JobDefinitionQuery jobConfiguration(String jobConfiguration)
JobDefinitionQuery
jobConfiguration
in interface JobDefinitionQuery
public JobDefinitionQuery active()
JobDefinitionQuery
active
in interface JobDefinitionQuery
public JobDefinitionQuery suspended()
JobDefinitionQuery
suspended
in interface JobDefinitionQuery
public JobDefinitionQuery withOverridingJobPriority()
JobDefinitionQuery
withOverridingJobPriority
in interface JobDefinitionQuery
public JobDefinitionQuery tenantIdIn(String... tenantIds)
JobDefinitionQuery
tenantIdIn
in interface JobDefinitionQuery
public JobDefinitionQuery withoutTenantId()
JobDefinitionQuery
withoutTenantId
in interface JobDefinitionQuery
public JobDefinitionQuery includeJobDefinitionsWithoutTenantId()
JobDefinitionQuery
JobDefinitionQuery.tenantIdIn(String...)
.includeJobDefinitionsWithoutTenantId
in interface JobDefinitionQuery
public JobDefinitionQuery orderByJobDefinitionId()
JobDefinitionQuery
Query.asc()
or Query.desc()
).orderByJobDefinitionId
in interface JobDefinitionQuery
public JobDefinitionQuery orderByActivityId()
JobDefinitionQuery
Query.asc()
or Query.desc()
).orderByActivityId
in interface JobDefinitionQuery
public JobDefinitionQuery orderByProcessDefinitionId()
JobDefinitionQuery
Query.asc()
or Query.desc()
).orderByProcessDefinitionId
in interface JobDefinitionQuery
public JobDefinitionQuery orderByProcessDefinitionKey()
JobDefinitionQuery
Query.asc()
or Query.desc()
).orderByProcessDefinitionKey
in interface JobDefinitionQuery
public JobDefinitionQuery orderByJobType()
JobDefinitionQuery
Query.asc()
or Query.desc()
).orderByJobType
in interface JobDefinitionQuery
public JobDefinitionQuery orderByJobConfiguration()
JobDefinitionQuery
Query.asc()
or Query.desc()
).orderByJobConfiguration
in interface JobDefinitionQuery
public JobDefinitionQuery orderByTenantId()
JobDefinitionQuery
Query.asc()
or Query.desc()
).
Note that the ordering of job definitions without tenant id is database-specific.orderByTenantId
in interface JobDefinitionQuery
public long executeCount(CommandContext commandContext)
executeCount
in class AbstractQuery<JobDefinitionQuery,JobDefinition>
public List<JobDefinition> executeList(CommandContext commandContext, Page page)
AbstractQuery
executeList
in class AbstractQuery<JobDefinitionQuery,JobDefinition>
page
- used if the results must be paged. If null, no paging will be applied.public String getId()
public String[] getActivityIds()
public String getProcessDefinitionId()
public String getProcessDefinitionKey()
public String getJobType()
public String getJobConfiguration()
public SuspensionState getSuspensionState()
public Boolean getWithOverridingJobPriority()
Copyright © 2017. All rights reserved.