Class ActionInstanceQueryImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.db.ListQueryParameterObject
-
- org.flowable.common.engine.impl.query.AbstractQuery<ActionInstanceQuery,ActionInstance>
-
- com.flowable.action.engine.impl.runtime.ActionInstanceQueryImpl
-
- All Implemented Interfaces:
ActionInstanceQuery,Serializable,CacheAwareQuery<ActionInstanceEntity>,Query<ActionInstanceQuery,ActionInstance>,Command<Object>
public class ActionInstanceQueryImpl extends AbstractQuery<ActionInstanceQuery,ActionInstance> implements ActionInstanceQuery, CacheAwareQuery<ActionInstanceEntity>, Serializable
- Author:
- Tijs Rademakers, Joram Barrez
- See Also:
- Serialized Form
-
-
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
Fields Modifier and Type Field Description protected StringactionDefinitionIdprotected StringactionDefinitionIdLikeprotected Stringchannelprotected List<String>channelsprotected StringformInstanceIdprotected StringformKeyprotected Stringidprotected Set<String>idsprotected IntegermaxPriorityprotected IntegerminPriorityprotected Stringnameprotected StringnameLikeprotected List<String>participantGroupsprotected List<String>participantUsersprotected Integerpriorityprotected booleanqueryOnActionLinksprotected booleanqueryOnlyOnActionLinksprotected StringscopeDefinitionIdprotected StringscopeIdprotected StringscopeTypeprotected DatestartDateprotected DatestartDateAfterprotected DatestartDateBeforeprotected StringsubScopeIdprotected StringtenantIdprotected StringtenantIdLikeprotected booleanwithoutTenantId-
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
Constructors Constructor Description ActionInstanceQueryImpl()ActionInstanceQueryImpl(CommandContext commandContext)ActionInstanceQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionInstanceQueryImplactionDefinitionId(String actionDefinitionId)Only select action instances with the given action definition id.ActionInstanceQueryImplactionDefinitionIdLike(String actionDefinitionIdLike)Only select action instances with an action definition id like the given string.longexecuteCount(CommandContext commandContext)List<ActionInstance>executeList(CommandContext commandContext)ActionInstanceQueryImplformInstanceId(String formInstanceId)Only select action instances with the given form instance id.ActionInstanceQueryformKey(String formKey)Only select action instances with the given form key.StringgetActionDefinitionId()StringgetActionDefinitionIdLike()StringgetChannel()List<String>getChannels()StringgetFormInstanceId()StringgetFormKey()StringgetId()Set<String>getIds()IntegergetMaxPriority()IntegergetMinPriority()StringgetName()StringgetNameLike()List<String>getParticipantGroups()List<String>getParticipantUsers()IntegergetPriority()StringgetScopeDefinitionId()StringgetScopeId()StringgetScopeType()DategetStartDate()DategetStartDateAfter()DategetStartDateBefore()StringgetSubScopeId()StringgetTenantId()StringgetTenantIdLike()ActionInstanceQueryImplid(String id)Only select action instances with the given id.ActionInstanceQueryImplids(Set<String> ids)Only select action instances with the given ids.booleanisQueryOnActionLinks()booleanisWithoutTenantId()ActionInstanceQuerymaxPriority(Integer maxPriority)Only select action instances with the given priority or lower.ActionInstanceQueryminPriority(Integer minPriority)Only select action instances with the given priority or higher.ActionInstanceQueryname(String name)Only select action instances with the given name.ActionInstanceQuerynameLike(String nameLike)Only select action instances with an name like the given string.ActionInstanceQueryorderByPriority()Order by priority (needs to be followed byQuery.asc()orQuery.desc()).ActionInstanceQueryorderByStartDate()Order by start date (needs to be followed byQuery.asc()orQuery.desc()).ActionInstanceQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).ActionInstanceQueryparticipantGroup(String groupId)Only select action instances with an identity link for the provided group.ActionInstanceQueryparticipantGroups(List<String> groupIds)Only select action instances with an identity link for the provided groups.ActionInstanceQueryparticipantUser(String userId)Only select action instances with an identity link for the provided user.ActionInstanceQueryparticipantUsers(List<String> userIds)Only select action instances with an identity link for the provided users.ActionInstanceQuerypriority(Integer priority)Only select action instances with the given priority.ActionInstanceQueryqueryOnActionLinks()Only select action instances with a given scope id and scope type or an action link with the given scope id and scope type This query option can only be used when a scope id is already set.ActionInstanceQueryqueryOnlyOnActionLinks()Similar toActionInstanceQuery.queryOnActionLinks(), but only returns those instances which have anActionLinkinstance.ActionInstanceQueryImplscopeDefinitionId(String scopeDefinitionId)Only select action instances with the given scope definition id.ActionInstanceQueryImplscopeId(String scopeId)Only select action instances with the given scope id.ActionInstanceQueryImplscopeType(String scopeType)Only select action instances with the given scope type.ActionInstanceQueryImplstartDate(Date startDate)Only select action instances started on the given timeActionInstanceQueryImplstartDateAfter(Date startDateAfter)Only select action instances started after the given timeActionInstanceQueryImplstartDateBefore(Date startDateBefore)Only select action instances started before the given timeActionInstanceQuerysubScopeId(String subScopeId)Only select action instances with the given scope id.ActionInstanceQueryImplsupportsChannel(String channel)Only select action instances with an action link for the action definition id and the provided channel.ActionInstanceQueryImplsupportsChannels(List<String> channels)Only select action instances with action definition links for the action definition id and the provided channels.ActionInstanceQueryImpltenantId(String tenantId)Only select action instances that have the given tenant id.ActionInstanceQueryImpltenantIdLike(String tenantIdLike)Only select action instances with a tenant id like the given one.ActionInstanceQueryImplwithoutTenantId()Only select action instances that do not have a tenant id.-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.flowable.common.engine.api.query.CacheAwareQuery
enhanceCachedValue
-
-
-
-
Field Detail
-
id
protected String id
-
actionDefinitionId
protected String actionDefinitionId
-
actionDefinitionIdLike
protected String actionDefinitionIdLike
-
name
protected String name
-
nameLike
protected String nameLike
-
scopeId
protected String scopeId
-
subScopeId
protected String subScopeId
-
scopeType
protected String scopeType
-
scopeDefinitionId
protected String scopeDefinitionId
-
startDate
protected Date startDate
-
startDateBefore
protected Date startDateBefore
-
startDateAfter
protected Date startDateAfter
-
formInstanceId
protected String formInstanceId
-
formKey
protected String formKey
-
priority
protected Integer priority
-
maxPriority
protected Integer maxPriority
-
minPriority
protected Integer minPriority
-
channel
protected String channel
-
queryOnActionLinks
protected boolean queryOnActionLinks
-
queryOnlyOnActionLinks
protected boolean queryOnlyOnActionLinks
-
tenantId
protected String tenantId
-
tenantIdLike
protected String tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId
-
-
Constructor Detail
-
ActionInstanceQueryImpl
public ActionInstanceQueryImpl()
-
ActionInstanceQueryImpl
public ActionInstanceQueryImpl(CommandContext commandContext)
-
ActionInstanceQueryImpl
public ActionInstanceQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
id
public ActionInstanceQueryImpl id(String id)
Description copied from interface:ActionInstanceQueryOnly select action instances with the given id.- Specified by:
idin interfaceActionInstanceQuery
-
ids
public ActionInstanceQueryImpl ids(Set<String> ids)
Description copied from interface:ActionInstanceQueryOnly select action instances with the given ids.- Specified by:
idsin interfaceActionInstanceQuery
-
actionDefinitionId
public ActionInstanceQueryImpl actionDefinitionId(String actionDefinitionId)
Description copied from interface:ActionInstanceQueryOnly select action instances with the given action definition id.- Specified by:
actionDefinitionIdin interfaceActionInstanceQuery
-
actionDefinitionIdLike
public ActionInstanceQueryImpl actionDefinitionIdLike(String actionDefinitionIdLike)
Description copied from interface:ActionInstanceQueryOnly select action instances with an action definition id like the given string.- Specified by:
actionDefinitionIdLikein interfaceActionInstanceQuery
-
name
public ActionInstanceQuery name(String name)
Description copied from interface:ActionInstanceQueryOnly select action instances with the given name.- Specified by:
namein interfaceActionInstanceQuery
-
nameLike
public ActionInstanceQuery nameLike(String nameLike)
Description copied from interface:ActionInstanceQueryOnly select action instances with an name like the given string.- Specified by:
nameLikein interfaceActionInstanceQuery
-
scopeId
public ActionInstanceQueryImpl scopeId(String scopeId)
Description copied from interface:ActionInstanceQueryOnly select action instances with the given scope id.- Specified by:
scopeIdin interfaceActionInstanceQuery
-
subScopeId
public ActionInstanceQuery subScopeId(String subScopeId)
Description copied from interface:ActionInstanceQueryOnly select action instances with the given scope id.- Specified by:
subScopeIdin interfaceActionInstanceQuery
-
scopeType
public ActionInstanceQueryImpl scopeType(String scopeType)
Description copied from interface:ActionInstanceQueryOnly select action instances with the given scope type.- Specified by:
scopeTypein interfaceActionInstanceQuery
-
scopeDefinitionId
public ActionInstanceQueryImpl scopeDefinitionId(String scopeDefinitionId)
Description copied from interface:ActionInstanceQueryOnly select action instances with the given scope definition id.- Specified by:
scopeDefinitionIdin interfaceActionInstanceQuery
-
startDate
public ActionInstanceQueryImpl startDate(Date startDate)
Description copied from interface:ActionInstanceQueryOnly select action instances started on the given time- Specified by:
startDatein interfaceActionInstanceQuery
-
startDateBefore
public ActionInstanceQueryImpl startDateBefore(Date startDateBefore)
Description copied from interface:ActionInstanceQueryOnly select action instances started before the given time- Specified by:
startDateBeforein interfaceActionInstanceQuery
-
startDateAfter
public ActionInstanceQueryImpl startDateAfter(Date startDateAfter)
Description copied from interface:ActionInstanceQueryOnly select action instances started after the given time- Specified by:
startDateAfterin interfaceActionInstanceQuery
-
formInstanceId
public ActionInstanceQueryImpl formInstanceId(String formInstanceId)
Description copied from interface:ActionInstanceQueryOnly select action instances with the given form instance id.- Specified by:
formInstanceIdin interfaceActionInstanceQuery
-
formKey
public ActionInstanceQuery formKey(String formKey)
Description copied from interface:ActionInstanceQueryOnly select action instances with the given form key.- Specified by:
formKeyin interfaceActionInstanceQuery
-
priority
public ActionInstanceQuery priority(Integer priority)
Description copied from interface:ActionInstanceQueryOnly select action instances with the given priority.- Specified by:
priorityin interfaceActionInstanceQuery
-
maxPriority
public ActionInstanceQuery maxPriority(Integer maxPriority)
Description copied from interface:ActionInstanceQueryOnly select action instances with the given priority or lower.- Specified by:
maxPriorityin interfaceActionInstanceQuery
-
minPriority
public ActionInstanceQuery minPriority(Integer minPriority)
Description copied from interface:ActionInstanceQueryOnly select action instances with the given priority or higher.- Specified by:
minPriorityin interfaceActionInstanceQuery
-
participantUser
public ActionInstanceQuery participantUser(String userId)
Description copied from interface:ActionInstanceQueryOnly select action instances with an identity link for the provided user.- Specified by:
participantUserin interfaceActionInstanceQuery
-
participantUsers
public ActionInstanceQuery participantUsers(List<String> userIds)
Description copied from interface:ActionInstanceQueryOnly select action instances with an identity link for the provided users.- Specified by:
participantUsersin interfaceActionInstanceQuery
-
participantGroup
public ActionInstanceQuery participantGroup(String groupId)
Description copied from interface:ActionInstanceQueryOnly select action instances with an identity link for the provided group.- Specified by:
participantGroupin interfaceActionInstanceQuery
-
participantGroups
public ActionInstanceQuery participantGroups(List<String> groupIds)
Description copied from interface:ActionInstanceQueryOnly select action instances with an identity link for the provided groups.- Specified by:
participantGroupsin interfaceActionInstanceQuery
-
supportsChannel
public ActionInstanceQueryImpl supportsChannel(String channel)
Description copied from interface:ActionInstanceQueryOnly select action instances with an action link for the action definition id and the provided channel.- Specified by:
supportsChannelin interfaceActionInstanceQuery
-
supportsChannels
public ActionInstanceQueryImpl supportsChannels(List<String> channels)
Description copied from interface:ActionInstanceQueryOnly select action instances with action definition links for the action definition id and the provided channels.- Specified by:
supportsChannelsin interfaceActionInstanceQuery
-
queryOnActionLinks
public ActionInstanceQuery queryOnActionLinks()
Description copied from interface:ActionInstanceQueryOnly select action instances with a given scope id and scope type or an action link with the given scope id and scope type This query option can only be used when a scope id is already set. Note that this potentially can be a slow query due to the query having to add an or-clause which turns out to be inefficient on some databases.- Specified by:
queryOnActionLinksin interfaceActionInstanceQuery
-
queryOnlyOnActionLinks
public ActionInstanceQuery queryOnlyOnActionLinks()
Description copied from interface:ActionInstanceQuerySimilar toActionInstanceQuery.queryOnActionLinks(), but only returns those instances which have anActionLinkinstance. This query option can only be used when a scope id is already set.- Specified by:
queryOnlyOnActionLinksin interfaceActionInstanceQuery
-
tenantId
public ActionInstanceQueryImpl tenantId(String tenantId)
Description copied from interface:ActionInstanceQueryOnly select action instances that have the given tenant id.- Specified by:
tenantIdin interfaceActionInstanceQuery
-
tenantIdLike
public ActionInstanceQueryImpl tenantIdLike(String tenantIdLike)
Description copied from interface:ActionInstanceQueryOnly select action instances with a tenant id like the given one.- Specified by:
tenantIdLikein interfaceActionInstanceQuery
-
withoutTenantId
public ActionInstanceQueryImpl withoutTenantId()
Description copied from interface:ActionInstanceQueryOnly select action instances that do not have a tenant id.- Specified by:
withoutTenantIdin interfaceActionInstanceQuery
-
orderByStartDate
public ActionInstanceQuery orderByStartDate()
Description copied from interface:ActionInstanceQueryOrder by start date (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByStartDatein interfaceActionInstanceQuery
-
orderByPriority
public ActionInstanceQuery orderByPriority()
Description copied from interface:ActionInstanceQueryOrder by priority (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByPriorityin interfaceActionInstanceQuery
-
orderByTenantId
public ActionInstanceQuery orderByTenantId()
Description copied from interface:ActionInstanceQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceActionInstanceQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractQuery<ActionInstanceQuery,ActionInstance>
-
executeList
public List<ActionInstance> executeList(CommandContext commandContext)
- Specified by:
executeListin classAbstractQuery<ActionInstanceQuery,ActionInstance>
-
getId
public String getId()
- Specified by:
getIdin interfaceCacheAwareQuery<ActionInstanceEntity>
-
getActionDefinitionId
public String getActionDefinitionId()
-
getActionDefinitionIdLike
public String getActionDefinitionIdLike()
-
getName
public String getName()
-
getNameLike
public String getNameLike()
-
getScopeId
public String getScopeId()
-
getSubScopeId
public String getSubScopeId()
-
getScopeType
public String getScopeType()
-
getScopeDefinitionId
public String getScopeDefinitionId()
-
getStartDate
public Date getStartDate()
-
getStartDateBefore
public Date getStartDateBefore()
-
getStartDateAfter
public Date getStartDateAfter()
-
getFormInstanceId
public String getFormInstanceId()
-
getFormKey
public String getFormKey()
-
getPriority
public Integer getPriority()
-
getMaxPriority
public Integer getMaxPriority()
-
getMinPriority
public Integer getMinPriority()
-
getChannel
public String getChannel()
-
isQueryOnActionLinks
public boolean isQueryOnActionLinks()
-
getTenantId
public String getTenantId()
-
getTenantIdLike
public String getTenantIdLike()
-
isWithoutTenantId
public boolean isWithoutTenantId()
-
-