public class JobDefinitionQueryImpl extends AbstractQuery<JobDefinitionQuery,JobDefinition> implements JobDefinitionQuery, Serializable
Modifier and Type | Field and Description |
---|---|
protected String[] |
activityIds |
protected String |
id |
protected String |
jobConfiguration |
protected String |
jobType |
protected String |
processDefinitionId |
protected String |
processDefinitionKey |
protected SuspensionState |
suspensionState |
commandExecutor, expressions, orderingProperties, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
databaseType, DEFAULT_ORDER_BY, firstResult, maxResults, orderBy, parameter
authDefaultPerm, authGroupIds, authUserId, isAuthorizationCheckEnabled, permissionChecks
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() |
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 |
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
|
addExpression, addValidator, asc, checkQueryOk, count, desc, direction, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteList, execute, executeSingleResult, extend, getExpressions, getMethod, getOrderBy, getOrderingProperties, list, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, setOrderingProperties, singleResult, validate, validate
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setOrderBy, setParameter
addPermissionCheck, getAuthDefaultPerm, getAuthGroupIds, getAuthUserId, getPermissionChecks, isAuthorizationCheckEnabled, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthUserId, setPermissionChecks
protected String id
protected String[] activityIds
protected String processDefinitionId
protected String processDefinitionKey
protected String jobType
protected String jobConfiguration
protected SuspensionState suspensionState
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 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 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()
Copyright © 2018. All rights reserved.