Class JobQueryImpl

All Implemented Interfaces:
Serializable, Command<Object>, Query<JobQuery,Job>, JobQuery

public class JobQueryImpl extends AbstractQuery<JobQuery,Job> implements JobQuery, Serializable
See Also:
  • Field Details

    • id

      protected String id
    • processInstanceId

      protected String processInstanceId
    • executionId

      protected String executionId
    • processDefinitionId

      protected String processDefinitionId
    • retriesLeft

      protected boolean retriesLeft
    • 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
    • noRetriesLeft

      protected boolean noRetriesLeft
    • onlyLocked

      protected boolean onlyLocked
    • onlyUnlocked

      protected boolean onlyUnlocked
  • Constructor Details

    • JobQueryImpl

      public JobQueryImpl()
    • JobQueryImpl

      public JobQueryImpl(CommandContext commandContext)
    • JobQueryImpl

      public JobQueryImpl(CommandExecutor commandExecutor)
  • Method Details

    • jobId

      public JobQuery jobId(String jobId)
      Description copied from interface: JobQuery
      Only select jobs with the given id
      Specified by:
      jobId in interface JobQuery
    • processInstanceId

      public JobQueryImpl processInstanceId(String processInstanceId)
      Description copied from interface: JobQuery
      Only select jobs which exist for the given process instance.
      Specified by:
      processInstanceId in interface JobQuery
    • processDefinitionId

      public JobQueryImpl processDefinitionId(String processDefinitionId)
      Description copied from interface: JobQuery
      Only select jobs which exist for the given process definition id
      Specified by:
      processDefinitionId in interface JobQuery
    • executionId

      public JobQueryImpl executionId(String executionId)
      Description copied from interface: JobQuery
      Only select jobs which exist for the given execution
      Specified by:
      executionId in interface JobQuery
    • withRetriesLeft

      public JobQuery withRetriesLeft()
    • executable

      public JobQuery executable()
    • timers

      public JobQuery timers()
      Description copied from interface: JobQuery
      Only select jobs that are timers. Cannot be used together with JobQuery.messages()
      Specified by:
      timers in interface JobQuery
    • messages

      public JobQuery messages()
      Description copied from interface: JobQuery
      Only select jobs that are messages. Cannot be used together with JobQuery.timers()
      Specified by:
      messages in interface JobQuery
    • duedateHigherThan

      public JobQuery duedateHigherThan(Date date)
      Description copied from interface: JobQuery
      Only select jobs where the duedate is higher then the given date.
      Specified by:
      duedateHigherThan in interface JobQuery
    • duedateLowerThan

      public JobQuery duedateLowerThan(Date date)
      Description copied from interface: JobQuery
      Only select jobs where the duedate is lower than the given date.
      Specified by:
      duedateLowerThan in interface JobQuery
    • duedateHigherThen

      public JobQuery duedateHigherThen(Date date)
    • duedateHigherThenOrEquals

      public JobQuery duedateHigherThenOrEquals(Date date)
    • duedateLowerThen

      public JobQuery duedateLowerThen(Date date)
    • duedateLowerThenOrEquals

      public JobQuery duedateLowerThenOrEquals(Date date)
    • noRetriesLeft

      public JobQuery noRetriesLeft()
    • withException

      public JobQuery withException()
      Description copied from interface: JobQuery
      Only select jobs that failed due to an exception.
      Specified by:
      withException in interface JobQuery
    • exceptionMessage

      public JobQuery exceptionMessage(String exceptionMessage)
      Description copied from interface: JobQuery
      Only select jobs that failed due to an exception with the given message.
      Specified by:
      exceptionMessage in interface JobQuery
    • jobTenantId

      public JobQuery jobTenantId(String tenantId)
      Description copied from interface: JobQuery
      Only select jobs that have the given tenant id.
      Specified by:
      jobTenantId in interface JobQuery
    • jobTenantIdLike

      public JobQuery jobTenantIdLike(String tenantIdLike)
      Description copied from interface: JobQuery
      Only select jobs with a tenant id like the given one.
      Specified by:
      jobTenantIdLike in interface JobQuery
    • jobWithoutTenantId

      public JobQuery jobWithoutTenantId()
      Description copied from interface: JobQuery
      Only select jobs that do not have a tenant id.
      Specified by:
      jobWithoutTenantId in interface JobQuery
    • locked

      public JobQuery locked()
      Description copied from interface: JobQuery
      Only return jobs that are locked (i.e. they are acquired by an executor).
      Specified by:
      locked in interface JobQuery
    • unlocked

      public JobQuery unlocked()
      Description copied from interface: JobQuery
      Only return jobs that are not locked.
      Specified by:
      unlocked in interface JobQuery
    • orderByJobDuedate

      public JobQuery orderByJobDuedate()
      Description copied from interface: JobQuery
      Order by duedate (needs to be followed by Query.asc() or Query.desc()).
      Specified by:
      orderByJobDuedate in interface JobQuery
    • orderByExecutionId

      public JobQuery orderByExecutionId()
      Description copied from interface: JobQuery
      Order by execution id (needs to be followed by Query.asc() or Query.desc()).
      Specified by:
      orderByExecutionId in interface JobQuery
    • orderByJobId

      public JobQuery orderByJobId()
      Description copied from interface: JobQuery
      Order by job id (needs to be followed by Query.asc() or Query.desc()).
      Specified by:
      orderByJobId in interface JobQuery
    • orderByProcessInstanceId

      public JobQuery orderByProcessInstanceId()
      Description copied from interface: JobQuery
      Order by process instance id (needs to be followed by Query.asc() or Query.desc()).
      Specified by:
      orderByProcessInstanceId in interface JobQuery
    • orderByJobRetries

      public JobQuery orderByJobRetries()
      Description copied from interface: JobQuery
      Order by retries (needs to be followed by Query.asc() or Query.desc()).
      Specified by:
      orderByJobRetries in interface JobQuery
    • orderByTenantId

      public JobQuery orderByTenantId()
      Description copied from interface: JobQuery
      Order by tenant id (needs to be followed by Query.asc() or Query.desc()).
      Specified by:
      orderByTenantId in interface JobQuery
    • executeCount

      public long executeCount(CommandContext commandContext)
      Specified by:
      executeCount in class AbstractQuery<JobQuery,Job>
    • executeList

      public List<Job> executeList(CommandContext commandContext, Page page)
      Description copied from class: AbstractQuery
      Executes the actual query to retrieve the list of results.
      Specified by:
      executeList in class AbstractQuery<JobQuery,Job>
      page - used if the results must be paged. If null, no paging will be applied.
    • getProcessInstanceId

      public String getProcessInstanceId()
    • getExecutionId

      public String getExecutionId()
    • getRetriesLeft

      public boolean getRetriesLeft()
    • 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()
    • isNoRetriesLeft

      public boolean isNoRetriesLeft()
    • isOnlyLocked

      public boolean isOnlyLocked()
    • isOnlyUnlocked

      public boolean isOnlyUnlocked()