Package org.flowable.job.service.impl
Class HistoryJobQueryImpl
java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<HistoryJobQuery,HistoryJob>
org.flowable.job.service.impl.HistoryJobQueryImpl
- All Implemented Interfaces:
Serializable,Query<HistoryJobQuery,,HistoryJob> Command<Object>,HistoryJobQuery
public class HistoryJobQueryImpl
extends AbstractQuery<HistoryJobQuery,HistoryJob>
implements HistoryJobQuery, Serializable
- Author:
- Joram Barrez, Tom Baeyens, Falko Menge
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultTypeNested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Collection<String>protected Stringprotected JobServiceConfigurationprotected Stringprotected booleanprotected booleanprotected Stringprotected Stringprotected Stringprotected booleanprotected booleanprotected booleanFields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutorFields inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
databaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, ignoreOrderBy, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC -
Constructor Summary
ConstructorsConstructorDescriptionHistoryJobQueryImpl(CommandContext commandContext, JobServiceConfiguration jobServiceConfiguration) HistoryJobQueryImpl(CommandExecutor commandExecutor, JobServiceConfiguration jobServiceConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionexceptionMessage(String exceptionMessage) Only select jobs that failed due to an exception with the given message.longexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext) Executes the actual query to retrieve the list of results.getId()getNow()static longhandlerType(String handlerType) Select jobs which have given job handler typehandlerTypes(Collection<String> handlerTypes) Select jobs which have given job handler typebooleanbooleanbooleanbooleanbooleanOnly select jobs with the given idjobTenantId(String tenantId) Only select jobs that have the given tenant id.jobTenantIdLike(String tenantIdLike) Only select jobs with a tenant id like the given one.Only select jobs that do not have a tenant id.locked()Only return jobs that are locked (i.e.Only return jobs with the given lock owner.Order by job id (needs to be followed byQuery.asc()orQuery.desc()).Order by retries (needs to be followed byQuery.asc()orQuery.desc()).Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).Only select jobs with the given scope type.unlocked()Only return jobs that are not locked.Only select jobs that failed due to an exception.Only return jobs that do not have a scope type.Methods inherited from class org.flowable.common.engine.impl.query.AbstractQuery
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, getSafeList, list, listPage, orderBy, orderBy, setCommandExecutor, singleResultMethods inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
addOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setIgnoreOrderBy, setMaxResults, setNullHandlingColumn, setParameter
-
Field Details
-
jobServiceConfiguration
-
id
-
handlerType
-
handlerTypes
-
withException
protected boolean withException -
exceptionMessage
-
scopeType
-
tenantId
-
tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId -
lockOwner
-
onlyLocked
protected boolean onlyLocked -
onlyUnlocked
protected boolean onlyUnlocked -
withoutScopeType
protected boolean withoutScopeType
-
-
Constructor Details
-
HistoryJobQueryImpl
public HistoryJobQueryImpl() -
HistoryJobQueryImpl
public HistoryJobQueryImpl(CommandContext commandContext, JobServiceConfiguration jobServiceConfiguration) -
HistoryJobQueryImpl
public HistoryJobQueryImpl(CommandExecutor commandExecutor, JobServiceConfiguration jobServiceConfiguration)
-
-
Method Details
-
jobId
Description copied from interface:HistoryJobQueryOnly select jobs with the given id- Specified by:
jobIdin interfaceHistoryJobQuery
-
handlerType
Description copied from interface:HistoryJobQuerySelect jobs which have given job handler type- Specified by:
handlerTypein interfaceHistoryJobQuery
-
handlerTypes
Description copied from interface:HistoryJobQuerySelect jobs which have given job handler type- Specified by:
handlerTypesin interfaceHistoryJobQuery
-
withException
Description copied from interface:HistoryJobQueryOnly select jobs that failed due to an exception.- Specified by:
withExceptionin interfaceHistoryJobQuery
-
exceptionMessage
Description copied from interface:HistoryJobQueryOnly select jobs that failed due to an exception with the given message.- Specified by:
exceptionMessagein interfaceHistoryJobQuery
-
scopeType
Description copied from interface:HistoryJobQueryOnly select jobs with the given scope type.- Specified by:
scopeTypein interfaceHistoryJobQuery
-
jobTenantId
Description copied from interface:HistoryJobQueryOnly select jobs that have the given tenant id.- Specified by:
jobTenantIdin interfaceHistoryJobQuery
-
jobTenantIdLike
Description copied from interface:HistoryJobQueryOnly select jobs with a tenant id like the given one.- Specified by:
jobTenantIdLikein interfaceHistoryJobQuery
-
jobWithoutTenantId
Description copied from interface:HistoryJobQueryOnly select jobs that do not have a tenant id.- Specified by:
jobWithoutTenantIdin interfaceHistoryJobQuery
-
lockOwner
Description copied from interface:HistoryJobQueryOnly return jobs with the given lock owner.- Specified by:
lockOwnerin interfaceHistoryJobQuery
-
locked
Description copied from interface:HistoryJobQueryOnly return jobs that are locked (i.e. they are acquired by an executor).- Specified by:
lockedin interfaceHistoryJobQuery
-
unlocked
Description copied from interface:HistoryJobQueryOnly return jobs that are not locked.- Specified by:
unlockedin interfaceHistoryJobQuery
-
withoutScopeType
Description copied from interface:HistoryJobQueryOnly return jobs that do not have a scope type.- Specified by:
withoutScopeTypein interfaceHistoryJobQuery
-
orderByJobId
Description copied from interface:HistoryJobQueryOrder by job id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobIdin interfaceHistoryJobQuery
-
orderByJobRetries
Description copied from interface:HistoryJobQueryOrder by retries (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByJobRetriesin interfaceHistoryJobQuery
-
orderByTenantId
Description copied from interface:HistoryJobQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceHistoryJobQuery
-
executeCount
- Specified by:
executeCountin classAbstractQuery<HistoryJobQuery,HistoryJob>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<HistoryJobQuery,HistoryJob>
-
getHandlerType
-
getHandlerTypes
-
getNow
-
isWithException
public boolean isWithException() -
getExceptionMessage
-
getScopeType
-
getTenantId
-
getTenantIdLike
-
isWithoutTenantId
public boolean isWithoutTenantId() -
getSerialversionuid
public static long getSerialversionuid() -
getId
-
getLockOwner
-
isOnlyLocked
public boolean isOnlyLocked() -
isOnlyUnlocked
public boolean isOnlyUnlocked() -
isWithoutScopeType
public boolean isWithoutScopeType()
-