org.activiti.engine.impl
类 JobQueryImpl

java.lang.Object
  继承者 org.activiti.engine.impl.db.ListQueryParameterObject
      继承者 org.activiti.engine.impl.AbstractQuery<JobQuery,Job>
          继承者 org.activiti.engine.impl.JobQueryImpl
所有已实现的接口:
Serializable, Command<Object>, Query<JobQuery,Job>, JobQuery

public class JobQueryImpl
extends AbstractQuery<JobQuery,Job>
implements JobQuery, Serializable

作者:
Joram Barrez, Tom Baeyens, Falko Menge
另请参见:
序列化表格

字段摘要
protected  Date duedateHigherThan
           
protected  Date duedateHigherThanOrEqual
           
protected  Date duedateLowerThan
           
protected  Date duedateLowerThanOrEqual
           
protected  String exceptionMessage
           
protected  boolean executable
           
protected  String executionId
           
protected  String id
           
protected  boolean onlyMessages
           
protected  boolean onlyTimers
           
protected  String processDefinitionId
           
protected  String processInstanceId
           
protected  boolean retriesLeft
           
protected  boolean withException
           
 
从类 org.activiti.engine.impl.AbstractQuery 继承的字段
commandContext, commandExecutor, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC
 
从类 org.activiti.engine.impl.db.ListQueryParameterObject 继承的字段
databaseType, firstResult, maxResults, parameter
 
构造方法摘要
JobQueryImpl()
           
JobQueryImpl(CommandContext commandContext)
           
JobQueryImpl(CommandExecutor commandExecutor)
           
 
方法摘要
 JobQuery duedateHigherThan(Date date)
          Only select jobs where the duedate is higher then the given date.
 JobQuery duedateHigherThen(Date date)
          Only select jobs where the duedate is higher then the given date.
 JobQuery duedateHigherThenOrEquals(Date date)
          Only select jobs where the duedate is higher then or equals the given date.
 JobQuery duedateLowerThan(Date date)
          Only select jobs where the duedate is lower than the given date.
 JobQuery duedateLowerThen(Date date)
          Only select jobs where the duedate is lower then the given date.
 JobQuery duedateLowerThenOrEquals(Date date)
          Only select jobs where the duedate is lower then or equals the given date.
 JobQuery exceptionMessage(String exceptionMessage)
          Only select jobs that failed due to an exception with the given message.
 JobQuery executable()
          Only select jobs which are executable, ie. retries > 0 and duedate is null or duedate is in the past
 long executeCount(CommandContext commandContext)
           
 List<Job> executeList(CommandContext commandContext, Page page)
          Executes the actual query to retrieve the list of results.
 JobQueryImpl executionId(String executionId)
          Only select jobs which exist for the given execution
 String getExceptionMessage()
           
 boolean getExecutable()
           
 String getExecutionId()
           
 Date getNow()
           
 String getProcessInstanceId()
           
 boolean getRetriesLeft()
           
 boolean isWithException()
           
 JobQuery jobId(String jobId)
          Only select jobs with the given id
 JobQuery messages()
          Only select jobs that are messages.
 JobQuery orderByExecutionId()
          Order by execution id (needs to be followed by Query.asc() or Query.desc()).
 JobQuery orderByJobDuedate()
          Order by duedate (needs to be followed by Query.asc() or Query.desc()).
 JobQuery orderByJobId()
          Order by job id (needs to be followed by Query.asc() or Query.desc()).
 JobQuery orderByJobRetries()
          Order by retries (needs to be followed by Query.asc() or Query.desc()).
 JobQuery orderByProcessInstanceId()
          Order by process instance id (needs to be followed by Query.asc() or Query.desc()).
 JobQueryImpl processDefinitionId(String processDefinitionId)
          Only select jobs which exist for the given process definition id
 JobQueryImpl processInstanceId(String processInstanceId)
          Only select jobs which exist for the given process instance.
 JobQuery timers()
          Only select jobs that are timers.
 JobQuery withException()
          Only select jobs that failed due to an exception.
 JobQuery withRetriesLeft()
          Only select jobs which have retries left
 
从类 org.activiti.engine.impl.AbstractQuery 继承的方法
addOrder, asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, getOrderBy, list, listPage, orderBy, setCommandExecutor, singleResult
 
从类 org.activiti.engine.impl.db.ListQueryParameterObject 继承的方法
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setParameter
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 org.activiti.engine.query.Query 继承的方法
asc, count, desc, list, listPage, singleResult
 

字段详细信息

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
构造方法详细信息

JobQueryImpl

public JobQueryImpl()

JobQueryImpl

public JobQueryImpl(CommandContext commandContext)

JobQueryImpl

public JobQueryImpl(CommandExecutor commandExecutor)
方法详细信息

jobId

public JobQuery jobId(String jobId)
从接口 JobQuery 复制的描述
Only select jobs with the given id

指定者:
接口 JobQuery 中的 jobId

processInstanceId

public JobQueryImpl processInstanceId(String processInstanceId)
从接口 JobQuery 复制的描述
Only select jobs which exist for the given process instance.

指定者:
接口 JobQuery 中的 processInstanceId

processDefinitionId

public JobQueryImpl processDefinitionId(String processDefinitionId)
从接口 JobQuery 复制的描述
Only select jobs which exist for the given process definition id

指定者:
接口 JobQuery 中的 processDefinitionId

executionId

public JobQueryImpl executionId(String executionId)
从接口 JobQuery 复制的描述
Only select jobs which exist for the given execution

指定者:
接口 JobQuery 中的 executionId

withRetriesLeft

public JobQuery withRetriesLeft()
从接口 JobQuery 复制的描述
Only select jobs which have retries left

指定者:
接口 JobQuery 中的 withRetriesLeft

executable

public JobQuery executable()
从接口 JobQuery 复制的描述
Only select jobs which are executable, ie. retries > 0 and duedate is null or duedate is in the past

指定者:
接口 JobQuery 中的 executable

timers

public JobQuery timers()
从接口 JobQuery 复制的描述
Only select jobs that are timers. Cannot be used together with JobQuery.messages()

指定者:
接口 JobQuery 中的 timers

messages

public JobQuery messages()
从接口 JobQuery 复制的描述
Only select jobs that are messages. Cannot be used together with JobQuery.timers()

指定者:
接口 JobQuery 中的 messages

duedateHigherThan

public JobQuery duedateHigherThan(Date date)
从接口 JobQuery 复制的描述
Only select jobs where the duedate is higher then the given date.

指定者:
接口 JobQuery 中的 duedateHigherThan

duedateLowerThan

public JobQuery duedateLowerThan(Date date)
从接口 JobQuery 复制的描述
Only select jobs where the duedate is lower than the given date.

指定者:
接口 JobQuery 中的 duedateLowerThan

duedateHigherThen

public JobQuery duedateHigherThen(Date date)
从接口 JobQuery 复制的描述
Only select jobs where the duedate is higher then the given date.

指定者:
接口 JobQuery 中的 duedateHigherThen

duedateHigherThenOrEquals

public JobQuery duedateHigherThenOrEquals(Date date)
从接口 JobQuery 复制的描述
Only select jobs where the duedate is higher then or equals the given date.

指定者:
接口 JobQuery 中的 duedateHigherThenOrEquals

duedateLowerThen

public JobQuery duedateLowerThen(Date date)
从接口 JobQuery 复制的描述
Only select jobs where the duedate is lower then the given date.

指定者:
接口 JobQuery 中的 duedateLowerThen

duedateLowerThenOrEquals

public JobQuery duedateLowerThenOrEquals(Date date)
从接口 JobQuery 复制的描述
Only select jobs where the duedate is lower then or equals the given date.

指定者:
接口 JobQuery 中的 duedateLowerThenOrEquals

withException

public JobQuery withException()
从接口 JobQuery 复制的描述
Only select jobs that failed due to an exception.

指定者:
接口 JobQuery 中的 withException

exceptionMessage

public JobQuery exceptionMessage(String exceptionMessage)
从接口 JobQuery 复制的描述
Only select jobs that failed due to an exception with the given message.

指定者:
接口 JobQuery 中的 exceptionMessage

orderByJobDuedate

public JobQuery orderByJobDuedate()
从接口 JobQuery 复制的描述
Order by duedate (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 JobQuery 中的 orderByJobDuedate

orderByExecutionId

public JobQuery orderByExecutionId()
从接口 JobQuery 复制的描述
Order by execution id (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 JobQuery 中的 orderByExecutionId

orderByJobId

public JobQuery orderByJobId()
从接口 JobQuery 复制的描述
Order by job id (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 JobQuery 中的 orderByJobId

orderByProcessInstanceId

public JobQuery orderByProcessInstanceId()
从接口 JobQuery 复制的描述
Order by process instance id (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 JobQuery 中的 orderByProcessInstanceId

orderByJobRetries

public JobQuery orderByJobRetries()
从接口 JobQuery 复制的描述
Order by retries (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 JobQuery 中的 orderByJobRetries

executeCount

public long executeCount(CommandContext commandContext)
指定者:
AbstractQuery<JobQuery,Job> 中的 executeCount

executeList

public List<Job> executeList(CommandContext commandContext,
                             Page page)
从类 AbstractQuery 复制的描述
Executes the actual query to retrieve the list of results.

指定者:
AbstractQuery<JobQuery,Job> 中的 executeList
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()


Copyright © 2013 Alfresco. All rights reserved.