Package org.flowable.job.service.impl
Class DeadLetterJobQueryImpl
java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<DeadLetterJobQuery,Job>
org.flowable.job.service.impl.DeadLetterJobQueryImpl
- All Implemented Interfaces:
Serializable,Query<DeadLetterJobQuery,,Job> Command<Object>,BaseJobQuery<DeadLetterJobQuery,,Job> DeadLetterJobQuery
public class DeadLetterJobQueryImpl
extends AbstractQuery<DeadLetterJobQuery,Job>
implements DeadLetterJobQuery, Serializable
- Author:
- Joram Barrez, Tijs Rademakers
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultTypeNested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected Dateprotected Dateprotected Dateprotected Dateprotected Stringprotected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected Collection<String>protected Stringprotected Collection<String>protected JobServiceConfigurationprotected booleanprotected booleanprotected booleanprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanFields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutorFields inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
databaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC -
Constructor Summary
ConstructorsConstructorDescriptionDeadLetterJobQueryImpl(CommandContext commandContext, JobServiceConfiguration jobServiceConfiguration) DeadLetterJobQueryImpl(CommandExecutor commandExecutor, JobServiceConfiguration jobServiceConfiguration) -
Method Summary
Modifier and TypeMethodDescriptioncaseDefinitionId(String caseDefinitionId) Only select jobs for the given case definition.caseDefinitionKey(String caseDefinitionKey) Only select tasks for the given case definition key.caseInstanceId(String caseInstanceId) Only select jobs for the given case instance.Only select jobs which exist for the given categorycategoryLike(String categoryLike) Only select jobs like for the given category valuecorrelationId(String correlationId) Only select jobs with the given correlationId.duedateHigherThan(Date date) Only select jobs where the duedate is higher then the given date.duedateLowerThan(Date date) Only select jobs where the duedate is lower than the given date.Only select jobs which exist for the given element idelementName(String elementName) Only select jobs which exist for the given element nameexceptionMessage(String exceptionMessage) Only select jobs that failed due to an exception with the given message.Only select jobs which are executable, ie.longexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext) Executes the actual query to retrieve the list of results.executionId(String executionId) Only select jobs which exist for the given executionOnly select external worker jobs.booleangetId()getNow()handlerType(String handlerType) Select jobs which have given job handler typehandlerTypes(Collection<String> handlerTypes) Select jobs which have one of the given job handler typebooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanOnly select jobs with the given idjobIds(Collection<String> jobIds) Only select jobs with the given ids.jobTenantId(String tenantId) Only select jobs that have the given tenant id.jobTenantIdLike(String tenantIdLike) Only select jobs with a tenant id like the given one.Only select jobs that do not have a tenant id.messages()Only select jobs that are messages.Order by execution id (needs to be followed byQuery.asc()orQuery.desc()).Order by create time (needs to be followed byQuery.asc()orQuery.desc()).Order by duedate (needs to be followed byQuery.asc()orQuery.desc()).Order by job id (needs to be followed byQuery.asc()orQuery.desc()).Order by retries (needs to be followed byQuery.asc()orQuery.desc()).Order by process instance id (needs to be followed byQuery.asc()orQuery.desc()).Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).planItemInstanceId(String planItemInstanceId) Only select jobs for the given plan item instance.processDefinitionId(String processDefinitionId) Only select jobs which exist for the given process definition idprocessDefinitionKey(String processDefinitionKey) Only select jobs which exist for the given process definition keyprocessInstanceId(String processInstanceId) Only select jobs which exist for the given process instance.scopeDefinitionId(String scopeDefinitionId) Only select tasks for the given scope definition identifier.Only select tasks for the given scope identifier.Only select tasks for the given scope type.subScopeId(String subScopeId) Only select tasks for the given sub scope identifier.timers()Only select jobs that are timers.Only select jobs that failed due to an exception.Only select jobs without a process instance id value.Only select jobs without a scope id value.Only return jobs that do not have a scope type.Methods inherited from class org.flowable.common.engine.impl.query.AbstractQuery
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResultMethods inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
addOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setParameter
-
Field Details
-
jobServiceConfiguration
-
id
-
jobIds
-
processInstanceId
-
withoutProcessInstanceId
protected boolean withoutProcessInstanceId -
executionId
-
handlerType
-
handlerTypes
-
processDefinitionId
-
processDefinitionKey
-
category
-
categoryLike
-
elementId
-
elementName
-
scopeId
-
withoutScopeId
protected boolean withoutScopeId -
subScopeId
-
scopeType
-
withoutScopeType
protected boolean withoutScopeType -
scopeDefinitionId
-
caseDefinitionKey
-
correlationId
-
executable
protected boolean executable -
onlyTimers
protected boolean onlyTimers -
onlyMessages
protected boolean onlyMessages -
onlyExternalWorkers
protected boolean onlyExternalWorkers -
duedateHigherThan
-
duedateLowerThan
-
duedateHigherThanOrEqual
-
duedateLowerThanOrEqual
-
withException
protected boolean withException -
exceptionMessage
-
tenantId
-
tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId
-
-
Constructor Details
-
DeadLetterJobQueryImpl
public DeadLetterJobQueryImpl() -
DeadLetterJobQueryImpl
public DeadLetterJobQueryImpl(CommandContext commandContext, JobServiceConfiguration jobServiceConfiguration) -
DeadLetterJobQueryImpl
public DeadLetterJobQueryImpl(CommandExecutor commandExecutor, JobServiceConfiguration jobServiceConfiguration)
-
-
Method Details
-
jobId
Description copied from interface:BaseJobQueryOnly select jobs with the given id- Specified by:
jobIdin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
jobIds
Description copied from interface:BaseJobQueryOnly select jobs with the given ids. If you use jobId(StringjobId) this filter gets ignored.- Specified by:
jobIdsin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
processInstanceId
Description copied from interface:BaseJobQueryOnly select jobs which exist for the given process instance.- Specified by:
processInstanceIdin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
withoutProcessInstanceId
Description copied from interface:BaseJobQueryOnly select jobs without a process instance id value.- Specified by:
withoutProcessInstanceIdin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
processDefinitionId
Description copied from interface:BaseJobQueryOnly select jobs which exist for the given process definition id- Specified by:
processDefinitionIdin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
processDefinitionKey
Description copied from interface:BaseJobQueryOnly select jobs which exist for the given process definition key- Specified by:
processDefinitionKeyin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
category
Description copied from interface:BaseJobQueryOnly select jobs which exist for the given category- Specified by:
categoryin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
categoryLike
Description copied from interface:BaseJobQueryOnly select jobs like for the given category value- Specified by:
categoryLikein interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
elementId
Description copied from interface:BaseJobQueryOnly select jobs which exist for the given element id- Specified by:
elementIdin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
elementName
Description copied from interface:BaseJobQueryOnly select jobs which exist for the given element name- Specified by:
elementNamein interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
scopeId
Description copied from interface:BaseJobQueryOnly select tasks for the given scope identifier.- Specified by:
scopeIdin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
withoutScopeId
Description copied from interface:BaseJobQueryOnly select jobs without a scope id value.- Specified by:
withoutScopeIdin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
subScopeId
Description copied from interface:BaseJobQueryOnly select tasks for the given sub scope identifier.- Specified by:
subScopeIdin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
scopeType
Description copied from interface:BaseJobQueryOnly select tasks for the given scope type.- Specified by:
scopeTypein interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
withoutScopeType
Description copied from interface:BaseJobQueryOnly return jobs that do not have a scope type.- Specified by:
withoutScopeTypein interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
scopeDefinitionId
Description copied from interface:BaseJobQueryOnly select tasks for the given scope definition identifier.- Specified by:
scopeDefinitionIdin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
caseInstanceId
Description copied from interface:BaseJobQueryOnly select jobs for the given case instance.- Specified by:
caseInstanceIdin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
caseDefinitionId
Description copied from interface:BaseJobQueryOnly select jobs for the given case definition.- Specified by:
caseDefinitionIdin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
caseDefinitionKey
Description copied from interface:BaseJobQueryOnly select tasks for the given case definition key.- Specified by:
caseDefinitionKeyin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
planItemInstanceId
Description copied from interface:BaseJobQueryOnly select jobs for the given plan item instance.- Specified by:
planItemInstanceIdin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
correlationId
Description copied from interface:BaseJobQueryOnly select jobs with the given correlationId.- Specified by:
correlationIdin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
executionId
Description copied from interface:BaseJobQueryOnly select jobs which exist for the given execution- Specified by:
executionIdin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
handlerType
Description copied from interface:BaseJobQuerySelect jobs which have given job handler type- Specified by:
handlerTypein interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
handlerTypes
Description copied from interface:BaseJobQuerySelect jobs which have one of the given job handler type- Specified by:
handlerTypesin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
executable
Description copied from interface:DeadLetterJobQueryOnly select jobs which are executable, ie. duedate is null or duedate is in the past- Specified by:
executablein interfaceDeadLetterJobQuery
-
timers
Description copied from interface:DeadLetterJobQueryOnly select jobs that are timers. Cannot be used together withDeadLetterJobQuery.messages()orDeadLetterJobQuery.externalWorkers()- Specified by:
timersin interfaceDeadLetterJobQuery
-
messages
Description copied from interface:DeadLetterJobQueryOnly select jobs that are messages. Cannot be used together withDeadLetterJobQuery.timers()orDeadLetterJobQuery.externalWorkers()- Specified by:
messagesin interfaceDeadLetterJobQuery
-
externalWorkers
Description copied from interface:DeadLetterJobQueryOnly select external worker jobs. Cannot be used together withDeadLetterJobQuery.timers()orDeadLetterJobQuery.messages()- Specified by:
externalWorkersin interfaceDeadLetterJobQuery
-
duedateHigherThan
Description copied from interface:BaseJobQueryOnly select jobs where the duedate is higher then the given date.- Specified by:
duedateHigherThanin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
duedateLowerThan
Description copied from interface:BaseJobQueryOnly select jobs where the duedate is lower than the given date.- Specified by:
duedateLowerThanin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
withException
Description copied from interface:BaseJobQueryOnly select jobs that failed due to an exception.- Specified by:
withExceptionin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
exceptionMessage
Description copied from interface:BaseJobQueryOnly select jobs that failed due to an exception with the given message.- Specified by:
exceptionMessagein interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
jobTenantId
Description copied from interface:BaseJobQueryOnly select jobs that have the given tenant id.- Specified by:
jobTenantIdin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
jobTenantIdLike
Description copied from interface:BaseJobQueryOnly select jobs with a tenant id like the given one.- Specified by:
jobTenantIdLikein interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
jobWithoutTenantId
Description copied from interface:BaseJobQueryOnly select jobs that do not have a tenant id.- Specified by:
jobWithoutTenantIdin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
orderByJobDuedate
Description copied from interface:BaseJobQueryOrder by duedate (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobDuedatein interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
orderByJobCreateTime
Description copied from interface:BaseJobQueryOrder by create time (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobCreateTimein interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
orderByExecutionId
Description copied from interface:BaseJobQueryOrder by execution id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByExecutionIdin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
orderByJobId
Description copied from interface:BaseJobQueryOrder by job id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobIdin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
orderByProcessInstanceId
Description copied from interface:BaseJobQueryOrder by process instance id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
orderByJobRetries
Description copied from interface:BaseJobQueryOrder by retries (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobRetriesin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
orderByTenantId
Description copied from interface:BaseJobQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceBaseJobQuery<DeadLetterJobQuery,Job>
-
executeCount
- Specified by:
executeCountin classAbstractQuery<DeadLetterJobQuery,Job>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<DeadLetterJobQuery,Job>
-
getProcessInstanceId
-
isWithoutProcessInstanceId
public boolean isWithoutProcessInstanceId() -
getExecutionId
-
getHandlerType
-
getHandlerTypes
-
getExecutable
public boolean getExecutable() -
getNow
-
isWithException
public boolean isWithException() -
getExceptionMessage
-
getTenantId
-
getTenantIdLike
-
isWithoutTenantId
public boolean isWithoutTenantId() -
getId
-
getProcessDefinitionId
-
getProcessDefinitionKey
-
getCategory
-
getCategoryLike
-
getElementId
-
getElementName
-
getScopeId
-
isWithoutScopeId
public boolean isWithoutScopeId() -
getSubScopeId
-
getScopeType
-
isWithoutScopeType
public boolean isWithoutScopeType() -
getScopeDefinitionId
-
getCaseDefinitionKey
-
getCorrelationId
-
isOnlyTimers
public boolean isOnlyTimers() -
isOnlyMessages
public boolean isOnlyMessages() -
isExecutable
public boolean isExecutable() -
isOnlyExternalWorkers
public boolean isOnlyExternalWorkers() -
getDuedateHigherThan
-
getDuedateLowerThan
-
getDuedateHigherThanOrEqual
-
getDuedateLowerThanOrEqual
-