Package org.activiti.engine.impl
Class TimerJobQueryImpl
- java.lang.Object
-
- org.activiti.engine.impl.db.ListQueryParameterObject
-
- org.activiti.engine.impl.AbstractQuery<TimerJobQuery,Job>
-
- org.activiti.engine.impl.TimerJobQueryImpl
-
- All Implemented Interfaces:
Serializable,Command<Object>,Query<TimerJobQuery,Job>,TimerJobQuery
public class TimerJobQueryImpl extends AbstractQuery<TimerJobQuery,Job> implements TimerJobQuery, 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 DateduedateHigherThanprotected DateduedateHigherThanOrEqualprotected DateduedateLowerThanprotected DateduedateLowerThanOrEqualprotected StringexceptionMessageprotected booleanexecutableprotected StringexecutionIdprotected Stringidprotected booleannoRetriesLeftprotected booleanonlyMessagesprotected booleanonlyTimersprotected StringprocessDefinitionIdprotected StringprocessInstanceIdprotected booleanretriesLeftprotected StringtenantIdprotected 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 TimerJobQueryImpl()TimerJobQueryImpl(CommandContext commandContext)TimerJobQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TimerJobQueryImplduedateHigherThan(Date date)Only select jobs where the duedate is higher then the given date.TimerJobQueryImplduedateHigherThen(Date date)TimerJobQueryImplduedateHigherThenOrEquals(Date date)TimerJobQueryImplduedateLowerThan(Date date)Only select jobs where the duedate is lower than the given date.TimerJobQueryImplduedateLowerThen(Date date)TimerJobQueryImplduedateLowerThenOrEquals(Date date)TimerJobQueryImplexceptionMessage(String exceptionMessage)Only select jobs that failed due to an exception with the given message.TimerJobQueryImplexecutable()Only select jobs which are executable, ie.longexecuteCount(CommandContext commandContext)List<Job>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.TimerJobQueryImplexecutionId(String executionId)Only select jobs which exist for the given executionDategetDuedateHigherThan()DategetDuedateHigherThanOrEqual()DategetDuedateLowerThan()DategetDuedateLowerThanOrEqual()StringgetExceptionMessage()booleangetExecutable()StringgetExecutionId()StringgetId()DategetNow()StringgetProcessDefinitionId()StringgetProcessInstanceId()booleangetRetriesLeft()static longgetSerialversionuid()StringgetTenantId()StringgetTenantIdLike()booleanisNoRetriesLeft()booleanisOnlyMessages()booleanisOnlyTimers()booleanisWithException()booleanisWithoutTenantId()TimerJobQueryImpljobId(String jobId)Only select jobs with the given idTimerJobQueryImpljobTenantId(String tenantId)Only select jobs that have the given tenant id.TimerJobQueryImpljobTenantIdLike(String tenantIdLike)Only select jobs with a tenant id like the given one.TimerJobQueryImpljobWithoutTenantId()Only select jobs that do not have a tenant id.TimerJobQueryImplmessages()Only select jobs that are messages.TimerJobQueryImplnoRetriesLeft()TimerJobQueryorderByExecutionId()Order by execution id (needs to be followed byQuery.asc()orQuery.desc()).TimerJobQueryorderByJobDuedate()Order by duedate (needs to be followed byQuery.asc()orQuery.desc()).TimerJobQueryorderByJobId()Order by job id (needs to be followed byQuery.asc()orQuery.desc()).TimerJobQueryorderByJobRetries()Order by retries (needs to be followed byQuery.asc()orQuery.desc()).TimerJobQueryorderByProcessInstanceId()Order by process instance id (needs to be followed byQuery.asc()orQuery.desc()).TimerJobQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).TimerJobQueryImplprocessDefinitionId(String processDefinitionId)Only select jobs which exist for the given process definition idTimerJobQueryImplprocessInstanceId(String processInstanceId)Only select jobs which exist for the given process instance.TimerJobQueryImpltimers()Only select jobs that are timers.TimerJobQueryImplwithException()Only select jobs that failed due to an exception.TimerJobQueryImplwithRetriesLeft()-
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 String id
-
processInstanceId
protected String processInstanceId
-
executionId
protected String executionId
-
processDefinitionId
protected String processDefinitionId
-
retriesLeft
protected boolean retriesLeft
-
executable
protected boolean executable
-
onlyTimers
protected boolean onlyTimers
-
onlyMessages
protected boolean onlyMessages
-
duedateHigherThan
protected Date duedateHigherThan
-
duedateLowerThan
protected Date duedateLowerThan
-
duedateHigherThanOrEqual
protected Date duedateHigherThanOrEqual
-
duedateLowerThanOrEqual
protected Date duedateLowerThanOrEqual
-
withException
protected boolean withException
-
exceptionMessage
protected String exceptionMessage
-
tenantId
protected String tenantId
-
tenantIdLike
protected String tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId
-
noRetriesLeft
protected boolean noRetriesLeft
-
-
Constructor Detail
-
TimerJobQueryImpl
public TimerJobQueryImpl()
-
TimerJobQueryImpl
public TimerJobQueryImpl(CommandContext commandContext)
-
TimerJobQueryImpl
public TimerJobQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
jobId
public TimerJobQueryImpl jobId(String jobId)
Description copied from interface:TimerJobQueryOnly select jobs with the given id- Specified by:
jobIdin interfaceTimerJobQuery
-
processInstanceId
public TimerJobQueryImpl processInstanceId(String processInstanceId)
Description copied from interface:TimerJobQueryOnly select jobs which exist for the given process instance.- Specified by:
processInstanceIdin interfaceTimerJobQuery
-
processDefinitionId
public TimerJobQueryImpl processDefinitionId(String processDefinitionId)
Description copied from interface:TimerJobQueryOnly select jobs which exist for the given process definition id- Specified by:
processDefinitionIdin interfaceTimerJobQuery
-
executionId
public TimerJobQueryImpl executionId(String executionId)
Description copied from interface:TimerJobQueryOnly select jobs which exist for the given execution- Specified by:
executionIdin interfaceTimerJobQuery
-
withRetriesLeft
public TimerJobQueryImpl withRetriesLeft()
-
executable
public TimerJobQueryImpl executable()
Description copied from interface:TimerJobQueryOnly select jobs which are executable, ie. duedate is null or duedate is in the past- Specified by:
executablein interfaceTimerJobQuery
-
timers
public TimerJobQueryImpl timers()
Description copied from interface:TimerJobQueryOnly select jobs that are timers. Cannot be used together withTimerJobQuery.messages()- Specified by:
timersin interfaceTimerJobQuery
-
messages
public TimerJobQueryImpl messages()
Description copied from interface:TimerJobQueryOnly select jobs that are messages. Cannot be used together withTimerJobQuery.timers()- Specified by:
messagesin interfaceTimerJobQuery
-
duedateHigherThan
public TimerJobQueryImpl duedateHigherThan(Date date)
Description copied from interface:TimerJobQueryOnly select jobs where the duedate is higher then the given date.- Specified by:
duedateHigherThanin interfaceTimerJobQuery
-
duedateLowerThan
public TimerJobQueryImpl duedateLowerThan(Date date)
Description copied from interface:TimerJobQueryOnly select jobs where the duedate is lower than the given date.- Specified by:
duedateLowerThanin interfaceTimerJobQuery
-
duedateHigherThen
public TimerJobQueryImpl duedateHigherThen(Date date)
-
duedateHigherThenOrEquals
public TimerJobQueryImpl duedateHigherThenOrEquals(Date date)
-
duedateLowerThen
public TimerJobQueryImpl duedateLowerThen(Date date)
-
duedateLowerThenOrEquals
public TimerJobQueryImpl duedateLowerThenOrEquals(Date date)
-
noRetriesLeft
public TimerJobQueryImpl noRetriesLeft()
-
withException
public TimerJobQueryImpl withException()
Description copied from interface:TimerJobQueryOnly select jobs that failed due to an exception.- Specified by:
withExceptionin interfaceTimerJobQuery
-
exceptionMessage
public TimerJobQueryImpl exceptionMessage(String exceptionMessage)
Description copied from interface:TimerJobQueryOnly select jobs that failed due to an exception with the given message.- Specified by:
exceptionMessagein interfaceTimerJobQuery
-
jobTenantId
public TimerJobQueryImpl jobTenantId(String tenantId)
Description copied from interface:TimerJobQueryOnly select jobs that have the given tenant id.- Specified by:
jobTenantIdin interfaceTimerJobQuery
-
jobTenantIdLike
public TimerJobQueryImpl jobTenantIdLike(String tenantIdLike)
Description copied from interface:TimerJobQueryOnly select jobs with a tenant id like the given one.- Specified by:
jobTenantIdLikein interfaceTimerJobQuery
-
jobWithoutTenantId
public TimerJobQueryImpl jobWithoutTenantId()
Description copied from interface:TimerJobQueryOnly select jobs that do not have a tenant id.- Specified by:
jobWithoutTenantIdin interfaceTimerJobQuery
-
orderByJobDuedate
public TimerJobQuery orderByJobDuedate()
Description copied from interface:TimerJobQueryOrder by duedate (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobDuedatein interfaceTimerJobQuery
-
orderByExecutionId
public TimerJobQuery orderByExecutionId()
Description copied from interface:TimerJobQueryOrder by execution id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByExecutionIdin interfaceTimerJobQuery
-
orderByJobId
public TimerJobQuery orderByJobId()
Description copied from interface:TimerJobQueryOrder by job id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobIdin interfaceTimerJobQuery
-
orderByProcessInstanceId
public TimerJobQuery orderByProcessInstanceId()
Description copied from interface:TimerJobQueryOrder by process instance id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceTimerJobQuery
-
orderByJobRetries
public TimerJobQuery orderByJobRetries()
Description copied from interface:TimerJobQueryOrder by retries (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobRetriesin interfaceTimerJobQuery
-
orderByTenantId
public TimerJobQuery orderByTenantId()
Description copied from interface:TimerJobQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceTimerJobQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractQuery<TimerJobQuery,Job>
-
executeList
public 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<TimerJobQuery,Job>page- used if the results must be paged. If null, no paging will be applied.
-
getProcessInstanceId
public String getProcessInstanceId()
-
getExecutionId
public String getExecutionId()
-
getRetriesLeft
public boolean getRetriesLeft()
-
getExecutable
public boolean getExecutable()
-
getNow
public Date getNow()
-
isWithException
public boolean isWithException()
-
getExceptionMessage
public String getExceptionMessage()
-
getTenantId
public String getTenantId()
-
getTenantIdLike
public String getTenantIdLike()
-
isWithoutTenantId
public boolean isWithoutTenantId()
-
getSerialversionuid
public static long getSerialversionuid()
-
getId
public String getId()
-
getProcessDefinitionId
public String getProcessDefinitionId()
-
isOnlyTimers
public boolean isOnlyTimers()
-
isOnlyMessages
public boolean isOnlyMessages()
-
getDuedateHigherThan
public Date getDuedateHigherThan()
-
getDuedateLowerThan
public Date getDuedateLowerThan()
-
getDuedateHigherThanOrEqual
public Date getDuedateHigherThanOrEqual()
-
getDuedateLowerThanOrEqual
public Date getDuedateLowerThanOrEqual()
-
isNoRetriesLeft
public boolean isNoRetriesLeft()
-
-