public class HistoryJobQueryImpl extends AbstractQuery<HistoryJobQuery,HistoryJob> implements HistoryJobQuery, Serializable
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultTypeQuery.NullHandlingOnOrder| Modifier and Type | Field and Description |
|---|---|
protected String |
exceptionMessage |
protected String |
handlerType |
protected String |
id |
protected JobServiceConfiguration |
jobServiceConfiguration |
protected String |
lockOwner |
protected boolean |
onlyLocked |
protected boolean |
onlyUnlocked |
protected String |
scopeType |
protected String |
tenantId |
protected String |
tenantIdLike |
protected boolean |
withException |
protected boolean |
withoutScopeType |
protected boolean |
withoutTenantId |
commandContext, commandExecutordatabaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC| Constructor and Description |
|---|
HistoryJobQueryImpl() |
HistoryJobQueryImpl(CommandContext commandContext,
JobServiceConfiguration jobServiceConfiguration) |
HistoryJobQueryImpl(CommandExecutor commandExecutor,
JobServiceConfiguration jobServiceConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
HistoryJobQuery |
exceptionMessage(String exceptionMessage)
Only select jobs that failed due to an exception with the given message.
|
long |
executeCount(CommandContext commandContext) |
List<HistoryJob> |
executeList(CommandContext commandContext)
Executes the actual query to retrieve the list of results.
|
String |
getExceptionMessage() |
String |
getHandlerType() |
String |
getId() |
String |
getLockOwner() |
Date |
getNow() |
String |
getScopeType() |
static long |
getSerialversionuid() |
String |
getTenantId() |
String |
getTenantIdLike() |
HistoryJobQuery |
handlerType(String handlerType)
Select jobs which have given job handler type
|
boolean |
isOnlyLocked() |
boolean |
isOnlyUnlocked() |
boolean |
isWithException() |
boolean |
isWithoutScopeType() |
boolean |
isWithoutTenantId() |
HistoryJobQuery |
jobId(String jobId)
Only select jobs with the given id
|
HistoryJobQuery |
jobTenantId(String tenantId)
Only select jobs that have the given tenant id.
|
HistoryJobQuery |
jobTenantIdLike(String tenantIdLike)
Only select jobs with a tenant id like the given one.
|
HistoryJobQuery |
jobWithoutTenantId()
Only select jobs that do not have a tenant id.
|
HistoryJobQuery |
locked()
Only return jobs that are locked (i.e.
|
HistoryJobQuery |
lockOwner(String lockOwner)
Only return jobs with the given lock owner.
|
HistoryJobQuery |
orderByJobId()
Order by job id (needs to be followed by
Query.asc() or Query.desc()). |
HistoryJobQuery |
orderByJobRetries()
Order by retries (needs to be followed by
Query.asc() or Query.desc()). |
HistoryJobQuery |
orderByTenantId()
Order by tenant id (needs to be followed by
Query.asc() or Query.desc()). |
HistoryJobQuery |
scopeType(String scopeType)
Only select jobs with the given scope type.
|
HistoryJobQuery |
unlocked()
Only return jobs that are not locked.
|
HistoryJobQuery |
withException()
Only select jobs that failed due to an exception.
|
HistoryJobQuery |
withoutScopeType()
Only return jobs that do not have a scope type.
|
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResultaddOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setParameterprotected JobServiceConfiguration jobServiceConfiguration
protected String id
protected String handlerType
protected boolean withException
protected String exceptionMessage
protected String scopeType
protected String tenantId
protected String tenantIdLike
protected boolean withoutTenantId
protected String lockOwner
protected boolean onlyLocked
protected boolean onlyUnlocked
protected boolean withoutScopeType
public HistoryJobQueryImpl()
public HistoryJobQueryImpl(CommandContext commandContext, JobServiceConfiguration jobServiceConfiguration)
public HistoryJobQueryImpl(CommandExecutor commandExecutor, JobServiceConfiguration jobServiceConfiguration)
public HistoryJobQuery jobId(String jobId)
HistoryJobQueryjobId in interface HistoryJobQuerypublic HistoryJobQuery handlerType(String handlerType)
HistoryJobQueryhandlerType in interface HistoryJobQuerypublic HistoryJobQuery withException()
HistoryJobQuerywithException in interface HistoryJobQuerypublic HistoryJobQuery exceptionMessage(String exceptionMessage)
HistoryJobQueryexceptionMessage in interface HistoryJobQuerypublic HistoryJobQuery scopeType(String scopeType)
HistoryJobQueryscopeType in interface HistoryJobQuerypublic HistoryJobQuery jobTenantId(String tenantId)
HistoryJobQueryjobTenantId in interface HistoryJobQuerypublic HistoryJobQuery jobTenantIdLike(String tenantIdLike)
HistoryJobQueryjobTenantIdLike in interface HistoryJobQuerypublic HistoryJobQuery jobWithoutTenantId()
HistoryJobQueryjobWithoutTenantId in interface HistoryJobQuerypublic HistoryJobQuery lockOwner(String lockOwner)
HistoryJobQuerylockOwner in interface HistoryJobQuerypublic HistoryJobQuery locked()
HistoryJobQuerylocked in interface HistoryJobQuerypublic HistoryJobQuery unlocked()
HistoryJobQueryunlocked in interface HistoryJobQuerypublic HistoryJobQuery withoutScopeType()
HistoryJobQuerywithoutScopeType in interface HistoryJobQuerypublic HistoryJobQuery orderByJobId()
HistoryJobQueryQuery.asc() or Query.desc()).orderByJobId in interface HistoryJobQuerypublic HistoryJobQuery orderByJobRetries()
HistoryJobQueryQuery.asc() or Query.desc()).orderByJobRetries in interface HistoryJobQuerypublic HistoryJobQuery orderByTenantId()
HistoryJobQueryQuery.asc() or Query.desc()).orderByTenantId in interface HistoryJobQuerypublic long executeCount(CommandContext commandContext)
executeCount in class AbstractQuery<HistoryJobQuery,HistoryJob>public List<HistoryJob> executeList(CommandContext commandContext)
AbstractQueryexecuteList in class AbstractQuery<HistoryJobQuery,HistoryJob>public String getHandlerType()
public Date getNow()
public boolean isWithException()
public String getExceptionMessage()
public String getScopeType()
public String getTenantId()
public String getTenantIdLike()
public boolean isWithoutTenantId()
public static long getSerialversionuid()
public String getId()
public String getLockOwner()
public boolean isOnlyLocked()
public boolean isOnlyUnlocked()
public boolean isWithoutScopeType()
Copyright © 2023 Flowable. All rights reserved.