Package org.flowable.engine.repository
Interface ModelQuery
- All Superinterfaces:
org.flowable.common.engine.api.query.Query<ModelQuery,
Model>
- All Known Implementing Classes:
ModelQueryImpl
Allows programmatic querying of
Model
s.- Author:
- Tijs Rademakers, Joram Barrez
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
org.flowable.common.engine.api.query.Query.NullHandlingOnOrder
-
Method Summary
Modifier and TypeMethodDescriptiondeployed()
Only select models that are deployed (ie deploymentId !deploymentId
(String deploymentId) Only select models that are the source for the provided deploymentOnly select models which has the highest version.modelCategory
(String modelCategory) Only select models with the given category.modelCategoryLike
(String modelCategoryLike) Only select models where the category matches the given parameter.modelCategoryNotEquals
(String categoryNotEquals) Only select models that have a different category then the given one.Only select model with the given id.Only selects models with the given key.Only select models with the given name.modelNameLike
(String modelNameLike) Only select models where the name matches the given parameter.modelTenantId
(String tenantId) Only select models that have the given tenant id.modelTenantIdLike
(String tenantIdLike) Only select models with a tenant id like the given one.modelVersion
(Integer modelVersion) Only select model with a certain version.Only select models that do not have a tenant id.Only select models that are not yet deployedOrder by the creation time of the models (needs to be followed byQuery.asc()
orQuery.desc()
).Order by the last update time of the models (needs to be followed byQuery.asc()
orQuery.desc()
).Order by the category of the models (needs to be followed byQuery.asc()
orQuery.desc()
).Order by the id of the models (needs to be followed byQuery.asc()
orQuery.desc()
).Order by the key of the models (needs to be followed byQuery.asc()
orQuery.desc()
).Order by the name of the models (needs to be followed byQuery.asc()
orQuery.desc()
).Order by the version of the models (needs to be followed byQuery.asc()
orQuery.desc()
).Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).Methods inherited from interface org.flowable.common.engine.api.query.Query
asc, count, desc, list, listPage, orderBy, orderBy, singleResult
-
Method Details
-
modelId
Only select model with the given id. -
modelCategory
Only select models with the given category. -
modelCategoryLike
Only select models where the category matches the given parameter. The syntax that should be used is the same as in SQL, eg. %test% -
modelCategoryNotEquals
Only select models that have a different category then the given one. -
modelName
Only select models with the given name. -
modelNameLike
Only select models where the name matches the given parameter. The syntax that should be used is the same as in SQL, eg. %test% -
modelKey
Only selects models with the given key. -
modelVersion
Only select model with a certain version. -
latestVersion
ModelQuery latestVersion()Only select models which has the highest version. Note: if modelKey(key) is not used in this query, all the models with the highest version for each key will be returned (similar to process definitions) -
deploymentId
Only select models that are the source for the provided deployment -
deployed
ModelQuery deployed()Only select models that are deployed (ie deploymentId != null) -
notDeployed
ModelQuery notDeployed()Only select models that are not yet deployed -
modelTenantId
Only select models that have the given tenant id. -
modelTenantIdLike
Only select models with a tenant id like the given one. -
modelWithoutTenantId
ModelQuery modelWithoutTenantId()Only select models that do not have a tenant id. -
orderByModelCategory
ModelQuery orderByModelCategory()Order by the category of the models (needs to be followed byQuery.asc()
orQuery.desc()
). -
orderByModelId
ModelQuery orderByModelId()Order by the id of the models (needs to be followed byQuery.asc()
orQuery.desc()
). -
orderByModelKey
ModelQuery orderByModelKey()Order by the key of the models (needs to be followed byQuery.asc()
orQuery.desc()
). -
orderByModelVersion
ModelQuery orderByModelVersion()Order by the version of the models (needs to be followed byQuery.asc()
orQuery.desc()
). -
orderByModelName
ModelQuery orderByModelName()Order by the name of the models (needs to be followed byQuery.asc()
orQuery.desc()
). -
orderByCreateTime
ModelQuery orderByCreateTime()Order by the creation time of the models (needs to be followed byQuery.asc()
orQuery.desc()
). -
orderByLastUpdateTime
ModelQuery orderByLastUpdateTime()Order by the last update time of the models (needs to be followed byQuery.asc()
orQuery.desc()
). -
orderByTenantId
ModelQuery orderByTenantId()Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).
-