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 Stringcategoryprotected StringcategoryLikeprotected StringdecisionRequirementsDefinitionIdprotected StringdecisionRequirementsDefinitionKeyprotected DatedeployedAfterprotected DatedeployedAtprotected StringdeploymentIdprotected Stringidprotected String[]idsprotected booleanincludeDefinitionsWithoutTenantIdprotected booleanisTenantIdSetprotected Stringkeyprotected StringkeyLikeprotected booleanlatestprotected Stringnameprotected StringnameLikeprotected StringresourceNameprotected StringresourceNameLikeprotected String[]tenantIdsprotected Integerversionprotected StringversionTagprotected StringversionTagLikeprotected booleanwithoutDecisionRequirementsDefinition-
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 voidcheckQueryOk()DecisionDefinitionQuerydecisionDefinitionCategory(String decisionDefinitionCategory)Only select decision definitions with the given category.DecisionDefinitionQuerydecisionDefinitionCategoryLike(String decisionDefinitionCategoryLike)Only select decision definitions where the category matches the given parameter.DecisionDefinitionQuerydecisionDefinitionId(String decisionDefinitionId)Only select decision definition with the given id.DecisionDefinitionQuerydecisionDefinitionIdIn(String... ids)Only select decision definitions with the given ids.DecisionDefinitionQuerydecisionDefinitionKey(String decisionDefinitionKey)Only select decision definition with the given key.DecisionDefinitionQuerydecisionDefinitionKeyLike(String decisionDefinitionKeyLike)Only select decision definitions where the key matches the given parameter.DecisionDefinitionQuerydecisionDefinitionName(String decisionDefinitionName)Only select decision definitions with the given name.DecisionDefinitionQuerydecisionDefinitionNameLike(String decisionDefinitionNameLike)Only select decision definitions where the name matches the given parameter.DecisionDefinitionQuerydecisionDefinitionResourceName(String resourceName)Only select decision definition with the given resource name.DecisionDefinitionQuerydecisionDefinitionResourceNameLike(String resourceNameLike)Only select decision definition with a resource name like the given.DecisionDefinitionQuerydecisionDefinitionVersion(Integer decisionDefinitionVersion)Only select decision definition with a certain version.DecisionDefinitionQuerydecisionRequirementsDefinitionId(String decisionRequirementsDefinitionId)Only select decision definitions which belongs to a decision requirements definition with the given id.DecisionDefinitionQuerydecisionRequirementsDefinitionKey(String decisionRequirementsDefinitionKey)Only select decision definitions which belongs to a decision requirements definition with the given key.DecisionDefinitionQuerydeployedAfter(Date deployedAfter)Only select decision definitions that were deployed after the given Date (exclusive).DecisionDefinitionQuerydeployedAt(Date deployedAt)Only select decision definitions that were deployed at the given Date.DecisionDefinitionQuerydeploymentId(String deploymentId)Only select decision definitions that are deployed in a deployment with the given deployment id.longexecuteCount(CommandContext commandContext)List<DecisionDefinition>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.StringgetCategory()StringgetCategoryLike()DategetDeployedAfter()DategetDeployedAt()StringgetDeploymentId()StringgetId()String[]getIds()StringgetKey()StringgetKeyLike()StringgetName()StringgetNameLike()StringgetResourceName()StringgetResourceNameLike()IntegergetVersion()StringgetVersionTag()StringgetVersionTagLike()DecisionDefinitionQueryincludeDecisionDefinitionsWithoutTenantId()Select decision definitions which have no tenant id.booleanisLatest()booleanisShouldJoinDeploymentTable()DecisionDefinitionQuerylatestVersion()Only select the decision definitions which are the latest deployed (ie.DecisionDefinitionQueryorderByDecisionDefinitionCategory()Order by the category of the decision definitions (needs to be followed byQuery.asc()orQuery.desc()).DecisionDefinitionQueryorderByDecisionDefinitionId()Order by the id of the decision definitions (needs to be followed byQuery.asc()orQuery.desc()).DecisionDefinitionQueryorderByDecisionDefinitionKey()Order by decision definition key (needs to be followed byQuery.asc()orQuery.desc()).DecisionDefinitionQueryorderByDecisionDefinitionName()Order by the name of the decision definitions (needs to be followed byQuery.asc()orQuery.desc()).DecisionDefinitionQueryorderByDecisionDefinitionVersion()Order by the version of the decision definitions (needs to be followed byQuery.asc()orQuery.desc()).DecisionDefinitionQueryorderByDecisionRequirementsDefinitionKey()Order by key of the decision requirements definition (needs to be followed byQuery.asc()orQuery.desc()).DecisionDefinitionQueryorderByDeploymentId()Order by deployment id (needs to be followed byQuery.asc()orQuery.desc()).DecisionDefinitionQueryorderByDeploymentTime()Order by deployment time (needs to be followed byQuery.asc()orQuery.desc()).DecisionDefinitionQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).DecisionDefinitionQueryorderByVersionTag()Order by version tag (needs to be followed byQuery.asc()orQuery.desc()).DecisionDefinitionQuerytenantIdIn(String... tenantIds)Only select decision definitions with one of the given tenant ids.DecisionDefinitionQueryversionTag(String versionTag)Only selects decision definitions with a specific version tagDecisionDefinitionQueryversionTagLike(String versionTagLike)Only selects decision definitions with a version tag like the givenDecisionDefinitionQuerywithoutDecisionRequirementsDefinition()Only select decision definitions which belongs to no decision requirements definition.DecisionDefinitionQuerywithoutTenantId()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:DecisionDefinitionQueryOnly select decision definition with the given id.- Specified by:
decisionDefinitionIdin interfaceDecisionDefinitionQuery- Parameters:
decisionDefinitionId- the id of the decision definition
-
decisionDefinitionIdIn
public DecisionDefinitionQuery decisionDefinitionIdIn(String... ids)
Description copied from interface:DecisionDefinitionQueryOnly select decision definitions with the given ids.- Specified by:
decisionDefinitionIdInin interfaceDecisionDefinitionQuery- Parameters:
ids- list of decision definition ids
-
decisionDefinitionCategory
public DecisionDefinitionQuery decisionDefinitionCategory(String decisionDefinitionCategory)
Description copied from interface:DecisionDefinitionQueryOnly select decision definitions with the given category.- Specified by:
decisionDefinitionCategoryin interfaceDecisionDefinitionQuery- Parameters:
decisionDefinitionCategory- the category of the decision definition
-
decisionDefinitionCategoryLike
public DecisionDefinitionQuery decisionDefinitionCategoryLike(String decisionDefinitionCategoryLike)
Description copied from interface:DecisionDefinitionQueryOnly 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:
decisionDefinitionCategoryLikein interfaceDecisionDefinitionQuery- Parameters:
decisionDefinitionCategoryLike- the pattern to match the decision definition category
-
decisionDefinitionName
public DecisionDefinitionQuery decisionDefinitionName(String decisionDefinitionName)
Description copied from interface:DecisionDefinitionQueryOnly select decision definitions with the given name.- Specified by:
decisionDefinitionNamein interfaceDecisionDefinitionQuery- Parameters:
decisionDefinitionName- the name of the decision definition
-
decisionDefinitionNameLike
public DecisionDefinitionQuery decisionDefinitionNameLike(String decisionDefinitionNameLike)
Description copied from interface:DecisionDefinitionQueryOnly 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:
decisionDefinitionNameLikein interfaceDecisionDefinitionQuery- Parameters:
decisionDefinitionNameLike- the pattern to match the decision definition name
-
decisionDefinitionKey
public DecisionDefinitionQuery decisionDefinitionKey(String decisionDefinitionKey)
Description copied from interface:DecisionDefinitionQueryOnly select decision definition with the given key.- Specified by:
decisionDefinitionKeyin interfaceDecisionDefinitionQuery- Parameters:
decisionDefinitionKey- the key of the decision definition
-
decisionDefinitionKeyLike
public DecisionDefinitionQuery decisionDefinitionKeyLike(String decisionDefinitionKeyLike)
Description copied from interface:DecisionDefinitionQueryOnly 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:
decisionDefinitionKeyLikein interfaceDecisionDefinitionQuery- Parameters:
decisionDefinitionKeyLike- the pattern to match the decision definition key
-
deploymentId
public DecisionDefinitionQuery deploymentId(String deploymentId)
Description copied from interface:DecisionDefinitionQueryOnly select decision definitions that are deployed in a deployment with the given deployment id.- Specified by:
deploymentIdin interfaceDecisionDefinitionQuery- Parameters:
deploymentId- the id of the deployment
-
deployedAfter
public DecisionDefinitionQuery deployedAfter(Date deployedAfter)
Description copied from interface:DecisionDefinitionQueryOnly select decision definitions that were deployed after the given Date (exclusive).- Specified by:
deployedAfterin interfaceDecisionDefinitionQuery
-
deployedAt
public DecisionDefinitionQuery deployedAt(Date deployedAt)
Description copied from interface:DecisionDefinitionQueryOnly select decision definitions that were deployed at the given Date.- Specified by:
deployedAtin interfaceDecisionDefinitionQuery
-
decisionDefinitionVersion
public DecisionDefinitionQuery decisionDefinitionVersion(Integer decisionDefinitionVersion)
Description copied from interface:DecisionDefinitionQueryOnly select decision definition with a certain version. Particularly useful when used in combination withDecisionDefinitionQuery.decisionDefinitionKey(String)- Specified by:
decisionDefinitionVersionin interfaceDecisionDefinitionQuery- Parameters:
decisionDefinitionVersion- the version of the decision definition
-
latestVersion
public DecisionDefinitionQuery latestVersion()
Description copied from interface:DecisionDefinitionQueryOnly 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:
latestVersionin interfaceDecisionDefinitionQuery
-
decisionDefinitionResourceName
public DecisionDefinitionQuery decisionDefinitionResourceName(String resourceName)
Description copied from interface:DecisionDefinitionQueryOnly select decision definition with the given resource name.- Specified by:
decisionDefinitionResourceNamein interfaceDecisionDefinitionQuery- Parameters:
resourceName- the name of the resource
-
decisionDefinitionResourceNameLike
public DecisionDefinitionQuery decisionDefinitionResourceNameLike(String resourceNameLike)
Description copied from interface:DecisionDefinitionQueryOnly 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:
decisionDefinitionResourceNameLikein interfaceDecisionDefinitionQuery- Parameters:
resourceNameLike- the pattern to match the resource name
-
decisionRequirementsDefinitionId
public DecisionDefinitionQuery decisionRequirementsDefinitionId(String decisionRequirementsDefinitionId)
Description copied from interface:DecisionDefinitionQueryOnly select decision definitions which belongs to a decision requirements definition with the given id.- Specified by:
decisionRequirementsDefinitionIdin interfaceDecisionDefinitionQuery- Parameters:
decisionRequirementsDefinitionId- id of the related decision requirements definition
-
decisionRequirementsDefinitionKey
public DecisionDefinitionQuery decisionRequirementsDefinitionKey(String decisionRequirementsDefinitionKey)
Description copied from interface:DecisionDefinitionQueryOnly select decision definitions which belongs to a decision requirements definition with the given key.- Specified by:
decisionRequirementsDefinitionKeyin interfaceDecisionDefinitionQuery- Parameters:
decisionRequirementsDefinitionKey- key of the related decision requirements definition
-
versionTag
public DecisionDefinitionQuery versionTag(String versionTag)
Description copied from interface:DecisionDefinitionQueryOnly selects decision definitions with a specific version tag- Specified by:
versionTagin interfaceDecisionDefinitionQuery
-
versionTagLike
public DecisionDefinitionQuery versionTagLike(String versionTagLike)
Description copied from interface:DecisionDefinitionQueryOnly selects decision definitions with a version tag like the given- Specified by:
versionTagLikein interfaceDecisionDefinitionQuery
-
withoutDecisionRequirementsDefinition
public DecisionDefinitionQuery withoutDecisionRequirementsDefinition()
Description copied from interface:DecisionDefinitionQueryOnly select decision definitions which belongs to no decision requirements definition.- Specified by:
withoutDecisionRequirementsDefinitionin interfaceDecisionDefinitionQuery
-
tenantIdIn
public DecisionDefinitionQuery tenantIdIn(String... tenantIds)
Description copied from interface:DecisionDefinitionQueryOnly select decision definitions with one of the given tenant ids.- Specified by:
tenantIdInin interfaceDecisionDefinitionQuery
-
withoutTenantId
public DecisionDefinitionQuery withoutTenantId()
Description copied from interface:DecisionDefinitionQueryOnly select decision definitions which have no tenant id.- Specified by:
withoutTenantIdin interfaceDecisionDefinitionQuery
-
includeDecisionDefinitionsWithoutTenantId
public DecisionDefinitionQuery includeDecisionDefinitionsWithoutTenantId()
Description copied from interface:DecisionDefinitionQuerySelect decision definitions which have no tenant id. Can be used in combination withDecisionDefinitionQuery.tenantIdIn(String...).- Specified by:
includeDecisionDefinitionsWithoutTenantIdin interfaceDecisionDefinitionQuery
-
orderByDecisionDefinitionCategory
public DecisionDefinitionQuery orderByDecisionDefinitionCategory()
Description copied from interface:DecisionDefinitionQueryOrder by the category of the decision definitions (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDecisionDefinitionCategoryin interfaceDecisionDefinitionQuery
-
orderByDecisionDefinitionKey
public DecisionDefinitionQuery orderByDecisionDefinitionKey()
Description copied from interface:DecisionDefinitionQueryOrder by decision definition key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDecisionDefinitionKeyin interfaceDecisionDefinitionQuery
-
orderByDecisionDefinitionId
public DecisionDefinitionQuery orderByDecisionDefinitionId()
Description copied from interface:DecisionDefinitionQueryOrder by the id of the decision definitions (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDecisionDefinitionIdin interfaceDecisionDefinitionQuery
-
orderByDecisionDefinitionVersion
public DecisionDefinitionQuery orderByDecisionDefinitionVersion()
Description copied from interface:DecisionDefinitionQueryOrder by the version of the decision definitions (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDecisionDefinitionVersionin interfaceDecisionDefinitionQuery
-
orderByDecisionDefinitionName
public DecisionDefinitionQuery orderByDecisionDefinitionName()
Description copied from interface:DecisionDefinitionQueryOrder by the name of the decision definitions (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDecisionDefinitionNamein interfaceDecisionDefinitionQuery
-
orderByDeploymentId
public DecisionDefinitionQuery orderByDeploymentId()
Description copied from interface:DecisionDefinitionQueryOrder by deployment id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDeploymentIdin interfaceDecisionDefinitionQuery
-
orderByDeploymentTime
public DecisionDefinitionQuery orderByDeploymentTime()
Description copied from interface:DecisionDefinitionQueryOrder by deployment time (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDeploymentTimein interfaceDecisionDefinitionQuery
-
orderByTenantId
public DecisionDefinitionQuery orderByTenantId()
Description copied from interface:DecisionDefinitionQueryOrder 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:
orderByTenantIdin interfaceDecisionDefinitionQuery
-
orderByDecisionRequirementsDefinitionKey
public DecisionDefinitionQuery orderByDecisionRequirementsDefinitionKey()
Description copied from interface:DecisionDefinitionQueryOrder 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:
orderByDecisionRequirementsDefinitionKeyin interfaceDecisionDefinitionQuery
-
orderByVersionTag
public DecisionDefinitionQuery orderByVersionTag()
Description copied from interface:DecisionDefinitionQueryOrder 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:
orderByVersionTagin interfaceDecisionDefinitionQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractQuery<DecisionDefinitionQuery,DecisionDefinition>
-
executeList
public List<DecisionDefinition> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<DecisionDefinitionQuery,DecisionDefinition>page- used if the results must be paged. If null, no paging will be applied.
-
checkQueryOk
public void checkQueryOk()
- Overrides:
checkQueryOkin 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()
-
-