Package org.activiti.engine.impl
Class JobQueryImpl
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.activiti.engine.impl.AbstractQuery
AbstractQuery.NullHandlingOnOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Dateprotected Dateprotected Dateprotected Dateprotected Stringprotected booleanprotected Stringprotected Stringprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected booleanprotected booleanFields inherited from class org.activiti.engine.impl.AbstractQuery
commandContext, commandExecutor, databaseType, nullHandlingOnOrder, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESCFields inherited from class org.activiti.engine.impl.db.ListQueryParameterObject
firstResult, maxResults, parameter -
Constructor Summary
ConstructorsConstructorDescriptionJobQueryImpl(CommandContext commandContext) JobQueryImpl(CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionduedateHigherThan(Date date) Only select jobs where the duedate is higher then the given date.duedateHigherThen(Date date) duedateLowerThan(Date date) Only select jobs where the duedate is lower than the given date.duedateLowerThen(Date date) duedateLowerThenOrEquals(Date date) exceptionMessage(String exceptionMessage) Only select jobs that failed due to an exception with the given message.longexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.executionId(String executionId) Only select jobs which exist for the given executionbooleangetId()getNow()booleanstatic longbooleanbooleanbooleanbooleanbooleanbooleanbooleanOnly select jobs with the given idjobTenantId(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.locked()Only return jobs that are locked (i.e. they are acquired by an executor).messages()Only select jobs that are messages.Order by execution id (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()).processDefinitionId(String processDefinitionId) Only select jobs which exist for the given process definition idprocessInstanceId(String processInstanceId) Only select jobs which exist for the given process instance.timers()Only select jobs that are timers.unlocked()Only return jobs that are not locked.Only select jobs that failed due to an exception.Methods inherited from class org.activiti.engine.impl.AbstractQuery
addOrder, asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, getDatabaseType, getOrderBy, getOrderByColumns, list, listPage, orderBy, orderBy, setCommandExecutor, setDatabaseType, singleResultMethods inherited from class org.activiti.engine.impl.db.ListQueryParameterObject
getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setFirstResult, setMaxResults, setParameter
-
Field Details
-
id
-
processInstanceId
-
executionId
-
processDefinitionId
-
retriesLeft
protected boolean retriesLeft -
executable
protected boolean executable -
onlyTimers
protected boolean onlyTimers -
onlyMessages
protected boolean onlyMessages -
duedateHigherThan
-
duedateLowerThan
-
duedateHigherThanOrEqual
-
duedateLowerThanOrEqual
-
withException
protected boolean withException -
exceptionMessage
-
tenantId
-
tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId -
noRetriesLeft
protected boolean noRetriesLeft -
onlyLocked
protected boolean onlyLocked -
onlyUnlocked
protected boolean onlyUnlocked
-
-
Constructor Details
-
JobQueryImpl
public JobQueryImpl() -
JobQueryImpl
-
JobQueryImpl
-
-
Method Details
-
jobId
Description copied from interface:JobQueryOnly select jobs with the given id -
processInstanceId
Description copied from interface:JobQueryOnly select jobs which exist for the given process instance.- Specified by:
processInstanceIdin interfaceJobQuery
-
processDefinitionId
Description copied from interface:JobQueryOnly select jobs which exist for the given process definition id- Specified by:
processDefinitionIdin interfaceJobQuery
-
executionId
Description copied from interface:JobQueryOnly select jobs which exist for the given execution- Specified by:
executionIdin interfaceJobQuery
-
withRetriesLeft
-
executable
-
timers
Description copied from interface:JobQueryOnly select jobs that are timers. Cannot be used together withJobQuery.messages() -
messages
Description copied from interface:JobQueryOnly select jobs that are messages. Cannot be used together withJobQuery.timers() -
duedateHigherThan
Description copied from interface:JobQueryOnly select jobs where the duedate is higher then the given date.- Specified by:
duedateHigherThanin interfaceJobQuery
-
duedateLowerThan
Description copied from interface:JobQueryOnly select jobs where the duedate is lower than the given date.- Specified by:
duedateLowerThanin interfaceJobQuery
-
duedateHigherThen
-
duedateHigherThenOrEquals
-
duedateLowerThen
-
duedateLowerThenOrEquals
-
noRetriesLeft
-
withException
Description copied from interface:JobQueryOnly select jobs that failed due to an exception.- Specified by:
withExceptionin interfaceJobQuery
-
exceptionMessage
Description copied from interface:JobQueryOnly select jobs that failed due to an exception with the given message.- Specified by:
exceptionMessagein interfaceJobQuery
-
jobTenantId
Description copied from interface:JobQueryOnly select jobs that have the given tenant id.- Specified by:
jobTenantIdin interfaceJobQuery
-
jobTenantIdLike
Description copied from interface:JobQueryOnly select jobs with a tenant id like the given one.- Specified by:
jobTenantIdLikein interfaceJobQuery
-
jobWithoutTenantId
Description copied from interface:JobQueryOnly select jobs that do not have a tenant id.- Specified by:
jobWithoutTenantIdin interfaceJobQuery
-
locked
Description copied from interface:JobQueryOnly return jobs that are locked (i.e. they are acquired by an executor). -
unlocked
Description copied from interface:JobQueryOnly return jobs that are not locked. -
orderByJobDuedate
Description copied from interface:JobQueryOrder by duedate (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobDuedatein interfaceJobQuery
-
orderByExecutionId
Description copied from interface:JobQueryOrder by execution id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByExecutionIdin interfaceJobQuery
-
orderByJobId
Description copied from interface:JobQueryOrder by job id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobIdin interfaceJobQuery
-
orderByProcessInstanceId
Description copied from interface:JobQueryOrder by process instance id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceJobQuery
-
orderByJobRetries
Description copied from interface:JobQueryOrder by retries (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobRetriesin interfaceJobQuery
-
orderByTenantId
Description copied from interface:JobQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceJobQuery
-
executeCount
- Specified by:
executeCountin classAbstractQuery<JobQuery,Job>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<JobQuery,Job> - Parameters:
page- used if the results must be paged. If null, no paging will be applied.
-
getProcessInstanceId
-
getExecutionId
-
getRetriesLeft
public boolean getRetriesLeft() -
getExecutable
public boolean getExecutable() -
getNow
-
isWithException
public boolean isWithException() -
getExceptionMessage
-
getTenantId
-
getTenantIdLike
-
isWithoutTenantId
public boolean isWithoutTenantId() -
getSerialversionuid
public static long getSerialversionuid() -
getId
-
getProcessDefinitionId
-
isOnlyTimers
public boolean isOnlyTimers() -
isOnlyMessages
public boolean isOnlyMessages() -
getDuedateHigherThan
-
getDuedateLowerThan
-
getDuedateHigherThanOrEqual
-
getDuedateLowerThanOrEqual
-
isNoRetriesLeft
public boolean isNoRetriesLeft() -
isOnlyLocked
public boolean isOnlyLocked() -
isOnlyUnlocked
public boolean isOnlyUnlocked()
-