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
FieldsModifier and TypeFieldDescriptionprotected String[]protected Stringprotected String[]protected String[]protected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Longprotected Longprotected Stringprotected Stringprotected Stringprotected JobStateprotected String[]Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validatorsFields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck -
Constructor Summary
Constructors -
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.longexecuteCount(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 booleanWhether or not the query has excluding conditions.Only selects historic job log entries that belong to the given host name.booleanjobDefinitionConfiguration(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 logsin 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 voidOnly select historic job logs which belongs to asuccessfulexecuted 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, validateMethods 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, setTenantCheckMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:HistoricJobLogQueryOnly select historic job log entries with the id.- Specified by:
logIdin interfaceHistoricJobLogQuery
-
jobId
Description copied from interface:HistoricJobLogQueryOnly select historic job log entries with the given job id.- Specified by:
jobIdin interfaceHistoricJobLogQuery
-
jobExceptionMessage
Description copied from interface:HistoricJobLogQueryOnly select historic job log entries with the given exception message.- Specified by:
jobExceptionMessagein interfaceHistoricJobLogQuery
-
jobDefinitionId
Description copied from interface:HistoricJobLogQueryOnly select historic job log entries with the given job definition id.- Specified by:
jobDefinitionIdin interfaceHistoricJobLogQuery
-
jobDefinitionType
Description copied from interface:HistoricJobLogQueryOnly select historic job log entries with the given job definition type.- Specified by:
jobDefinitionTypein interfaceHistoricJobLogQuery
-
jobDefinitionConfiguration
Description copied from interface:HistoricJobLogQueryOnly select historic job log entries with the given job definition configuration type.- Specified by:
jobDefinitionConfigurationin interfaceHistoricJobLogQuery
-
activityIdIn
Description copied from interface:HistoricJobLogQueryOnly select historic job log entries which are associated with one of the given activity ids.- Specified by:
activityIdInin interfaceHistoricJobLogQuery
-
failedActivityIdIn
Description copied from interface:HistoricJobLogQueryOnly select historic job log entries which are associated with failures of one of the given activity ids.- Specified by:
failedActivityIdInin interfaceHistoricJobLogQuery
-
executionIdIn
Description copied from interface:HistoricJobLogQueryOnly select historic job log entries which are associated with one of the given execution ids.- Specified by:
executionIdInin interfaceHistoricJobLogQuery
-
processInstanceId
Description copied from interface:HistoricJobLogQueryOnly select historic job log entries with the process instance id.- Specified by:
processInstanceIdin interfaceHistoricJobLogQuery
-
processDefinitionId
Description copied from interface:HistoricJobLogQueryOnly select historic job log entries with the process definition id.- Specified by:
processDefinitionIdin interfaceHistoricJobLogQuery
-
processDefinitionKey
Description copied from interface:HistoricJobLogQueryOnly select historic job log entries with the process instance key.- Specified by:
processDefinitionKeyin interfaceHistoricJobLogQuery
-
deploymentId
Description copied from interface:HistoricJobLogQueryOnly select historic job log entries with the deployment id.- Specified by:
deploymentIdin interfaceHistoricJobLogQuery
-
jobPriorityHigherThanOrEquals
Description copied from interface:HistoricJobLogQueryOnly select log entries where the job had a priority higher than or equal to the given priority.- Specified by:
jobPriorityHigherThanOrEqualsin interfaceHistoricJobLogQuery
-
jobPriorityLowerThanOrEquals
Description copied from interface:HistoricJobLogQueryOnly select log entries where the job had a priority lower than or equal to the given priority.- Specified by:
jobPriorityLowerThanOrEqualsin interfaceHistoricJobLogQuery
-
tenantIdIn
Description copied from interface:HistoricJobLogQueryOnly select historic job log entries that belong to one of the given tenant ids.- Specified by:
tenantIdInin interfaceHistoricJobLogQuery
-
withoutTenantId
Description copied from interface:HistoricJobLogQueryOnly selects historic job log entries that have no tenant id.- Specified by:
withoutTenantIdin interfaceHistoricJobLogQuery
-
hostname
Description copied from interface:HistoricJobLogQueryOnly selects historic job log entries that belong to the given host name.- Specified by:
hostnamein interfaceHistoricJobLogQuery
-
creationLog
Description copied from interface:HistoricJobLogQueryOnly select created historic job log entries.- Specified by:
creationLogin interfaceHistoricJobLogQuery
-
failureLog
Description copied from interface:HistoricJobLogQueryOnly select failed historic job log entries.- Specified by:
failureLogin interfaceHistoricJobLogQuery
-
successLog
Description copied from interface:HistoricJobLogQueryOnly select historic job logs which belongs to asuccessfulexecuted job.- Specified by:
successLogin interfaceHistoricJobLogQuery
-
deletionLog
Description copied from interface:HistoricJobLogQueryOnly select deleted historic job log entries.- Specified by:
deletionLogin interfaceHistoricJobLogQuery
-
hasExcludingConditions
protected boolean hasExcludingConditions()Description copied from class:AbstractQueryWhether 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:
hasExcludingConditionsin classAbstractQuery<HistoricJobLogQuery,HistoricJobLog> - Returns:
trueif the query does have excluding conditions,falseotherwise
-
orderByTimestamp
Description copied from interface:HistoricJobLogQueryOrder by timestamp (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTimestampin interfaceHistoricJobLogQuery
-
orderByJobId
Description copied from interface:HistoricJobLogQueryOrder by job id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobIdin interfaceHistoricJobLogQuery
-
orderByJobDueDate
Description copied from interface:HistoricJobLogQueryOrder by job due date (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobDueDatein interfaceHistoricJobLogQuery
-
orderByJobRetries
Description copied from interface:HistoricJobLogQueryOrder by job retries (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobRetriesin interfaceHistoricJobLogQuery
-
orderByJobPriority
Description copied from interface:HistoricJobLogQueryOrder by job priority (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobPriorityin interfaceHistoricJobLogQuery
-
orderByJobDefinitionId
Description copied from interface:HistoricJobLogQueryOrder by job definition id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobDefinitionIdin interfaceHistoricJobLogQuery
-
orderByActivityId
Description copied from interface:HistoricJobLogQueryOrder by activity id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByActivityIdin interfaceHistoricJobLogQuery
-
orderByExecutionId
Description copied from interface:HistoricJobLogQueryOrder by execution id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByExecutionIdin interfaceHistoricJobLogQuery
-
orderByProcessInstanceId
Description copied from interface:HistoricJobLogQueryOrder by process instance id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessInstanceIdin interfaceHistoricJobLogQuery
-
orderByProcessDefinitionId
Description copied from interface:HistoricJobLogQueryOrder by process definition id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionIdin interfaceHistoricJobLogQuery
-
orderByProcessDefinitionKey
Description copied from interface:HistoricJobLogQueryOrder by process definition key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByProcessDefinitionKeyin interfaceHistoricJobLogQuery
-
orderByDeploymentId
Description copied from interface:HistoricJobLogQueryOrder by deployment id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDeploymentIdin interfaceHistoricJobLogQuery
-
orderPartiallyByOccurrence
Description copied from interface:HistoricJobLogQuerySort the
historic job logsin the order in which they occurred and needs to be followed byQuery.asc()orQuery.desc().The set of all
historic job logsis a partially ordered set. Due to this facthistoric job logswith differentjob idsare incomparable. Onlyhistoric job logswith the samejob idcan be totally ordered by usingHistoricJobLogQuery.jobId(String)andHistoricJobLogQuery.orderPartiallyByOccurrence()which will return a result set ordered by its occurrence.- Specified by:
orderPartiallyByOccurrencein interfaceHistoricJobLogQuery
-
orderByTenantId
Description copied from interface:HistoricJobLogQueryOrder 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:
orderByTenantIdin interfaceHistoricJobLogQuery
-
orderByHostname
Description copied from interface:HistoricJobLogQueryOrder 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:
orderByHostnamein interfaceHistoricJobLogQuery
-
executeCount
- Specified by:
executeCountin classAbstractQuery<HistoricJobLogQuery,HistoricJobLog>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin 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
-