public class DecisionDefinitionQueryImpl extends AbstractQuery<DecisionDefinitionQuery,DecisionDefinition> implements DecisionDefinitionQuery
AbstractQuery.ResultType
Modifier and Type | Field and Description |
---|---|
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 String |
versionTag |
protected String |
versionTagLike |
protected boolean |
withoutDecisionRequirementsDefinition |
commandExecutor, expressions, maxResultsLimitEnabled, resultType, SORTORDER_ASC, SORTORDER_DESC, validators
authCheck, databaseType, firstResult, maxResults, orderingProperties, parameter, tenantCheck
Constructor and Description |
---|
DecisionDefinitionQueryImpl() |
DecisionDefinitionQueryImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and 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 |
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() |
String |
getVersionTag() |
String |
getVersionTagLike() |
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 |
orderByDecisionRequirementsDefinitionKey()
Order by key of the decision requirements definition
(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 |
orderByVersionTag()
Order by version tag (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 |
versionTag(String versionTag)
Only selects decision definitions with a specific version tag
|
DecisionDefinitionQuery |
versionTagLike(String versionTagLike)
Only selects decision definitions with a version tag like the given
|
DecisionDefinitionQuery |
withoutDecisionRequirementsDefinition()
Only select decision definitions which belongs to no decision requirements definition.
|
DecisionDefinitionQuery |
withoutTenantId()
Only select decision definitions which have no tenant id.
|
addExpression, addValidator, asc, checkMaxResultsLimit, count, desc, direction, disableMaxResultsLimit, enableMaxResultsLimit, evaluateExpressions, evaluateExpressionsAndExecuteCount, evaluateExpressionsAndExecuteIdsList, evaluateExpressionsAndExecuteList, execute, executeIdsList, executeResult, executeSingleResult, extend, getExpressions, getMethod, hasExcludingConditions, list, listIds, listPage, mergeExpressions, mergeOrdering, orderBy, orderBy, removeValidator, setCommandExecutor, setExpressions, singleResult, unboundedResultList, validate, validate
getAuthCheck, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getOrderingProperties, getParameter, getTenantCheck, setAuthCheck, setDatabaseType, setFirstResult, setMaxResults, setOrderingProperties, setParameter, setTenantCheck
protected String id
protected String[] ids
protected String category
protected String categoryLike
protected String name
protected String nameLike
protected String deploymentId
protected String key
protected String keyLike
protected String resourceName
protected String resourceNameLike
protected Integer version
protected boolean latest
protected String decisionRequirementsDefinitionId
protected String decisionRequirementsDefinitionKey
protected boolean withoutDecisionRequirementsDefinition
protected boolean isTenantIdSet
protected String[] tenantIds
protected boolean includeDefinitionsWithoutTenantId
protected String versionTag
protected String versionTagLike
public DecisionDefinitionQueryImpl()
public DecisionDefinitionQueryImpl(CommandExecutor commandExecutor)
public DecisionDefinitionQuery decisionDefinitionId(String decisionDefinitionId)
DecisionDefinitionQuery
decisionDefinitionId
in interface DecisionDefinitionQuery
decisionDefinitionId
- the id of the decision definitionpublic DecisionDefinitionQuery decisionDefinitionIdIn(String... ids)
DecisionDefinitionQuery
decisionDefinitionIdIn
in interface DecisionDefinitionQuery
ids
- list of decision definition idspublic DecisionDefinitionQuery decisionDefinitionCategory(String decisionDefinitionCategory)
DecisionDefinitionQuery
decisionDefinitionCategory
in interface DecisionDefinitionQuery
decisionDefinitionCategory
- the category of the decision definitionpublic DecisionDefinitionQuery decisionDefinitionCategoryLike(String decisionDefinitionCategoryLike)
DecisionDefinitionQuery
decisionDefinitionCategoryLike
in interface DecisionDefinitionQuery
decisionDefinitionCategoryLike
- the pattern to match the decision definition categorypublic DecisionDefinitionQuery decisionDefinitionName(String decisionDefinitionName)
DecisionDefinitionQuery
decisionDefinitionName
in interface DecisionDefinitionQuery
decisionDefinitionName
- the name of the decision definitionpublic DecisionDefinitionQuery decisionDefinitionNameLike(String decisionDefinitionNameLike)
DecisionDefinitionQuery
decisionDefinitionNameLike
in interface DecisionDefinitionQuery
decisionDefinitionNameLike
- the pattern to match the decision definition namepublic DecisionDefinitionQuery decisionDefinitionKey(String decisionDefinitionKey)
DecisionDefinitionQuery
decisionDefinitionKey
in interface DecisionDefinitionQuery
decisionDefinitionKey
- the key of the decision definitionpublic DecisionDefinitionQuery decisionDefinitionKeyLike(String decisionDefinitionKeyLike)
DecisionDefinitionQuery
decisionDefinitionKeyLike
in interface DecisionDefinitionQuery
decisionDefinitionKeyLike
- the pattern to match the decision definition keypublic DecisionDefinitionQuery deploymentId(String deploymentId)
DecisionDefinitionQuery
deploymentId
in interface DecisionDefinitionQuery
deploymentId
- the id of the deploymentpublic DecisionDefinitionQuery decisionDefinitionVersion(Integer decisionDefinitionVersion)
DecisionDefinitionQuery
DecisionDefinitionQuery.decisionDefinitionKey(String)
decisionDefinitionVersion
in interface DecisionDefinitionQuery
decisionDefinitionVersion
- the version of the decision definitionpublic DecisionDefinitionQuery latestVersion()
DecisionDefinitionQuery
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.latestVersion
in interface DecisionDefinitionQuery
public DecisionDefinitionQuery decisionDefinitionResourceName(String resourceName)
DecisionDefinitionQuery
decisionDefinitionResourceName
in interface DecisionDefinitionQuery
resourceName
- the name of the resourcepublic DecisionDefinitionQuery decisionDefinitionResourceNameLike(String resourceNameLike)
DecisionDefinitionQuery
decisionDefinitionResourceNameLike
in interface DecisionDefinitionQuery
resourceNameLike
- the pattern to match the resource namepublic DecisionDefinitionQuery decisionRequirementsDefinitionId(String decisionRequirementsDefinitionId)
DecisionDefinitionQuery
decisionRequirementsDefinitionId
in interface DecisionDefinitionQuery
decisionRequirementsDefinitionId
- id of the related decision requirements definitionpublic DecisionDefinitionQuery decisionRequirementsDefinitionKey(String decisionRequirementsDefinitionKey)
DecisionDefinitionQuery
decisionRequirementsDefinitionKey
in interface DecisionDefinitionQuery
decisionRequirementsDefinitionKey
- key of the related decision requirements definitionpublic DecisionDefinitionQuery versionTag(String versionTag)
DecisionDefinitionQuery
versionTag
in interface DecisionDefinitionQuery
public DecisionDefinitionQuery versionTagLike(String versionTagLike)
DecisionDefinitionQuery
versionTagLike
in interface DecisionDefinitionQuery
public DecisionDefinitionQuery withoutDecisionRequirementsDefinition()
DecisionDefinitionQuery
withoutDecisionRequirementsDefinition
in interface DecisionDefinitionQuery
public DecisionDefinitionQuery tenantIdIn(String... tenantIds)
DecisionDefinitionQuery
tenantIdIn
in interface DecisionDefinitionQuery
public DecisionDefinitionQuery withoutTenantId()
DecisionDefinitionQuery
withoutTenantId
in interface DecisionDefinitionQuery
public DecisionDefinitionQuery includeDecisionDefinitionsWithoutTenantId()
DecisionDefinitionQuery
DecisionDefinitionQuery.tenantIdIn(String...)
.includeDecisionDefinitionsWithoutTenantId
in interface DecisionDefinitionQuery
public DecisionDefinitionQuery orderByDecisionDefinitionCategory()
DecisionDefinitionQuery
Query.asc()
or Query.desc()
).orderByDecisionDefinitionCategory
in interface DecisionDefinitionQuery
public DecisionDefinitionQuery orderByDecisionDefinitionKey()
DecisionDefinitionQuery
Query.asc()
or
Query.desc()
).orderByDecisionDefinitionKey
in interface DecisionDefinitionQuery
public DecisionDefinitionQuery orderByDecisionDefinitionId()
DecisionDefinitionQuery
Query.asc()
or Query.desc()
).orderByDecisionDefinitionId
in interface DecisionDefinitionQuery
public DecisionDefinitionQuery orderByDecisionDefinitionVersion()
DecisionDefinitionQuery
Query.asc()
or Query.desc()
).orderByDecisionDefinitionVersion
in interface DecisionDefinitionQuery
public DecisionDefinitionQuery orderByDecisionDefinitionName()
DecisionDefinitionQuery
Query.asc()
or Query.desc()
).orderByDecisionDefinitionName
in interface DecisionDefinitionQuery
public DecisionDefinitionQuery orderByDeploymentId()
DecisionDefinitionQuery
Query.asc()
or Query.desc()
).orderByDeploymentId
in interface DecisionDefinitionQuery
public DecisionDefinitionQuery orderByTenantId()
DecisionDefinitionQuery
Query.asc()
or Query.desc()
).
Note that the ordering of decision definitions without tenant id is database-specific.orderByTenantId
in interface DecisionDefinitionQuery
public DecisionDefinitionQuery orderByDecisionRequirementsDefinitionKey()
DecisionDefinitionQuery
Query.asc()
or Query.desc()
).
Note that the ordering of decision definitions without decision requirements definition
is database-specific.orderByDecisionRequirementsDefinitionKey
in interface DecisionDefinitionQuery
public DecisionDefinitionQuery orderByVersionTag()
DecisionDefinitionQuery
Query.asc()
or Query.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.orderByVersionTag
in interface DecisionDefinitionQuery
public long executeCount(CommandContext commandContext)
executeCount
in class AbstractQuery<DecisionDefinitionQuery,DecisionDefinition>
public List<DecisionDefinition> executeList(CommandContext commandContext, Page page)
AbstractQuery
executeList
in class AbstractQuery<DecisionDefinitionQuery,DecisionDefinition>
page
- used if the results must be paged. If null, no paging will be applied.public void checkQueryOk()
checkQueryOk
in class AbstractQuery<DecisionDefinitionQuery,DecisionDefinition>
public String getId()
public String[] getIds()
public String getCategory()
public String getCategoryLike()
public String getName()
public String getNameLike()
public String getDeploymentId()
public String getKey()
public String getKeyLike()
public String getResourceName()
public String getResourceNameLike()
public Integer getVersion()
public String getVersionTag()
public String getVersionTagLike()
public boolean isLatest()
Copyright © 2019. All rights reserved.