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 String
actionDefinitionId
protected String
actionDefinitionIdLike
protected String
channel
protected List<String>
channels
protected String
formInstanceId
protected String
formKey
protected String
id
protected Set<String>
ids
protected Integer
maxPriority
protected Integer
minPriority
protected String
name
protected String
nameLike
protected List<String>
participantGroups
protected List<String>
participantUsers
protected Integer
priority
protected boolean
queryOnActionLinks
protected boolean
queryOnlyOnActionLinks
protected String
scopeDefinitionId
protected String
scopeId
protected String
scopeType
protected Date
startDate
protected Date
startDateAfter
protected Date
startDateBefore
protected String
subScopeId
protected String
tenantId
protected String
tenantIdLike
protected boolean
withoutTenantId
-
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 ActionInstanceQueryImpl
actionDefinitionId(String actionDefinitionId)
Only select action instances with the given action definition id.ActionInstanceQueryImpl
actionDefinitionIdLike(String actionDefinitionIdLike)
Only select action instances with an action definition id like the given string.long
executeCount(CommandContext commandContext)
List<ActionInstance>
executeList(CommandContext commandContext)
ActionInstanceQueryImpl
formInstanceId(String formInstanceId)
Only select action instances with the given form instance id.ActionInstanceQuery
formKey(String formKey)
Only select action instances with the given form key.String
getActionDefinitionId()
String
getActionDefinitionIdLike()
String
getChannel()
List<String>
getChannels()
String
getFormInstanceId()
String
getFormKey()
String
getId()
Set<String>
getIds()
Integer
getMaxPriority()
Integer
getMinPriority()
String
getName()
String
getNameLike()
List<String>
getParticipantGroups()
List<String>
getParticipantUsers()
Integer
getPriority()
String
getScopeDefinitionId()
String
getScopeId()
String
getScopeType()
Date
getStartDate()
Date
getStartDateAfter()
Date
getStartDateBefore()
String
getSubScopeId()
String
getTenantId()
String
getTenantIdLike()
ActionInstanceQueryImpl
id(String id)
Only select action instances with the given id.ActionInstanceQueryImpl
ids(Set<String> ids)
Only select action instances with the given ids.boolean
isQueryOnActionLinks()
boolean
isWithoutTenantId()
ActionInstanceQuery
maxPriority(Integer maxPriority)
Only select action instances with the given priority or lower.ActionInstanceQuery
minPriority(Integer minPriority)
Only select action instances with the given priority or higher.ActionInstanceQuery
name(String name)
Only select action instances with the given name.ActionInstanceQuery
nameLike(String nameLike)
Only select action instances with an name like the given string.ActionInstanceQuery
orderByPriority()
Order by priority (needs to be followed byQuery.asc()
orQuery.desc()
).ActionInstanceQuery
orderByStartDate()
Order by start date (needs to be followed byQuery.asc()
orQuery.desc()
).ActionInstanceQuery
orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).ActionInstanceQuery
participantGroup(String groupId)
Only select action instances with an identity link for the provided group.ActionInstanceQuery
participantGroups(List<String> groupIds)
Only select action instances with an identity link for the provided groups.ActionInstanceQuery
participantUser(String userId)
Only select action instances with an identity link for the provided user.ActionInstanceQuery
participantUsers(List<String> userIds)
Only select action instances with an identity link for the provided users.ActionInstanceQuery
priority(Integer priority)
Only select action instances with the given priority.ActionInstanceQuery
queryOnActionLinks()
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.ActionInstanceQuery
queryOnlyOnActionLinks()
Similar toActionInstanceQuery.queryOnActionLinks()
, but only returns those instances which have anActionLink
instance.ActionInstanceQueryImpl
scopeDefinitionId(String scopeDefinitionId)
Only select action instances with the given scope definition id.ActionInstanceQueryImpl
scopeId(String scopeId)
Only select action instances with the given scope id.ActionInstanceQueryImpl
scopeType(String scopeType)
Only select action instances with the given scope type.ActionInstanceQueryImpl
startDate(Date startDate)
Only select action instances started on the given timeActionInstanceQueryImpl
startDateAfter(Date startDateAfter)
Only select action instances started after the given timeActionInstanceQueryImpl
startDateBefore(Date startDateBefore)
Only select action instances started before the given timeActionInstanceQuery
subScopeId(String subScopeId)
Only select action instances with the given scope id.ActionInstanceQueryImpl
supportsChannel(String channel)
Only select action instances with an action link for the action definition id and the provided channel.ActionInstanceQueryImpl
supportsChannels(List<String> channels)
Only select action instances with action definition links for the action definition id and the provided channels.ActionInstanceQueryImpl
tenantId(String tenantId)
Only select action instances that have the given tenant id.ActionInstanceQueryImpl
tenantIdLike(String tenantIdLike)
Only select action instances with a tenant id like the given one.ActionInstanceQueryImpl
withoutTenantId()
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:ActionInstanceQuery
Only select action instances with the given id.- Specified by:
id
in interfaceActionInstanceQuery
-
ids
public ActionInstanceQueryImpl ids(Set<String> ids)
Description copied from interface:ActionInstanceQuery
Only select action instances with the given ids.- Specified by:
ids
in interfaceActionInstanceQuery
-
actionDefinitionId
public ActionInstanceQueryImpl actionDefinitionId(String actionDefinitionId)
Description copied from interface:ActionInstanceQuery
Only select action instances with the given action definition id.- Specified by:
actionDefinitionId
in interfaceActionInstanceQuery
-
actionDefinitionIdLike
public ActionInstanceQueryImpl actionDefinitionIdLike(String actionDefinitionIdLike)
Description copied from interface:ActionInstanceQuery
Only select action instances with an action definition id like the given string.- Specified by:
actionDefinitionIdLike
in interfaceActionInstanceQuery
-
name
public ActionInstanceQuery name(String name)
Description copied from interface:ActionInstanceQuery
Only select action instances with the given name.- Specified by:
name
in interfaceActionInstanceQuery
-
nameLike
public ActionInstanceQuery nameLike(String nameLike)
Description copied from interface:ActionInstanceQuery
Only select action instances with an name like the given string.- Specified by:
nameLike
in interfaceActionInstanceQuery
-
scopeId
public ActionInstanceQueryImpl scopeId(String scopeId)
Description copied from interface:ActionInstanceQuery
Only select action instances with the given scope id.- Specified by:
scopeId
in interfaceActionInstanceQuery
-
subScopeId
public ActionInstanceQuery subScopeId(String subScopeId)
Description copied from interface:ActionInstanceQuery
Only select action instances with the given scope id.- Specified by:
subScopeId
in interfaceActionInstanceQuery
-
scopeType
public ActionInstanceQueryImpl scopeType(String scopeType)
Description copied from interface:ActionInstanceQuery
Only select action instances with the given scope type.- Specified by:
scopeType
in interfaceActionInstanceQuery
-
scopeDefinitionId
public ActionInstanceQueryImpl scopeDefinitionId(String scopeDefinitionId)
Description copied from interface:ActionInstanceQuery
Only select action instances with the given scope definition id.- Specified by:
scopeDefinitionId
in interfaceActionInstanceQuery
-
startDate
public ActionInstanceQueryImpl startDate(Date startDate)
Description copied from interface:ActionInstanceQuery
Only select action instances started on the given time- Specified by:
startDate
in interfaceActionInstanceQuery
-
startDateBefore
public ActionInstanceQueryImpl startDateBefore(Date startDateBefore)
Description copied from interface:ActionInstanceQuery
Only select action instances started before the given time- Specified by:
startDateBefore
in interfaceActionInstanceQuery
-
startDateAfter
public ActionInstanceQueryImpl startDateAfter(Date startDateAfter)
Description copied from interface:ActionInstanceQuery
Only select action instances started after the given time- Specified by:
startDateAfter
in interfaceActionInstanceQuery
-
formInstanceId
public ActionInstanceQueryImpl formInstanceId(String formInstanceId)
Description copied from interface:ActionInstanceQuery
Only select action instances with the given form instance id.- Specified by:
formInstanceId
in interfaceActionInstanceQuery
-
formKey
public ActionInstanceQuery formKey(String formKey)
Description copied from interface:ActionInstanceQuery
Only select action instances with the given form key.- Specified by:
formKey
in interfaceActionInstanceQuery
-
priority
public ActionInstanceQuery priority(Integer priority)
Description copied from interface:ActionInstanceQuery
Only select action instances with the given priority.- Specified by:
priority
in interfaceActionInstanceQuery
-
maxPriority
public ActionInstanceQuery maxPriority(Integer maxPriority)
Description copied from interface:ActionInstanceQuery
Only select action instances with the given priority or lower.- Specified by:
maxPriority
in interfaceActionInstanceQuery
-
minPriority
public ActionInstanceQuery minPriority(Integer minPriority)
Description copied from interface:ActionInstanceQuery
Only select action instances with the given priority or higher.- Specified by:
minPriority
in interfaceActionInstanceQuery
-
participantUser
public ActionInstanceQuery participantUser(String userId)
Description copied from interface:ActionInstanceQuery
Only select action instances with an identity link for the provided user.- Specified by:
participantUser
in interfaceActionInstanceQuery
-
participantUsers
public ActionInstanceQuery participantUsers(List<String> userIds)
Description copied from interface:ActionInstanceQuery
Only select action instances with an identity link for the provided users.- Specified by:
participantUsers
in interfaceActionInstanceQuery
-
participantGroup
public ActionInstanceQuery participantGroup(String groupId)
Description copied from interface:ActionInstanceQuery
Only select action instances with an identity link for the provided group.- Specified by:
participantGroup
in interfaceActionInstanceQuery
-
participantGroups
public ActionInstanceQuery participantGroups(List<String> groupIds)
Description copied from interface:ActionInstanceQuery
Only select action instances with an identity link for the provided groups.- Specified by:
participantGroups
in interfaceActionInstanceQuery
-
supportsChannel
public ActionInstanceQueryImpl supportsChannel(String channel)
Description copied from interface:ActionInstanceQuery
Only select action instances with an action link for the action definition id and the provided channel.- Specified by:
supportsChannel
in interfaceActionInstanceQuery
-
supportsChannels
public ActionInstanceQueryImpl supportsChannels(List<String> channels)
Description copied from interface:ActionInstanceQuery
Only select action instances with action definition links for the action definition id and the provided channels.- Specified by:
supportsChannels
in interfaceActionInstanceQuery
-
queryOnActionLinks
public ActionInstanceQuery queryOnActionLinks()
Description copied from interface:ActionInstanceQuery
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. 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:
queryOnActionLinks
in interfaceActionInstanceQuery
-
queryOnlyOnActionLinks
public ActionInstanceQuery queryOnlyOnActionLinks()
Description copied from interface:ActionInstanceQuery
Similar toActionInstanceQuery.queryOnActionLinks()
, but only returns those instances which have anActionLink
instance. This query option can only be used when a scope id is already set.- Specified by:
queryOnlyOnActionLinks
in interfaceActionInstanceQuery
-
tenantId
public ActionInstanceQueryImpl tenantId(String tenantId)
Description copied from interface:ActionInstanceQuery
Only select action instances that have the given tenant id.- Specified by:
tenantId
in interfaceActionInstanceQuery
-
tenantIdLike
public ActionInstanceQueryImpl tenantIdLike(String tenantIdLike)
Description copied from interface:ActionInstanceQuery
Only select action instances with a tenant id like the given one.- Specified by:
tenantIdLike
in interfaceActionInstanceQuery
-
withoutTenantId
public ActionInstanceQueryImpl withoutTenantId()
Description copied from interface:ActionInstanceQuery
Only select action instances that do not have a tenant id.- Specified by:
withoutTenantId
in interfaceActionInstanceQuery
-
orderByStartDate
public ActionInstanceQuery orderByStartDate()
Description copied from interface:ActionInstanceQuery
Order by start date (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByStartDate
in interfaceActionInstanceQuery
-
orderByPriority
public ActionInstanceQuery orderByPriority()
Description copied from interface:ActionInstanceQuery
Order by priority (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByPriority
in interfaceActionInstanceQuery
-
orderByTenantId
public ActionInstanceQuery orderByTenantId()
Description copied from interface:ActionInstanceQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTenantId
in interfaceActionInstanceQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCount
in classAbstractQuery<ActionInstanceQuery,ActionInstance>
-
executeList
public List<ActionInstance> executeList(CommandContext commandContext)
- Specified by:
executeList
in classAbstractQuery<ActionInstanceQuery,ActionInstance>
-
getId
public String getId()
- Specified by:
getId
in 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()
-
-