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:
java.io.Serializable
,HistoricJobLogQuery
,Command<java.lang.Object>
,Query<HistoricJobLogQuery,HistoricJobLog>
public class HistoricJobLogQueryImpl extends AbstractQuery<HistoricJobLogQuery,HistoricJobLog> implements HistoricJobLogQuery
- Author:
- Roman Smirnov
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String[]
activityIds
protected java.lang.String
deploymentId
protected java.lang.String[]
executionIds
protected java.lang.String[]
failedActivityIds
protected java.lang.String
hostname
protected java.lang.String
id
protected boolean
isTenantIdSet
protected java.lang.String
jobDefinitionConfiguration
protected java.lang.String
jobDefinitionId
protected java.lang.String
jobDefinitionType
protected java.lang.String
jobExceptionMessage
protected java.lang.String
jobId
protected java.lang.Long
jobPriorityHigherThanOrEqual
protected java.lang.Long
jobPriorityLowerThanOrEqual
protected java.lang.String
processDefinitionId
protected java.lang.String
processDefinitionKey
protected java.lang.String
processInstanceId
protected JobState
state
protected java.lang.String[]
tenantIds
-
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
Constructors Constructor Description HistoricJobLogQueryImpl()
HistoricJobLogQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HistoricJobLogQuery
activityIdIn(java.lang.String... activityIds)
Only select historic job log entries which are associated with one of the given activity ids.HistoricJobLogQuery
creationLog()
Only select created historic job log entries.HistoricJobLogQuery
deletionLog()
Only select deleted historic job log entries.HistoricJobLogQuery
deploymentId(java.lang.String deploymentId)
Only select historic job log entries with the deployment id.long
executeCount(CommandContext commandContext)
java.util.List<HistoricJobLog>
executeList(CommandContext commandContext, Page page)
Executes the actual query to retrieve the list of results.HistoricJobLogQuery
executionIdIn(java.lang.String... executionIds)
Only select historic job log entries which are associated with one of the given execution ids.HistoricJobLogQuery
failedActivityIdIn(java.lang.String... activityIds)
Only select historic job log entries which are associated with failures of one of the given activity ids.HistoricJobLogQuery
failureLog()
Only select failed historic job log entries.java.lang.String[]
getActivityIds()
java.lang.String
getDeploymentId()
java.lang.String[]
getExecutionIds()
java.lang.String[]
getFailedActivityIds()
java.lang.String
getHostname()
java.lang.String
getJobDefinitionConfiguration()
java.lang.String
getJobDefinitionId()
java.lang.String
getJobDefinitionType()
java.lang.String
getJobExceptionMessage()
java.lang.String
getJobId()
java.lang.String
getProcessDefinitionId()
java.lang.String
getProcessDefinitionKey()
java.lang.String
getProcessInstanceId()
JobState
getState()
java.lang.String[]
getTenantIds()
protected boolean
hasExcludingConditions()
Whether or not the query has excluding conditions.HistoricJobLogQuery
hostname(java.lang.String hostname)
Only selects historic job log entries that belong to the given host name.boolean
isTenantIdSet()
HistoricJobLogQuery
jobDefinitionConfiguration(java.lang.String jobDefinitionConfiguration)
Only select historic job log entries with the given job definition configuration type.HistoricJobLogQuery
jobDefinitionId(java.lang.String jobDefinitionId)
Only select historic job log entries with the given job definition id.HistoricJobLogQuery
jobDefinitionType(java.lang.String jobDefinitionType)
Only select historic job log entries with the given job definition type.HistoricJobLogQuery
jobExceptionMessage(java.lang.String jobExceptionMessage)
Only select historic job log entries with the given exception message.HistoricJobLogQuery
jobId(java.lang.String jobId)
Only select historic job log entries with the given job id.HistoricJobLogQuery
jobPriorityHigherThanOrEquals(long priority)
Only select log entries where the job had a priority higher than or equal to the given priority.HistoricJobLogQuery
jobPriorityLowerThanOrEquals(long priority)
Only select log entries where the job had a priority lower than or equal to the given priority.HistoricJobLogQuery
logId(java.lang.String historicJobLogId)
Only select historic job log entries with the id.HistoricJobLogQuery
orderByActivityId()
Order by activity id (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricJobLogQuery
orderByDeploymentId()
Order by deployment id (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricJobLogQuery
orderByExecutionId()
Order by execution id (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricJobLogQuery
orderByHostname()
Order by hostname (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricJobLogQuery
orderByJobDefinitionId()
Order by job definition id (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricJobLogQuery
orderByJobDueDate()
Order by job due date (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricJobLogQuery
orderByJobId()
Order by job id (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricJobLogQuery
orderByJobPriority()
Order by job priority (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricJobLogQuery
orderByJobRetries()
Order by job retries (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricJobLogQuery
orderByProcessDefinitionId()
Order by process definition id (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricJobLogQuery
orderByProcessDefinitionKey()
Order by process definition key (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricJobLogQuery
orderByProcessInstanceId()
Order by process instance id (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricJobLogQuery
orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricJobLogQuery
orderByTimestamp()
Order by timestamp (needs to be followed byQuery.asc()
orQuery.desc()
).HistoricJobLogQuery
orderPartiallyByOccurrence()
Sort thehistoric job logs
in the order in which they occurred and needs to be followed byQuery.asc()
orQuery.desc()
.HistoricJobLogQuery
processDefinitionId(java.lang.String processDefinitionId)
Only select historic job log entries with the process definition id.HistoricJobLogQuery
processDefinitionKey(java.lang.String processDefinitionKey)
Only select historic job log entries with the process instance key.HistoricJobLogQuery
processInstanceId(java.lang.String processInstanceId)
Only select historic job log entries with the process instance id.protected void
setState(JobState state)
HistoricJobLogQuery
successLog()
Only select historic job logs which belongs to asuccessful
executed job.HistoricJobLogQuery
tenantIdIn(java.lang.String... tenantIds)
Only select historic job log entries that belong to one of the given tenant ids.HistoricJobLogQuery
withoutTenantId()
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 Detail
-
id
protected java.lang.String id
-
jobId
protected java.lang.String jobId
-
jobExceptionMessage
protected java.lang.String jobExceptionMessage
-
jobDefinitionId
protected java.lang.String jobDefinitionId
-
jobDefinitionType
protected java.lang.String jobDefinitionType
-
jobDefinitionConfiguration
protected java.lang.String jobDefinitionConfiguration
-
activityIds
protected java.lang.String[] activityIds
-
failedActivityIds
protected java.lang.String[] failedActivityIds
-
executionIds
protected java.lang.String[] executionIds
-
processInstanceId
protected java.lang.String processInstanceId
-
processDefinitionId
protected java.lang.String processDefinitionId
-
processDefinitionKey
protected java.lang.String processDefinitionKey
-
deploymentId
protected java.lang.String deploymentId
-
state
protected JobState state
-
jobPriorityHigherThanOrEqual
protected java.lang.Long jobPriorityHigherThanOrEqual
-
jobPriorityLowerThanOrEqual
protected java.lang.Long jobPriorityLowerThanOrEqual
-
tenantIds
protected java.lang.String[] tenantIds
-
isTenantIdSet
protected boolean isTenantIdSet
-
hostname
protected java.lang.String hostname
-
-
Constructor Detail
-
HistoricJobLogQueryImpl
public HistoricJobLogQueryImpl()
-
HistoricJobLogQueryImpl
public HistoricJobLogQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
logId
public HistoricJobLogQuery logId(java.lang.String historicJobLogId)
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries with the id.- Specified by:
logId
in interfaceHistoricJobLogQuery
-
jobId
public HistoricJobLogQuery jobId(java.lang.String jobId)
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries with the given job id.- Specified by:
jobId
in interfaceHistoricJobLogQuery
-
jobExceptionMessage
public HistoricJobLogQuery jobExceptionMessage(java.lang.String jobExceptionMessage)
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries with the given exception message.- Specified by:
jobExceptionMessage
in interfaceHistoricJobLogQuery
-
jobDefinitionId
public HistoricJobLogQuery jobDefinitionId(java.lang.String jobDefinitionId)
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries with the given job definition id.- Specified by:
jobDefinitionId
in interfaceHistoricJobLogQuery
-
jobDefinitionType
public HistoricJobLogQuery jobDefinitionType(java.lang.String jobDefinitionType)
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries with the given job definition type.- Specified by:
jobDefinitionType
in interfaceHistoricJobLogQuery
-
jobDefinitionConfiguration
public HistoricJobLogQuery jobDefinitionConfiguration(java.lang.String 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
public HistoricJobLogQuery activityIdIn(java.lang.String... activityIds)
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
public HistoricJobLogQuery failedActivityIdIn(java.lang.String... activityIds)
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
public HistoricJobLogQuery executionIdIn(java.lang.String... executionIds)
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
public HistoricJobLogQuery processInstanceId(java.lang.String processInstanceId)
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries with the process instance id.- Specified by:
processInstanceId
in interfaceHistoricJobLogQuery
-
processDefinitionId
public HistoricJobLogQuery processDefinitionId(java.lang.String processDefinitionId)
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries with the process definition id.- Specified by:
processDefinitionId
in interfaceHistoricJobLogQuery
-
processDefinitionKey
public HistoricJobLogQuery processDefinitionKey(java.lang.String processDefinitionKey)
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries with the process instance key.- Specified by:
processDefinitionKey
in interfaceHistoricJobLogQuery
-
deploymentId
public HistoricJobLogQuery deploymentId(java.lang.String deploymentId)
Description copied from interface:HistoricJobLogQuery
Only select historic job log entries with the deployment id.- Specified by:
deploymentId
in interfaceHistoricJobLogQuery
-
jobPriorityHigherThanOrEquals
public HistoricJobLogQuery jobPriorityHigherThanOrEquals(long priority)
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
public HistoricJobLogQuery jobPriorityLowerThanOrEquals(long priority)
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
public HistoricJobLogQuery tenantIdIn(java.lang.String... tenantIds)
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
public HistoricJobLogQuery withoutTenantId()
Description copied from interface:HistoricJobLogQuery
Only selects historic job log entries that have no tenant id.- Specified by:
withoutTenantId
in interfaceHistoricJobLogQuery
-
hostname
public HistoricJobLogQuery hostname(java.lang.String 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
public HistoricJobLogQuery creationLog()
Description copied from interface:HistoricJobLogQuery
Only select created historic job log entries.- Specified by:
creationLog
in interfaceHistoricJobLogQuery
-
failureLog
public HistoricJobLogQuery failureLog()
Description copied from interface:HistoricJobLogQuery
Only select failed historic job log entries.- Specified by:
failureLog
in interfaceHistoricJobLogQuery
-
successLog
public HistoricJobLogQuery successLog()
Description copied from interface:HistoricJobLogQuery
Only select historic job logs which belongs to asuccessful
executed job.- Specified by:
successLog
in interfaceHistoricJobLogQuery
-
deletionLog
public HistoricJobLogQuery 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
public HistoricJobLogQuery orderByTimestamp()
Description copied from interface:HistoricJobLogQuery
Order by timestamp (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTimestamp
in interfaceHistoricJobLogQuery
-
orderByJobId
public HistoricJobLogQuery orderByJobId()
Description copied from interface:HistoricJobLogQuery
Order by job id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByJobId
in interfaceHistoricJobLogQuery
-
orderByJobDueDate
public HistoricJobLogQuery 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
public HistoricJobLogQuery orderByJobRetries()
Description copied from interface:HistoricJobLogQuery
Order by job retries (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByJobRetries
in interfaceHistoricJobLogQuery
-
orderByJobPriority
public HistoricJobLogQuery orderByJobPriority()
Description copied from interface:HistoricJobLogQuery
Order by job priority (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByJobPriority
in interfaceHistoricJobLogQuery
-
orderByJobDefinitionId
public HistoricJobLogQuery 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
public HistoricJobLogQuery orderByActivityId()
Description copied from interface:HistoricJobLogQuery
Order by activity id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByActivityId
in interfaceHistoricJobLogQuery
-
orderByExecutionId
public HistoricJobLogQuery orderByExecutionId()
Description copied from interface:HistoricJobLogQuery
Order by execution id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByExecutionId
in interfaceHistoricJobLogQuery
-
orderByProcessInstanceId
public HistoricJobLogQuery 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
public HistoricJobLogQuery 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
public HistoricJobLogQuery 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
public HistoricJobLogQuery orderByDeploymentId()
Description copied from interface:HistoricJobLogQuery
Order by deployment id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDeploymentId
in interfaceHistoricJobLogQuery
-
orderPartiallyByOccurrence
public HistoricJobLogQuery 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
public HistoricJobLogQuery 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
public HistoricJobLogQuery 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
public long executeCount(CommandContext commandContext)
- Specified by:
executeCount
in classAbstractQuery<HistoricJobLogQuery,HistoricJobLog>
-
executeList
public java.util.List<HistoricJobLog> executeList(CommandContext commandContext, Page page)
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
public java.lang.String getJobId()
-
getJobExceptionMessage
public java.lang.String getJobExceptionMessage()
-
getJobDefinitionId
public java.lang.String getJobDefinitionId()
-
getJobDefinitionType
public java.lang.String getJobDefinitionType()
-
getJobDefinitionConfiguration
public java.lang.String getJobDefinitionConfiguration()
-
getActivityIds
public java.lang.String[] getActivityIds()
-
getFailedActivityIds
public java.lang.String[] getFailedActivityIds()
-
getExecutionIds
public java.lang.String[] getExecutionIds()
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
-
getProcessDefinitionKey
public java.lang.String getProcessDefinitionKey()
-
getDeploymentId
public java.lang.String getDeploymentId()
-
getState
public JobState getState()
-
getTenantIds
public java.lang.String[] getTenantIds()
-
getHostname
public java.lang.String getHostname()
-
setState
protected void setState(JobState state)
-
-