Package org.flowable.dmn.engine.impl
Class DecisionQueryImpl
java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<DmnDecisionQuery,DmnDecision>
org.flowable.dmn.engine.impl.DecisionQueryImpl
- All Implemented Interfaces:
Serializable,Query<DmnDecisionQuery,,DmnDecision> Command<Object>,DmnDecisionQuery
public class DecisionQueryImpl
extends AbstractQuery<DmnDecisionQuery,DmnDecision>
implements DmnDecisionQuery
- Author:
- Tijs Rademakers, Joram Barrez, Yvo Swillens
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultTypeNested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Integerprotected Integerprotected Integerprotected Integerprotected Integerprotected booleanFields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutorFields inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
databaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, ignoreOrderBy, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC -
Constructor Summary
ConstructorsConstructorDescriptionDecisionQueryImpl(CommandContext commandContext) DecisionQueryImpl(CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckVersion(Integer version) decisionCategory(String category) Only select decisions with the given category.decisionCategoryLike(String categoryLike) Only select decisions where the category matches the given parameter.decisionCategoryNotEquals(String categoryNotEquals) Only select deployments that have a different category then the given one.decisionId(String decisionId) Only select decision with the given id.decisionIds(Set<String> decisionIds) Only select decisions with the given ids.decisionKey(String key) Only select decision with the given key.decisionKeyLike(String keyLike) Only select decisions where the key matches the given parameter.decisionName(String name) Only select decisions with the given name.decisionNameLike(String nameLike) Only select decisions where the name matches the given parameter.decisionResourceName(String resourceName) Only select decision with the given resource name.decisionResourceNameLike(String resourceNameLike) Only select decision with a resource name like the given .decisionTenantId(String tenantId) Only select decisions that have the given tenant id.decisionTenantIdLike(String tenantIdLike) Only select decisions with a tenant id like the given one.decisionType(String decisionType) Only select decisions with the given type.decisionTypeLike(String decisionTypeLike) Only select decisions like the given type.decisionVersion(Integer version) Only select decisions with a certain version.decisionVersionGreaterThan(Integer decisionVersion) Only select decisions which version are greater than a certain version.decisionVersionGreaterThanOrEquals(Integer decisionVersion) Only select decisions which version are greater than or equals a certain version.decisionVersionLowerThan(Integer decisionVersion) Only select decisions which version are lower than a certain version.decisionVersionLowerThanOrEquals(Integer decisionVersion) Only select decisions which version are lower than or equals a certain version.Only select decisions that do not have a tenant id.deploymentId(String deploymentId) Only select decisions that are deployed in a deployment with the given deployment iddeploymentIds(Set<String> deploymentIds) Select decisions that are deployed in deployments with the given set of idslongexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext) Executes the actual query to retrieve the list of results.getId()getIds()getKey()getName()booleanisLatest()booleanOnly select the decisions which are the latest deployed (ie.Order by the category of the decisions (needs to be followed byQuery.asc()orQuery.desc()).Order by the id of the decisions (needs to be followed byQuery.asc()orQuery.desc()).Order by decision key (needs to be followed byQuery.asc()orQuery.desc()).Order by the name of the decisions (needs to be followed byQuery.asc()orQuery.desc()).Order by decision type (needs to be followed byQuery.asc()orQuery.desc()).Order by the version of the decisions (needs to be followed byQuery.asc()orQuery.desc()).Order by deployment id (needs to be followed byQuery.asc()orQuery.desc()).Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).parentDeploymentId(String parentDeploymentId) Only select decisions that are deployed in a deployment with the given parent deployment idMethods inherited from class org.flowable.common.engine.impl.query.AbstractQuery
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, getSafeList, list, listPage, orderBy, orderBy, setCommandExecutor, singleResultMethods inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
addOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setIgnoreOrderBy, setMaxResults, setNullHandlingColumn, setParameter
-
Field Details
-
id
-
ids
-
category
-
categoryLike
-
categoryNotEquals
-
name
-
nameLike
-
deploymentId
-
deploymentIds
-
parentDeploymentId
-
key
-
keyLike
-
resourceName
-
resourceNameLike
-
version
-
versionGt
-
versionGte
-
versionLt
-
versionLte
-
latest
protected boolean latest -
decisionId
-
tenantId
-
tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId -
decisionType
-
decisionTypeLike
-
-
Constructor Details
-
DecisionQueryImpl
public DecisionQueryImpl() -
DecisionQueryImpl
-
DecisionQueryImpl
-
-
Method Details
-
decisionId
Description copied from interface:DmnDecisionQueryOnly select decision with the given id.- Specified by:
decisionIdin interfaceDmnDecisionQuery
-
decisionIds
Description copied from interface:DmnDecisionQueryOnly select decisions with the given ids.- Specified by:
decisionIdsin interfaceDmnDecisionQuery
-
decisionCategory
Description copied from interface:DmnDecisionQueryOnly select decisions with the given category.- Specified by:
decisionCategoryin interfaceDmnDecisionQuery
-
decisionCategoryLike
Description copied from interface:DmnDecisionQueryOnly select decisions where the category matches the given parameter. The syntax that should be used is the same as in SQL, eg. %test%- Specified by:
decisionCategoryLikein interfaceDmnDecisionQuery
-
decisionCategoryNotEquals
Description copied from interface:DmnDecisionQueryOnly select deployments that have a different category then the given one.- Specified by:
decisionCategoryNotEqualsin interfaceDmnDecisionQuery- See Also:
-
decisionName
Description copied from interface:DmnDecisionQueryOnly select decisions with the given name.- Specified by:
decisionNamein interfaceDmnDecisionQuery
-
decisionNameLike
Description copied from interface:DmnDecisionQueryOnly select decisions where the name matches the given parameter. The syntax that should be used is the same as in SQL, eg. %test%- Specified by:
decisionNameLikein interfaceDmnDecisionQuery
-
deploymentId
Description copied from interface:DmnDecisionQueryOnly select decisions that are deployed in a deployment with the given deployment id- Specified by:
deploymentIdin interfaceDmnDecisionQuery
-
deploymentIds
Description copied from interface:DmnDecisionQuerySelect decisions that are deployed in deployments with the given set of ids- Specified by:
deploymentIdsin interfaceDmnDecisionQuery
-
parentDeploymentId
Description copied from interface:DmnDecisionQueryOnly select decisions that are deployed in a deployment with the given parent deployment id- Specified by:
parentDeploymentIdin interfaceDmnDecisionQuery
-
decisionKey
Description copied from interface:DmnDecisionQueryOnly select decision with the given key.- Specified by:
decisionKeyin interfaceDmnDecisionQuery
-
decisionKeyLike
Description copied from interface:DmnDecisionQueryOnly select decisions where the key matches the given parameter. The syntax that should be used is the same as in SQL, eg. %test%- Specified by:
decisionKeyLikein interfaceDmnDecisionQuery
-
decisionResourceName
Description copied from interface:DmnDecisionQueryOnly select decision with the given resource name.- Specified by:
decisionResourceNamein interfaceDmnDecisionQuery
-
decisionResourceNameLike
Description copied from interface:DmnDecisionQueryOnly select decision with a resource name like the given .- Specified by:
decisionResourceNameLikein interfaceDmnDecisionQuery
-
decisionVersion
Description copied from interface:DmnDecisionQueryOnly select decisions with a certain version. Particularly useful when used in combination withDmnDecisionQuery.decisionKey(String)- Specified by:
decisionVersionin interfaceDmnDecisionQuery
-
decisionVersionGreaterThan
Description copied from interface:DmnDecisionQueryOnly select decisions which version are greater than a certain version.- Specified by:
decisionVersionGreaterThanin interfaceDmnDecisionQuery
-
decisionVersionGreaterThanOrEquals
Description copied from interface:DmnDecisionQueryOnly select decisions which version are greater than or equals a certain version.- Specified by:
decisionVersionGreaterThanOrEqualsin interfaceDmnDecisionQuery
-
decisionVersionLowerThan
Description copied from interface:DmnDecisionQueryOnly select decisions which version are lower than a certain version.- Specified by:
decisionVersionLowerThanin interfaceDmnDecisionQuery
-
decisionVersionLowerThanOrEquals
Description copied from interface:DmnDecisionQueryOnly select decisions which version are lower than or equals a certain version.- Specified by:
decisionVersionLowerThanOrEqualsin interfaceDmnDecisionQuery
-
checkVersion
-
latestVersion
Description copied from interface:DmnDecisionQueryOnly select the decisions which are the latest deployed (ie. which have the highest version number for the given key).Can also be used without any other criteria (ie. query.latest().list()), which will then give all the latest versions of all the deployed decisions.
- Specified by:
latestVersionin interfaceDmnDecisionQuery
-
decisionTenantId
Description copied from interface:DmnDecisionQueryOnly select decisions that have the given tenant id.- Specified by:
decisionTenantIdin interfaceDmnDecisionQuery
-
decisionTenantIdLike
Description copied from interface:DmnDecisionQueryOnly select decisions with a tenant id like the given one.- Specified by:
decisionTenantIdLikein interfaceDmnDecisionQuery
-
decisionWithoutTenantId
Description copied from interface:DmnDecisionQueryOnly select decisions that do not have a tenant id.- Specified by:
decisionWithoutTenantIdin interfaceDmnDecisionQuery
-
decisionType
Description copied from interface:DmnDecisionQueryOnly select decisions with the given type.- Specified by:
decisionTypein interfaceDmnDecisionQuery
-
decisionTypeLike
Description copied from interface:DmnDecisionQueryOnly select decisions like the given type.- Specified by:
decisionTypeLikein interfaceDmnDecisionQuery
-
orderByDeploymentId
Description copied from interface:DmnDecisionQueryOrder by deployment id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDeploymentIdin interfaceDmnDecisionQuery
-
orderByDecisionKey
Description copied from interface:DmnDecisionQueryOrder by decision key (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDecisionKeyin interfaceDmnDecisionQuery
-
orderByDecisionCategory
Description copied from interface:DmnDecisionQueryOrder by the category of the decisions (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDecisionCategoryin interfaceDmnDecisionQuery
-
orderByDecisionId
Description copied from interface:DmnDecisionQueryOrder by the id of the decisions (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDecisionIdin interfaceDmnDecisionQuery
-
orderByDecisionVersion
Description copied from interface:DmnDecisionQueryOrder by the version of the decisions (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDecisionVersionin interfaceDmnDecisionQuery
-
orderByDecisionName
Description copied from interface:DmnDecisionQueryOrder by the name of the decisions (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDecisionNamein interfaceDmnDecisionQuery
-
orderByTenantId
Description copied from interface:DmnDecisionQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceDmnDecisionQuery
-
orderByDecisionType
Description copied from interface:DmnDecisionQueryOrder by decision type (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByDecisionTypein interfaceDmnDecisionQuery
-
executeCount
- Specified by:
executeCountin classAbstractQuery<DmnDecisionQuery,DmnDecision>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<DmnDecisionQuery,DmnDecision>
-
getDeploymentId
-
getDeploymentIds
-
getParentDeploymentId
-
getId
-
getIds
-
getDecisionId
-
getName
-
getNameLike
-
getKey
-
getKeyLike
-
getVersion
-
getVersionGt
-
getVersionGte
-
getVersionLt
-
getVersionLte
-
isLatest
public boolean isLatest() -
getCategory
-
getCategoryLike
-
getResourceName
-
getResourceNameLike
-
getCategoryNotEquals
-
getTenantId
-
getTenantIdLike
-
isWithoutTenantId
public boolean isWithoutTenantId() -
getDecisionType
-
getDecisionTypeLike
-