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 |
commandContext, commandExecutor, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC
databaseType, firstResult, maxResults, parameter
authDefaultPerm, authGroupIds, authPerms, authResourceId, authResourceIdQueryParam, authResourceType, authUserId, isAuthorizationCheckEnabled
Constructor and Description |
---|
JobDefinitionQueryImpl() |
JobDefinitionQueryImpl(CommandContext commandContext) |
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
|
addOrder, asc, assertParamNotNull, assertParamNotNull, checkQueryOk, count, desc, direction, execute, executeSingleResult, getOrderBy, list, listPage, orderBy, setCommandExecutor, singleResult
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setOrderBy, setParameter
getAuthDefaultPerm, getAuthGroupIds, getAuthPerms, getAuthResourceId, getAuthResourceIdQueryParam, getAuthResourceType, getAuthUserId, isAuthorizationCheckEnabled, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthPerms, setAuthResourceId, setAuthResourceIdQueryParam, setAuthResourceType, setAuthUserId
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(CommandContext commandContext)
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 © 2015. All rights reserved.