org.camunda.bpm.engine.impl
Class HistoricJobLogQueryImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.db.AuthorizationCheck
      extended by org.camunda.bpm.engine.impl.db.ListQueryParameterObject
          extended by org.camunda.bpm.engine.impl.AbstractQuery<HistoricJobLogQuery,HistoricJobLog>
              extended by 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:
Serialized Form

Field Summary
protected  String[] activityIds
           
protected  String deploymentId
           
protected  String[] executionIds
           
protected  String id
           
protected  String jobDefinitionConfiguration
           
protected  String jobDefinitionId
           
protected  String jobDefinitionType
           
protected  String jobExceptionMessage
           
protected  String jobId
           
protected  String processDefinitionId
           
protected  String processDefinitionKey
           
protected  String processInstanceId
           
protected  JobState state
           
 
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandContext, commandExecutor, expressions, orderingProperties, resultType, SORTORDER_ASC, SORTORDER_DESC
 
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
databaseType, DEFAULT_ORDER_BY, firstResult, maxResults, orderBy, parameter
 
Fields inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck
authDefaultPerm, authGroupIds, authUserId, isAuthorizationCheckEnabled, permissionChecks
 
Constructor Summary
HistoricJobLogQueryImpl()
           
HistoricJobLogQueryImpl(CommandContext commandContext)
           
HistoricJobLogQueryImpl(CommandExecutor commandExecutor)
           
 
Method Summary
 HistoricJobLogQuery activityIdIn(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(String deploymentId)
          Only select historic job log entries with the deployment id.
 long executeCount(CommandContext commandContext)
           
 List<HistoricJobLog> executeList(CommandContext commandContext, Page page)
          Executes the actual query to retrieve the list of results.
 HistoricJobLogQuery executionIdIn(String... executionIds)
          Only select historic job log entries which are associated with one of the given execution ids.
 HistoricJobLogQuery failureLog()
          Only select failed historic job log entries.
 String[] getActivityIds()
           
 String getDeploymentId()
           
 String[] getExecutionIds()
           
 String getJobDefinitionConfiguration()
           
 String getJobDefinitionId()
           
 String getJobDefinitionType()
           
 String getJobExceptionMessage()
           
 String getJobId()
           
 String getProcessDefinitionId()
           
 String getProcessDefinitionKey()
           
 String getProcessInstanceId()
           
 JobState getState()
           
 HistoricJobLogQuery jobDefinitionConfiguration(String jobDefinitionConfiguration)
          Only select historic job log entries with the given job definition configuration type.
 HistoricJobLogQuery jobDefinitionId(String jobDefinitionId)
          Only select historic job log entries with the given job definition id.
 HistoricJobLogQuery jobDefinitionType(String jobDefinitionType)
          Only select historic job log entries with the given job definition type.
 HistoricJobLogQuery jobExceptionMessage(String jobExceptionMessage)
          Only select historic job log entries with the given exception message.
 HistoricJobLogQuery jobId(String jobId)
          Only select historic job log entries with the given job id.
 HistoricJobLogQuery logId(String historicJobLogId)
          Only select historic job log entries with the id.
 HistoricJobLogQuery orderByActivityId()
          Order by activity id (needs to be followed by Query.asc() or Query.desc()).
 HistoricJobLogQuery orderByDeploymentId()
          Order by deployment id (needs to be followed by Query.asc() or Query.desc()).
 HistoricJobLogQuery orderByExecutionId()
          Order by execution id (needs to be followed by Query.asc() or Query.desc()).
 HistoricJobLogQuery orderByJobDefinitionId()
          Order by job definition id (needs to be followed by Query.asc() or Query.desc()).
 HistoricJobLogQuery orderByJobDueDate()
          Order by job due date (needs to be followed by Query.asc() or Query.desc()).
 HistoricJobLogQuery orderByJobId()
          Order by job id (needs to be followed by Query.asc() or Query.desc()).
 HistoricJobLogQuery orderByJobRetries()
          Order by job retries (needs to be followed by Query.asc() or Query.desc()).
 HistoricJobLogQuery orderByProcessDefinitionId()
          Order by process definition id (needs to be followed by Query.asc() or Query.desc()).
 HistoricJobLogQuery orderByProcessDefinitionKey()
          Order by process definition key (needs to be followed by Query.asc() or Query.desc()).
 HistoricJobLogQuery orderByProcessInstanceId()
          Order by process instance id (needs to be followed by Query.asc() or Query.desc()).
 HistoricJobLogQuery orderByTimestamp()
          Order by timestamp (needs to be followed by Query.asc() or Query.desc()).
 HistoricJobLogQuery orderPartiallyByOccurrence()
          Sort the historic job logs in the order in which they occurred and needs to be followed by Query.asc() or Query.desc().
 HistoricJobLogQuery processDefinitionId(String processDefinitionId)
          Only select historic job log entries with the process definition id.
 HistoricJobLogQuery processDefinitionKey(String processDefinitionKey)
          Only select historic job log entries with the process instance key.
 HistoricJobLogQuery processInstanceId(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 a successful executed job.
 
Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
addExpression, asc, checkQueryOk, count, desc, direction, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteList, execute, executeSingleResult, extend, getExpressions, getMethod, getOrderBy, getOrderingProperties, list, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, setCommandExecutor, setExpressions, setOrderingProperties, singleResult
 
Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setOrderBy, setParameter
 
Methods inherited from class org.camunda.bpm.engine.impl.db.AuthorizationCheck
addPermissionCheck, getAuthDefaultPerm, getAuthGroupIds, getAuthUserId, getPermissionChecks, isAuthorizationCheckEnabled, setAuthDefaultPerm, setAuthGroupIds, setAuthorizationCheckEnabled, setAuthUserId, setPermissionChecks
 
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.query.Query
asc, count, desc, list, listPage, singleResult
 

Field Detail

id

protected String id

jobId

protected String jobId

jobExceptionMessage

protected String jobExceptionMessage

jobDefinitionId

protected String jobDefinitionId

jobDefinitionType

protected String jobDefinitionType

jobDefinitionConfiguration

protected String jobDefinitionConfiguration

activityIds

protected String[] activityIds

executionIds

protected String[] executionIds

processInstanceId

protected String processInstanceId

processDefinitionId

protected String processDefinitionId

processDefinitionKey

protected String processDefinitionKey

deploymentId

protected String deploymentId

state

protected JobState state
Constructor Detail

HistoricJobLogQueryImpl

public HistoricJobLogQueryImpl()

HistoricJobLogQueryImpl

public HistoricJobLogQueryImpl(CommandContext commandContext)

HistoricJobLogQueryImpl

public HistoricJobLogQueryImpl(CommandExecutor commandExecutor)
Method Detail

logId

public HistoricJobLogQuery logId(String historicJobLogId)
Description copied from interface: HistoricJobLogQuery
Only select historic job log entries with the id.

Specified by:
logId in interface HistoricJobLogQuery

jobId

public HistoricJobLogQuery jobId(String jobId)
Description copied from interface: HistoricJobLogQuery
Only select historic job log entries with the given job id.

Specified by:
jobId in interface HistoricJobLogQuery

jobExceptionMessage

public HistoricJobLogQuery jobExceptionMessage(String jobExceptionMessage)
Description copied from interface: HistoricJobLogQuery
Only select historic job log entries with the given exception message.

Specified by:
jobExceptionMessage in interface HistoricJobLogQuery

jobDefinitionId

public HistoricJobLogQuery jobDefinitionId(String jobDefinitionId)
Description copied from interface: HistoricJobLogQuery
Only select historic job log entries with the given job definition id.

Specified by:
jobDefinitionId in interface HistoricJobLogQuery

jobDefinitionType

public HistoricJobLogQuery jobDefinitionType(String jobDefinitionType)
Description copied from interface: HistoricJobLogQuery
Only select historic job log entries with the given job definition type.

Specified by:
jobDefinitionType in interface HistoricJobLogQuery

jobDefinitionConfiguration

public HistoricJobLogQuery jobDefinitionConfiguration(String jobDefinitionConfiguration)
Description copied from interface: HistoricJobLogQuery
Only select historic job log entries with the given job definition configuration type.

Specified by:
jobDefinitionConfiguration in interface HistoricJobLogQuery

activityIdIn

public HistoricJobLogQuery activityIdIn(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 interface HistoricJobLogQuery

executionIdIn

public HistoricJobLogQuery executionIdIn(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 interface HistoricJobLogQuery

processInstanceId

public HistoricJobLogQuery processInstanceId(String processInstanceId)
Description copied from interface: HistoricJobLogQuery
Only select historic job log entries with the process instance id.

Specified by:
processInstanceId in interface HistoricJobLogQuery

processDefinitionId

public HistoricJobLogQuery processDefinitionId(String processDefinitionId)
Description copied from interface: HistoricJobLogQuery
Only select historic job log entries with the process definition id.

Specified by:
processDefinitionId in interface HistoricJobLogQuery

processDefinitionKey

public HistoricJobLogQuery processDefinitionKey(String processDefinitionKey)
Description copied from interface: HistoricJobLogQuery
Only select historic job log entries with the process instance key.

Specified by:
processDefinitionKey in interface HistoricJobLogQuery

deploymentId

public HistoricJobLogQuery deploymentId(String deploymentId)
Description copied from interface: HistoricJobLogQuery
Only select historic job log entries with the deployment id.

Specified by:
deploymentId in interface HistoricJobLogQuery

creationLog

public HistoricJobLogQuery creationLog()
Description copied from interface: HistoricJobLogQuery
Only select created historic job log entries.

Specified by:
creationLog in interface HistoricJobLogQuery

failureLog

public HistoricJobLogQuery failureLog()
Description copied from interface: HistoricJobLogQuery
Only select failed historic job log entries.

Specified by:
failureLog in interface HistoricJobLogQuery

successLog

public HistoricJobLogQuery successLog()
Description copied from interface: HistoricJobLogQuery
Only select historic job logs which belongs to a successful executed job.

Specified by:
successLog in interface HistoricJobLogQuery

deletionLog

public HistoricJobLogQuery deletionLog()
Description copied from interface: HistoricJobLogQuery
Only select deleted historic job log entries.

Specified by:
deletionLog in interface HistoricJobLogQuery

orderByTimestamp

public HistoricJobLogQuery orderByTimestamp()
Description copied from interface: HistoricJobLogQuery
Order by timestamp (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByTimestamp in interface HistoricJobLogQuery

orderByJobId

public HistoricJobLogQuery orderByJobId()
Description copied from interface: HistoricJobLogQuery
Order by job id (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByJobId in interface HistoricJobLogQuery

orderByJobDueDate

public HistoricJobLogQuery orderByJobDueDate()
Description copied from interface: HistoricJobLogQuery
Order by job due date (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByJobDueDate in interface HistoricJobLogQuery

orderByJobRetries

public HistoricJobLogQuery orderByJobRetries()
Description copied from interface: HistoricJobLogQuery
Order by job retries (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByJobRetries in interface HistoricJobLogQuery

orderByJobDefinitionId

public HistoricJobLogQuery orderByJobDefinitionId()
Description copied from interface: HistoricJobLogQuery
Order by job definition id (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByJobDefinitionId in interface HistoricJobLogQuery

orderByActivityId

public HistoricJobLogQuery orderByActivityId()
Description copied from interface: HistoricJobLogQuery
Order by activity id (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByActivityId in interface HistoricJobLogQuery

orderByExecutionId

public HistoricJobLogQuery orderByExecutionId()
Description copied from interface: HistoricJobLogQuery
Order by execution id (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByExecutionId in interface HistoricJobLogQuery

orderByProcessInstanceId

public HistoricJobLogQuery orderByProcessInstanceId()
Description copied from interface: HistoricJobLogQuery
Order by process instance id (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByProcessInstanceId in interface HistoricJobLogQuery

orderByProcessDefinitionId

public HistoricJobLogQuery orderByProcessDefinitionId()
Description copied from interface: HistoricJobLogQuery
Order by process definition id (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByProcessDefinitionId in interface HistoricJobLogQuery

orderByProcessDefinitionKey

public HistoricJobLogQuery orderByProcessDefinitionKey()
Description copied from interface: HistoricJobLogQuery
Order by process definition key (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByProcessDefinitionKey in interface HistoricJobLogQuery

orderByDeploymentId

public HistoricJobLogQuery orderByDeploymentId()
Description copied from interface: HistoricJobLogQuery
Order by deployment id (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByDeploymentId in interface HistoricJobLogQuery

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 by Query.asc() or Query.desc().

The set of all historic job logs is a partially ordered set. Due to this fact historic job logs with different job ids are incomparable. Only historic job logs with the same job id can be totally ordered by using HistoricJobLogQuery.jobId(String) and HistoricJobLogQuery.orderPartiallyByOccurrence() which will return a result set ordered by its occurrence.

Specified by:
orderPartiallyByOccurrence in interface HistoricJobLogQuery

executeCount

public long executeCount(CommandContext commandContext)
Specified by:
executeCount in class AbstractQuery<HistoricJobLogQuery,HistoricJobLog>

executeList

public 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 class AbstractQuery<HistoricJobLogQuery,HistoricJobLog>
page - used if the results must be paged. If null, no paging will be applied.

getJobId

public String getJobId()

getJobExceptionMessage

public String getJobExceptionMessage()

getJobDefinitionId

public String getJobDefinitionId()

getJobDefinitionType

public String getJobDefinitionType()

getJobDefinitionConfiguration

public String getJobDefinitionConfiguration()

getActivityIds

public String[] getActivityIds()

getExecutionIds

public String[] getExecutionIds()

getProcessInstanceId

public String getProcessInstanceId()

getProcessDefinitionId

public String getProcessDefinitionId()

getProcessDefinitionKey

public String getProcessDefinitionKey()

getDeploymentId

public String getDeploymentId()

getState

public JobState getState()

setState

protected void setState(JobState state)


Copyright © 2015 camunda services GmbH. All rights reserved.