Class JobQueryImpl

    • 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
      • onlyLocked

        protected boolean onlyLocked
      • onlyUnlocked

        protected boolean onlyUnlocked
    • Constructor Detail

      • JobQueryImpl

        public JobQueryImpl()
      • JobQueryImpl

        public JobQueryImpl​(CommandContext commandContext)
    • Method Detail

      • jobId

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

        public JobQueryImpl processInstanceId​(java.lang.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​(java.lang.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​(java.lang.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()
      • duedateHigherThan

        public JobQuery duedateHigherThan​(java.util.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​(java.util.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​(java.util.Date date)
      • duedateHigherThenOrEquals

        public JobQuery duedateHigherThenOrEquals​(java.util.Date date)
      • duedateLowerThen

        public JobQuery duedateLowerThen​(java.util.Date date)
      • duedateLowerThenOrEquals

        public JobQuery duedateLowerThenOrEquals​(java.util.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​(java.lang.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​(java.lang.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​(java.lang.String tenantIdLike)
        Description copied from interface: JobQuery
        Only select jobs with a tenant id like the given one.
        Specified by:
        jobTenantIdLike 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
      • executeList

        public java.util.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 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()
      • isOnlyLocked

        public boolean isOnlyLocked()
      • isOnlyUnlocked

        public boolean isOnlyUnlocked()