public class JobQueryImpl extends AbstractQuery<JobQuery,Job> implements JobQuery, Serializable
AbstractQuery.NullHandlingOnOrder| Modifier and Type | Field and Description |
|---|---|
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 |
noRetriesLeft |
protected boolean |
onlyMessages |
protected boolean |
onlyTimers |
protected String |
processDefinitionId |
protected String |
processInstanceId |
protected boolean |
retriesLeft |
protected String |
tenantId |
protected String |
tenantIdLike |
protected boolean |
withException |
protected boolean |
withoutTenantId |
commandContext, commandExecutor, databaseType, nullHandlingOnOrder, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESCfirstResult, maxResults, parameter| Constructor and Description |
|---|
JobQueryImpl() |
JobQueryImpl(CommandContext commandContext) |
JobQueryImpl(CommandExecutor commandExecutor) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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() |
String |
getTenantId() |
String |
getTenantIdLike() |
boolean |
isWithException() |
boolean |
isWithoutTenantId() |
JobQuery |
jobId(String jobId)
Only select jobs with the given id
|
JobQuery |
jobTenantId(String tenantId)
Only select jobs that have the given tenant id.
|
JobQuery |
jobTenantIdLike(String tenantIdLike)
Only select jobs with a tenant id like the given one.
|
JobQuery |
jobWithoutTenantId()
Only select jobs that do not have a tenant id.
|
JobQuery |
messages()
Only select jobs that are messages.
|
JobQuery |
noRetriesLeft()
Only select jobs which have no retries left
|
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()). |
JobQuery |
orderByTenantId()
Order by tenant 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
|
addOrder, asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, getDatabaseType, getOrderBy, getOrderByColumns, list, listPage, orderBy, orderBy, setCommandExecutor, setDatabaseType, singleResultgetFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setFirstResult, setMaxResults, setParameterprotected String id
protected String processInstanceId
protected String executionId
protected String processDefinitionId
protected boolean retriesLeft
protected boolean executable
protected boolean onlyTimers
protected boolean onlyMessages
protected Date duedateHigherThan
protected Date duedateLowerThan
protected Date duedateHigherThanOrEqual
protected Date duedateLowerThanOrEqual
protected boolean withException
protected String exceptionMessage
protected String tenantId
protected String tenantIdLike
protected boolean withoutTenantId
protected boolean noRetriesLeft
public JobQueryImpl()
public JobQueryImpl(CommandContext commandContext)
public JobQueryImpl(CommandExecutor commandExecutor)
public JobQuery jobId(String jobId)
JobQuerypublic JobQueryImpl processInstanceId(String processInstanceId)
JobQueryprocessInstanceId in interface JobQuerypublic JobQueryImpl processDefinitionId(String processDefinitionId)
JobQueryprocessDefinitionId in interface JobQuerypublic JobQueryImpl executionId(String executionId)
JobQueryexecutionId in interface JobQuerypublic JobQuery withRetriesLeft()
JobQuerywithRetriesLeft in interface JobQuerypublic JobQuery executable()
JobQueryexecutable in interface JobQuerypublic JobQuery timers()
JobQueryJobQuery.messages()public JobQuery messages()
JobQueryJobQuery.timers()public JobQuery duedateHigherThan(Date date)
JobQueryduedateHigherThan in interface JobQuerypublic JobQuery duedateLowerThan(Date date)
JobQueryduedateLowerThan in interface JobQuerypublic JobQuery duedateHigherThen(Date date)
JobQueryduedateHigherThen in interface JobQuerypublic JobQuery duedateHigherThenOrEquals(Date date)
JobQueryduedateHigherThenOrEquals in interface JobQuerypublic JobQuery duedateLowerThen(Date date)
JobQueryduedateLowerThen in interface JobQuerypublic JobQuery duedateLowerThenOrEquals(Date date)
JobQueryduedateLowerThenOrEquals in interface JobQuerypublic JobQuery noRetriesLeft()
JobQuerynoRetriesLeft in interface JobQuerypublic JobQuery withException()
JobQuerywithException in interface JobQuerypublic JobQuery exceptionMessage(String exceptionMessage)
JobQueryexceptionMessage in interface JobQuerypublic JobQuery jobTenantId(String tenantId)
JobQueryjobTenantId in interface JobQuerypublic JobQuery jobTenantIdLike(String tenantIdLike)
JobQueryjobTenantIdLike in interface JobQuerypublic JobQuery jobWithoutTenantId()
JobQueryjobWithoutTenantId in interface JobQuerypublic JobQuery orderByJobDuedate()
JobQueryQuery.asc() or Query.desc()).orderByJobDuedate in interface JobQuerypublic JobQuery orderByExecutionId()
JobQueryQuery.asc() or Query.desc()).orderByExecutionId in interface JobQuerypublic JobQuery orderByJobId()
JobQueryQuery.asc() or Query.desc()).orderByJobId in interface JobQuerypublic JobQuery orderByProcessInstanceId()
JobQueryQuery.asc() or Query.desc()).orderByProcessInstanceId in interface JobQuerypublic JobQuery orderByJobRetries()
JobQueryQuery.asc() or Query.desc()).orderByJobRetries in interface JobQuerypublic JobQuery orderByTenantId()
JobQueryQuery.asc() or Query.desc()).orderByTenantId in interface JobQuerypublic long executeCount(CommandContext commandContext)
executeCount in class AbstractQuery<JobQuery,Job>public List<Job> executeList(CommandContext commandContext, Page page)
AbstractQueryexecuteList in class AbstractQuery<JobQuery,Job>page - used if the results must be paged. If null, no paging will be applied.public String getProcessInstanceId()
public String getExecutionId()
public boolean getRetriesLeft()
public boolean getExecutable()
public Date getNow()
public boolean isWithException()
public String getExceptionMessage()
public String getTenantId()
public String getTenantIdLike()
public boolean isWithoutTenantId()
Copyright © 2016 Alfresco. All rights reserved.