org.camunda.bpm.engine.impl.dmn.entity.repository
Class DecisionDefinitionQueryImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.db.ListQueryParameterObject
      extended by org.camunda.bpm.engine.impl.AbstractQuery<DecisionDefinitionQuery,DecisionDefinition>
          extended by 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
protected  String category
           
protected  String categoryLike
           
protected  String decisionRequirementsDefinitionId
           
protected  String decisionRequirementsDefinitionKey
           
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  boolean withoutDecisionRequirementsDefinition
           
 
Fields inherited from class org.camunda.bpm.engine.impl.AbstractQuery
commandExecutor, expressions, orderingProperties, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
 
Fields inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
authCheck, databaseType, DEFAULT_ORDER_BY, firstResult, maxResults, orderBy, parameter, tenantCheck
 
Constructor Summary
DecisionDefinitionQueryImpl()
           
DecisionDefinitionQueryImpl(CommandExecutor commandExecutor)
           
 
Method Summary
 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 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()
           
 String getDeploymentId()
           
 String getId()
           
 String[] getIds()
           
 String getKey()
           
 String getKeyLike()
           
 String getName()
           
 String getNameLike()
           
 String getResourceName()
           
 String getResourceNameLike()
           
 Integer getVersion()
           
 DecisionDefinitionQuery includeDecisionDefinitionsWithoutTenantId()
          Select decision definitions which have no tenant id.
 boolean isLatest()
           
 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 by Query.asc() or Query.desc()).
 DecisionDefinitionQuery orderByDecisionDefinitionId()
          Order by the id of the decision definitions (needs to be followed by Query.asc() or Query.desc()).
 DecisionDefinitionQuery orderByDecisionDefinitionKey()
          Order by decision definition key (needs to be followed by Query.asc() or Query.desc()).
 DecisionDefinitionQuery orderByDecisionDefinitionName()
          Order by the name of the decision definitions (needs to be followed by Query.asc() or Query.desc()).
 DecisionDefinitionQuery orderByDecisionDefinitionVersion()
          Order by the version of the decision definitions (needs to be followed by Query.asc() or Query.desc()).
 DecisionDefinitionQuery orderByDeploymentId()
          Order by deployment id (needs to be followed by Query.asc() or Query.desc()).
 DecisionDefinitionQuery orderByTenantId()
          Order by tenant id (needs to be followed by Query.asc() or Query.desc()).
 DecisionDefinitionQuery tenantIdIn(String... tenantIds)
          Only select decision definitions with one of the given tenant ids.
 DecisionDefinitionQuery 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, count, desc, direction, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteList, execute, executeSingleResult, extend, getExpressions, getMethod, getOrderBy, getOrderingProperties, hasExcludingConditions, list, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, setOrderingProperties, singleResult, validate, validate
 
Methods inherited from class org.camunda.bpm.engine.impl.db.ListQueryParameterObject
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderBy, 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
 

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

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
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 interface DecisionDefinitionQuery
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 interface DecisionDefinitionQuery
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 interface DecisionDefinitionQuery
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 interface DecisionDefinitionQuery
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 interface DecisionDefinitionQuery
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 interface DecisionDefinitionQuery
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 interface DecisionDefinitionQuery
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 interface DecisionDefinitionQuery
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 interface DecisionDefinitionQuery
Parameters:
deploymentId - the id of the deployment

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 with DecisionDefinitionQuery.decisionDefinitionKey(String)

Specified by:
decisionDefinitionVersion in interface DecisionDefinitionQuery
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 with DecisionDefinitionQuery.decisionDefinitionKey(String) or DecisionDefinitionQuery.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 interface DecisionDefinitionQuery

decisionDefinitionResourceName

public DecisionDefinitionQuery decisionDefinitionResourceName(String resourceName)
Description copied from interface: DecisionDefinitionQuery
Only select decision definition with the given resource name.

Specified by:
decisionDefinitionResourceName in interface DecisionDefinitionQuery
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 interface DecisionDefinitionQuery
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 interface DecisionDefinitionQuery
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 interface DecisionDefinitionQuery
Parameters:
decisionRequirementsDefinitionKey - key of the related decision requirements definition

withoutDecisionRequirementsDefinition

public DecisionDefinitionQuery withoutDecisionRequirementsDefinition()
Description copied from interface: DecisionDefinitionQuery
Only select decision definitions which belongs to no decision requirements definition.

Specified by:
withoutDecisionRequirementsDefinition in interface DecisionDefinitionQuery

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 interface DecisionDefinitionQuery

withoutTenantId

public DecisionDefinitionQuery withoutTenantId()
Description copied from interface: DecisionDefinitionQuery
Only select decision definitions which have no tenant id.

Specified by:
withoutTenantId in interface DecisionDefinitionQuery

includeDecisionDefinitionsWithoutTenantId

public DecisionDefinitionQuery includeDecisionDefinitionsWithoutTenantId()
Description copied from interface: DecisionDefinitionQuery
Select decision definitions which have no tenant id. Can be used in combination with DecisionDefinitionQuery.tenantIdIn(String...).

Specified by:
includeDecisionDefinitionsWithoutTenantId in interface DecisionDefinitionQuery

orderByDecisionDefinitionCategory

public DecisionDefinitionQuery orderByDecisionDefinitionCategory()
Description copied from interface: DecisionDefinitionQuery
Order by the category of the decision definitions (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByDecisionDefinitionCategory in interface DecisionDefinitionQuery

orderByDecisionDefinitionKey

public DecisionDefinitionQuery orderByDecisionDefinitionKey()
Description copied from interface: DecisionDefinitionQuery
Order by decision definition key (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByDecisionDefinitionKey in interface DecisionDefinitionQuery

orderByDecisionDefinitionId

public DecisionDefinitionQuery orderByDecisionDefinitionId()
Description copied from interface: DecisionDefinitionQuery
Order by the id of the decision definitions (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByDecisionDefinitionId in interface DecisionDefinitionQuery

orderByDecisionDefinitionVersion

public DecisionDefinitionQuery orderByDecisionDefinitionVersion()
Description copied from interface: DecisionDefinitionQuery
Order by the version of the decision definitions (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByDecisionDefinitionVersion in interface DecisionDefinitionQuery

orderByDecisionDefinitionName

public DecisionDefinitionQuery orderByDecisionDefinitionName()
Description copied from interface: DecisionDefinitionQuery
Order by the name of the decision definitions (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByDecisionDefinitionName in interface DecisionDefinitionQuery

orderByDeploymentId

public DecisionDefinitionQuery orderByDeploymentId()
Description copied from interface: DecisionDefinitionQuery
Order by deployment id (needs to be followed by Query.asc() or Query.desc()).

Specified by:
orderByDeploymentId in interface DecisionDefinitionQuery

orderByTenantId

public DecisionDefinitionQuery orderByTenantId()
Description copied from interface: DecisionDefinitionQuery
Order by tenant id (needs to be followed by Query.asc() or Query.desc()). Note that the ordering of decision definitions without tenant id is database-specific.

Specified by:
orderByTenantId in interface DecisionDefinitionQuery

executeCount

public long executeCount(CommandContext commandContext)
Specified by:
executeCount in class AbstractQuery<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 class AbstractQuery<DecisionDefinitionQuery,DecisionDefinition>
page - used if the results must be paged. If null, no paging will be applied.

checkQueryOk

public void checkQueryOk()
Overrides:
checkQueryOk in class AbstractQuery<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()

getKey

public String getKey()

getKeyLike

public String getKeyLike()

getResourceName

public String getResourceName()

getResourceNameLike

public String getResourceNameLike()

getVersion

public Integer getVersion()

isLatest

public boolean isLatest()


Copyright © 2016 camunda services GmbH. All rights reserved.