Package org.camunda.bpm.engine.impl
Class HistoricJobLogQueryImpl
java.lang.Object
org.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.engine.impl.AbstractQuery<HistoricJobLogQuery,HistoricJobLog>
org.camunda.bpm.engine.impl.HistoricJobLogQueryImpl
- All Implemented Interfaces:
Serializable
,HistoricJobLogQuery
,Command<Object>
,Query<HistoricJobLogQuery,
HistoricJobLog>
public class HistoricJobLogQueryImpl
extends AbstractQuery<HistoricJobLogQuery,HistoricJobLog>
implements HistoricJobLogQuery
- Author:
- Roman Smirnov
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
Field Summary
Modifier and TypeFieldDescriptionprotected String[]
protected String
protected String[]
protected String[]
protected String
protected String
protected boolean
protected String
protected String
protected String
protected String
protected String
protected Long
protected Long
protected String
protected String
protected String
protected JobState
protected String[]
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactivityIdIn
(String... activityIds) Only select historic job log entries which are associated with one of the given activity ids.Only select created historic job log entries.Only select deleted historic job log entries.deploymentId
(String deploymentId) Only select historic job log entries with the deployment id.long
executeCount
(CommandContext commandContext) executeList
(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.executionIdIn
(String... executionIds) Only select historic job log entries which are associated with one of the given execution ids.failedActivityIdIn
(String... activityIds) Only select historic job log entries which are associated with failures of one of the given activity ids.Only select failed historic job log entries.String[]
String[]
String[]
getJobId()
getState()
String[]
protected boolean
Whether or not the query has excluding conditions.Only selects historic job log entries that belong to the given host name.boolean
jobDefinitionConfiguration
(String jobDefinitionConfiguration) Only select historic job log entries with the given job definition configuration type.jobDefinitionId
(String jobDefinitionId) Only select historic job log entries with the given job definition id.jobDefinitionType
(String jobDefinitionType) Only select historic job log entries with the given job definition type.jobExceptionMessage
(String jobExceptionMessage) Only select historic job log entries with the given exception message.Only select historic job log entries with the given job id.jobPriorityHigherThanOrEquals
(long priority) Only select log entries where the job had a priority higher than or equal to the given priority.jobPriorityLowerThanOrEquals
(long priority) Only select log entries where the job had a priority lower than or equal to the given priority.Only select historic job log entries with the id.Order by activity id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by deployment id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by execution id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by hostname (needs to be followed byQuery.asc()
orQuery.desc()
).Order by job definition id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by job due date (needs to be followed byQuery.asc()
orQuery.desc()
).Order by job id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by job priority (needs to be followed byQuery.asc()
orQuery.desc()
).Order by job retries (needs to be followed byQuery.asc()
orQuery.desc()
).Order by process definition id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by process definition key (needs to be followed byQuery.asc()
orQuery.desc()
).Order by process instance id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by timestamp (needs to be followed byQuery.asc()
orQuery.desc()
).Sort thehistoric job logs
in the order in which they occurred and needs to be followed byQuery.asc()
orQuery.desc()
.processDefinitionId
(String processDefinitionId) Only select historic job log entries with the process definition id.processDefinitionKey
(String processDefinitionKey) Only select historic job log entries with the process instance key.processInstanceId
(String processInstanceId) Only select historic job log entries with the process instance id.protected void
Only select historic job logs which belongs to asuccessful
executed job.tenantIdIn
(String... tenantIds) Only select historic job log entries that belong to one of the given tenant ids.Only selects historic job log entries that have no tenant id.Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
addExpression, addValidator, asc, checkMaxResultsLimit, checkQueryOk, count, desc, direction, disableMaxResultsLimit, enableMaxResultsLimit, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteDeploymentIdMappingsList, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeDeploymentIdMappingsList, executeIdsList, executeResult, executeSingleResult, extend, getExpressions, getMethod, list, listDeploymentIdMappings, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, unlimitedList, validate, validate
Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
Field Details
-
id
-
jobId
-
jobExceptionMessage
-
jobDefinitionId
-
jobDefinitionType
-
jobDefinitionConfiguration
-
activityIds
-
failedActivityIds
-
executionIds
-
processInstanceId
-
processDefinitionId
-
processDefinitionKey
-
deploymentId
-
state
-
jobPriorityHigherThanOrEqual
-
jobPriorityLowerThanOrEqual
-
tenantIds
-
isTenantIdSet
protected boolean isTenantIdSet -
hostname
-
-
Constructor Details
-
HistoricJobLogQueryImpl
public HistoricJobLogQueryImpl() -
HistoricJobLogQueryImpl
-
-
Method Details
-
logId
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries with the id.- Specified by:
logId
in interfaceHistoricJobLogQuery
-
jobId
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries with the given job id.- Specified by:
jobId
in interfaceHistoricJobLogQuery
-
jobExceptionMessage
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries with the given exception message.- Specified by:
jobExceptionMessage
in interfaceHistoricJobLogQuery
-
jobDefinitionId
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries with the given job definition id.- Specified by:
jobDefinitionId
in interfaceHistoricJobLogQuery
-
jobDefinitionType
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries with the given job definition type.- Specified by:
jobDefinitionType
in interfaceHistoricJobLogQuery
-
jobDefinitionConfiguration
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries with the given job definition configuration type.- Specified by:
jobDefinitionConfiguration
in interfaceHistoricJobLogQuery
-
activityIdIn
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries which are associated with one of the given activity ids.- Specified by:
activityIdIn
in interfaceHistoricJobLogQuery
-
failedActivityIdIn
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries which are associated with failures of one of the given activity ids.- Specified by:
failedActivityIdIn
in interfaceHistoricJobLogQuery
-
executionIdIn
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries which are associated with one of the given execution ids.- Specified by:
executionIdIn
in interfaceHistoricJobLogQuery
-
processInstanceId
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries with the process instance id.- Specified by:
processInstanceId
in interfaceHistoricJobLogQuery
-
processDefinitionId
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries with the process definition id.- Specified by:
processDefinitionId
in interfaceHistoricJobLogQuery
-
processDefinitionKey
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries with the process instance key.- Specified by:
processDefinitionKey
in interfaceHistoricJobLogQuery
-
deploymentId
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries with the deployment id.- Specified by:
deploymentId
in interfaceHistoricJobLogQuery
-
jobPriorityHigherThanOrEquals
Description copied from interface:HistoricJobLogQuery
Only select log entries where the job had a priority higher than or equal to the given priority.- Specified by:
jobPriorityHigherThanOrEquals
in interfaceHistoricJobLogQuery
-
jobPriorityLowerThanOrEquals
Description copied from interface:HistoricJobLogQuery
Only select log entries where the job had a priority lower than or equal to the given priority.- Specified by:
jobPriorityLowerThanOrEquals
in interfaceHistoricJobLogQuery
-
tenantIdIn
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries that belong to one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceHistoricJobLogQuery
-
withoutTenantId
Description copied from interface:HistoricJobLogQuery
Only selects historic job log entries that have no tenant id.- Specified by:
withoutTenantId
in interfaceHistoricJobLogQuery
-
hostname
Description copied from interface:HistoricJobLogQuery
Only selects historic job log entries that belong to the given host name.- Specified by:
hostname
in interfaceHistoricJobLogQuery
-
creationLog
Description copied from interface:HistoricJobLogQuery
Only select created historic job log entries.- Specified by:
creationLog
in interfaceHistoricJobLogQuery
-
failureLog
Description copied from interface:HistoricJobLogQuery
Only select failed historic job log entries.- Specified by:
failureLog
in interfaceHistoricJobLogQuery
-
successLog
Description copied from interface:HistoricJobLogQuery
Only select historic job logs which belongs to asuccessful
executed job.- Specified by:
successLog
in interfaceHistoricJobLogQuery
-
deletionLog
Description copied from interface:HistoricJobLogQuery
Only select deleted historic job log entries.- Specified by:
deletionLog
in interfaceHistoricJobLogQuery
-
hasExcludingConditions
protected boolean hasExcludingConditions()Description copied from class:AbstractQuery
Whether or not the query has excluding conditions. If the query has excluding conditions, (e.g. task due date before and after are excluding), the SQL query is avoided and a default result is returned. The returned result is the same as if the SQL was executed and there were no entries.- Overrides:
hasExcludingConditions
in classAbstractQuery<HistoricJobLogQuery,
HistoricJobLog> - Returns:
true
if the query does have excluding conditions,false
otherwise
-
orderByTimestamp
Description copied from interface:HistoricJobLogQuery
Order by timestamp (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTimestamp
in interfaceHistoricJobLogQuery
-
orderByJobId
Description copied from interface:HistoricJobLogQuery
Order by job id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByJobId
in interfaceHistoricJobLogQuery
-
orderByJobDueDate
Description copied from interface:HistoricJobLogQuery
Order by job due date (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByJobDueDate
in interfaceHistoricJobLogQuery
-
orderByJobRetries
Description copied from interface:HistoricJobLogQuery
Order by job retries (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByJobRetries
in interfaceHistoricJobLogQuery
-
orderByJobPriority
Description copied from interface:HistoricJobLogQuery
Order by job priority (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByJobPriority
in interfaceHistoricJobLogQuery
-
orderByJobDefinitionId
Description copied from interface:HistoricJobLogQuery
Order by job definition id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByJobDefinitionId
in interfaceHistoricJobLogQuery
-
orderByActivityId
Description copied from interface:HistoricJobLogQuery
Order by activity id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityId
in interfaceHistoricJobLogQuery
-
orderByExecutionId
Description copied from interface:HistoricJobLogQuery
Order by execution id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByExecutionId
in interfaceHistoricJobLogQuery
-
orderByProcessInstanceId
Description copied from interface:HistoricJobLogQuery
Order by process instance id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessInstanceId
in interfaceHistoricJobLogQuery
-
orderByProcessDefinitionId
Description copied from interface:HistoricJobLogQuery
Order by process definition id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessDefinitionId
in interfaceHistoricJobLogQuery
-
orderByProcessDefinitionKey
Description copied from interface:HistoricJobLogQuery
Order by process definition key (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByProcessDefinitionKey
in interfaceHistoricJobLogQuery
-
orderByDeploymentId
Description copied from interface:HistoricJobLogQuery
Order by deployment id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDeploymentId
in interfaceHistoricJobLogQuery
-
orderPartiallyByOccurrence
Description copied from interface:HistoricJobLogQuery
Sort the
historic job logs
in the order in which they occurred and needs to be followed byQuery.asc()
orQuery.desc()
.The set of all
historic job logs
is a partially ordered set. Due to this facthistoric job logs
with differentjob ids
are incomparable. Onlyhistoric job logs
with the samejob id
can be totally ordered by usingHistoricJobLogQuery.jobId(String)
andHistoricJobLogQuery.orderPartiallyByOccurrence()
which will return a result set ordered by its occurrence.- Specified by:
orderPartiallyByOccurrence
in interfaceHistoricJobLogQuery
-
orderByTenantId
Description copied from interface:HistoricJobLogQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
). Note that the ordering of job log entries without tenant id is database-specific.- Specified by:
orderByTenantId
in interfaceHistoricJobLogQuery
-
orderByHostname
Description copied from interface:HistoricJobLogQuery
Order by hostname (needs to be followed byQuery.asc()
orQuery.desc()
). Note that the ordering of job log entries without hostname is database-specific.- Specified by:
orderByHostname
in interfaceHistoricJobLogQuery
-
executeCount
- Specified by:
executeCount
in classAbstractQuery<HistoricJobLogQuery,
HistoricJobLog>
-
executeList
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<HistoricJobLogQuery,
HistoricJobLog> page
- used if the results must be paged. If null, no paging will be applied.
-
isTenantIdSet
public boolean isTenantIdSet() -
getJobId
-
getJobExceptionMessage
-
getJobDefinitionId
-
getJobDefinitionType
-
getJobDefinitionConfiguration
-
getActivityIds
-
getFailedActivityIds
-
getExecutionIds
-
getProcessInstanceId
-
getProcessDefinitionId
-
getProcessDefinitionKey
-
getDeploymentId
-
getState
-
getTenantIds
-
getHostname
-
setState
-