public class JobQueryImpl extends AbstractQuery<JobQuery,Job> implements JobQuery, Serializable
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultTypeQuery.NullHandlingOnOrder| Modifier and Type | Field and Description |
|---|---|
protected String |
category |
protected String |
categoryLike |
protected String |
correlationId |
protected Date |
duedateHigherThan |
protected Date |
duedateHigherThanOrEqual |
protected Date |
duedateLowerThan |
protected Date |
duedateLowerThanOrEqual |
protected String |
elementId |
protected String |
elementName |
protected String |
exceptionMessage |
protected String |
executionId |
protected String |
handlerType |
protected String |
id |
protected JobServiceConfiguration |
jobServiceConfiguration |
protected String |
lockOwner |
protected boolean |
onlyLocked |
protected boolean |
onlyMessages |
protected boolean |
onlyTimers |
protected boolean |
onlyUnlocked |
protected String |
processDefinitionId |
protected String |
processInstanceId |
protected String |
scopeDefinitionId |
protected String |
scopeId |
protected String |
scopeType |
protected String |
subScopeId |
protected String |
tenantId |
protected String |
tenantIdLike |
protected boolean |
withException |
protected boolean |
withoutScopeType |
protected boolean |
withoutTenantId |
commandContext, commandExecutordatabaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC| Constructor and Description |
|---|
JobQueryImpl() |
JobQueryImpl(CommandContext commandContext,
JobServiceConfiguration jobServiceConfiguration) |
JobQueryImpl(CommandExecutor commandExecutor,
JobServiceConfiguration jobServiceConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
JobQueryImpl |
caseDefinitionId(String caseDefinitionId)
Only select jobs for the given case definition.
|
JobQueryImpl |
caseInstanceId(String caseInstanceId)
Only select jobs for the given case instance.
|
JobQueryImpl |
category(String category)
Only select jobs which exist for the given category
|
JobQueryImpl |
categoryLike(String categoryLike)
Only select jobs like for the given category value
|
JobQueryImpl |
correlationId(String correlationId)
Only select jobs with the given correlationId.
|
JobQuery |
duedateHigherThan(Date date)
Only select jobs where the duedate is higher then the given date.
|
JobQuery |
duedateLowerThan(Date date)
Only select jobs where the duedate is lower than the given date.
|
JobQueryImpl |
elementId(String elementId)
Only select jobs which exist for the given element id
|
JobQueryImpl |
elementName(String elementName)
Only select jobs which exist for the given element name
|
JobQuery |
exceptionMessage(String exceptionMessage)
Only select jobs that failed due to an exception with the given message.
|
long |
executeCount(CommandContext commandContext) |
List<Job> |
executeList(CommandContext commandContext)
Executes the actual query to retrieve the list of results.
|
JobQueryImpl |
executionId(String executionId)
Only select jobs which exist for the given execution
|
String |
getCategory() |
String |
getCategoryLike() |
String |
getCorrelationId() |
Date |
getDuedateHigherThan() |
Date |
getDuedateHigherThanOrEqual() |
Date |
getDuedateLowerThan() |
Date |
getDuedateLowerThanOrEqual() |
String |
getElementId() |
String |
getElementName() |
String |
getExceptionMessage() |
String |
getExecutionId() |
String |
getHandlerType() |
String |
getId() |
String |
getLockOwner() |
Date |
getNow() |
String |
getProcessDefinitionId() |
String |
getProcessInstanceId() |
String |
getScopeDefinitionId() |
String |
getScopeId() |
String |
getScopeType() |
String |
getSubScopeId() |
String |
getTenantId() |
String |
getTenantIdLike() |
JobQueryImpl |
handlerType(String handlerType)
Select jobs which have given job handler type
|
boolean |
isOnlyLocked() |
boolean |
isOnlyMessages() |
boolean |
isOnlyTimers() |
boolean |
isOnlyUnlocked() |
boolean |
isWithException() |
boolean |
isWithoutScopeType() |
boolean |
isWithoutTenantId() |
JobQuery |
jobId(String jobId)
Only select jobs with the given id
|
JobQuery |
jobTenantId(String tenantId)
Only select jobs that have the given tenant id.
|
JobQuery |
jobTenantIdLike(String tenantIdLike)
Only select jobs with a tenant id like the given one.
|
JobQuery |
jobWithoutTenantId()
Only select jobs that do not have a tenant id.
|
JobQuery |
locked()
Only return jobs that are locked (i.e.
|
JobQuery |
lockOwner(String lockOwner)
Only return jobs with the given lock owner.
|
JobQuery |
messages()
Only select jobs that are messages.
|
JobQuery |
orderByExecutionId()
Order by execution id (needs to be followed by
Query.asc() or Query.desc()). |
JobQuery |
orderByJobCreateTime()
Order by create time (needs to be followed by
Query.asc() or Query.desc()). |
JobQuery |
orderByJobDuedate()
Order by duedate (needs to be followed by
Query.asc() or Query.desc()). |
JobQuery |
orderByJobId()
Order by job id (needs to be followed by
Query.asc() or Query.desc()). |
JobQuery |
orderByJobRetries()
Order by retries (needs to be followed by
Query.asc() or Query.desc()). |
JobQuery |
orderByProcessInstanceId()
Order by process instance id (needs to be followed by
Query.asc() or Query.desc()). |
JobQuery |
orderByTenantId()
Order by tenant id (needs to be followed by
Query.asc() or Query.desc()). |
JobQueryImpl |
planItemInstanceId(String planItemInstanceId)
Only select jobs for the given plan item instance.
|
JobQueryImpl |
processDefinitionId(String processDefinitionId)
Only select jobs which exist for the given process definition id
|
JobQueryImpl |
processInstanceId(String processInstanceId)
Only select jobs which exist for the given process instance.
|
JobQueryImpl |
scopeDefinitionId(String scopeDefinitionId)
Only select tasks for the given scope definition identifier.
|
JobQueryImpl |
scopeId(String scopeId)
Only select tasks for the given scope identifier.
|
JobQueryImpl |
scopeType(String scopeType)
Only select tasks for the given scope type.
|
JobQueryImpl |
subScopeId(String subScopeId)
Only select tasks for the given sub scope identifier.
|
JobQuery |
timers()
Only select jobs that are timers.
|
JobQuery |
unlocked()
Only return jobs that are not locked.
|
JobQuery |
withException()
Only select jobs that failed due to an exception.
|
JobQuery |
withoutScopeType()
Only return jobs that do not have a scope type.
|
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResultaddOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setParameterprotected JobServiceConfiguration jobServiceConfiguration
protected String id
protected String processInstanceId
protected String executionId
protected String handlerType
protected String processDefinitionId
protected String category
protected String categoryLike
protected String elementId
protected String elementName
protected String scopeId
protected String subScopeId
protected String scopeType
protected String scopeDefinitionId
protected String correlationId
protected boolean onlyTimers
protected boolean onlyMessages
protected Date duedateHigherThan
protected Date duedateLowerThan
protected Date duedateHigherThanOrEqual
protected Date duedateLowerThanOrEqual
protected boolean withException
protected String exceptionMessage
protected String tenantId
protected String tenantIdLike
protected boolean withoutTenantId
protected boolean withoutScopeType
protected String lockOwner
protected boolean onlyLocked
protected boolean onlyUnlocked
public JobQueryImpl()
public JobQueryImpl(CommandContext commandContext, JobServiceConfiguration jobServiceConfiguration)
public JobQueryImpl(CommandExecutor commandExecutor, JobServiceConfiguration jobServiceConfiguration)
public JobQuery jobId(String jobId)
JobQuerypublic JobQueryImpl processInstanceId(String processInstanceId)
JobQueryprocessInstanceId in interface JobQuerypublic JobQueryImpl processDefinitionId(String processDefinitionId)
JobQueryprocessDefinitionId in interface JobQuerypublic JobQueryImpl category(String category)
JobQuerypublic JobQueryImpl categoryLike(String categoryLike)
JobQuerycategoryLike in interface JobQuerypublic JobQueryImpl elementId(String elementId)
JobQuerypublic JobQueryImpl elementName(String elementName)
JobQueryelementName in interface JobQuerypublic JobQueryImpl scopeId(String scopeId)
JobQuerypublic JobQueryImpl subScopeId(String subScopeId)
JobQuerysubScopeId in interface JobQuerypublic JobQueryImpl scopeType(String scopeType)
JobQuerypublic JobQueryImpl scopeDefinitionId(String scopeDefinitionId)
JobQueryscopeDefinitionId in interface JobQuerypublic JobQueryImpl caseInstanceId(String caseInstanceId)
JobQuerycaseInstanceId in interface JobQuerypublic JobQueryImpl caseDefinitionId(String caseDefinitionId)
JobQuerycaseDefinitionId in interface JobQuerypublic JobQueryImpl planItemInstanceId(String planItemInstanceId)
JobQueryplanItemInstanceId in interface JobQuerypublic JobQueryImpl correlationId(String correlationId)
JobQuerycorrelationId in interface JobQuerypublic JobQueryImpl executionId(String executionId)
JobQueryexecutionId in interface JobQuerypublic JobQueryImpl handlerType(String handlerType)
JobQueryhandlerType in interface JobQuerypublic JobQuery timers()
JobQueryJobQuery.messages()public JobQuery messages()
JobQueryJobQuery.timers()public JobQuery duedateHigherThan(Date date)
JobQueryduedateHigherThan in interface JobQuerypublic JobQuery duedateLowerThan(Date date)
JobQueryduedateLowerThan in interface JobQuerypublic JobQuery withException()
JobQuerywithException in interface JobQuerypublic JobQuery exceptionMessage(String exceptionMessage)
JobQueryexceptionMessage in interface JobQuerypublic JobQuery jobTenantId(String tenantId)
JobQueryjobTenantId in interface JobQuerypublic JobQuery jobTenantIdLike(String tenantIdLike)
JobQueryjobTenantIdLike in interface JobQuerypublic JobQuery jobWithoutTenantId()
JobQueryjobWithoutTenantId in interface JobQuerypublic JobQuery lockOwner(String lockOwner)
JobQuerypublic JobQuery locked()
JobQuerypublic JobQuery unlocked()
JobQuerypublic JobQuery withoutScopeType()
JobQuerywithoutScopeType in interface JobQuerypublic JobQuery orderByJobDuedate()
JobQueryQuery.asc() or Query.desc()).orderByJobDuedate in interface JobQuerypublic JobQuery orderByJobCreateTime()
JobQueryQuery.asc() or Query.desc()).orderByJobCreateTime in interface JobQuerypublic JobQuery orderByExecutionId()
JobQueryQuery.asc() or Query.desc()).orderByExecutionId in interface JobQuerypublic JobQuery orderByJobId()
JobQueryQuery.asc() or Query.desc()).orderByJobId in interface JobQuerypublic JobQuery orderByProcessInstanceId()
JobQueryQuery.asc() or Query.desc()).orderByProcessInstanceId in interface JobQuerypublic JobQuery orderByJobRetries()
JobQueryQuery.asc() or Query.desc()).orderByJobRetries in interface JobQuerypublic JobQuery orderByTenantId()
JobQueryQuery.asc() or Query.desc()).orderByTenantId in interface JobQuerypublic long executeCount(CommandContext commandContext)
executeCount in class AbstractQuery<JobQuery,Job>public List<Job> executeList(CommandContext commandContext)
AbstractQueryexecuteList in class AbstractQuery<JobQuery,Job>public String getProcessInstanceId()
public String getExecutionId()
public String getHandlerType()
public Date getNow()
public boolean isWithException()
public String getExceptionMessage()
public String getTenantId()
public String getTenantIdLike()
public boolean isWithoutTenantId()
public String getId()
public String getProcessDefinitionId()
public String getCategory()
public String getCategoryLike()
public String getElementId()
public String getElementName()
public String getScopeId()
public String getSubScopeId()
public String getScopeType()
public String getScopeDefinitionId()
public String getCorrelationId()
public boolean isOnlyTimers()
public boolean isOnlyMessages()
public Date getDuedateHigherThan()
public Date getDuedateLowerThan()
public Date getDuedateHigherThanOrEqual()
public Date getDuedateLowerThanOrEqual()
public String getLockOwner()
public boolean isOnlyLocked()
public boolean isOnlyUnlocked()
public boolean isWithoutScopeType()
Copyright © 2023 Flowable. All rights reserved.