Package org.camunda.bpm.engine.impl
Class JobDefinitionQueryImpl
java.lang.Object
org.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.engine.impl.AbstractQuery<JobDefinitionQuery,JobDefinition>
org.camunda.bpm.engine.impl.JobDefinitionQueryImpl
- All Implemented Interfaces:
Serializable
,Command<Object>
,JobDefinitionQuery
,Query<JobDefinitionQuery,
JobDefinition>
public class JobDefinitionQueryImpl
extends AbstractQuery<JobDefinitionQuery,JobDefinition>
implements JobDefinitionQuery, Serializable
- Author:
- roman.smirnov
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
Field Summary
Modifier and TypeFieldDescriptionprotected String[]
protected String
protected boolean
protected boolean
protected String
protected String
protected String
protected String
protected SuspensionState
protected String[]
protected Boolean
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactive()
Only selects job definitions which are activeactivityIdIn
(String... activityIds) Only select job definitions which exist for the listed activity idslong
executeCount
(CommandContext commandContext) executeList
(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.String[]
getId()
Select job definitions which have no tenant id.jobConfiguration
(String jobConfiguration) Only select job definitions which contain the configuration.jobDefinitionId
(String jobDefinitionId) Only select job definitions with the given idOnly select job definitions which have the given job type.Order by activty id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by job configuration (needs to be followed byQuery.asc()
orQuery.desc()
).Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by job type (needs to be followed byQuery.asc()
orQuery.desc()
).Order by process defintion id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by process definition key (needs to be followed byQuery.asc()
orQuery.desc()
).Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).processDefinitionId
(String processDefinitionId) Only select job definitions which exist for the given process definition id.processDefinitionKey
(String processDefinitionKey) Only select job definitions which exist for the given process definition key.Only selects job definitions which are suspendedtenantIdIn
(String... tenantIds) Only select job definitions that belong to one of the given tenant ids.Only select job definitions which have no tenant id.Only selects job definitions which have a job priority defined.Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
addExpression, addValidator, asc, checkMaxResultsLimit, checkQueryOk, count, desc, direction, disableMaxResultsLimit, enableMaxResultsLimit, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteDeploymentIdMappingsList, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeDeploymentIdMappingsList, executeIdsList, executeResult, executeSingleResult, extend, getExpressions, getMethod, hasExcludingConditions, list, listDeploymentIdMappings, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, unlimitedList, validate, validate
Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
Field Details
-
id
-
activityIds
-
processDefinitionId
-
processDefinitionKey
-
jobType
-
jobConfiguration
-
suspensionState
-
withOverridingJobPriority
-
isTenantIdSet
protected boolean isTenantIdSet -
tenantIds
-
includeJobDefinitionsWithoutTenantId
protected boolean includeJobDefinitionsWithoutTenantId
-
-
Constructor Details
-
JobDefinitionQueryImpl
public JobDefinitionQueryImpl() -
JobDefinitionQueryImpl
-
-
Method Details
-
jobDefinitionId
Description copied from interface:JobDefinitionQuery
Only select job definitions with the given id- Specified by:
jobDefinitionId
in interfaceJobDefinitionQuery
-
activityIdIn
Description copied from interface:JobDefinitionQuery
Only select job definitions which exist for the listed activity ids- Specified by:
activityIdIn
in interfaceJobDefinitionQuery
-
processDefinitionId
Description copied from interface:JobDefinitionQuery
Only select job definitions which exist for the given process definition id.- Specified by:
processDefinitionId
in interfaceJobDefinitionQuery
-
processDefinitionKey
Description copied from interface:JobDefinitionQuery
Only select job definitions which exist for the given process definition key.- Specified by:
processDefinitionKey
in interfaceJobDefinitionQuery
-
jobType
Description copied from interface:JobDefinitionQuery
Only select job definitions which have the given job type.- Specified by:
jobType
in interfaceJobDefinitionQuery
-
jobConfiguration
Description copied from interface:JobDefinitionQuery
Only select job definitions which contain the configuration.- Specified by:
jobConfiguration
in interfaceJobDefinitionQuery
-
active
Description copied from interface:JobDefinitionQuery
Only selects job definitions which are active- Specified by:
active
in interfaceJobDefinitionQuery
-
suspended
Description copied from interface:JobDefinitionQuery
Only selects job definitions which are suspended- Specified by:
suspended
in interfaceJobDefinitionQuery
-
withOverridingJobPriority
Description copied from interface:JobDefinitionQuery
Only selects job definitions which have a job priority defined.- Specified by:
withOverridingJobPriority
in interfaceJobDefinitionQuery
-
tenantIdIn
Description copied from interface:JobDefinitionQuery
Only select job definitions that belong to one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceJobDefinitionQuery
-
withoutTenantId
Description copied from interface:JobDefinitionQuery
Only select job definitions which have no tenant id.- Specified by:
withoutTenantId
in interfaceJobDefinitionQuery
-
includeJobDefinitionsWithoutTenantId
Description copied from interface:JobDefinitionQuery
Select job definitions which have no tenant id. Can be used in combination withJobDefinitionQuery.tenantIdIn(String...)
.- Specified by:
includeJobDefinitionsWithoutTenantId
in interfaceJobDefinitionQuery
-
orderByJobDefinitionId
Description copied from interface:JobDefinitionQuery
Order by id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByJobDefinitionId
in interfaceJobDefinitionQuery
-
orderByActivityId
Description copied from interface:JobDefinitionQuery
Order by activty id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityId
in interfaceJobDefinitionQuery
-
orderByProcessDefinitionId
Description copied from interface:JobDefinitionQuery
Order by process defintion id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessDefinitionId
in interfaceJobDefinitionQuery
-
orderByProcessDefinitionKey
Description copied from interface:JobDefinitionQuery
Order by process definition key (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessDefinitionKey
in interfaceJobDefinitionQuery
-
orderByJobType
Description copied from interface:JobDefinitionQuery
Order by job type (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByJobType
in interfaceJobDefinitionQuery
-
orderByJobConfiguration
Description copied from interface:JobDefinitionQuery
Order by job configuration (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByJobConfiguration
in interfaceJobDefinitionQuery
-
orderByTenantId
Description copied from interface:JobDefinitionQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
). Note that the ordering of job definitions without tenant id is database-specific.- Specified by:
orderByTenantId
in interfaceJobDefinitionQuery
-
executeCount
- Specified by:
executeCount
in classAbstractQuery<JobDefinitionQuery,
JobDefinition>
-
executeList
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<JobDefinitionQuery,
JobDefinition> page
- used if the results must be paged. If null, no paging will be applied.
-
getId
-
getActivityIds
-
getProcessDefinitionId
-
getProcessDefinitionKey
-
getJobType
-
getJobConfiguration
-
getSuspensionState
-
getWithOverridingJobPriority
-