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:
java.io.Serializable,Command<java.lang.Object>,JobDefinitionQuery,Query<JobDefinitionQuery,JobDefinition>
public class JobDefinitionQueryImpl extends AbstractQuery<JobDefinitionQuery,JobDefinition> implements JobDefinitionQuery, java.io.Serializable
- Author:
- roman.smirnov
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String[]activityIdsprotected java.lang.Stringidprotected booleanincludeJobDefinitionsWithoutTenantIdprotected booleanisTenantIdSetprotected java.lang.StringjobConfigurationprotected java.lang.StringjobTypeprotected java.lang.StringprocessDefinitionIdprotected java.lang.StringprocessDefinitionKeyprotected SuspensionStatesuspensionStateprotected java.lang.String[]tenantIdsprotected java.lang.BooleanwithOverridingJobPriority-
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
Constructors Constructor Description JobDefinitionQueryImpl()JobDefinitionQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobDefinitionQueryactive()Only selects job definitions which are activeJobDefinitionQueryactivityIdIn(java.lang.String... activityIds)Only select job definitions which exist for the listed activity idslongexecuteCount(CommandContext commandContext)java.util.List<JobDefinition>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.java.lang.String[]getActivityIds()java.lang.StringgetId()java.lang.StringgetJobConfiguration()java.lang.StringgetJobType()java.lang.StringgetProcessDefinitionId()java.lang.StringgetProcessDefinitionKey()SuspensionStategetSuspensionState()java.lang.BooleangetWithOverridingJobPriority()JobDefinitionQueryincludeJobDefinitionsWithoutTenantId()Select job definitions which have no tenant id.JobDefinitionQueryjobConfiguration(java.lang.String jobConfiguration)Only select job definitions which contain the configuration.JobDefinitionQueryjobDefinitionId(java.lang.String jobDefinitionId)Only select job definitions with the given idJobDefinitionQueryjobType(java.lang.String jobType)Only select job definitions which have the given job type.JobDefinitionQueryorderByActivityId()Order by activty id (needs to be followed byQuery.asc()orQuery.desc()).JobDefinitionQueryorderByJobConfiguration()Order by job configuration (needs to be followed byQuery.asc()orQuery.desc()).JobDefinitionQueryorderByJobDefinitionId()Order by id (needs to be followed byQuery.asc()orQuery.desc()).JobDefinitionQueryorderByJobType()Order by job type (needs to be followed byQuery.asc()orQuery.desc()).JobDefinitionQueryorderByProcessDefinitionId()Order by process defintion id (needs to be followed byQuery.asc()orQuery.desc()).JobDefinitionQueryorderByProcessDefinitionKey()Order by process definition key (needs to be followed byQuery.asc()orQuery.desc()).JobDefinitionQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).JobDefinitionQueryprocessDefinitionId(java.lang.String processDefinitionId)Only select job definitions which exist for the given process definition id.JobDefinitionQueryprocessDefinitionKey(java.lang.String processDefinitionKey)Only select job definitions which exist for the given process definition key.JobDefinitionQuerysuspended()Only selects job definitions which are suspendedJobDefinitionQuerytenantIdIn(java.lang.String... tenantIds)Only select job definitions that belong to one of the given tenant ids.JobDefinitionQuerywithoutTenantId()Only select job definitions which have no tenant id.JobDefinitionQuerywithOverridingJobPriority()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 Detail
-
id
protected java.lang.String id
-
activityIds
protected java.lang.String[] activityIds
-
processDefinitionId
protected java.lang.String processDefinitionId
-
processDefinitionKey
protected java.lang.String processDefinitionKey
-
jobType
protected java.lang.String jobType
-
jobConfiguration
protected java.lang.String jobConfiguration
-
suspensionState
protected SuspensionState suspensionState
-
withOverridingJobPriority
protected java.lang.Boolean withOverridingJobPriority
-
isTenantIdSet
protected boolean isTenantIdSet
-
tenantIds
protected java.lang.String[] tenantIds
-
includeJobDefinitionsWithoutTenantId
protected boolean includeJobDefinitionsWithoutTenantId
-
-
Constructor Detail
-
JobDefinitionQueryImpl
public JobDefinitionQueryImpl()
-
JobDefinitionQueryImpl
public JobDefinitionQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
jobDefinitionId
public JobDefinitionQuery jobDefinitionId(java.lang.String jobDefinitionId)
Description copied from interface:JobDefinitionQueryOnly select job definitions with the given id- Specified by:
jobDefinitionIdin interfaceJobDefinitionQuery
-
activityIdIn
public JobDefinitionQuery activityIdIn(java.lang.String... activityIds)
Description copied from interface:JobDefinitionQueryOnly select job definitions which exist for the listed activity ids- Specified by:
activityIdInin interfaceJobDefinitionQuery
-
processDefinitionId
public JobDefinitionQuery processDefinitionId(java.lang.String processDefinitionId)
Description copied from interface:JobDefinitionQueryOnly select job definitions which exist for the given process definition id.- Specified by:
processDefinitionIdin interfaceJobDefinitionQuery
-
processDefinitionKey
public JobDefinitionQuery processDefinitionKey(java.lang.String processDefinitionKey)
Description copied from interface:JobDefinitionQueryOnly select job definitions which exist for the given process definition key.- Specified by:
processDefinitionKeyin interfaceJobDefinitionQuery
-
jobType
public JobDefinitionQuery jobType(java.lang.String jobType)
Description copied from interface:JobDefinitionQueryOnly select job definitions which have the given job type.- Specified by:
jobTypein interfaceJobDefinitionQuery
-
jobConfiguration
public JobDefinitionQuery jobConfiguration(java.lang.String jobConfiguration)
Description copied from interface:JobDefinitionQueryOnly select job definitions which contain the configuration.- Specified by:
jobConfigurationin interfaceJobDefinitionQuery
-
active
public JobDefinitionQuery active()
Description copied from interface:JobDefinitionQueryOnly selects job definitions which are active- Specified by:
activein interfaceJobDefinitionQuery
-
suspended
public JobDefinitionQuery suspended()
Description copied from interface:JobDefinitionQueryOnly selects job definitions which are suspended- Specified by:
suspendedin interfaceJobDefinitionQuery
-
withOverridingJobPriority
public JobDefinitionQuery withOverridingJobPriority()
Description copied from interface:JobDefinitionQueryOnly selects job definitions which have a job priority defined.- Specified by:
withOverridingJobPriorityin interfaceJobDefinitionQuery
-
tenantIdIn
public JobDefinitionQuery tenantIdIn(java.lang.String... tenantIds)
Description copied from interface:JobDefinitionQueryOnly select job definitions that belong to one of the given tenant ids.- Specified by:
tenantIdInin interfaceJobDefinitionQuery
-
withoutTenantId
public JobDefinitionQuery withoutTenantId()
Description copied from interface:JobDefinitionQueryOnly select job definitions which have no tenant id.- Specified by:
withoutTenantIdin interfaceJobDefinitionQuery
-
includeJobDefinitionsWithoutTenantId
public JobDefinitionQuery includeJobDefinitionsWithoutTenantId()
Description copied from interface:JobDefinitionQuerySelect job definitions which have no tenant id. Can be used in combination withJobDefinitionQuery.tenantIdIn(String...).- Specified by:
includeJobDefinitionsWithoutTenantIdin interfaceJobDefinitionQuery
-
orderByJobDefinitionId
public JobDefinitionQuery orderByJobDefinitionId()
Description copied from interface:JobDefinitionQueryOrder by id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobDefinitionIdin interfaceJobDefinitionQuery
-
orderByActivityId
public JobDefinitionQuery orderByActivityId()
Description copied from interface:JobDefinitionQueryOrder by activty id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityIdin interfaceJobDefinitionQuery
-
orderByProcessDefinitionId
public JobDefinitionQuery orderByProcessDefinitionId()
Description copied from interface:JobDefinitionQueryOrder by process defintion id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionIdin interfaceJobDefinitionQuery
-
orderByProcessDefinitionKey
public JobDefinitionQuery orderByProcessDefinitionKey()
Description copied from interface:JobDefinitionQueryOrder by process definition key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionKeyin interfaceJobDefinitionQuery
-
orderByJobType
public JobDefinitionQuery orderByJobType()
Description copied from interface:JobDefinitionQueryOrder by job type (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobTypein interfaceJobDefinitionQuery
-
orderByJobConfiguration
public JobDefinitionQuery orderByJobConfiguration()
Description copied from interface:JobDefinitionQueryOrder by job configuration (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobConfigurationin interfaceJobDefinitionQuery
-
orderByTenantId
public JobDefinitionQuery orderByTenantId()
Description copied from interface:JobDefinitionQueryOrder 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:
orderByTenantIdin interfaceJobDefinitionQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractQuery<JobDefinitionQuery,JobDefinition>
-
executeList
public java.util.List<JobDefinition> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<JobDefinitionQuery,JobDefinition>page- used if the results must be paged. If null, no paging will be applied.
-
getId
public java.lang.String getId()
-
getActivityIds
public java.lang.String[] getActivityIds()
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
-
getProcessDefinitionKey
public java.lang.String getProcessDefinitionKey()
-
getJobType
public java.lang.String getJobType()
-
getJobConfiguration
public java.lang.String getJobConfiguration()
-
getSuspensionState
public SuspensionState getSuspensionState()
-
getWithOverridingJobPriority
public java.lang.Boolean getWithOverridingJobPriority()
-
-