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:
-
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 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
ConstructorsConstructorDescriptionTimerJobQueryImpl(CommandContext commandContext) TimerJobQueryImpl(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.Only select jobs which are executable, ie.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 longbooleanbooleanbooleanbooleanbooleanOnly 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.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.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
-
-
Constructor Details
-
TimerJobQueryImpl
public TimerJobQueryImpl() -
TimerJobQueryImpl
-
TimerJobQueryImpl
-
-
Method Details
-
jobId
Description copied from interface:TimerJobQueryOnly select jobs with the given id- Specified by:
jobIdin interfaceTimerJobQuery
-
processInstanceId
Description copied from interface:TimerJobQueryOnly select jobs which exist for the given process instance.- Specified by:
processInstanceIdin interfaceTimerJobQuery
-
processDefinitionId
Description copied from interface:TimerJobQueryOnly select jobs which exist for the given process definition id- Specified by:
processDefinitionIdin interfaceTimerJobQuery
-
executionId
Description copied from interface:TimerJobQueryOnly select jobs which exist for the given execution- Specified by:
executionIdin interfaceTimerJobQuery
-
withRetriesLeft
-
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
Description copied from interface:TimerJobQueryOnly select jobs that are timers. Cannot be used together withTimerJobQuery.messages()- Specified by:
timersin interfaceTimerJobQuery
-
messages
Description copied from interface:TimerJobQueryOnly select jobs that are messages. Cannot be used together withTimerJobQuery.timers()- Specified by:
messagesin interfaceTimerJobQuery
-
duedateHigherThan
Description copied from interface:TimerJobQueryOnly select jobs where the duedate is higher then the given date.- Specified by:
duedateHigherThanin interfaceTimerJobQuery
-
duedateLowerThan
Description copied from interface:TimerJobQueryOnly select jobs where the duedate is lower than the given date.- Specified by:
duedateLowerThanin interfaceTimerJobQuery
-
duedateHigherThen
-
duedateHigherThenOrEquals
-
duedateLowerThen
-
duedateLowerThenOrEquals
-
noRetriesLeft
-
withException
Description copied from interface:TimerJobQueryOnly select jobs that failed due to an exception.- Specified by:
withExceptionin interfaceTimerJobQuery
-
exceptionMessage
Description copied from interface:TimerJobQueryOnly select jobs that failed due to an exception with the given message.- Specified by:
exceptionMessagein interfaceTimerJobQuery
-
jobTenantId
Description copied from interface:TimerJobQueryOnly select jobs that have the given tenant id.- Specified by:
jobTenantIdin interfaceTimerJobQuery
-
jobTenantIdLike
Description copied from interface:TimerJobQueryOnly select jobs with a tenant id like the given one.- Specified by:
jobTenantIdLikein interfaceTimerJobQuery
-
jobWithoutTenantId
Description copied from interface:TimerJobQueryOnly select jobs that do not have a tenant id.- Specified by:
jobWithoutTenantIdin interfaceTimerJobQuery
-
orderByJobDuedate
Description copied from interface:TimerJobQueryOrder by duedate (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobDuedatein interfaceTimerJobQuery
-
orderByExecutionId
Description copied from interface:TimerJobQueryOrder by execution id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByExecutionIdin interfaceTimerJobQuery
-
orderByJobId
Description copied from interface:TimerJobQueryOrder by job id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobIdin interfaceTimerJobQuery
-
orderByProcessInstanceId
Description copied from interface:TimerJobQueryOrder by process instance id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceTimerJobQuery
-
orderByJobRetries
Description copied from interface:TimerJobQueryOrder by retries (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobRetriesin interfaceTimerJobQuery
-
orderByTenantId
Description copied from interface:TimerJobQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceTimerJobQuery
-
executeCount
- Specified by:
executeCountin classAbstractQuery<TimerJobQuery,Job>
-
executeList
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
-
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()
-