Package org.activiti.engine.repository
Interface ModelQuery
-
- All Superinterfaces:
Query<ModelQuery,Model>
- All Known Implementing Classes:
ModelQueryImpl
@Internal public interface ModelQuery extends Query<ModelQuery,Model>
Allows programmatic querying ofModels.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ModelQuerydeployed()Only select models that are deployed (ie deploymentId != null)ModelQuerydeploymentId(java.lang.String deploymentId)Only select models that are the source for the provided deploymentModelQuerylatestVersion()Only select models which has the highest version.ModelQuerymodelCategory(java.lang.String modelCategory)Only select models with the given category.ModelQuerymodelCategoryLike(java.lang.String modelCategoryLike)Only select models where the category matches the given parameter.ModelQuerymodelCategoryNotEquals(java.lang.String categoryNotEquals)Only select models that have a different category then the given one.ModelQuerymodelId(java.lang.String modelId)Only select model with the given id.ModelQuerymodelKey(java.lang.String key)Only selects models with the given key.ModelQuerymodelName(java.lang.String modelName)Only select models with the given name.ModelQuerymodelNameLike(java.lang.String modelNameLike)Only select models where the name matches the given parameter.ModelQuerymodelTenantId(java.lang.String tenantId)Only select models that have the given tenant id.ModelQuerymodelTenantIdLike(java.lang.String tenantIdLike)Only select models with a tenant id like the given one.ModelQuerymodelVersion(java.lang.Integer modelVersion)Only select model with a certain version.ModelQuerymodelWithoutTenantId()Only select models that do not have a tenant id.ModelQuerynotDeployed()Only select models that are not yet deployedModelQueryorderByCreateTime()Order by the creation time of the models (needs to be followed byQuery.asc()orQuery.desc()).ModelQueryorderByLastUpdateTime()Order by the last update time of the models (needs to be followed byQuery.asc()orQuery.desc()).ModelQueryorderByModelCategory()Order by the category of the models (needs to be followed byQuery.asc()orQuery.desc()).ModelQueryorderByModelId()Order by the id of the models (needs to be followed byQuery.asc()orQuery.desc()).ModelQueryorderByModelKey()Order by the key of the models (needs to be followed byQuery.asc()orQuery.desc()).ModelQueryorderByModelName()Order by the name of the models (needs to be followed byQuery.asc()orQuery.desc()).ModelQueryorderByModelVersion()Order by the version of the models (needs to be followed byQuery.asc()orQuery.desc()).ModelQueryorderByTenantId()Order by tenant id (needs to be followed byQuery.asc()orQuery.desc()).
-
-
-
Method Detail
-
modelId
ModelQuery modelId(java.lang.String modelId)
Only select model with the given id.
-
modelCategory
ModelQuery modelCategory(java.lang.String modelCategory)
Only select models with the given category.
-
modelCategoryLike
ModelQuery modelCategoryLike(java.lang.String modelCategoryLike)
Only select models where the category matches the given parameter. The syntax that should be used is the same as in SQL, eg. %activiti%
-
modelCategoryNotEquals
ModelQuery modelCategoryNotEquals(java.lang.String categoryNotEquals)
Only select models that have a different category then the given one.
-
modelName
ModelQuery modelName(java.lang.String modelName)
Only select models with the given name.
-
modelNameLike
ModelQuery modelNameLike(java.lang.String modelNameLike)
Only select models where the name matches the given parameter. The syntax that should be used is the same as in SQL, eg. %activiti%
-
modelKey
ModelQuery modelKey(java.lang.String key)
Only selects models with the given key.
-
modelVersion
ModelQuery modelVersion(java.lang.Integer 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
ModelQuery deploymentId(java.lang.String 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
ModelQuery modelTenantId(java.lang.String tenantId)
Only select models that have the given tenant id.
-
modelTenantIdLike
ModelQuery modelTenantIdLike(java.lang.String tenantIdLike)
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()).
-
-