Package org.activiti.engine.impl
Class ModelQueryImpl
- java.lang.Object
-
- org.activiti.engine.impl.db.ListQueryParameterObject
-
- org.activiti.engine.impl.AbstractQuery<ModelQuery,Model>
-
- org.activiti.engine.impl.ModelQueryImpl
-
- All Implemented Interfaces:
java.io.Serializable,Command<java.lang.Object>,Query<ModelQuery,Model>,ModelQuery
public class ModelQueryImpl extends AbstractQuery<ModelQuery,Model> implements ModelQuery
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.activiti.engine.impl.AbstractQuery
AbstractQuery.NullHandlingOnOrder
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringcategoryprotected java.lang.StringcategoryLikeprotected java.lang.StringcategoryNotEqualsprotected booleandeployedprotected java.lang.StringdeploymentIdprotected java.lang.Stringidprotected java.lang.Stringkeyprotected booleanlatestprotected java.lang.Stringnameprotected java.lang.StringnameLikeprotected booleannotDeployedprotected java.lang.StringtenantIdprotected java.lang.StringtenantIdLikeprotected java.lang.Integerversionprotected booleanwithoutTenantId-
Fields inherited from class org.activiti.engine.impl.AbstractQuery
commandContext, commandExecutor, databaseType, nullHandlingOnOrder, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC
-
Fields inherited from class org.activiti.engine.impl.db.ListQueryParameterObject
firstResult, maxResults, parameter
-
-
Constructor Summary
Constructors Constructor Description ModelQueryImpl()ModelQueryImpl(CommandContext commandContext)ModelQueryImpl(CommandExecutor commandExecutor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete 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 deploymentlongexecuteCount(CommandContext commandContext)java.util.List<Model>executeList(CommandContext commandContext, Page page)Executes the actual query to retrieve the list of results.java.lang.StringgetCategory()java.lang.StringgetCategoryLike()java.lang.StringgetCategoryNotEquals()java.lang.StringgetDeploymentId()java.lang.StringgetId()java.lang.StringgetKey()java.lang.StringgetName()java.lang.StringgetNameLike()static longgetSerialversionuid()java.lang.StringgetTenantId()java.lang.StringgetTenantIdLike()java.lang.IntegergetVersion()booleanisDeployed()booleanisLatest()booleanisNotDeployed()booleanisWithoutTenantId()ModelQuerylatestVersion()Only select models which has the highest version.ModelQueryImplmodelCategory(java.lang.String category)Only select models with the given category.ModelQueryImplmodelCategoryLike(java.lang.String categoryLike)Only select models where the category matches the given parameter.ModelQueryImplmodelCategoryNotEquals(java.lang.String categoryNotEquals)Only select models that have a different category then the given one.ModelQueryImplmodelId(java.lang.String modelId)Only select model with the given id.ModelQuerymodelKey(java.lang.String key)Only selects models with the given key.ModelQueryImplmodelName(java.lang.String name)Only select models with the given name.ModelQueryImplmodelNameLike(java.lang.String nameLike)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.ModelQueryImplmodelVersion(java.lang.Integer version)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()).-
Methods inherited from class org.activiti.engine.impl.AbstractQuery
addOrder, asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, getDatabaseType, getOrderBy, getOrderByColumns, list, listPage, orderBy, orderBy, setCommandExecutor, setDatabaseType, singleResult
-
Methods inherited from class org.activiti.engine.impl.db.ListQueryParameterObject
getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setFirstResult, setMaxResults, setParameter
-
-
-
-
Field Detail
-
id
protected java.lang.String id
-
category
protected java.lang.String category
-
categoryLike
protected java.lang.String categoryLike
-
categoryNotEquals
protected java.lang.String categoryNotEquals
-
name
protected java.lang.String name
-
nameLike
protected java.lang.String nameLike
-
key
protected java.lang.String key
-
version
protected java.lang.Integer version
-
latest
protected boolean latest
-
deploymentId
protected java.lang.String deploymentId
-
notDeployed
protected boolean notDeployed
-
deployed
protected boolean deployed
-
tenantId
protected java.lang.String tenantId
-
tenantIdLike
protected java.lang.String tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId
-
-
Constructor Detail
-
ModelQueryImpl
public ModelQueryImpl()
-
ModelQueryImpl
public ModelQueryImpl(CommandContext commandContext)
-
ModelQueryImpl
public ModelQueryImpl(CommandExecutor commandExecutor)
-
-
Method Detail
-
modelId
public ModelQueryImpl modelId(java.lang.String modelId)
Description copied from interface:ModelQueryOnly select model with the given id.- Specified by:
modelIdin interfaceModelQuery
-
modelCategory
public ModelQueryImpl modelCategory(java.lang.String category)
Description copied from interface:ModelQueryOnly select models with the given category.- Specified by:
modelCategoryin interfaceModelQuery
-
modelCategoryLike
public ModelQueryImpl modelCategoryLike(java.lang.String categoryLike)
Description copied from interface:ModelQueryOnly select models where the category matches the given parameter. The syntax that should be used is the same as in SQL, eg. %activiti%- Specified by:
modelCategoryLikein interfaceModelQuery
-
modelCategoryNotEquals
public ModelQueryImpl modelCategoryNotEquals(java.lang.String categoryNotEquals)
Description copied from interface:ModelQueryOnly select models that have a different category then the given one.- Specified by:
modelCategoryNotEqualsin interfaceModelQuery
-
modelName
public ModelQueryImpl modelName(java.lang.String name)
Description copied from interface:ModelQueryOnly select models with the given name.- Specified by:
modelNamein interfaceModelQuery
-
modelNameLike
public ModelQueryImpl modelNameLike(java.lang.String nameLike)
Description copied from interface:ModelQueryOnly select models where the name matches the given parameter. The syntax that should be used is the same as in SQL, eg. %activiti%- Specified by:
modelNameLikein interfaceModelQuery
-
modelKey
public ModelQuery modelKey(java.lang.String key)
Description copied from interface:ModelQueryOnly selects models with the given key.- Specified by:
modelKeyin interfaceModelQuery
-
modelVersion
public ModelQueryImpl modelVersion(java.lang.Integer version)
Description copied from interface:ModelQueryOnly select model with a certain version.- Specified by:
modelVersionin interfaceModelQuery
-
latestVersion
public ModelQuery latestVersion()
Description copied from interface:ModelQueryOnly 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)- Specified by:
latestVersionin interfaceModelQuery
-
deploymentId
public ModelQuery deploymentId(java.lang.String deploymentId)
Description copied from interface:ModelQueryOnly select models that are the source for the provided deployment- Specified by:
deploymentIdin interfaceModelQuery
-
notDeployed
public ModelQuery notDeployed()
Description copied from interface:ModelQueryOnly select models that are not yet deployed- Specified by:
notDeployedin interfaceModelQuery
-
deployed
public ModelQuery deployed()
Description copied from interface:ModelQueryOnly select models that are deployed (ie deploymentId != null)- Specified by:
deployedin interfaceModelQuery
-
modelTenantId
public ModelQuery modelTenantId(java.lang.String tenantId)
Description copied from interface:ModelQueryOnly select models that have the given tenant id.- Specified by:
modelTenantIdin interfaceModelQuery
-
modelTenantIdLike
public ModelQuery modelTenantIdLike(java.lang.String tenantIdLike)
Description copied from interface:ModelQueryOnly select models with a tenant id like the given one.- Specified by:
modelTenantIdLikein interfaceModelQuery
-
modelWithoutTenantId
public ModelQuery modelWithoutTenantId()
Description copied from interface:ModelQueryOnly select models that do not have a tenant id.- Specified by:
modelWithoutTenantIdin interfaceModelQuery
-
orderByModelCategory
public ModelQuery orderByModelCategory()
Description copied from interface:ModelQueryOrder by the category of the models (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByModelCategoryin interfaceModelQuery
-
orderByModelId
public ModelQuery orderByModelId()
Description copied from interface:ModelQueryOrder by the id of the models (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByModelIdin interfaceModelQuery
-
orderByModelKey
public ModelQuery orderByModelKey()
Description copied from interface:ModelQueryOrder by the key of the models (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByModelKeyin interfaceModelQuery
-
orderByModelVersion
public ModelQuery orderByModelVersion()
Description copied from interface:ModelQueryOrder by the version of the models (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByModelVersionin interfaceModelQuery
-
orderByModelName
public ModelQuery orderByModelName()
Description copied from interface:ModelQueryOrder by the name of the models (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByModelNamein interfaceModelQuery
-
orderByCreateTime
public ModelQuery orderByCreateTime()
Description copied from interface:ModelQueryOrder by the creation time of the models (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByCreateTimein interfaceModelQuery
-
orderByLastUpdateTime
public ModelQuery orderByLastUpdateTime()
Description copied from interface:ModelQueryOrder by the last update time of the models (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByLastUpdateTimein interfaceModelQuery
-
orderByTenantId
public ModelQuery orderByTenantId()
Description copied from interface:ModelQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceModelQuery
-
executeCount
public long executeCount(CommandContext commandContext)
- Specified by:
executeCountin classAbstractQuery<ModelQuery,Model>
-
executeList
public java.util.List<Model> executeList(CommandContext commandContext, Page page)
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<ModelQuery,Model>page- used if the results must be paged. If null, no paging will be applied.
-
getId
public java.lang.String getId()
-
getName
public java.lang.String getName()
-
getNameLike
public java.lang.String getNameLike()
-
getVersion
public java.lang.Integer getVersion()
-
getCategory
public java.lang.String getCategory()
-
getCategoryLike
public java.lang.String getCategoryLike()
-
getCategoryNotEquals
public java.lang.String getCategoryNotEquals()
-
getSerialversionuid
public static long getSerialversionuid()
-
getKey
public java.lang.String getKey()
-
isLatest
public boolean isLatest()
-
getDeploymentId
public java.lang.String getDeploymentId()
-
isNotDeployed
public boolean isNotDeployed()
-
isDeployed
public boolean isDeployed()
-
getTenantId
public java.lang.String getTenantId()
-
getTenantIdLike
public java.lang.String getTenantIdLike()
-
isWithoutTenantId
public boolean isWithoutTenantId()
-
-