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.ResultType
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected boolean
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected Integer
protected Integer
protected Integer
protected Integer
protected Integer
protected boolean
Fields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutor
Fields inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
databaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC
-
Constructor Summary
ConstructorsConstructorDescriptionDecisionQueryImpl
(CommandContext commandContext) DecisionQueryImpl
(CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkVersion
(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 idslong
executeCount
(CommandContext commandContext) executeList
(CommandContext commandContext) Executes the actual query to retrieve the list of results.getId()
getIds()
getKey()
getName()
boolean
isLatest()
boolean
Only 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, list, listPage, orderBy, orderBy, setCommandExecutor, singleResult
Methods 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, 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:DmnDecisionQuery
Only select decision with the given id.- Specified by:
decisionId
in interfaceDmnDecisionQuery
-
decisionIds
Description copied from interface:DmnDecisionQuery
Only select decisions with the given ids.- Specified by:
decisionIds
in interfaceDmnDecisionQuery
-
decisionCategory
Description copied from interface:DmnDecisionQuery
Only select decisions with the given category.- Specified by:
decisionCategory
in interfaceDmnDecisionQuery
-
decisionCategoryLike
Description copied from interface:DmnDecisionQuery
Only 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:
decisionCategoryLike
in interfaceDmnDecisionQuery
-
decisionCategoryNotEquals
Description copied from interface:DmnDecisionQuery
Only select deployments that have a different category then the given one.- Specified by:
decisionCategoryNotEquals
in interfaceDmnDecisionQuery
- See Also:
-
decisionName
Description copied from interface:DmnDecisionQuery
Only select decisions with the given name.- Specified by:
decisionName
in interfaceDmnDecisionQuery
-
decisionNameLike
Description copied from interface:DmnDecisionQuery
Only 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:
decisionNameLike
in interfaceDmnDecisionQuery
-
deploymentId
Description copied from interface:DmnDecisionQuery
Only select decisions that are deployed in a deployment with the given deployment id- Specified by:
deploymentId
in interfaceDmnDecisionQuery
-
deploymentIds
Description copied from interface:DmnDecisionQuery
Select decisions that are deployed in deployments with the given set of ids- Specified by:
deploymentIds
in interfaceDmnDecisionQuery
-
parentDeploymentId
Description copied from interface:DmnDecisionQuery
Only select decisions that are deployed in a deployment with the given parent deployment id- Specified by:
parentDeploymentId
in interfaceDmnDecisionQuery
-
decisionKey
Description copied from interface:DmnDecisionQuery
Only select decision with the given key.- Specified by:
decisionKey
in interfaceDmnDecisionQuery
-
decisionKeyLike
Description copied from interface:DmnDecisionQuery
Only 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:
decisionKeyLike
in interfaceDmnDecisionQuery
-
decisionResourceName
Description copied from interface:DmnDecisionQuery
Only select decision with the given resource name.- Specified by:
decisionResourceName
in interfaceDmnDecisionQuery
-
decisionResourceNameLike
Description copied from interface:DmnDecisionQuery
Only select decision with a resource name like the given .- Specified by:
decisionResourceNameLike
in interfaceDmnDecisionQuery
-
decisionVersion
Description copied from interface:DmnDecisionQuery
Only select decisions with a certain version. Particularly useful when used in combination withDmnDecisionQuery.decisionKey(String)
- Specified by:
decisionVersion
in interfaceDmnDecisionQuery
-
decisionVersionGreaterThan
Description copied from interface:DmnDecisionQuery
Only select decisions which version are greater than a certain version.- Specified by:
decisionVersionGreaterThan
in interfaceDmnDecisionQuery
-
decisionVersionGreaterThanOrEquals
Description copied from interface:DmnDecisionQuery
Only select decisions which version are greater than or equals a certain version.- Specified by:
decisionVersionGreaterThanOrEquals
in interfaceDmnDecisionQuery
-
decisionVersionLowerThan
Description copied from interface:DmnDecisionQuery
Only select decisions which version are lower than a certain version.- Specified by:
decisionVersionLowerThan
in interfaceDmnDecisionQuery
-
decisionVersionLowerThanOrEquals
Description copied from interface:DmnDecisionQuery
Only select decisions which version are lower than or equals a certain version.- Specified by:
decisionVersionLowerThanOrEquals
in interfaceDmnDecisionQuery
-
checkVersion
-
latestVersion
Description copied from interface:DmnDecisionQuery
Only 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:
latestVersion
in interfaceDmnDecisionQuery
-
decisionTenantId
Description copied from interface:DmnDecisionQuery
Only select decisions that have the given tenant id.- Specified by:
decisionTenantId
in interfaceDmnDecisionQuery
-
decisionTenantIdLike
Description copied from interface:DmnDecisionQuery
Only select decisions with a tenant id like the given one.- Specified by:
decisionTenantIdLike
in interfaceDmnDecisionQuery
-
decisionWithoutTenantId
Description copied from interface:DmnDecisionQuery
Only select decisions that do not have a tenant id.- Specified by:
decisionWithoutTenantId
in interfaceDmnDecisionQuery
-
decisionType
Description copied from interface:DmnDecisionQuery
Only select decisions with the given type.- Specified by:
decisionType
in interfaceDmnDecisionQuery
-
decisionTypeLike
Description copied from interface:DmnDecisionQuery
Only select decisions like the given type.- Specified by:
decisionTypeLike
in interfaceDmnDecisionQuery
-
orderByDeploymentId
Description copied from interface:DmnDecisionQuery
Order by deployment id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDeploymentId
in interfaceDmnDecisionQuery
-
orderByDecisionKey
Description copied from interface:DmnDecisionQuery
Order by decision key (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDecisionKey
in interfaceDmnDecisionQuery
-
orderByDecisionCategory
Description copied from interface:DmnDecisionQuery
Order by the category of the decisions (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDecisionCategory
in interfaceDmnDecisionQuery
-
orderByDecisionId
Description copied from interface:DmnDecisionQuery
Order by the id of the decisions (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDecisionId
in interfaceDmnDecisionQuery
-
orderByDecisionVersion
Description copied from interface:DmnDecisionQuery
Order by the version of the decisions (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDecisionVersion
in interfaceDmnDecisionQuery
-
orderByDecisionName
Description copied from interface:DmnDecisionQuery
Order by the name of the decisions (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDecisionName
in interfaceDmnDecisionQuery
-
orderByTenantId
Description copied from interface:DmnDecisionQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTenantId
in interfaceDmnDecisionQuery
-
orderByDecisionType
Description copied from interface:DmnDecisionQuery
Order by decision type (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByDecisionType
in interfaceDmnDecisionQuery
-
executeCount
- Specified by:
executeCount
in classAbstractQuery<DmnDecisionQuery,
DmnDecision>
-
executeList
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in 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
-