|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.db.AuthorizationCheck
org.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.engine.impl.AbstractQuery<JobQuery,Job>
org.camunda.bpm.engine.impl.JobQueryImpl
public class JobQueryImpl
| Field Summary | |
|---|---|
protected String |
activityId
|
protected Date |
duedateHigherThan
|
protected Date |
duedateHigherThanOrEqual
|
protected Date |
duedateLowerThan
|
protected Date |
duedateLowerThanOrEqual
|
protected String |
exceptionMessage
|
protected boolean |
executable
|
protected String |
executionId
|
protected String |
id
|
protected String |
jobDefinitionId
|
protected boolean |
noRetriesLeft
|
protected boolean |
onlyMessages
|
protected boolean |
onlyTimers
|
protected String |
processDefinitionId
|
protected String |
processDefinitionKey
|
protected String |
processInstanceId
|
protected boolean |
retriesLeft
|
protected SuspensionState |
suspensionState
|
protected boolean |
withException
|
| Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery |
|---|
commandContext, commandExecutor, expressions, orderingProperties, resultType, SORTORDER_ASC, SORTORDER_DESC |
| Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject |
|---|
databaseType, DEFAULT_ORDER_BY, firstResult, maxResults, orderBy, parameter |
| Fields inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck |
|---|
authDefaultPerm, authGroupIds, authUserId, isAuthorizationCheckEnabled, permissionChecks |
| Constructor Summary | |
|---|---|
JobQueryImpl()
|
|
JobQueryImpl(CommandContext commandContext)
|
|
JobQueryImpl(CommandExecutor commandExecutor)
|
|
| Method Summary | |
|---|---|
JobQuery |
active()
|
JobQuery |
activityId(String activityId)
Only select jobs which are defined on an activity with the given id. |
JobQuery |
duedateHigherThan(Date date)
Only select jobs where the duedate is higher then the given date. |
JobQuery |
duedateHigherThen(Date date)
Only select jobs where the duedate is higher then the given date. |
JobQuery |
duedateHigherThenOrEquals(Date date)
Only select jobs where the duedate is higher then or equals the given date. |
JobQuery |
duedateLowerThan(Date date)
Only select jobs where the duedate is lower than the given date. |
JobQuery |
duedateLowerThen(Date date)
Only select jobs where the duedate is lower then the given date. |
JobQuery |
duedateLowerThenOrEquals(Date date)
Only select jobs where the duedate is lower then or equals the given date. |
JobQuery |
exceptionMessage(String exceptionMessage)
Only select jobs that failed due to an exception with the given message. |
JobQuery |
executable()
Only select jobs which are executable, ie. |
long |
executeCount(CommandContext commandContext)
|
List<Job> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results. |
JobQueryImpl |
executionId(String executionId)
Only select jobs which exist for the given execution |
String |
getExceptionMessage()
|
boolean |
getExecutable()
|
String |
getExecutionId()
|
Date |
getNow()
|
String |
getProcessInstanceId()
|
boolean |
getRetriesLeft()
|
boolean |
isWithException()
|
JobQuery |
jobDefinitionId(String jobDefinitionId)
Only select jobs which exist for the given job definition id. |
JobQuery |
jobId(String jobId)
Only select jobs with the given id |
JobQuery |
messages()
Only select jobs that are messages. |
JobQuery |
noRetriesLeft()
Only select jobs which have no retries left |
JobQuery |
orderByExecutionId()
Order by execution id (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 |
orderByProcessDefinitionId()
Order by process definition id (needs to be followed by Query.asc() or Query.desc()). |
JobQuery |
orderByProcessDefinitionKey()
Order by process definition key (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 |
processDefinitionId(String processDefinitionId)
Only select jobs which exist for the given process definition id. |
JobQuery |
processDefinitionKey(String processDefinitionKey)
Only select jobs which exist for the given process definition key. |
JobQueryImpl |
processInstanceId(String processInstanceId)
Only select jobs which exist for the given process instance. |
JobQuery |
suspended()
|
JobQuery |
timers()
Only select jobs that are timers. |
JobQuery |
withException()
Only select jobs that failed due to an exception. |
JobQuery |
withRetriesLeft()
Only select jobs which have retries left |
| Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery |
|---|
addExpression, asc, checkQueryOk, count, desc, direction, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteList, execute, executeSingleResult, extend, getExpressions, getMethod, getOrderBy, getOrderingProperties, list, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, setCommandExecutor, setExpressions, setOrderingProperties, singleResult |
| Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject |
|---|
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setOrderBy, setParameter |
| Methods inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck |
|---|
addPermissionCheck, getAuthDefaultPerm, getAuthGroupIds, getAuthUserId, getPermissionChecks, isAuthorizationCheckEnabled, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthUserId, setPermissionChecks |
| 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.query.Query |
|---|
asc, count, desc, list, listPage, singleResult |
| Field Detail |
|---|
protected String activityId
protected String id
protected String jobDefinitionId
protected String processInstanceId
protected String executionId
protected String processDefinitionId
protected String processDefinitionKey
protected boolean retriesLeft
protected boolean executable
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 boolean noRetriesLeft
protected SuspensionState suspensionState
| Constructor Detail |
|---|
public JobQueryImpl()
public JobQueryImpl(CommandContext commandContext)
public JobQueryImpl(CommandExecutor commandExecutor)
| Method Detail |
|---|
public JobQuery jobId(String jobId)
JobQuery
jobId in interface JobQuerypublic JobQuery jobDefinitionId(String jobDefinitionId)
JobQuery
jobDefinitionId in interface JobQuerypublic JobQueryImpl processInstanceId(String processInstanceId)
JobQuery
processInstanceId in interface JobQuerypublic JobQueryImpl executionId(String executionId)
JobQuery
executionId in interface JobQuerypublic JobQuery processDefinitionId(String processDefinitionId)
JobQuery
processDefinitionId in interface JobQuerypublic JobQuery processDefinitionKey(String processDefinitionKey)
JobQuery
processDefinitionKey in interface JobQuerypublic JobQuery activityId(String activityId)
JobQuery
activityId in interface JobQuerypublic JobQuery withRetriesLeft()
JobQuery
withRetriesLeft in interface JobQuerypublic JobQuery executable()
JobQuery
executable in interface JobQuerypublic JobQuery timers()
JobQueryJobQuery.messages()
timers in interface JobQuerypublic JobQuery messages()
JobQueryJobQuery.timers()
messages in interface JobQuerypublic JobQuery duedateHigherThan(Date date)
JobQuery
duedateHigherThan in interface JobQuerypublic JobQuery duedateLowerThan(Date date)
JobQuery
duedateLowerThan in interface JobQuerypublic JobQuery duedateHigherThen(Date date)
JobQuery
duedateHigherThen in interface JobQuerypublic JobQuery duedateHigherThenOrEquals(Date date)
JobQuery
duedateHigherThenOrEquals in interface JobQuerypublic JobQuery duedateLowerThen(Date date)
JobQuery
duedateLowerThen in interface JobQuerypublic JobQuery duedateLowerThenOrEquals(Date date)
JobQuery
duedateLowerThenOrEquals in interface JobQuerypublic JobQuery withException()
JobQuery
withException in interface JobQuerypublic JobQuery exceptionMessage(String exceptionMessage)
JobQuery
exceptionMessage in interface JobQuerypublic JobQuery noRetriesLeft()
JobQuery
noRetriesLeft in interface JobQuerypublic JobQuery active()
active in interface JobQuerypublic JobQuery suspended()
suspended in interface JobQuerypublic JobQuery orderByJobDuedate()
JobQueryQuery.asc() or Query.desc()).
orderByJobDuedate 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 orderByProcessDefinitionId()
JobQueryQuery.asc() or Query.desc()).
orderByProcessDefinitionId in interface JobQuerypublic JobQuery orderByProcessDefinitionKey()
JobQueryQuery.asc() or Query.desc()).
orderByProcessDefinitionKey in interface JobQuerypublic JobQuery orderByJobRetries()
JobQueryQuery.asc() or Query.desc()).
orderByJobRetries in interface JobQuerypublic long executeCount(CommandContext commandContext)
executeCount in class AbstractQuery<JobQuery,Job>
public List<Job> executeList(CommandContext commandContext,
Page page)
AbstractQuery
executeList in class AbstractQuery<JobQuery,Job>page - used if the results must be paged. If null, no paging will be applied.public String getProcessInstanceId()
public String getExecutionId()
public boolean getRetriesLeft()
public boolean getExecutable()
public Date getNow()
public boolean isWithException()
public String getExceptionMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||