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:
java.io.Serializable,Command<java.lang.Object>,Query<DeadLetterJobQuery,Job>,DeadLetterJobQuery
public class DeadLetterJobQueryImpl extends AbstractQuery<DeadLetterJobQuery,Job> implements DeadLetterJobQuery, 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 booleanonlyMessagesprotected booleanonlyTimersprotected java.lang.StringprocessDefinitionIdprotected java.lang.StringprocessInstanceIdprotected 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 DeadLetterJobQueryImpl()DeadLetterJobQueryImpl(CommandContext commandContext)DeadLetterJobQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DeadLetterJobQueryImplduedateHigherThan(java.util.Date date)Only select jobs where the duedate is higher then the given date.DeadLetterJobQueryImplduedateHigherThen(java.util.Date date)DeadLetterJobQueryImplduedateHigherThenOrEquals(java.util.Date date)DeadLetterJobQueryImplduedateLowerThan(java.util.Date date)Only select jobs where the duedate is lower than the given date.DeadLetterJobQueryImplduedateLowerThen(java.util.Date date)DeadLetterJobQueryImplduedateLowerThenOrEquals(java.util.Date date)DeadLetterJobQueryImplexceptionMessage(java.lang.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)java.util.List<Job>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.DeadLetterJobQueryImplexecutionId(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()static longgetSerialversionuid()java.lang.StringgetTenantId()java.lang.StringgetTenantIdLike()booleanisOnlyMessages()booleanisOnlyTimers()booleanisWithException()booleanisWithoutTenantId()DeadLetterJobQueryImpljobId(java.lang.String jobId)Only select jobs with the given idDeadLetterJobQueryImpljobTenantId(java.lang.String tenantId)Only select jobs that have the given tenant id.DeadLetterJobQueryImpljobTenantIdLike(java.lang.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(java.lang.String processDefinitionId)Only select jobs which exist for the given process definition idDeadLetterJobQueryImplprocessInstanceId(java.lang.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 java.lang.String id
-
processInstanceId
protected java.lang.String processInstanceId
-
executionId
protected java.lang.String executionId
-
processDefinitionId
protected java.lang.String processDefinitionId
-
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
-
-
Constructor Detail
-
DeadLetterJobQueryImpl
public DeadLetterJobQueryImpl()
-
DeadLetterJobQueryImpl
public DeadLetterJobQueryImpl(CommandContext commandContext)
-
DeadLetterJobQueryImpl
public DeadLetterJobQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
jobId
public DeadLetterJobQueryImpl jobId(java.lang.String jobId)
Description copied from interface:DeadLetterJobQueryOnly select jobs with the given id- Specified by:
jobIdin interfaceDeadLetterJobQuery
-
processInstanceId
public DeadLetterJobQueryImpl processInstanceId(java.lang.String processInstanceId)
Description copied from interface:DeadLetterJobQueryOnly select jobs which exist for the given process instance.- Specified by:
processInstanceIdin interfaceDeadLetterJobQuery
-
processDefinitionId
public DeadLetterJobQueryImpl processDefinitionId(java.lang.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(java.lang.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(java.util.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(java.util.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(java.util.Date date)
-
duedateHigherThenOrEquals
public DeadLetterJobQueryImpl duedateHigherThenOrEquals(java.util.Date date)
-
duedateLowerThen
public DeadLetterJobQueryImpl duedateLowerThen(java.util.Date date)
-
duedateLowerThenOrEquals
public DeadLetterJobQueryImpl duedateLowerThenOrEquals(java.util.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(java.lang.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(java.lang.String tenantId)
Description copied from interface:DeadLetterJobQueryOnly select jobs that have the given tenant id.- Specified by:
jobTenantIdin interfaceDeadLetterJobQuery
-
jobTenantIdLike
public DeadLetterJobQueryImpl jobTenantIdLike(java.lang.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 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<DeadLetterJobQuery,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()
-
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()
-
-