Package org.activiti.engine.impl
Class JobQueryImpl
- java.lang.Object
-
- org.activiti.engine.impl.db.ListQueryParameterObject
-
- org.activiti.engine.impl.AbstractQuery<JobQuery,Job>
-
- org.activiti.engine.impl.JobQueryImpl
-
- All Implemented Interfaces:
java.io.Serializable,Command<java.lang.Object>,Query<JobQuery,Job>,JobQuery
public class JobQueryImpl extends AbstractQuery<JobQuery,Job> implements JobQuery, java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.activiti.engine.impl.AbstractQuery
AbstractQuery.NullHandlingOnOrder
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.DateduedateHigherThanprotected java.util.DateduedateHigherThanOrEqualprotected java.util.DateduedateLowerThanprotected java.util.DateduedateLowerThanOrEqualprotected java.lang.StringexceptionMessageprotected booleanexecutableprotected java.lang.StringexecutionIdprotected java.lang.Stringidprotected booleannoRetriesLeftprotected booleanonlyLockedprotected booleanonlyMessagesprotected booleanonlyTimersprotected booleanonlyUnlockedprotected java.lang.StringprocessDefinitionIdprotected java.lang.StringprocessInstanceIdprotected booleanretriesLeftprotected java.lang.StringtenantIdprotected java.lang.StringtenantIdLikeprotected booleanwithExceptionprotected booleanwithoutTenantId-
Fields inherited from class org.activiti.engine.impl.AbstractQuery
commandContext, commandExecutor, databaseType, nullHandlingOnOrder, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC
-
Fields inherited from class org.activiti.engine.impl.db.ListQueryParameterObject
firstResult, maxResults, parameter
-
-
Constructor Summary
Constructors Constructor Description JobQueryImpl()JobQueryImpl(CommandContext commandContext)JobQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JobQueryduedateHigherThan(java.util.Date date)Only select jobs where the duedate is higher then the given date.JobQueryduedateHigherThen(java.util.Date date)JobQueryduedateHigherThenOrEquals(java.util.Date date)JobQueryduedateLowerThan(java.util.Date date)Only select jobs where the duedate is lower than the given date.JobQueryduedateLowerThen(java.util.Date date)JobQueryduedateLowerThenOrEquals(java.util.Date date)JobQueryexceptionMessage(java.lang.String exceptionMessage)Only select jobs that failed due to an exception with the given message.JobQueryexecutable()longexecuteCount(CommandContext commandContext)java.util.List<Job>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.JobQueryImplexecutionId(java.lang.String executionId)Only select jobs which exist for the given executionjava.util.DategetDuedateHigherThan()java.util.DategetDuedateHigherThanOrEqual()java.util.DategetDuedateLowerThan()java.util.DategetDuedateLowerThanOrEqual()java.lang.StringgetExceptionMessage()booleangetExecutable()java.lang.StringgetExecutionId()java.lang.StringgetId()java.util.DategetNow()java.lang.StringgetProcessDefinitionId()java.lang.StringgetProcessInstanceId()booleangetRetriesLeft()static longgetSerialversionuid()java.lang.StringgetTenantId()java.lang.StringgetTenantIdLike()booleanisNoRetriesLeft()booleanisOnlyLocked()booleanisOnlyMessages()booleanisOnlyTimers()booleanisOnlyUnlocked()booleanisWithException()booleanisWithoutTenantId()JobQueryjobId(java.lang.String jobId)Only select jobs with the given idJobQueryjobTenantId(java.lang.String tenantId)Only select jobs that have the given tenant id.JobQueryjobTenantIdLike(java.lang.String tenantIdLike)Only select jobs with a tenant id like the given one.JobQueryjobWithoutTenantId()Only select jobs that do not have a tenant id.JobQuerylocked()Only return jobs that are locked (i.e.JobQuerymessages()Only select jobs that are messages.JobQuerynoRetriesLeft()JobQueryorderByExecutionId()Order by execution id (needs to be followed byQuery.asc()orQuery.desc()).JobQueryorderByJobDuedate()Order by duedate (needs to be followed byQuery.asc()orQuery.desc()).JobQueryorderByJobId()Order by job id (needs to be followed byQuery.asc()orQuery.desc()).JobQueryorderByJobRetries()Order by retries (needs to be followed byQuery.asc()orQuery.desc()).JobQueryorderByProcessInstanceId()Order by process instance id (needs to be followed byQuery.asc()orQuery.desc()).JobQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).JobQueryImplprocessDefinitionId(java.lang.String processDefinitionId)Only select jobs which exist for the given process definition idJobQueryImplprocessInstanceId(java.lang.String processInstanceId)Only select jobs which exist for the given process instance.JobQuerytimers()Only select jobs that are timers.JobQueryunlocked()Only return jobs that are not locked.JobQuerywithException()Only select jobs that failed due to an exception.JobQuerywithRetriesLeft()-
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, singleResult
-
Methods inherited from class org.activiti.engine.impl.db.ListQueryParameterObject
getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setFirstResult, setMaxResults, setParameter
-
-
-
-
Field Detail
-
id
protected java.lang.String id
-
processInstanceId
protected java.lang.String processInstanceId
-
executionId
protected java.lang.String executionId
-
processDefinitionId
protected java.lang.String processDefinitionId
-
retriesLeft
protected boolean retriesLeft
-
executable
protected boolean executable
-
onlyTimers
protected boolean onlyTimers
-
onlyMessages
protected boolean onlyMessages
-
duedateHigherThan
protected java.util.Date duedateHigherThan
-
duedateLowerThan
protected java.util.Date duedateLowerThan
-
duedateHigherThanOrEqual
protected java.util.Date duedateHigherThanOrEqual
-
duedateLowerThanOrEqual
protected java.util.Date duedateLowerThanOrEqual
-
withException
protected boolean withException
-
exceptionMessage
protected java.lang.String exceptionMessage
-
tenantId
protected java.lang.String tenantId
-
tenantIdLike
protected java.lang.String tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId
-
noRetriesLeft
protected boolean noRetriesLeft
-
onlyLocked
protected boolean onlyLocked
-
onlyUnlocked
protected boolean onlyUnlocked
-
-
Constructor Detail
-
JobQueryImpl
public JobQueryImpl()
-
JobQueryImpl
public JobQueryImpl(CommandContext commandContext)
-
JobQueryImpl
public JobQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
jobId
public JobQuery jobId(java.lang.String jobId)
Description copied from interface:JobQueryOnly select jobs with the given id
-
processInstanceId
public JobQueryImpl processInstanceId(java.lang.String processInstanceId)
Description copied from interface:JobQueryOnly select jobs which exist for the given process instance.- Specified by:
processInstanceIdin interfaceJobQuery
-
processDefinitionId
public JobQueryImpl processDefinitionId(java.lang.String processDefinitionId)
Description copied from interface:JobQueryOnly select jobs which exist for the given process definition id- Specified by:
processDefinitionIdin interfaceJobQuery
-
executionId
public JobQueryImpl executionId(java.lang.String executionId)
Description copied from interface:JobQueryOnly select jobs which exist for the given execution- Specified by:
executionIdin interfaceJobQuery
-
withRetriesLeft
public JobQuery withRetriesLeft()
-
executable
public JobQuery executable()
-
timers
public JobQuery timers()
Description copied from interface:JobQueryOnly select jobs that are timers. Cannot be used together withJobQuery.messages()
-
messages
public JobQuery messages()
Description copied from interface:JobQueryOnly select jobs that are messages. Cannot be used together withJobQuery.timers()
-
duedateHigherThan
public JobQuery duedateHigherThan(java.util.Date date)
Description copied from interface:JobQueryOnly select jobs where the duedate is higher then the given date.- Specified by:
duedateHigherThanin interfaceJobQuery
-
duedateLowerThan
public JobQuery duedateLowerThan(java.util.Date date)
Description copied from interface:JobQueryOnly select jobs where the duedate is lower than the given date.- Specified by:
duedateLowerThanin interfaceJobQuery
-
duedateHigherThen
public JobQuery duedateHigherThen(java.util.Date date)
-
duedateHigherThenOrEquals
public JobQuery duedateHigherThenOrEquals(java.util.Date date)
-
duedateLowerThen
public JobQuery duedateLowerThen(java.util.Date date)
-
duedateLowerThenOrEquals
public JobQuery duedateLowerThenOrEquals(java.util.Date date)
-
noRetriesLeft
public JobQuery noRetriesLeft()
-
withException
public JobQuery withException()
Description copied from interface:JobQueryOnly select jobs that failed due to an exception.- Specified by:
withExceptionin interfaceJobQuery
-
exceptionMessage
public JobQuery exceptionMessage(java.lang.String exceptionMessage)
Description copied from interface:JobQueryOnly select jobs that failed due to an exception with the given message.- Specified by:
exceptionMessagein interfaceJobQuery
-
jobTenantId
public JobQuery jobTenantId(java.lang.String tenantId)
Description copied from interface:JobQueryOnly select jobs that have the given tenant id.- Specified by:
jobTenantIdin interfaceJobQuery
-
jobTenantIdLike
public JobQuery jobTenantIdLike(java.lang.String tenantIdLike)
Description copied from interface:JobQueryOnly select jobs with a tenant id like the given one.- Specified by:
jobTenantIdLikein interfaceJobQuery
-
jobWithoutTenantId
public JobQuery jobWithoutTenantId()
Description copied from interface:JobQueryOnly select jobs that do not have a tenant id.- Specified by:
jobWithoutTenantIdin interfaceJobQuery
-
locked
public JobQuery locked()
Description copied from interface:JobQueryOnly return jobs that are locked (i.e. they are acquired by an executor).
-
unlocked
public JobQuery unlocked()
Description copied from interface:JobQueryOnly return jobs that are not locked.
-
orderByJobDuedate
public JobQuery orderByJobDuedate()
Description copied from interface:JobQueryOrder by duedate (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobDuedatein interfaceJobQuery
-
orderByExecutionId
public JobQuery orderByExecutionId()
Description copied from interface:JobQueryOrder by execution id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByExecutionIdin interfaceJobQuery
-
orderByJobId
public JobQuery orderByJobId()
Description copied from interface:JobQueryOrder by job id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobIdin interfaceJobQuery
-
orderByProcessInstanceId
public JobQuery orderByProcessInstanceId()
Description copied from interface:JobQueryOrder by process instance id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceJobQuery
-
orderByJobRetries
public JobQuery orderByJobRetries()
Description copied from interface:JobQueryOrder by retries (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobRetriesin interfaceJobQuery
-
orderByTenantId
public JobQuery orderByTenantId()
Description copied from interface:JobQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceJobQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractQuery<JobQuery,Job>
-
executeList
public java.util.List<Job> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<JobQuery,Job>page- used if the results must be paged. If null, no paging will be applied.
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
-
getExecutionId
public java.lang.String getExecutionId()
-
getRetriesLeft
public boolean getRetriesLeft()
-
getExecutable
public boolean getExecutable()
-
getNow
public java.util.Date getNow()
-
isWithException
public boolean isWithException()
-
getExceptionMessage
public java.lang.String getExceptionMessage()
-
getTenantId
public java.lang.String getTenantId()
-
getTenantIdLike
public java.lang.String getTenantIdLike()
-
isWithoutTenantId
public boolean isWithoutTenantId()
-
getSerialversionuid
public static long getSerialversionuid()
-
getId
public java.lang.String getId()
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
-
isOnlyTimers
public boolean isOnlyTimers()
-
isOnlyMessages
public boolean isOnlyMessages()
-
getDuedateHigherThan
public java.util.Date getDuedateHigherThan()
-
getDuedateLowerThan
public java.util.Date getDuedateLowerThan()
-
getDuedateHigherThanOrEqual
public java.util.Date getDuedateHigherThanOrEqual()
-
getDuedateLowerThanOrEqual
public java.util.Date getDuedateLowerThanOrEqual()
-
isNoRetriesLeft
public boolean isNoRetriesLeft()
-
isOnlyLocked
public boolean isOnlyLocked()
-
isOnlyUnlocked
public boolean isOnlyUnlocked()
-
-