Package org.activiti.engine.impl
Class DeadLetterJobQueryImpl
- java.lang.Object
-
- org.activiti.engine.impl.db.ListQueryParameterObject
-
- org.activiti.engine.impl.AbstractQuery<DeadLetterJobQuery,Job>
-
- org.activiti.engine.impl.DeadLetterJobQueryImpl
-
- All Implemented Interfaces:
Serializable,Command<Object>,Query<DeadLetterJobQuery,Job>,DeadLetterJobQuery
public class DeadLetterJobQueryImpl extends AbstractQuery<DeadLetterJobQuery,Job> implements DeadLetterJobQuery, 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 booleanonlyMessagesprotected booleanonlyTimersprotected StringprocessDefinitionIdprotected StringprocessInstanceIdprotected 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 DeadLetterJobQueryImpl()DeadLetterJobQueryImpl(CommandContext commandContext)DeadLetterJobQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DeadLetterJobQueryImplduedateHigherThan(Date date)Only select jobs where the duedate is higher then the given date.DeadLetterJobQueryImplduedateHigherThen(Date date)DeadLetterJobQueryImplduedateHigherThenOrEquals(Date date)DeadLetterJobQueryImplduedateLowerThan(Date date)Only select jobs where the duedate is lower than the given date.DeadLetterJobQueryImplduedateLowerThen(Date date)DeadLetterJobQueryImplduedateLowerThenOrEquals(Date date)DeadLetterJobQueryImplexceptionMessage(String exceptionMessage)Only select jobs that failed due to an exception with the given message.DeadLetterJobQueryImplexecutable()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.DeadLetterJobQueryImplexecutionId(String executionId)Only select jobs which exist for the given executionDategetDuedateHigherThan()DategetDuedateHigherThanOrEqual()DategetDuedateLowerThan()DategetDuedateLowerThanOrEqual()StringgetExceptionMessage()booleangetExecutable()StringgetExecutionId()StringgetId()DategetNow()StringgetProcessDefinitionId()StringgetProcessInstanceId()static longgetSerialversionuid()StringgetTenantId()StringgetTenantIdLike()booleanisOnlyMessages()booleanisOnlyTimers()booleanisWithException()booleanisWithoutTenantId()DeadLetterJobQueryImpljobId(String jobId)Only select jobs with the given idDeadLetterJobQueryImpljobTenantId(String tenantId)Only select jobs that have the given tenant id.DeadLetterJobQueryImpljobTenantIdLike(String tenantIdLike)Only select jobs with a tenant id like the given one.DeadLetterJobQueryImpljobWithoutTenantId()Only select jobs that do not have a tenant id.DeadLetterJobQueryImplmessages()Only select jobs that are messages.DeadLetterJobQueryorderByExecutionId()Order by execution id (needs to be followed byQuery.asc()orQuery.desc()).DeadLetterJobQueryorderByJobDuedate()Order by duedate (needs to be followed byQuery.asc()orQuery.desc()).DeadLetterJobQueryorderByJobId()Order by job id (needs to be followed byQuery.asc()orQuery.desc()).DeadLetterJobQueryorderByJobRetries()Order by retries (needs to be followed byQuery.asc()orQuery.desc()).DeadLetterJobQueryorderByProcessInstanceId()Order by process instance id (needs to be followed byQuery.asc()orQuery.desc()).DeadLetterJobQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).DeadLetterJobQueryImplprocessDefinitionId(String processDefinitionId)Only select jobs which exist for the given process definition idDeadLetterJobQueryImplprocessInstanceId(String processInstanceId)Only select jobs which exist for the given process instance.DeadLetterJobQueryImpltimers()Only select jobs that are timers.DeadLetterJobQueryImplwithException()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, 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
-
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
-
-
Constructor Detail
-
DeadLetterJobQueryImpl
public DeadLetterJobQueryImpl()
-
DeadLetterJobQueryImpl
public DeadLetterJobQueryImpl(CommandContext commandContext)
-
DeadLetterJobQueryImpl
public DeadLetterJobQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
jobId
public DeadLetterJobQueryImpl jobId(String jobId)
Description copied from interface:DeadLetterJobQueryOnly select jobs with the given id- Specified by:
jobIdin interfaceDeadLetterJobQuery
-
processInstanceId
public DeadLetterJobQueryImpl processInstanceId(String processInstanceId)
Description copied from interface:DeadLetterJobQueryOnly select jobs which exist for the given process instance.- Specified by:
processInstanceIdin interfaceDeadLetterJobQuery
-
processDefinitionId
public DeadLetterJobQueryImpl processDefinitionId(String processDefinitionId)
Description copied from interface:DeadLetterJobQueryOnly select jobs which exist for the given process definition id- Specified by:
processDefinitionIdin interfaceDeadLetterJobQuery
-
executionId
public DeadLetterJobQueryImpl executionId(String executionId)
Description copied from interface:DeadLetterJobQueryOnly select jobs which exist for the given execution- Specified by:
executionIdin interfaceDeadLetterJobQuery
-
executable
public DeadLetterJobQueryImpl executable()
Description copied from interface:DeadLetterJobQueryOnly select jobs which are executable, ie. duedate is null or duedate is in the past- Specified by:
executablein interfaceDeadLetterJobQuery
-
timers
public DeadLetterJobQueryImpl timers()
Description copied from interface:DeadLetterJobQueryOnly select jobs that are timers. Cannot be used together withDeadLetterJobQuery.messages()- Specified by:
timersin interfaceDeadLetterJobQuery
-
messages
public DeadLetterJobQueryImpl messages()
Description copied from interface:DeadLetterJobQueryOnly select jobs that are messages. Cannot be used together withDeadLetterJobQuery.timers()- Specified by:
messagesin interfaceDeadLetterJobQuery
-
duedateHigherThan
public DeadLetterJobQueryImpl duedateHigherThan(Date date)
Description copied from interface:DeadLetterJobQueryOnly select jobs where the duedate is higher then the given date.- Specified by:
duedateHigherThanin interfaceDeadLetterJobQuery
-
duedateLowerThan
public DeadLetterJobQueryImpl duedateLowerThan(Date date)
Description copied from interface:DeadLetterJobQueryOnly select jobs where the duedate is lower than the given date.- Specified by:
duedateLowerThanin interfaceDeadLetterJobQuery
-
duedateHigherThen
public DeadLetterJobQueryImpl duedateHigherThen(Date date)
-
duedateHigherThenOrEquals
public DeadLetterJobQueryImpl duedateHigherThenOrEquals(Date date)
-
duedateLowerThen
public DeadLetterJobQueryImpl duedateLowerThen(Date date)
-
duedateLowerThenOrEquals
public DeadLetterJobQueryImpl duedateLowerThenOrEquals(Date date)
-
withException
public DeadLetterJobQueryImpl withException()
Description copied from interface:DeadLetterJobQueryOnly select jobs that failed due to an exception.- Specified by:
withExceptionin interfaceDeadLetterJobQuery
-
exceptionMessage
public DeadLetterJobQueryImpl exceptionMessage(String exceptionMessage)
Description copied from interface:DeadLetterJobQueryOnly select jobs that failed due to an exception with the given message.- Specified by:
exceptionMessagein interfaceDeadLetterJobQuery
-
jobTenantId
public DeadLetterJobQueryImpl jobTenantId(String tenantId)
Description copied from interface:DeadLetterJobQueryOnly select jobs that have the given tenant id.- Specified by:
jobTenantIdin interfaceDeadLetterJobQuery
-
jobTenantIdLike
public DeadLetterJobQueryImpl jobTenantIdLike(String tenantIdLike)
Description copied from interface:DeadLetterJobQueryOnly select jobs with a tenant id like the given one.- Specified by:
jobTenantIdLikein interfaceDeadLetterJobQuery
-
jobWithoutTenantId
public DeadLetterJobQueryImpl jobWithoutTenantId()
Description copied from interface:DeadLetterJobQueryOnly select jobs that do not have a tenant id.- Specified by:
jobWithoutTenantIdin interfaceDeadLetterJobQuery
-
orderByJobDuedate
public DeadLetterJobQuery orderByJobDuedate()
Description copied from interface:DeadLetterJobQueryOrder by duedate (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobDuedatein interfaceDeadLetterJobQuery
-
orderByExecutionId
public DeadLetterJobQuery orderByExecutionId()
Description copied from interface:DeadLetterJobQueryOrder by execution id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByExecutionIdin interfaceDeadLetterJobQuery
-
orderByJobId
public DeadLetterJobQuery orderByJobId()
Description copied from interface:DeadLetterJobQueryOrder by job id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobIdin interfaceDeadLetterJobQuery
-
orderByProcessInstanceId
public DeadLetterJobQuery orderByProcessInstanceId()
Description copied from interface:DeadLetterJobQueryOrder by process instance id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceDeadLetterJobQuery
-
orderByJobRetries
public DeadLetterJobQuery orderByJobRetries()
Description copied from interface:DeadLetterJobQueryOrder by retries (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobRetriesin interfaceDeadLetterJobQuery
-
orderByTenantId
public DeadLetterJobQuery orderByTenantId()
Description copied from interface:DeadLetterJobQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceDeadLetterJobQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractQuery<DeadLetterJobQuery,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<DeadLetterJobQuery,Job>page- used if the results must be paged. If null, no paging will be applied.
-
getProcessInstanceId
public String getProcessInstanceId()
-
getExecutionId
public String getExecutionId()
-
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()
-
-