Class CaseInstanceQueryImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.db.ListQueryParameterObject
-
- org.flowable.common.engine.impl.query.AbstractQuery<T,U>
-
- org.flowable.variable.service.impl.AbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
-
- org.flowable.cmmn.engine.impl.runtime.CaseInstanceQueryImpl
-
- All Implemented Interfaces:
Serializable,CaseInstanceQuery,CacheAwareQuery<CaseInstanceEntity>,Query<CaseInstanceQuery,CaseInstance>,Command<Object>
public class CaseInstanceQueryImpl extends AbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance> implements CaseInstanceQuery, CacheAwareQuery<CaseInstanceEntity>
- Author:
- Joram Barrez, Tijs Rademakers
- 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 inherited from class org.flowable.variable.service.impl.AbstractVariableQueryImpl
queryVariableValues, variableValueProvider
-
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 CaseInstanceQueryImpl()CaseInstanceQueryImpl(CommandContext commandContext, CmmnEngineConfiguration cmmnEngineConfiguration)CaseInstanceQueryImpl(CommandExecutor commandExecutor, CmmnEngineConfiguration cmmnEngineConfiguration)
-
Method Summary
-
Methods inherited from class org.flowable.variable.service.impl.AbstractVariableQueryImpl
addVariable, addVariable, getQueryVariableValues, hasLocalQueryVariableValue, hasNonLocalQueryVariableValue, hasValueComparisonQueryVariables, isBoolean, scopedVariableExists, scopedVariableNotExists, scopedVariableValueEquals, scopedVariableValueEquals, scopedVariableValueEqualsIgnoreCase, scopedVariableValueGreaterThan, scopedVariableValueGreaterThanOrEqual, scopedVariableValueLessThan, scopedVariableValueLessThanOrEqual, scopedVariableValueLike, scopedVariableValueLikeIgnoreCase, scopedVariableValueNotEquals, scopedVariableValueNotEqualsIgnoreCase, variableExists, variableNotExists, variableValueEquals, variableValueEquals, variableValueEqualsIgnoreCase, variableValueGreaterThan, variableValueGreaterThanOrEqual, variableValueLessThan, variableValueLessThanOrEqual, variableValueLike, variableValueLikeIgnoreCase, variableValueNotEquals, variableValueNotEqualsIgnoreCase
-
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 Detail
-
cmmnEngineConfiguration
protected CmmnEngineConfiguration cmmnEngineConfiguration
-
caseDefinitionId
protected String caseDefinitionId
-
caseDefinitionKey
protected String caseDefinitionKey
-
caseDefinitionCategory
protected String caseDefinitionCategory
-
caseDefinitionName
protected String caseDefinitionName
-
caseDefinitionVersion
protected Integer caseDefinitionVersion
-
name
protected String name
-
nameLike
protected String nameLike
-
nameLikeIgnoreCase
protected String nameLikeIgnoreCase
-
businessKey
protected String businessKey
-
businessStatus
protected String businessStatus
-
caseInstanceId
protected String caseInstanceId
-
caseInstanceParentId
protected String caseInstanceParentId
-
caseInstanceParentPlanItemInstanceId
protected String caseInstanceParentPlanItemInstanceId
-
startedBefore
protected Date startedBefore
-
startedAfter
protected Date startedAfter
-
startedBy
protected String startedBy
-
state
protected String state
-
lastReactivatedBefore
protected Date lastReactivatedBefore
-
lastReactivatedAfter
protected Date lastReactivatedAfter
-
lastReactivatedBy
protected String lastReactivatedBy
-
callbackId
protected String callbackId
-
callbackType
protected String callbackType
-
referenceId
protected String referenceId
-
referenceType
protected String referenceType
-
completeable
protected boolean completeable
-
tenantId
protected String tenantId
-
tenantIdLike
protected String tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId
-
includeCaseVariables
protected boolean includeCaseVariables
-
activePlanItemDefinitionId
protected String activePlanItemDefinitionId
-
involvedUser
protected String involvedUser
-
involvedUserIdentityLink
protected IdentityLinkQueryObject involvedUserIdentityLink
-
involvedGroupIdentityLink
protected IdentityLinkQueryObject involvedGroupIdentityLink
-
orQueryObjects
protected List<CaseInstanceQueryImpl> orQueryObjects
-
currentOrQueryObject
protected CaseInstanceQueryImpl currentOrQueryObject
-
inOrStatement
protected boolean inOrStatement
-
locale
protected String locale
-
withLocalizationFallback
protected boolean withLocalizationFallback
-
-
Constructor Detail
-
CaseInstanceQueryImpl
public CaseInstanceQueryImpl()
-
CaseInstanceQueryImpl
public CaseInstanceQueryImpl(CommandContext commandContext, CmmnEngineConfiguration cmmnEngineConfiguration)
-
CaseInstanceQueryImpl
public CaseInstanceQueryImpl(CommandExecutor commandExecutor, CmmnEngineConfiguration cmmnEngineConfiguration)
-
-
Method Detail
-
ensureVariablesInitialized
protected void ensureVariablesInitialized()
- Overrides:
ensureVariablesInitializedin classAbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
-
caseDefinitionId
public CaseInstanceQueryImpl caseDefinitionId(String caseDefinitionId)
- Specified by:
caseDefinitionIdin interfaceCaseInstanceQuery
-
caseDefinitionKey
public CaseInstanceQueryImpl caseDefinitionKey(String caseDefinitionKey)
- Specified by:
caseDefinitionKeyin interfaceCaseInstanceQuery
-
caseDefinitionCategory
public CaseInstanceQueryImpl caseDefinitionCategory(String caseDefinitionCategory)
- Specified by:
caseDefinitionCategoryin interfaceCaseInstanceQuery
-
caseDefinitionName
public CaseInstanceQueryImpl caseDefinitionName(String caseDefinitionName)
- Specified by:
caseDefinitionNamein interfaceCaseInstanceQuery
-
caseDefinitionVersion
public CaseInstanceQueryImpl caseDefinitionVersion(Integer caseDefinitionVersion)
- Specified by:
caseDefinitionVersionin interfaceCaseInstanceQuery
-
caseInstanceId
public CaseInstanceQueryImpl caseInstanceId(String caseInstanceId)
- Specified by:
caseInstanceIdin interfaceCaseInstanceQuery
-
caseInstanceIds
public CaseInstanceQueryImpl caseInstanceIds(Set<String> caseInstanceIds)
- Specified by:
caseInstanceIdsin interfaceCaseInstanceQuery
-
caseInstanceName
public CaseInstanceQuery caseInstanceName(String name)
- Specified by:
caseInstanceNamein interfaceCaseInstanceQuery
-
caseInstanceNameLike
public CaseInstanceQuery caseInstanceNameLike(String nameLike)
- Specified by:
caseInstanceNameLikein interfaceCaseInstanceQuery
-
caseInstanceNameLikeIgnoreCase
public CaseInstanceQuery caseInstanceNameLikeIgnoreCase(String nameLikeIgnoreCase)
- Specified by:
caseInstanceNameLikeIgnoreCasein interfaceCaseInstanceQuery
-
caseInstanceBusinessKey
public CaseInstanceQueryImpl caseInstanceBusinessKey(String businessKey)
- Specified by:
caseInstanceBusinessKeyin interfaceCaseInstanceQuery
-
caseInstanceBusinessStatus
public CaseInstanceQueryImpl caseInstanceBusinessStatus(String businessStatus)
- Specified by:
caseInstanceBusinessStatusin interfaceCaseInstanceQuery
-
caseDefinitionKeys
public CaseInstanceQueryImpl caseDefinitionKeys(Set<String> caseDefinitionKeys)
- Specified by:
caseDefinitionKeysin interfaceCaseInstanceQuery
-
caseInstanceParentId
public CaseInstanceQueryImpl caseInstanceParentId(String parentId)
- Specified by:
caseInstanceParentIdin interfaceCaseInstanceQuery
-
caseInstanceStartedBefore
public CaseInstanceQueryImpl caseInstanceStartedBefore(Date beforeTime)
- Specified by:
caseInstanceStartedBeforein interfaceCaseInstanceQuery
-
caseInstanceStartedAfter
public CaseInstanceQueryImpl caseInstanceStartedAfter(Date afterTime)
- Specified by:
caseInstanceStartedAfterin interfaceCaseInstanceQuery
-
caseInstanceStartedBy
public CaseInstanceQueryImpl caseInstanceStartedBy(String userId)
- Specified by:
caseInstanceStartedByin interfaceCaseInstanceQuery
-
caseInstanceState
public CaseInstanceQueryImpl caseInstanceState(String state)
- Specified by:
caseInstanceStatein interfaceCaseInstanceQuery
-
caseInstanceLastReactivatedBefore
public CaseInstanceQuery caseInstanceLastReactivatedBefore(Date beforeTime)
- Specified by:
caseInstanceLastReactivatedBeforein interfaceCaseInstanceQuery
-
caseInstanceLastReactivatedAfter
public CaseInstanceQuery caseInstanceLastReactivatedAfter(Date afterTime)
- Specified by:
caseInstanceLastReactivatedAfterin interfaceCaseInstanceQuery
-
caseInstanceLastReactivatedBy
public CaseInstanceQuery caseInstanceLastReactivatedBy(String userId)
- Specified by:
caseInstanceLastReactivatedByin interfaceCaseInstanceQuery
-
caseInstanceCallbackId
public CaseInstanceQuery caseInstanceCallbackId(String callbackId)
- Specified by:
caseInstanceCallbackIdin interfaceCaseInstanceQuery
-
caseInstanceCallbackType
public CaseInstanceQuery caseInstanceCallbackType(String callbackType)
- Specified by:
caseInstanceCallbackTypein interfaceCaseInstanceQuery
-
caseInstanceReferenceId
public CaseInstanceQuery caseInstanceReferenceId(String referenceId)
- Specified by:
caseInstanceReferenceIdin interfaceCaseInstanceQuery
-
caseInstanceReferenceType
public CaseInstanceQuery caseInstanceReferenceType(String referenceType)
- Specified by:
caseInstanceReferenceTypein interfaceCaseInstanceQuery
-
caseInstanceIsCompleteable
public CaseInstanceQuery caseInstanceIsCompleteable()
- Specified by:
caseInstanceIsCompleteablein interfaceCaseInstanceQuery
-
caseInstanceTenantId
public CaseInstanceQueryImpl caseInstanceTenantId(String tenantId)
- Specified by:
caseInstanceTenantIdin interfaceCaseInstanceQuery
-
caseInstanceTenantIdLike
public CaseInstanceQueryImpl caseInstanceTenantIdLike(String tenantIdLike)
- Specified by:
caseInstanceTenantIdLikein interfaceCaseInstanceQuery
-
caseInstanceWithoutTenantId
public CaseInstanceQueryImpl caseInstanceWithoutTenantId()
- Specified by:
caseInstanceWithoutTenantIdin interfaceCaseInstanceQuery
-
activePlanItemDefinitionId
public CaseInstanceQuery activePlanItemDefinitionId(String planItemDefinitionId)
- Specified by:
activePlanItemDefinitionIdin interfaceCaseInstanceQuery
-
activePlanItemDefinitionIds
public CaseInstanceQuery activePlanItemDefinitionIds(Set<String> planItemDefinitionIds)
- Specified by:
activePlanItemDefinitionIdsin interfaceCaseInstanceQuery
-
involvedUser
public CaseInstanceQuery involvedUser(String userId)
- Specified by:
involvedUserin interfaceCaseInstanceQuery
-
involvedUser
public CaseInstanceQuery involvedUser(String userId, String identityLinkType)
- Specified by:
involvedUserin interfaceCaseInstanceQuery
-
involvedGroup
public CaseInstanceQuery involvedGroup(String groupId, String identityLinkType)
- Specified by:
involvedGroupin interfaceCaseInstanceQuery
-
involvedGroups
public CaseInstanceQuery involvedGroups(Set<String> groupIds)
- Specified by:
involvedGroupsin interfaceCaseInstanceQuery
-
or
public CaseInstanceQuery or()
- Specified by:
orin interfaceCaseInstanceQuery
-
endOr
public CaseInstanceQuery endOr()
- Specified by:
endOrin interfaceCaseInstanceQuery
-
variableValueEquals
public CaseInstanceQuery variableValueEquals(String variableName, Object variableValue)
- Specified by:
variableValueEqualsin interfaceCaseInstanceQuery- Overrides:
variableValueEqualsin classAbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
-
variableValueNotEquals
public CaseInstanceQuery variableValueNotEquals(String variableName, Object variableValue)
- Specified by:
variableValueNotEqualsin interfaceCaseInstanceQuery- Overrides:
variableValueNotEqualsin classAbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
-
variableValueEquals
public CaseInstanceQuery variableValueEquals(Object variableValue)
- Specified by:
variableValueEqualsin interfaceCaseInstanceQuery- Overrides:
variableValueEqualsin classAbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
-
variableValueEqualsIgnoreCase
public CaseInstanceQuery variableValueEqualsIgnoreCase(String name, String value)
- Specified by:
variableValueEqualsIgnoreCasein interfaceCaseInstanceQuery- Overrides:
variableValueEqualsIgnoreCasein classAbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
-
variableValueNotEqualsIgnoreCase
public CaseInstanceQuery variableValueNotEqualsIgnoreCase(String name, String value)
- Specified by:
variableValueNotEqualsIgnoreCasein interfaceCaseInstanceQuery- Overrides:
variableValueNotEqualsIgnoreCasein classAbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
-
variableValueGreaterThan
public CaseInstanceQuery variableValueGreaterThan(String name, Object value)
- Specified by:
variableValueGreaterThanin interfaceCaseInstanceQuery- Overrides:
variableValueGreaterThanin classAbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
-
variableValueGreaterThanOrEqual
public CaseInstanceQuery variableValueGreaterThanOrEqual(String name, Object value)
- Specified by:
variableValueGreaterThanOrEqualin interfaceCaseInstanceQuery- Overrides:
variableValueGreaterThanOrEqualin classAbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
-
variableValueLessThan
public CaseInstanceQuery variableValueLessThan(String name, Object value)
- Specified by:
variableValueLessThanin interfaceCaseInstanceQuery- Overrides:
variableValueLessThanin classAbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
-
variableValueLessThanOrEqual
public CaseInstanceQuery variableValueLessThanOrEqual(String name, Object value)
- Specified by:
variableValueLessThanOrEqualin interfaceCaseInstanceQuery- Overrides:
variableValueLessThanOrEqualin classAbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
-
variableValueLike
public CaseInstanceQuery variableValueLike(String name, String value)
- Specified by:
variableValueLikein interfaceCaseInstanceQuery- Overrides:
variableValueLikein classAbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
-
variableValueLikeIgnoreCase
public CaseInstanceQuery variableValueLikeIgnoreCase(String name, String value)
- Specified by:
variableValueLikeIgnoreCasein interfaceCaseInstanceQuery- Overrides:
variableValueLikeIgnoreCasein classAbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
-
variableExists
public CaseInstanceQuery variableExists(String name)
- Specified by:
variableExistsin interfaceCaseInstanceQuery- Overrides:
variableExistsin classAbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
-
variableNotExists
public CaseInstanceQuery variableNotExists(String name)
- Specified by:
variableNotExistsin interfaceCaseInstanceQuery- Overrides:
variableNotExistsin classAbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
-
orderByCaseInstanceId
public CaseInstanceQueryImpl orderByCaseInstanceId()
- Specified by:
orderByCaseInstanceIdin interfaceCaseInstanceQuery
-
orderByCaseDefinitionId
public CaseInstanceQueryImpl orderByCaseDefinitionId()
- Specified by:
orderByCaseDefinitionIdin interfaceCaseInstanceQuery
-
orderByCaseDefinitionKey
public CaseInstanceQueryImpl orderByCaseDefinitionKey()
- Specified by:
orderByCaseDefinitionKeyin interfaceCaseInstanceQuery
-
orderByStartTime
public CaseInstanceQueryImpl orderByStartTime()
- Specified by:
orderByStartTimein interfaceCaseInstanceQuery
-
orderByTenantId
public CaseInstanceQueryImpl orderByTenantId()
- Specified by:
orderByTenantIdin interfaceCaseInstanceQuery
-
includeCaseVariables
public CaseInstanceQueryImpl includeCaseVariables()
- Specified by:
includeCaseVariablesin interfaceCaseInstanceQuery
-
limitCaseInstanceVariables
public CaseInstanceQuery limitCaseInstanceVariables(Integer caseInstanceVariablesLimit)
- Specified by:
limitCaseInstanceVariablesin interfaceCaseInstanceQuery
-
locale
public CaseInstanceQuery locale(String locale)
- Specified by:
localein interfaceCaseInstanceQuery
-
withLocalizationFallback
public CaseInstanceQuery withLocalizationFallback()
- Specified by:
withLocalizationFallbackin interfaceCaseInstanceQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
-
executeList
public List<CaseInstance> executeList(CommandContext commandContext)
- Specified by:
executeListin classAbstractVariableQueryImpl<CaseInstanceQuery,CaseInstance>
-
enhanceCachedValue
public void enhanceCachedValue(CaseInstanceEntity caseInstance)
- Specified by:
enhanceCachedValuein interfaceCacheAwareQuery<CaseInstanceEntity>
-
getCaseDefinitionKey
public String getCaseDefinitionKey()
-
getCaseDefinitionId
public String getCaseDefinitionId()
-
getCaseDefinitionCategory
public String getCaseDefinitionCategory()
-
getCaseDefinitionName
public String getCaseDefinitionName()
-
getCaseDefinitionVersion
public Integer getCaseDefinitionVersion()
-
getCaseInstanceId
public String getCaseInstanceId()
-
getId
public String getId()
- Specified by:
getIdin interfaceCacheAwareQuery<CaseInstanceEntity>
-
getBusinessKey
public String getBusinessKey()
-
getBusinessStatus
public String getBusinessStatus()
-
getLastReactivatedBefore
public Date getLastReactivatedBefore()
-
getLastReactivatedAfter
public Date getLastReactivatedAfter()
-
getLastReactivatedBy
public String getLastReactivatedBy()
-
getExecutionId
public String getExecutionId()
-
getParentId
public String getParentId()
-
getCaseInstanceParentPlanItemInstanceId
public String getCaseInstanceParentPlanItemInstanceId()
-
getCaseInstanceParentId
public String getCaseInstanceParentId()
-
getStartedBefore
public Date getStartedBefore()
-
getStartedAfter
public Date getStartedAfter()
-
getStartedBy
public String getStartedBy()
-
getState
public String getState()
-
getCallbackId
public String getCallbackId()
-
getCallbackType
public String getCallbackType()
-
getReferenceId
public String getReferenceId()
-
getReferenceType
public String getReferenceType()
-
isCompleteable
public boolean isCompleteable()
-
getTenantId
public String getTenantId()
-
getTenantIdLike
public String getTenantIdLike()
-
isWithoutTenantId
public boolean isWithoutTenantId()
-
getActivePlanItemDefinitionId
public String getActivePlanItemDefinitionId()
-
getInvolvedUser
public String getInvolvedUser()
-
getInvolvedUserIdentityLink
public IdentityLinkQueryObject getInvolvedUserIdentityLink()
-
getInvolvedGroupIdentityLink
public IdentityLinkQueryObject getInvolvedGroupIdentityLink()
-
isIncludeCaseVariables
public boolean isIncludeCaseVariables()
-
isNeedsCaseDefinitionOuterJoin
public boolean isNeedsCaseDefinitionOuterJoin()
-
getOrQueryObjects
public List<CaseInstanceQueryImpl> getOrQueryObjects()
-
-