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:
-
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 Date
protected Date
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
protected String
protected String
protected boolean
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 TypeMethodDescriptionvoid
decisionDefinitionCategory
(String decisionDefinitionCategory) Only select decision definitions with the given category.decisionDefinitionCategoryLike
(String decisionDefinitionCategoryLike) Only select decision definitions where the category matches the given parameter.decisionDefinitionId
(String decisionDefinitionId) Only select decision definition with the given id.decisionDefinitionIdIn
(String... ids) Only select decision definitions with the given ids.decisionDefinitionKey
(String decisionDefinitionKey) Only select decision definition with the given key.decisionDefinitionKeyLike
(String decisionDefinitionKeyLike) Only select decision definitions where the key matches the given parameter.decisionDefinitionName
(String decisionDefinitionName) Only select decision definitions with the given name.decisionDefinitionNameLike
(String decisionDefinitionNameLike) Only select decision definitions where the name matches the given parameter.decisionDefinitionResourceName
(String resourceName) Only select decision definition with the given resource name.decisionDefinitionResourceNameLike
(String resourceNameLike) Only select decision definition with a resource name like the given.decisionDefinitionVersion
(Integer decisionDefinitionVersion) Only select decision definition with a certain version.decisionRequirementsDefinitionId
(String decisionRequirementsDefinitionId) Only select decision definitions which belongs to a decision requirements definition with the given id.decisionRequirementsDefinitionKey
(String decisionRequirementsDefinitionKey) Only select decision definitions which belongs to a decision requirements definition with the given key.deployedAfter
(Date deployedAfter) Only select decision definitions that were deployed after the given Date (exclusive).deployedAt
(Date deployedAt) Only select decision definitions that were deployed at the given Date.deploymentId
(String deploymentId) Only select decision 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()
Select decision definitions which have no tenant id.boolean
isLatest()
boolean
Only select the decision definitions which are the latest deployed (ie.Order by the category of the decision definitions (needs to be followed byQuery.asc()
orQuery.desc()
).Order by the id of the decision definitions (needs to be followed byQuery.asc()
orQuery.desc()
).Order by decision definition key (needs to be followed byQuery.asc()
orQuery.desc()
).Order by the name of the decision definitions (needs to be followed byQuery.asc()
orQuery.desc()
).Order by the version of the decision definitions (needs to be followed byQuery.asc()
orQuery.desc()
).Order by key of the decision requirements definition (needs to be followed byQuery.asc()
orQuery.desc()
).Order by deployment id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by deployment time (needs to be followed byQuery.asc()
orQuery.desc()
).Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by version tag (needs to be followed byQuery.asc()
orQuery.desc()
).tenantIdIn
(String... tenantIds) Only select decision definitions with one of the given tenant ids.versionTag
(String versionTag) Only selects decision definitions with a specific version tagversionTagLike
(String versionTagLike) Only selects decision definitions with a version tag like the givenOnly select decision definitions which belongs to no decision requirements definition.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.query.Query
asc, count, desc, list, listPage, singleResult, unlimitedList
-
Field Details
-
id
-
ids
-
category
-
categoryLike
-
name
-
nameLike
-
deploymentId
-
deployedAfter
-
deployedAt
-
key
-
keyLike
-
resourceName
-
resourceNameLike
-
version
-
latest
protected boolean latest -
decisionRequirementsDefinitionId
-
decisionRequirementsDefinitionKey
-
withoutDecisionRequirementsDefinition
protected boolean withoutDecisionRequirementsDefinition -
isTenantIdSet
protected boolean isTenantIdSet -
tenantIds
-
includeDefinitionsWithoutTenantId
protected boolean includeDefinitionsWithoutTenantId -
versionTag
-
versionTagLike
-
-
Constructor Details
-
DecisionDefinitionQueryImpl
public DecisionDefinitionQueryImpl() -
DecisionDefinitionQueryImpl
-
-
Method Details
-
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
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
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
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
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
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
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
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
Description copied from interface:DecisionDefinitionQuery
Only select decision definitions that were deployed after the given Date (exclusive).- Specified by:
deployedAfter
in interfaceDecisionDefinitionQuery
-
deployedAt
Description copied from interface:DecisionDefinitionQuery
Only select decision definitions that were deployed at the given Date.- Specified by:
deployedAt
in interfaceDecisionDefinitionQuery
-
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
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
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
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
Description copied from interface:DecisionDefinitionQuery
Only selects decision definitions with a specific version tag- Specified by:
versionTag
in interfaceDecisionDefinitionQuery
-
versionTagLike
Description copied from interface:DecisionDefinitionQuery
Only selects decision definitions with a version tag like the given- Specified by:
versionTagLike
in interfaceDecisionDefinitionQuery
-
withoutDecisionRequirementsDefinition
Description copied from interface:DecisionDefinitionQuery
Only select decision definitions which belongs to no decision requirements definition.- Specified by:
withoutDecisionRequirementsDefinition
in interfaceDecisionDefinitionQuery
-
tenantIdIn
Description copied from interface:DecisionDefinitionQuery
Only select decision definitions with one of the given tenant ids.- Specified by:
tenantIdIn
in interfaceDecisionDefinitionQuery
-
withoutTenantId
Description copied from interface:DecisionDefinitionQuery
Only select decision definitions which have no tenant id.- Specified by:
withoutTenantId
in interfaceDecisionDefinitionQuery
-
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
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
Description copied from interface:DecisionDefinitionQuery
Order by decision definition key (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDecisionDefinitionKey
in interfaceDecisionDefinitionQuery
-
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
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
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
Description copied from interface:DecisionDefinitionQuery
Order by deployment id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDeploymentId
in interfaceDecisionDefinitionQuery
-
orderByDeploymentTime
Description copied from interface:DecisionDefinitionQuery
Order by deployment time (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDeploymentTime
in interfaceDecisionDefinitionQuery
-
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
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
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
- Specified by:
executeCount
in classAbstractQuery<DecisionDefinitionQuery,
DecisionDefinition>
-
executeList
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
-
getIds
-
getCategory
-
getCategoryLike
-
getName
-
getNameLike
-
getDeploymentId
-
getDeployedAfter
-
getDeployedAt
-
getKey
-
getKeyLike
-
getResourceName
-
getResourceNameLike
-
getVersion
-
getVersionTag
-
getVersionTagLike
-
isLatest
public boolean isLatest() -
isShouldJoinDeploymentTable
public boolean isShouldJoinDeploymentTable()
-