Package org.activiti.engine.impl
Class SuspendedJobQueryImpl
java.lang.Object
org.activiti.engine.impl.db.ListQueryParameterObject
org.activiti.engine.impl.AbstractQuery<SuspendedJobQuery,Job>
org.activiti.engine.impl.SuspendedJobQueryImpl
- All Implemented Interfaces:
Serializable,Command<Object>,Query<SuspendedJobQuery,,Job> SuspendedJobQuery
public class SuspendedJobQueryImpl
extends AbstractQuery<SuspendedJobQuery,Job>
implements SuspendedJobQuery, 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
ConstructorsConstructorDescriptionSuspendedJobQueryImpl(CommandContext commandContext) SuspendedJobQueryImpl(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. retries > 0 and duedate is null or duedate is in the pastlongexecuteCount(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.Only select jobs which have no retries leftOrder 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.Only select jobs which have retries leftMethods 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
-
SuspendedJobQueryImpl
public SuspendedJobQueryImpl() -
SuspendedJobQueryImpl
-
SuspendedJobQueryImpl
-
-
Method Details
-
jobId
Description copied from interface:SuspendedJobQueryOnly select jobs with the given id- Specified by:
jobIdin interfaceSuspendedJobQuery
-
processInstanceId
Description copied from interface:SuspendedJobQueryOnly select jobs which exist for the given process instance.- Specified by:
processInstanceIdin interfaceSuspendedJobQuery
-
processDefinitionId
Description copied from interface:SuspendedJobQueryOnly select jobs which exist for the given process definition id- Specified by:
processDefinitionIdin interfaceSuspendedJobQuery
-
executionId
Description copied from interface:SuspendedJobQueryOnly select jobs which exist for the given execution- Specified by:
executionIdin interfaceSuspendedJobQuery
-
withRetriesLeft
Description copied from interface:SuspendedJobQueryOnly select jobs which have retries left- Specified by:
withRetriesLeftin interfaceSuspendedJobQuery
-
executable
Description copied from interface:SuspendedJobQueryOnly select jobs which are executable, ie. retries > 0 and duedate is null or duedate is in the past- Specified by:
executablein interfaceSuspendedJobQuery
-
timers
Description copied from interface:SuspendedJobQueryOnly select jobs that are timers. Cannot be used together withSuspendedJobQuery.messages()- Specified by:
timersin interfaceSuspendedJobQuery
-
messages
Description copied from interface:SuspendedJobQueryOnly select jobs that are messages. Cannot be used together withSuspendedJobQuery.timers()- Specified by:
messagesin interfaceSuspendedJobQuery
-
duedateHigherThan
Description copied from interface:SuspendedJobQueryOnly select jobs where the duedate is higher then the given date.- Specified by:
duedateHigherThanin interfaceSuspendedJobQuery
-
duedateLowerThan
Description copied from interface:SuspendedJobQueryOnly select jobs where the duedate is lower than the given date.- Specified by:
duedateLowerThanin interfaceSuspendedJobQuery
-
duedateHigherThen
-
duedateHigherThenOrEquals
-
duedateLowerThen
-
duedateLowerThenOrEquals
-
noRetriesLeft
Description copied from interface:SuspendedJobQueryOnly select jobs which have no retries left- Specified by:
noRetriesLeftin interfaceSuspendedJobQuery
-
withException
Description copied from interface:SuspendedJobQueryOnly select jobs that failed due to an exception.- Specified by:
withExceptionin interfaceSuspendedJobQuery
-
exceptionMessage
Description copied from interface:SuspendedJobQueryOnly select jobs that failed due to an exception with the given message.- Specified by:
exceptionMessagein interfaceSuspendedJobQuery
-
jobTenantId
Description copied from interface:SuspendedJobQueryOnly select jobs that have the given tenant id.- Specified by:
jobTenantIdin interfaceSuspendedJobQuery
-
jobTenantIdLike
Description copied from interface:SuspendedJobQueryOnly select jobs with a tenant id like the given one.- Specified by:
jobTenantIdLikein interfaceSuspendedJobQuery
-
jobWithoutTenantId
Description copied from interface:SuspendedJobQueryOnly select jobs that do not have a tenant id.- Specified by:
jobWithoutTenantIdin interfaceSuspendedJobQuery
-
orderByJobDuedate
Description copied from interface:SuspendedJobQueryOrder by duedate (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobDuedatein interfaceSuspendedJobQuery
-
orderByExecutionId
Description copied from interface:SuspendedJobQueryOrder by execution id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByExecutionIdin interfaceSuspendedJobQuery
-
orderByJobId
Description copied from interface:SuspendedJobQueryOrder by job id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobIdin interfaceSuspendedJobQuery
-
orderByProcessInstanceId
Description copied from interface:SuspendedJobQueryOrder by process instance id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceSuspendedJobQuery
-
orderByJobRetries
Description copied from interface:SuspendedJobQueryOrder by retries (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobRetriesin interfaceSuspendedJobQuery
-
orderByTenantId
Description copied from interface:SuspendedJobQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceSuspendedJobQuery
-
executeCount
- Specified by:
executeCountin classAbstractQuery<SuspendedJobQuery,Job>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<SuspendedJobQuery,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()
-