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.ResultType
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected Collection<String>
protected String
protected JobServiceConfiguration
protected String
protected boolean
protected boolean
protected String
protected String
protected String
protected boolean
protected boolean
protected boolean
Fields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutor
Fields inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
databaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, 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.long
executeCount
(CommandContext commandContext) executeList
(CommandContext commandContext) Executes the actual query to retrieve the list of results.getId()
getNow()
static long
handlerType
(String handlerType) Select jobs which have given job handler typehandlerTypes
(Collection<String> handlerTypes) Select jobs which have given job handler typeboolean
boolean
boolean
boolean
boolean
Only 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, list, listPage, orderBy, orderBy, setCommandExecutor, singleResult
Methods 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, 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:HistoryJobQuery
Only select jobs with the given id- Specified by:
jobId
in interfaceHistoryJobQuery
-
handlerType
Description copied from interface:HistoryJobQuery
Select jobs which have given job handler type- Specified by:
handlerType
in interfaceHistoryJobQuery
-
handlerTypes
Description copied from interface:HistoryJobQuery
Select jobs which have given job handler type- Specified by:
handlerTypes
in interfaceHistoryJobQuery
-
withException
Description copied from interface:HistoryJobQuery
Only select jobs that failed due to an exception.- Specified by:
withException
in interfaceHistoryJobQuery
-
exceptionMessage
Description copied from interface:HistoryJobQuery
Only select jobs that failed due to an exception with the given message.- Specified by:
exceptionMessage
in interfaceHistoryJobQuery
-
scopeType
Description copied from interface:HistoryJobQuery
Only select jobs with the given scope type.- Specified by:
scopeType
in interfaceHistoryJobQuery
-
jobTenantId
Description copied from interface:HistoryJobQuery
Only select jobs that have the given tenant id.- Specified by:
jobTenantId
in interfaceHistoryJobQuery
-
jobTenantIdLike
Description copied from interface:HistoryJobQuery
Only select jobs with a tenant id like the given one.- Specified by:
jobTenantIdLike
in interfaceHistoryJobQuery
-
jobWithoutTenantId
Description copied from interface:HistoryJobQuery
Only select jobs that do not have a tenant id.- Specified by:
jobWithoutTenantId
in interfaceHistoryJobQuery
-
lockOwner
Description copied from interface:HistoryJobQuery
Only return jobs with the given lock owner.- Specified by:
lockOwner
in interfaceHistoryJobQuery
-
locked
Description copied from interface:HistoryJobQuery
Only return jobs that are locked (i.e. they are acquired by an executor).- Specified by:
locked
in interfaceHistoryJobQuery
-
unlocked
Description copied from interface:HistoryJobQuery
Only return jobs that are not locked.- Specified by:
unlocked
in interfaceHistoryJobQuery
-
withoutScopeType
Description copied from interface:HistoryJobQuery
Only return jobs that do not have a scope type.- Specified by:
withoutScopeType
in interfaceHistoryJobQuery
-
orderByJobId
Description copied from interface:HistoryJobQuery
Order by job id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByJobId
in interfaceHistoryJobQuery
-
orderByJobRetries
Description copied from interface:HistoryJobQuery
Order by retries (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByJobRetries
in interfaceHistoryJobQuery
-
orderByTenantId
Description copied from interface:HistoryJobQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTenantId
in interfaceHistoryJobQuery
-
executeCount
- Specified by:
executeCount
in classAbstractQuery<HistoryJobQuery,
HistoryJob>
-
executeList
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in 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()
-