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:
java.io.Serializable,Command<java.lang.Object>,Query<SuspendedJobQuery,Job>,SuspendedJobQuery
public class SuspendedJobQueryImpl extends AbstractQuery<SuspendedJobQuery,Job> implements SuspendedJobQuery, 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 booleanonlyMessagesprotected booleanonlyTimersprotected 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 SuspendedJobQueryImpl()SuspendedJobQueryImpl(CommandContext commandContext)SuspendedJobQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SuspendedJobQueryImplduedateHigherThan(java.util.Date date)Only select jobs where the duedate is higher then the given date.SuspendedJobQueryImplduedateHigherThen(java.util.Date date)SuspendedJobQueryImplduedateHigherThenOrEquals(java.util.Date date)SuspendedJobQueryImplduedateLowerThan(java.util.Date date)Only select jobs where the duedate is lower than the given date.SuspendedJobQueryImplduedateLowerThen(java.util.Date date)SuspendedJobQueryImplduedateLowerThenOrEquals(java.util.Date date)SuspendedJobQueryImplexceptionMessage(java.lang.String exceptionMessage)Only select jobs that failed due to an exception with the given message.SuspendedJobQueryImplexecutable()Only select jobs which are executable, ie.longexecuteCount(CommandContext commandContext)java.util.List<Job>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.SuspendedJobQueryImplexecutionId(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()booleanisOnlyMessages()booleanisOnlyTimers()booleanisWithException()booleanisWithoutTenantId()SuspendedJobQueryImpljobId(java.lang.String jobId)Only select jobs with the given idSuspendedJobQueryImpljobTenantId(java.lang.String tenantId)Only select jobs that have the given tenant id.SuspendedJobQueryImpljobTenantIdLike(java.lang.String tenantIdLike)Only select jobs with a tenant id like the given one.SuspendedJobQueryImpljobWithoutTenantId()Only select jobs that do not have a tenant id.SuspendedJobQueryImplmessages()Only select jobs that are messages.SuspendedJobQueryImplnoRetriesLeft()Only select jobs which have no retries leftSuspendedJobQueryorderByExecutionId()Order by execution id (needs to be followed byQuery.asc()orQuery.desc()).SuspendedJobQueryorderByJobDuedate()Order by duedate (needs to be followed byQuery.asc()orQuery.desc()).SuspendedJobQueryorderByJobId()Order by job id (needs to be followed byQuery.asc()orQuery.desc()).SuspendedJobQueryorderByJobRetries()Order by retries (needs to be followed byQuery.asc()orQuery.desc()).SuspendedJobQueryorderByProcessInstanceId()Order by process instance id (needs to be followed byQuery.asc()orQuery.desc()).SuspendedJobQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).SuspendedJobQueryImplprocessDefinitionId(java.lang.String processDefinitionId)Only select jobs which exist for the given process definition idSuspendedJobQueryImplprocessInstanceId(java.lang.String processInstanceId)Only select jobs which exist for the given process instance.SuspendedJobQueryImpltimers()Only select jobs that are timers.SuspendedJobQueryImplwithException()Only select jobs that failed due to an exception.SuspendedJobQueryImplwithRetriesLeft()Only select jobs which have retries left-
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
-
-
Constructor Detail
-
SuspendedJobQueryImpl
public SuspendedJobQueryImpl()
-
SuspendedJobQueryImpl
public SuspendedJobQueryImpl(CommandContext commandContext)
-
SuspendedJobQueryImpl
public SuspendedJobQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
jobId
public SuspendedJobQueryImpl jobId(java.lang.String jobId)
Description copied from interface:SuspendedJobQueryOnly select jobs with the given id- Specified by:
jobIdin interfaceSuspendedJobQuery
-
processInstanceId
public SuspendedJobQueryImpl processInstanceId(java.lang.String processInstanceId)
Description copied from interface:SuspendedJobQueryOnly select jobs which exist for the given process instance.- Specified by:
processInstanceIdin interfaceSuspendedJobQuery
-
processDefinitionId
public SuspendedJobQueryImpl processDefinitionId(java.lang.String processDefinitionId)
Description copied from interface:SuspendedJobQueryOnly select jobs which exist for the given process definition id- Specified by:
processDefinitionIdin interfaceSuspendedJobQuery
-
executionId
public SuspendedJobQueryImpl executionId(java.lang.String executionId)
Description copied from interface:SuspendedJobQueryOnly select jobs which exist for the given execution- Specified by:
executionIdin interfaceSuspendedJobQuery
-
withRetriesLeft
public SuspendedJobQueryImpl withRetriesLeft()
Description copied from interface:SuspendedJobQueryOnly select jobs which have retries left- Specified by:
withRetriesLeftin interfaceSuspendedJobQuery
-
executable
public SuspendedJobQueryImpl 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
public SuspendedJobQueryImpl timers()
Description copied from interface:SuspendedJobQueryOnly select jobs that are timers. Cannot be used together withSuspendedJobQuery.messages()- Specified by:
timersin interfaceSuspendedJobQuery
-
messages
public SuspendedJobQueryImpl messages()
Description copied from interface:SuspendedJobQueryOnly select jobs that are messages. Cannot be used together withSuspendedJobQuery.timers()- Specified by:
messagesin interfaceSuspendedJobQuery
-
duedateHigherThan
public SuspendedJobQueryImpl duedateHigherThan(java.util.Date date)
Description copied from interface:SuspendedJobQueryOnly select jobs where the duedate is higher then the given date.- Specified by:
duedateHigherThanin interfaceSuspendedJobQuery
-
duedateLowerThan
public SuspendedJobQueryImpl duedateLowerThan(java.util.Date date)
Description copied from interface:SuspendedJobQueryOnly select jobs where the duedate is lower than the given date.- Specified by:
duedateLowerThanin interfaceSuspendedJobQuery
-
duedateHigherThen
public SuspendedJobQueryImpl duedateHigherThen(java.util.Date date)
-
duedateHigherThenOrEquals
public SuspendedJobQueryImpl duedateHigherThenOrEquals(java.util.Date date)
-
duedateLowerThen
public SuspendedJobQueryImpl duedateLowerThen(java.util.Date date)
-
duedateLowerThenOrEquals
public SuspendedJobQueryImpl duedateLowerThenOrEquals(java.util.Date date)
-
noRetriesLeft
public SuspendedJobQueryImpl noRetriesLeft()
Description copied from interface:SuspendedJobQueryOnly select jobs which have no retries left- Specified by:
noRetriesLeftin interfaceSuspendedJobQuery
-
withException
public SuspendedJobQueryImpl withException()
Description copied from interface:SuspendedJobQueryOnly select jobs that failed due to an exception.- Specified by:
withExceptionin interfaceSuspendedJobQuery
-
exceptionMessage
public SuspendedJobQueryImpl exceptionMessage(java.lang.String exceptionMessage)
Description copied from interface:SuspendedJobQueryOnly select jobs that failed due to an exception with the given message.- Specified by:
exceptionMessagein interfaceSuspendedJobQuery
-
jobTenantId
public SuspendedJobQueryImpl jobTenantId(java.lang.String tenantId)
Description copied from interface:SuspendedJobQueryOnly select jobs that have the given tenant id.- Specified by:
jobTenantIdin interfaceSuspendedJobQuery
-
jobTenantIdLike
public SuspendedJobQueryImpl jobTenantIdLike(java.lang.String tenantIdLike)
Description copied from interface:SuspendedJobQueryOnly select jobs with a tenant id like the given one.- Specified by:
jobTenantIdLikein interfaceSuspendedJobQuery
-
jobWithoutTenantId
public SuspendedJobQueryImpl jobWithoutTenantId()
Description copied from interface:SuspendedJobQueryOnly select jobs that do not have a tenant id.- Specified by:
jobWithoutTenantIdin interfaceSuspendedJobQuery
-
orderByJobDuedate
public SuspendedJobQuery orderByJobDuedate()
Description copied from interface:SuspendedJobQueryOrder by duedate (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobDuedatein interfaceSuspendedJobQuery
-
orderByExecutionId
public SuspendedJobQuery orderByExecutionId()
Description copied from interface:SuspendedJobQueryOrder by execution id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByExecutionIdin interfaceSuspendedJobQuery
-
orderByJobId
public SuspendedJobQuery orderByJobId()
Description copied from interface:SuspendedJobQueryOrder by job id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobIdin interfaceSuspendedJobQuery
-
orderByProcessInstanceId
public SuspendedJobQuery orderByProcessInstanceId()
Description copied from interface:SuspendedJobQueryOrder by process instance id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceSuspendedJobQuery
-
orderByJobRetries
public SuspendedJobQuery orderByJobRetries()
Description copied from interface:SuspendedJobQueryOrder by retries (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobRetriesin interfaceSuspendedJobQuery
-
orderByTenantId
public SuspendedJobQuery orderByTenantId()
Description copied from interface:SuspendedJobQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceSuspendedJobQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractQuery<SuspendedJobQuery,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<SuspendedJobQuery,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()
-
-