Class CaseDefinitionQueryImpl
java.lang.Object
org.camunda.bpm.engine.impl.db.ListQueryParameterObject
org.camunda.bpm.engine.impl.AbstractQuery<CaseDefinitionQuery,CaseDefinition>
org.camunda.bpm.engine.impl.cmmn.entity.repository.CaseDefinitionQueryImpl
- All Implemented Interfaces:
Serializable
,Command<Object>
,Query<CaseDefinitionQuery,
,CaseDefinition> CaseDefinitionQuery
public class CaseDefinitionQueryImpl
extends AbstractQuery<CaseDefinitionQuery,CaseDefinition>
implements CaseDefinitionQuery
- Author:
- Roman Smirnov
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
protected String[]
protected boolean
protected boolean
protected String
protected String
protected boolean
protected String
protected String
protected String
protected String
protected String[]
protected Integer
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncaseDefinitionCategory
(String caseDefinitionCategory) Only select case definitions with the given category.caseDefinitionCategoryLike
(String caseDefinitionCategoryLike) Only select case definitions where the category matches the given parameter.caseDefinitionId
(String caseDefinitionId) Only select case definition with the given id.caseDefinitionIdIn
(String... ids) Only select case definitions with the given ids.caseDefinitionKey
(String caseDefinitionKey) Only select case definition with the given key.caseDefinitionKeyLike
(String caseDefinitionKeyLike) Only select case definitions where the key matches the given parameter.caseDefinitionName
(String caseDefinitionName) Only select case definitions with the given name.caseDefinitionNameLike
(String caseDefinitionNameLike) Only select case definitions where the name matches the given parameter.caseDefinitionResourceName
(String resourceName) Only select case definition with the given resource name.caseDefinitionResourceNameLike
(String resourceNameLike) Only select case definition with a resource name like the given.caseDefinitionVersion
(Integer caseDefinitionVersion) Only select case definition with a certain version.void
deploymentId
(String deploymentId) Only select case definitions that are deployed in a deployment with the given deployment id.long
executeCount
(CommandContext commandContext) executeList
(CommandContext commandContext, Page page) Executes the actual query to retrieve the list of results.getId()
String[]
getIds()
getKey()
getName()
protected boolean
Whether or not the query has excluding conditions.Select case definitions which have no tenant id.boolean
isLatest()
Only select the case definitions which are the latest deployed (ie.Order by the category of the case definitions (needs to be followed byQuery.asc()
orQuery.desc()
).Order by the id of the case definitions (needs to be followed byQuery.asc()
orQuery.desc()
).Order by case definition key (needs to be followed byQuery.asc()
orQuery.desc()
).Order by the name of the case definitions (needs to be followed byQuery.asc()
orQuery.desc()
).Order by the version of the case definitions (needs to be followed byQuery.asc()
orQuery.desc()
).Order by deployment id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).tenantIdIn
(String... tenantIds) Only select case definitions with one of the given tenant ids.Only select case definitions which have no tenant id.Methods inherited from class org.camunda.bpm.engine.impl.AbstractQuery
addExpression, addValidator, asc, checkMaxResultsLimit, count, desc, direction, disableMaxResultsLimit, enableMaxResultsLimit, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteDeploymentIdMappingsList, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeDeploymentIdMappingsList, executeIdsList, executeResult, executeSingleResult, extend, getExpressions, getMethod, list, listDeploymentIdMappings, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, unlimitedList, validate, validate
Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
Field Details
-
id
-
ids
-
category
-
categoryLike
-
name
-
nameLike
-
deploymentId
-
key
-
keyLike
-
resourceName
-
resourceNameLike
-
version
-
latest
protected boolean latest -
isTenantIdSet
protected boolean isTenantIdSet -
tenantIds
-
includeDefinitionsWithoutTenantId
protected boolean includeDefinitionsWithoutTenantId
-
-
Constructor Details
-
CaseDefinitionQueryImpl
public CaseDefinitionQueryImpl() -
CaseDefinitionQueryImpl
-
-
Method Details
-
caseDefinitionId
Description copied from interface:CaseDefinitionQuery
Only select case definition with the given id.- Specified by:
caseDefinitionId
in interfaceCaseDefinitionQuery
- Parameters:
caseDefinitionId
- the id of the case definition
-
caseDefinitionIdIn
Description copied from interface:CaseDefinitionQuery
Only select case definitions with the given ids.- Specified by:
caseDefinitionIdIn
in interfaceCaseDefinitionQuery
- Parameters:
ids
- list of case definition ids
-
caseDefinitionCategory
Description copied from interface:CaseDefinitionQuery
Only select case definitions with the given category.- Specified by:
caseDefinitionCategory
in interfaceCaseDefinitionQuery
- Parameters:
caseDefinitionCategory
- the category of the case definition
-
caseDefinitionCategoryLike
Description copied from interface:CaseDefinitionQuery
Only select case definitions where the category matches the given parameter. The syntax that should be used is the same as in SQL, eg. %activiti%- Specified by:
caseDefinitionCategoryLike
in interfaceCaseDefinitionQuery
- Parameters:
caseDefinitionCategoryLike
- the pattern to match the case definition category
-
caseDefinitionName
Description copied from interface:CaseDefinitionQuery
Only select case definitions with the given name.- Specified by:
caseDefinitionName
in interfaceCaseDefinitionQuery
- Parameters:
caseDefinitionName
- the name of the case definition
-
caseDefinitionNameLike
Description copied from interface:CaseDefinitionQuery
Only select case definitions where the name matches the given parameter. The syntax that should be used is the same as in SQL, eg. %activiti%- Specified by:
caseDefinitionNameLike
in interfaceCaseDefinitionQuery
- Parameters:
caseDefinitionNameLike
- the pattern to match the case definition name
-
caseDefinitionKey
Description copied from interface:CaseDefinitionQuery
Only select case definition with the given key.- Specified by:
caseDefinitionKey
in interfaceCaseDefinitionQuery
- Parameters:
caseDefinitionKey
- the key of the case definition
-
caseDefinitionKeyLike
Description copied from interface:CaseDefinitionQuery
Only select case definitions where the key matches the given parameter. The syntax that should be used is the same as in SQL, eg. %activiti%- Specified by:
caseDefinitionKeyLike
in interfaceCaseDefinitionQuery
- Parameters:
caseDefinitionKeyLike
- the pattern to match the case definition key
-
deploymentId
Description copied from interface:CaseDefinitionQuery
Only select case definitions that are deployed in a deployment with the given deployment id.- Specified by:
deploymentId
in interfaceCaseDefinitionQuery
- Parameters:
deploymentId
- the id of the deployment
-
caseDefinitionVersion
Description copied from interface:CaseDefinitionQuery
Only select case definition with a certain version. Particularly useful when used in combination withCaseDefinitionQuery.caseDefinitionKey(String)
- Specified by:
caseDefinitionVersion
in interfaceCaseDefinitionQuery
- Parameters:
caseDefinitionVersion
- the version of the case definition
-
latestVersion
Description copied from interface:CaseDefinitionQuery
Only select the case definitions which are the latest deployed (ie. which have the highest version number for the given key). Can only be used in combination withCaseDefinitionQuery.caseDefinitionKey(String)
orCaseDefinitionQuery.caseDefinitionKeyLike(String)
. Can also be used without any other criteria (ie. query.latest().list()), which will then give all the latest versions of all the deployed case definitions.- Specified by:
latestVersion
in interfaceCaseDefinitionQuery
-
caseDefinitionResourceName
Description copied from interface:CaseDefinitionQuery
Only select case definition with the given resource name.- Specified by:
caseDefinitionResourceName
in interfaceCaseDefinitionQuery
- Parameters:
resourceName
- the name of the resource
-
caseDefinitionResourceNameLike
Description copied from interface:CaseDefinitionQuery
Only select case definition with a resource name like the given. The syntax that should be used is the same as in SQL, eg. %activiti%- Specified by:
caseDefinitionResourceNameLike
in interfaceCaseDefinitionQuery
- Parameters:
resourceNameLike
- the pattern to match the resource name
-
tenantIdIn
Description copied from interface:CaseDefinitionQuery
Only select case definitions with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceCaseDefinitionQuery
-
withoutTenantId
Description copied from interface:CaseDefinitionQuery
Only select case definitions which have no tenant id.- Specified by:
withoutTenantId
in interfaceCaseDefinitionQuery
-
includeCaseDefinitionsWithoutTenantId
Description copied from interface:CaseDefinitionQuery
Select case definitions which have no tenant id. Can be used in combination withCaseDefinitionQuery.tenantIdIn(String...)
.- Specified by:
includeCaseDefinitionsWithoutTenantId
in interfaceCaseDefinitionQuery
-
orderByCaseDefinitionCategory
Description copied from interface:CaseDefinitionQuery
Order by the category of the case definitions (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseDefinitionCategory
in interfaceCaseDefinitionQuery
-
orderByCaseDefinitionKey
Description copied from interface:CaseDefinitionQuery
Order by case definition key (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseDefinitionKey
in interfaceCaseDefinitionQuery
-
orderByCaseDefinitionId
Description copied from interface:CaseDefinitionQuery
Order by the id of the case definitions (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseDefinitionId
in interfaceCaseDefinitionQuery
-
orderByCaseDefinitionVersion
Description copied from interface:CaseDefinitionQuery
Order by the version of the case definitions (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseDefinitionVersion
in interfaceCaseDefinitionQuery
-
orderByCaseDefinitionName
Description copied from interface:CaseDefinitionQuery
Order by the name of the case definitions (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCaseDefinitionName
in interfaceCaseDefinitionQuery
-
orderByDeploymentId
Description copied from interface:CaseDefinitionQuery
Order by deployment id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDeploymentId
in interfaceCaseDefinitionQuery
-
orderByTenantId
Description copied from interface:CaseDefinitionQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
). Note that the ordering of case instances without tenant id is database-specific.- Specified by:
orderByTenantId
in interfaceCaseDefinitionQuery
-
hasExcludingConditions
protected boolean hasExcludingConditions()Description copied from class:AbstractQuery
Whether or not the query has excluding conditions. If the query has excluding conditions, (e.g. task due date before and after are excluding), the SQL query is avoided and a default result is returned. The returned result is the same as if the SQL was executed and there were no entries.- Overrides:
hasExcludingConditions
in classAbstractQuery<CaseDefinitionQuery,
CaseDefinition> - Returns:
true
if the query does have excluding conditions,false
otherwise
-
executeCount
- Specified by:
executeCount
in classAbstractQuery<CaseDefinitionQuery,
CaseDefinition>
-
executeList
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<CaseDefinitionQuery,
CaseDefinition> page
- used if the results must be paged. If null, no paging will be applied.
-
checkQueryOk
public void checkQueryOk()- Overrides:
checkQueryOk
in classAbstractQuery<CaseDefinitionQuery,
CaseDefinition>
-
getId
-
getIds
-
getCategory
-
getCategoryLike
-
getName
-
getNameLike
-
getDeploymentId
-
getKey
-
getKeyLike
-
getResourceName
-
getResourceNameLike
-
getVersion
-
isLatest
public boolean isLatest()
-