Class DecisionDefinitionQueryImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.db.ListQueryParameterObject
-
- org.camunda.bpm.engine.impl.AbstractQuery<DecisionDefinitionQuery,DecisionDefinition>
-
- org.camunda.bpm.engine.impl.dmn.entity.repository.DecisionDefinitionQueryImpl
-
- All Implemented Interfaces:
Serializable
,Command<Object>
,Query<DecisionDefinitionQuery,DecisionDefinition>
,DecisionDefinitionQuery
public class DecisionDefinitionQueryImpl extends AbstractQuery<DecisionDefinitionQuery,DecisionDefinition> implements DecisionDefinitionQuery
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.AbstractQuery
AbstractQuery.ResultType
-
-
Field Summary
Fields Modifier and Type Field Description protected String
category
protected String
categoryLike
protected String
decisionRequirementsDefinitionId
protected String
decisionRequirementsDefinitionKey
protected Date
deployedAfter
protected Date
deployedAt
protected String
deploymentId
protected String
id
protected String[]
ids
protected boolean
includeDefinitionsWithoutTenantId
protected boolean
isTenantIdSet
protected String
key
protected String
keyLike
protected boolean
latest
protected String
name
protected String
nameLike
protected String
resourceName
protected String
resourceNameLike
protected String[]
tenantIds
protected Integer
version
protected String
versionTag
protected String
versionTagLike
protected boolean
withoutDecisionRequirementsDefinition
-
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
Constructors Constructor Description DecisionDefinitionQueryImpl()
DecisionDefinitionQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkQueryOk()
DecisionDefinitionQuery
decisionDefinitionCategory(String decisionDefinitionCategory)
Only select decision definitions with the given category.DecisionDefinitionQuery
decisionDefinitionCategoryLike(String decisionDefinitionCategoryLike)
Only select decision definitions where the category matches the given parameter.DecisionDefinitionQuery
decisionDefinitionId(String decisionDefinitionId)
Only select decision definition with the given id.DecisionDefinitionQuery
decisionDefinitionIdIn(String... ids)
Only select decision definitions with the given ids.DecisionDefinitionQuery
decisionDefinitionKey(String decisionDefinitionKey)
Only select decision definition with the given key.DecisionDefinitionQuery
decisionDefinitionKeyLike(String decisionDefinitionKeyLike)
Only select decision definitions where the key matches the given parameter.DecisionDefinitionQuery
decisionDefinitionName(String decisionDefinitionName)
Only select decision definitions with the given name.DecisionDefinitionQuery
decisionDefinitionNameLike(String decisionDefinitionNameLike)
Only select decision definitions where the name matches the given parameter.DecisionDefinitionQuery
decisionDefinitionResourceName(String resourceName)
Only select decision definition with the given resource name.DecisionDefinitionQuery
decisionDefinitionResourceNameLike(String resourceNameLike)
Only select decision definition with a resource name like the given.DecisionDefinitionQuery
decisionDefinitionVersion(Integer decisionDefinitionVersion)
Only select decision definition with a certain version.DecisionDefinitionQuery
decisionRequirementsDefinitionId(String decisionRequirementsDefinitionId)
Only select decision definitions which belongs to a decision requirements definition with the given id.DecisionDefinitionQuery
decisionRequirementsDefinitionKey(String decisionRequirementsDefinitionKey)
Only select decision definitions which belongs to a decision requirements definition with the given key.DecisionDefinitionQuery
deployedAfter(Date deployedAfter)
Only select decision definitions that were deployed after the given Date (exclusive).DecisionDefinitionQuery
deployedAt(Date deployedAt)
Only select decision definitions that were deployed at the given Date.DecisionDefinitionQuery
deploymentId(String deploymentId)
Only select decision definitions that are deployed in a deployment with the given deployment id.long
executeCount(CommandContext commandContext)
List<DecisionDefinition>
executeList(CommandContext commandContext, Page page)
Executes the actual query to retrieve the list of results.String
getCategory()
String
getCategoryLike()
Date
getDeployedAfter()
Date
getDeployedAt()
String
getDeploymentId()
String
getId()
String[]
getIds()
String
getKey()
String
getKeyLike()
String
getName()
String
getNameLike()
String
getResourceName()
String
getResourceNameLike()
Integer
getVersion()
String
getVersionTag()
String
getVersionTagLike()
DecisionDefinitionQuery
includeDecisionDefinitionsWithoutTenantId()
Select decision definitions which have no tenant id.boolean
isLatest()
boolean
isShouldJoinDeploymentTable()
DecisionDefinitionQuery
latestVersion()
Only select the decision definitions which are the latest deployed (ie.DecisionDefinitionQuery
orderByDecisionDefinitionCategory()
Order by the category of the decision definitions (needs to be followed byQuery.asc()
orQuery.desc()
).DecisionDefinitionQuery
orderByDecisionDefinitionId()
Order by the id of the decision definitions (needs to be followed byQuery.asc()
orQuery.desc()
).DecisionDefinitionQuery
orderByDecisionDefinitionKey()
Order by decision definition key (needs to be followed byQuery.asc()
orQuery.desc()
).DecisionDefinitionQuery
orderByDecisionDefinitionName()
Order by the name of the decision definitions (needs to be followed byQuery.asc()
orQuery.desc()
).DecisionDefinitionQuery
orderByDecisionDefinitionVersion()
Order by the version of the decision definitions (needs to be followed byQuery.asc()
orQuery.desc()
).DecisionDefinitionQuery
orderByDecisionRequirementsDefinitionKey()
Order by key of the decision requirements definition (needs to be followed byQuery.asc()
orQuery.desc()
).DecisionDefinitionQuery
orderByDeploymentId()
Order by deployment id (needs to be followed byQuery.asc()
orQuery.desc()
).DecisionDefinitionQuery
orderByDeploymentTime()
Order by deployment time (needs to be followed byQuery.asc()
orQuery.desc()
).DecisionDefinitionQuery
orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).DecisionDefinitionQuery
orderByVersionTag()
Order by version tag (needs to be followed byQuery.asc()
orQuery.desc()
).DecisionDefinitionQuery
tenantIdIn(String... tenantIds)
Only select decision definitions with one of the given tenant ids.DecisionDefinitionQuery
versionTag(String versionTag)
Only selects decision definitions with a specific version tagDecisionDefinitionQuery
versionTagLike(String versionTagLike)
Only selects decision definitions with a version tag like the givenDecisionDefinitionQuery
withoutDecisionRequirementsDefinition()
Only select decision definitions which belongs to no decision requirements definition.DecisionDefinitionQuery
withoutTenantId()
Only select decision 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, hasExcludingConditions, 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.impl.interceptor.Command
isRetryable
-
Methods inherited from interface org.camunda.bpm.engine.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
-
-
-
Field Detail
-
id
protected String id
-
ids
protected String[] ids
-
category
protected String category
-
categoryLike
protected String categoryLike
-
name
protected String name
-
nameLike
protected String nameLike
-
deploymentId
protected String deploymentId
-
deployedAfter
protected Date deployedAfter
-
deployedAt
protected Date deployedAt
-
key
protected String key
-
keyLike
protected String keyLike
-
resourceName
protected String resourceName
-
resourceNameLike
protected String resourceNameLike
-
version
protected Integer version
-
latest
protected boolean latest
-
decisionRequirementsDefinitionId
protected String decisionRequirementsDefinitionId
-
decisionRequirementsDefinitionKey
protected String decisionRequirementsDefinitionKey
-
withoutDecisionRequirementsDefinition
protected boolean withoutDecisionRequirementsDefinition
-
isTenantIdSet
protected boolean isTenantIdSet
-
tenantIds
protected String[] tenantIds
-
includeDefinitionsWithoutTenantId
protected boolean includeDefinitionsWithoutTenantId
-
versionTag
protected String versionTag
-
versionTagLike
protected String versionTagLike
-
-
Constructor Detail
-
DecisionDefinitionQueryImpl
public DecisionDefinitionQueryImpl()
-
DecisionDefinitionQueryImpl
public DecisionDefinitionQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
decisionDefinitionId
public DecisionDefinitionQuery decisionDefinitionId(String decisionDefinitionId)
Description copied from interface:DecisionDefinitionQuery
Only select decision definition with the given id.- Specified by:
decisionDefinitionId
in interfaceDecisionDefinitionQuery
- Parameters:
decisionDefinitionId
- the id of the decision definition
-
decisionDefinitionIdIn
public DecisionDefinitionQuery decisionDefinitionIdIn(String... ids)
Description copied from interface:DecisionDefinitionQuery
Only select decision definitions with the given ids.- Specified by:
decisionDefinitionIdIn
in interfaceDecisionDefinitionQuery
- Parameters:
ids
- list of decision definition ids
-
decisionDefinitionCategory
public DecisionDefinitionQuery decisionDefinitionCategory(String decisionDefinitionCategory)
Description copied from interface:DecisionDefinitionQuery
Only select decision definitions with the given category.- Specified by:
decisionDefinitionCategory
in interfaceDecisionDefinitionQuery
- Parameters:
decisionDefinitionCategory
- the category of the decision definition
-
decisionDefinitionCategoryLike
public DecisionDefinitionQuery decisionDefinitionCategoryLike(String decisionDefinitionCategoryLike)
Description copied from interface:DecisionDefinitionQuery
Only select decision definitions where the category matches the given parameter. The syntax that should be used is the same as in SQL, eg. %category%- Specified by:
decisionDefinitionCategoryLike
in interfaceDecisionDefinitionQuery
- Parameters:
decisionDefinitionCategoryLike
- the pattern to match the decision definition category
-
decisionDefinitionName
public DecisionDefinitionQuery decisionDefinitionName(String decisionDefinitionName)
Description copied from interface:DecisionDefinitionQuery
Only select decision definitions with the given name.- Specified by:
decisionDefinitionName
in interfaceDecisionDefinitionQuery
- Parameters:
decisionDefinitionName
- the name of the decision definition
-
decisionDefinitionNameLike
public DecisionDefinitionQuery decisionDefinitionNameLike(String decisionDefinitionNameLike)
Description copied from interface:DecisionDefinitionQuery
Only select decision definitions where the name matches the given parameter. The syntax that should be used is the same as in SQL, eg. %name%- Specified by:
decisionDefinitionNameLike
in interfaceDecisionDefinitionQuery
- Parameters:
decisionDefinitionNameLike
- the pattern to match the decision definition name
-
decisionDefinitionKey
public DecisionDefinitionQuery decisionDefinitionKey(String decisionDefinitionKey)
Description copied from interface:DecisionDefinitionQuery
Only select decision definition with the given key.- Specified by:
decisionDefinitionKey
in interfaceDecisionDefinitionQuery
- Parameters:
decisionDefinitionKey
- the key of the decision definition
-
decisionDefinitionKeyLike
public DecisionDefinitionQuery decisionDefinitionKeyLike(String decisionDefinitionKeyLike)
Description copied from interface:DecisionDefinitionQuery
Only select decision definitions where the key matches the given parameter. The syntax that should be used is the same as in SQL, eg. %key%- Specified by:
decisionDefinitionKeyLike
in interfaceDecisionDefinitionQuery
- Parameters:
decisionDefinitionKeyLike
- the pattern to match the decision definition key
-
deploymentId
public DecisionDefinitionQuery deploymentId(String deploymentId)
Description copied from interface:DecisionDefinitionQuery
Only select decision definitions that are deployed in a deployment with the given deployment id.- Specified by:
deploymentId
in interfaceDecisionDefinitionQuery
- Parameters:
deploymentId
- the id of the deployment
-
deployedAfter
public DecisionDefinitionQuery deployedAfter(Date deployedAfter)
Description copied from interface:DecisionDefinitionQuery
Only select decision definitions that were deployed after the given Date (exclusive).- Specified by:
deployedAfter
in interfaceDecisionDefinitionQuery
-
deployedAt
public DecisionDefinitionQuery deployedAt(Date deployedAt)
Description copied from interface:DecisionDefinitionQuery
Only select decision definitions that were deployed at the given Date.- Specified by:
deployedAt
in interfaceDecisionDefinitionQuery
-
decisionDefinitionVersion
public DecisionDefinitionQuery decisionDefinitionVersion(Integer decisionDefinitionVersion)
Description copied from interface:DecisionDefinitionQuery
Only select decision definition with a certain version. Particularly useful when used in combination withDecisionDefinitionQuery.decisionDefinitionKey(String)
- Specified by:
decisionDefinitionVersion
in interfaceDecisionDefinitionQuery
- Parameters:
decisionDefinitionVersion
- the version of the decision definition
-
latestVersion
public DecisionDefinitionQuery latestVersion()
Description copied from interface:DecisionDefinitionQuery
Only select the decision definitions which are the latest deployed (ie. which have the highest version number for the given key). Can only be used in combination withDecisionDefinitionQuery.decisionDefinitionKey(String)
orDecisionDefinitionQuery.decisionDefinitionKeyLike(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 decision definitions.- Specified by:
latestVersion
in interfaceDecisionDefinitionQuery
-
decisionDefinitionResourceName
public DecisionDefinitionQuery decisionDefinitionResourceName(String resourceName)
Description copied from interface:DecisionDefinitionQuery
Only select decision definition with the given resource name.- Specified by:
decisionDefinitionResourceName
in interfaceDecisionDefinitionQuery
- Parameters:
resourceName
- the name of the resource
-
decisionDefinitionResourceNameLike
public DecisionDefinitionQuery decisionDefinitionResourceNameLike(String resourceNameLike)
Description copied from interface:DecisionDefinitionQuery
Only select decision definition with a resource name like the given. The syntax that should be used is the same as in SQL, eg. %resourceName%- Specified by:
decisionDefinitionResourceNameLike
in interfaceDecisionDefinitionQuery
- Parameters:
resourceNameLike
- the pattern to match the resource name
-
decisionRequirementsDefinitionId
public DecisionDefinitionQuery decisionRequirementsDefinitionId(String decisionRequirementsDefinitionId)
Description copied from interface:DecisionDefinitionQuery
Only select decision definitions which belongs to a decision requirements definition with the given id.- Specified by:
decisionRequirementsDefinitionId
in interfaceDecisionDefinitionQuery
- Parameters:
decisionRequirementsDefinitionId
- id of the related decision requirements definition
-
decisionRequirementsDefinitionKey
public DecisionDefinitionQuery decisionRequirementsDefinitionKey(String decisionRequirementsDefinitionKey)
Description copied from interface:DecisionDefinitionQuery
Only select decision definitions which belongs to a decision requirements definition with the given key.- Specified by:
decisionRequirementsDefinitionKey
in interfaceDecisionDefinitionQuery
- Parameters:
decisionRequirementsDefinitionKey
- key of the related decision requirements definition
-
versionTag
public DecisionDefinitionQuery versionTag(String versionTag)
Description copied from interface:DecisionDefinitionQuery
Only selects decision definitions with a specific version tag- Specified by:
versionTag
in interfaceDecisionDefinitionQuery
-
versionTagLike
public DecisionDefinitionQuery versionTagLike(String versionTagLike)
Description copied from interface:DecisionDefinitionQuery
Only selects decision definitions with a version tag like the given- Specified by:
versionTagLike
in interfaceDecisionDefinitionQuery
-
withoutDecisionRequirementsDefinition
public DecisionDefinitionQuery withoutDecisionRequirementsDefinition()
Description copied from interface:DecisionDefinitionQuery
Only select decision definitions which belongs to no decision requirements definition.- Specified by:
withoutDecisionRequirementsDefinition
in interfaceDecisionDefinitionQuery
-
tenantIdIn
public DecisionDefinitionQuery tenantIdIn(String... tenantIds)
Description copied from interface:DecisionDefinitionQuery
Only select decision definitions with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceDecisionDefinitionQuery
-
withoutTenantId
public DecisionDefinitionQuery withoutTenantId()
Description copied from interface:DecisionDefinitionQuery
Only select decision definitions which have no tenant id.- Specified by:
withoutTenantId
in interfaceDecisionDefinitionQuery
-
includeDecisionDefinitionsWithoutTenantId
public DecisionDefinitionQuery includeDecisionDefinitionsWithoutTenantId()
Description copied from interface:DecisionDefinitionQuery
Select decision definitions which have no tenant id. Can be used in combination withDecisionDefinitionQuery.tenantIdIn(String...)
.- Specified by:
includeDecisionDefinitionsWithoutTenantId
in interfaceDecisionDefinitionQuery
-
orderByDecisionDefinitionCategory
public DecisionDefinitionQuery orderByDecisionDefinitionCategory()
Description copied from interface:DecisionDefinitionQuery
Order by the category of the decision definitions (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDecisionDefinitionCategory
in interfaceDecisionDefinitionQuery
-
orderByDecisionDefinitionKey
public DecisionDefinitionQuery orderByDecisionDefinitionKey()
Description copied from interface:DecisionDefinitionQuery
Order by decision definition key (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDecisionDefinitionKey
in interfaceDecisionDefinitionQuery
-
orderByDecisionDefinitionId
public DecisionDefinitionQuery orderByDecisionDefinitionId()
Description copied from interface:DecisionDefinitionQuery
Order by the id of the decision definitions (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDecisionDefinitionId
in interfaceDecisionDefinitionQuery
-
orderByDecisionDefinitionVersion
public DecisionDefinitionQuery orderByDecisionDefinitionVersion()
Description copied from interface:DecisionDefinitionQuery
Order by the version of the decision definitions (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDecisionDefinitionVersion
in interfaceDecisionDefinitionQuery
-
orderByDecisionDefinitionName
public DecisionDefinitionQuery orderByDecisionDefinitionName()
Description copied from interface:DecisionDefinitionQuery
Order by the name of the decision definitions (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDecisionDefinitionName
in interfaceDecisionDefinitionQuery
-
orderByDeploymentId
public DecisionDefinitionQuery orderByDeploymentId()
Description copied from interface:DecisionDefinitionQuery
Order by deployment id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDeploymentId
in interfaceDecisionDefinitionQuery
-
orderByDeploymentTime
public DecisionDefinitionQuery orderByDeploymentTime()
Description copied from interface:DecisionDefinitionQuery
Order by deployment time (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDeploymentTime
in interfaceDecisionDefinitionQuery
-
orderByTenantId
public DecisionDefinitionQuery orderByTenantId()
Description copied from interface:DecisionDefinitionQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
). Note that the ordering of decision definitions without tenant id is database-specific.- Specified by:
orderByTenantId
in interfaceDecisionDefinitionQuery
-
orderByDecisionRequirementsDefinitionKey
public DecisionDefinitionQuery orderByDecisionRequirementsDefinitionKey()
Description copied from interface:DecisionDefinitionQuery
Order by key of the decision requirements definition (needs to be followed byQuery.asc()
orQuery.desc()
). Note that the ordering of decision definitions without decision requirements definition is database-specific.- Specified by:
orderByDecisionRequirementsDefinitionKey
in interfaceDecisionDefinitionQuery
-
orderByVersionTag
public DecisionDefinitionQuery orderByVersionTag()
Description copied from interface:DecisionDefinitionQuery
Order by version tag (needs to be followed byQuery.asc()
orQuery.desc()
). Note: sorting by versionTag is a string based sort. There is no interpretation of the version which can lead to a sorting like: v0.1.0 v0.10.0 v0.2.0.- Specified by:
orderByVersionTag
in interfaceDecisionDefinitionQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCount
in classAbstractQuery<DecisionDefinitionQuery,DecisionDefinition>
-
executeList
public List<DecisionDefinition> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<DecisionDefinitionQuery,DecisionDefinition>
page
- used if the results must be paged. If null, no paging will be applied.
-
checkQueryOk
public void checkQueryOk()
- Overrides:
checkQueryOk
in classAbstractQuery<DecisionDefinitionQuery,DecisionDefinition>
-
getId
public String getId()
-
getIds
public String[] getIds()
-
getCategory
public String getCategory()
-
getCategoryLike
public String getCategoryLike()
-
getName
public String getName()
-
getNameLike
public String getNameLike()
-
getDeploymentId
public String getDeploymentId()
-
getDeployedAfter
public Date getDeployedAfter()
-
getDeployedAt
public Date getDeployedAt()
-
getKey
public String getKey()
-
getKeyLike
public String getKeyLike()
-
getResourceName
public String getResourceName()
-
getResourceNameLike
public String getResourceNameLike()
-
getVersion
public Integer getVersion()
-
getVersionTag
public String getVersionTag()
-
getVersionTagLike
public String getVersionTagLike()
-
isLatest
public boolean isLatest()
-
isShouldJoinDeploymentTable
public boolean isShouldJoinDeploymentTable()
-
-