public class JobQueryImpl extends AbstractQuery<JobQuery,Job> implements JobQuery, Serializable
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 |
processInstanceId |
protected boolean |
retriesLeft |
protected boolean |
withException |
commandContext, commandExecutor, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC
databaseType, firstResult, maxResults, parameter
authDefaultPerm, authGroupIds, authPerms, authResourceId, authResourceIdQueryParam, authResourceType, authUserId, isAuthorizationCheckEnabled
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() |
boolean |
isWithException() |
JobQuery |
jobId(String jobId)
Only select jobs with the given 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() ). |
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, getOrderBy, list, listPage, orderBy, setCommandExecutor, singleResult
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setParameter
getAuthDefaultPerm, getAuthGroupIds, getAuthPerms, getAuthResourceId, getAuthResourceIdQueryParam, getAuthResourceType, getAuthUserId, isAuthorizationCheckEnabled, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthPerms, setAuthResourceId, setAuthResourceIdQueryParam, setAuthResourceType, setAuthUserId
protected String id
protected String processInstanceId
protected String executionId
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 boolean noRetriesLeft
public JobQueryImpl()
public JobQueryImpl(CommandContext commandContext)
public JobQueryImpl(CommandExecutor commandExecutor)
public JobQuery jobId(String jobId)
JobQuery
public JobQueryImpl processInstanceId(String processInstanceId)
JobQuery
processInstanceId
in interface JobQuery
public JobQueryImpl executionId(String executionId)
JobQuery
executionId
in interface JobQuery
public JobQuery withRetriesLeft()
JobQuery
withRetriesLeft
in interface JobQuery
public JobQuery executable()
JobQuery
executable
in interface JobQuery
public JobQuery timers()
JobQuery
JobQuery.messages()
public JobQuery messages()
JobQuery
JobQuery.timers()
public JobQuery duedateHigherThan(Date date)
JobQuery
duedateHigherThan
in interface JobQuery
public JobQuery duedateLowerThan(Date date)
JobQuery
duedateLowerThan
in interface JobQuery
public JobQuery duedateHigherThen(Date date)
JobQuery
duedateHigherThen
in interface JobQuery
public JobQuery duedateHigherThenOrEquals(Date date)
JobQuery
duedateHigherThenOrEquals
in interface JobQuery
public JobQuery duedateLowerThen(Date date)
JobQuery
duedateLowerThen
in interface JobQuery
public JobQuery duedateLowerThenOrEquals(Date date)
JobQuery
duedateLowerThenOrEquals
in interface JobQuery
public JobQuery withException()
JobQuery
withException
in interface JobQuery
public JobQuery exceptionMessage(String exceptionMessage)
JobQuery
exceptionMessage
in interface JobQuery
public JobQuery noRetriesLeft()
JobQuery
noRetriesLeft
in interface JobQuery
public JobQuery orderByJobDuedate()
JobQuery
Query.asc()
or Query.desc()
).orderByJobDuedate
in interface JobQuery
public JobQuery orderByExecutionId()
JobQuery
Query.asc()
or Query.desc()
).orderByExecutionId
in interface JobQuery
public JobQuery orderByJobId()
JobQuery
Query.asc()
or Query.desc()
).orderByJobId
in interface JobQuery
public JobQuery orderByProcessInstanceId()
JobQuery
Query.asc()
or Query.desc()
).orderByProcessInstanceId
in interface JobQuery
public JobQuery orderByJobRetries()
JobQuery
Query.asc()
or Query.desc()
).orderByJobRetries
in interface JobQuery
public long executeCount(CommandContext commandContext)
executeCount
in class AbstractQuery<JobQuery,Job>
public List<Job> executeList(CommandContext commandContext, Page page)
AbstractQuery
executeList
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()
Copyright © 2015. All rights reserved.