Package org.flowable.engine.impl
Class ModelQueryImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.db.ListQueryParameterObject
-
- org.flowable.common.engine.impl.query.AbstractQuery<ModelQuery,Model>
-
- org.flowable.engine.impl.ModelQueryImpl
-
- All Implemented Interfaces:
Serializable
,org.flowable.common.engine.api.query.Query<ModelQuery,Model>
,org.flowable.common.engine.impl.interceptor.Command<Object>
,ModelQuery
public class ModelQueryImpl extends org.flowable.common.engine.impl.query.AbstractQuery<ModelQuery,Model> implements ModelQuery
- Author:
- Tijs Rademakers, Joram Barrez
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
category
protected String
categoryLike
protected String
categoryNotEquals
protected boolean
deployed
protected String
deploymentId
protected String
id
protected String
key
protected boolean
latest
protected String
name
protected String
nameLike
protected boolean
notDeployed
protected String
tenantId
protected String
tenantIdLike
protected Integer
version
protected boolean
withoutTenantId
-
Constructor Summary
Constructors Constructor Description ModelQueryImpl()
ModelQueryImpl(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
ModelQueryImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelQuery
deployed()
Only select models that are deployed (ie deploymentId != null)ModelQuery
deploymentId(String deploymentId)
Only select models that are the source for the provided deploymentlong
executeCount(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
List<Model>
executeList(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
String
getCategory()
String
getCategoryLike()
String
getCategoryNotEquals()
String
getDeploymentId()
String
getId()
String
getKey()
String
getName()
String
getNameLike()
static long
getSerialversionuid()
String
getTenantId()
String
getTenantIdLike()
Integer
getVersion()
boolean
isDeployed()
boolean
isLatest()
boolean
isNotDeployed()
boolean
isWithoutTenantId()
ModelQuery
latestVersion()
Only select models which has the highest version.ModelQueryImpl
modelCategory(String category)
Only select models with the given category.ModelQueryImpl
modelCategoryLike(String categoryLike)
Only select models where the category matches the given parameter.ModelQueryImpl
modelCategoryNotEquals(String categoryNotEquals)
Only select models that have a different category then the given one.ModelQueryImpl
modelId(String modelId)
Only select model with the given id.ModelQuery
modelKey(String key)
Only selects models with the given key.ModelQueryImpl
modelName(String name)
Only select models with the given name.ModelQueryImpl
modelNameLike(String nameLike)
Only select models where the name matches the given parameter.ModelQuery
modelTenantId(String tenantId)
Only select models that have the given tenant id.ModelQuery
modelTenantIdLike(String tenantIdLike)
Only select models with a tenant id like the given one.ModelQueryImpl
modelVersion(Integer version)
Only select model with a certain version.ModelQuery
modelWithoutTenantId()
Only select models that do not have a tenant id.ModelQuery
notDeployed()
Only select models that are not yet deployedModelQuery
orderByCreateTime()
Order by the creation time of the models (needs to be followed byQuery.asc()
orQuery.desc()
).ModelQuery
orderByLastUpdateTime()
Order by the last update time of the models (needs to be followed byQuery.asc()
orQuery.desc()
).ModelQuery
orderByModelCategory()
Order by the category of the models (needs to be followed byQuery.asc()
orQuery.desc()
).ModelQuery
orderByModelId()
Order by the id of the models (needs to be followed byQuery.asc()
orQuery.desc()
).ModelQuery
orderByModelKey()
Order by the key of the models (needs to be followed byQuery.asc()
orQuery.desc()
).ModelQuery
orderByModelName()
Order by the name of the models (needs to be followed byQuery.asc()
orQuery.desc()
).ModelQuery
orderByModelVersion()
Order by the version of the models (needs to be followed byQuery.asc()
orQuery.desc()
).ModelQuery
orderByTenantId()
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).-
Methods 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 Detail
-
id
protected String id
-
category
protected String category
-
categoryLike
protected String categoryLike
-
categoryNotEquals
protected String categoryNotEquals
-
name
protected String name
-
nameLike
protected String nameLike
-
key
protected String key
-
version
protected Integer version
-
latest
protected boolean latest
-
deploymentId
protected String deploymentId
-
notDeployed
protected boolean notDeployed
-
deployed
protected boolean deployed
-
tenantId
protected String tenantId
-
tenantIdLike
protected String tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId
-
-
Method Detail
-
modelId
public ModelQueryImpl modelId(String modelId)
Description copied from interface:ModelQuery
Only select model with the given id.- Specified by:
modelId
in interfaceModelQuery
-
modelCategory
public ModelQueryImpl modelCategory(String category)
Description copied from interface:ModelQuery
Only select models with the given category.- Specified by:
modelCategory
in interfaceModelQuery
-
modelCategoryLike
public ModelQueryImpl modelCategoryLike(String categoryLike)
Description copied from interface:ModelQuery
Only select models where the category matches the given parameter. The syntax that should be used is the same as in SQL, eg. %test%- Specified by:
modelCategoryLike
in interfaceModelQuery
-
modelCategoryNotEquals
public ModelQueryImpl modelCategoryNotEquals(String categoryNotEquals)
Description copied from interface:ModelQuery
Only select models that have a different category then the given one.- Specified by:
modelCategoryNotEquals
in interfaceModelQuery
-
modelName
public ModelQueryImpl modelName(String name)
Description copied from interface:ModelQuery
Only select models with the given name.- Specified by:
modelName
in interfaceModelQuery
-
modelNameLike
public ModelQueryImpl modelNameLike(String nameLike)
Description copied from interface:ModelQuery
Only select models where the name matches the given parameter. The syntax that should be used is the same as in SQL, eg. %test%- Specified by:
modelNameLike
in interfaceModelQuery
-
modelKey
public ModelQuery modelKey(String key)
Description copied from interface:ModelQuery
Only selects models with the given key.- Specified by:
modelKey
in interfaceModelQuery
-
modelVersion
public ModelQueryImpl modelVersion(Integer version)
Description copied from interface:ModelQuery
Only select model with a certain version.- Specified by:
modelVersion
in interfaceModelQuery
-
latestVersion
public ModelQuery latestVersion()
Description copied from interface:ModelQuery
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)- Specified by:
latestVersion
in interfaceModelQuery
-
deploymentId
public ModelQuery deploymentId(String deploymentId)
Description copied from interface:ModelQuery
Only select models that are the source for the provided deployment- Specified by:
deploymentId
in interfaceModelQuery
-
notDeployed
public ModelQuery notDeployed()
Description copied from interface:ModelQuery
Only select models that are not yet deployed- Specified by:
notDeployed
in interfaceModelQuery
-
deployed
public ModelQuery deployed()
Description copied from interface:ModelQuery
Only select models that are deployed (ie deploymentId != null)- Specified by:
deployed
in interfaceModelQuery
-
modelTenantId
public ModelQuery modelTenantId(String tenantId)
Description copied from interface:ModelQuery
Only select models that have the given tenant id.- Specified by:
modelTenantId
in interfaceModelQuery
-
modelTenantIdLike
public ModelQuery modelTenantIdLike(String tenantIdLike)
Description copied from interface:ModelQuery
Only select models with a tenant id like the given one.- Specified by:
modelTenantIdLike
in interfaceModelQuery
-
modelWithoutTenantId
public ModelQuery modelWithoutTenantId()
Description copied from interface:ModelQuery
Only select models that do not have a tenant id.- Specified by:
modelWithoutTenantId
in interfaceModelQuery
-
orderByModelCategory
public ModelQuery orderByModelCategory()
Description copied from interface:ModelQuery
Order by the category of the models (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByModelCategory
in interfaceModelQuery
-
orderByModelId
public ModelQuery orderByModelId()
Description copied from interface:ModelQuery
Order by the id of the models (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByModelId
in interfaceModelQuery
-
orderByModelKey
public ModelQuery orderByModelKey()
Description copied from interface:ModelQuery
Order by the key of the models (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByModelKey
in interfaceModelQuery
-
orderByModelVersion
public ModelQuery orderByModelVersion()
Description copied from interface:ModelQuery
Order by the version of the models (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByModelVersion
in interfaceModelQuery
-
orderByModelName
public ModelQuery orderByModelName()
Description copied from interface:ModelQuery
Order by the name of the models (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByModelName
in interfaceModelQuery
-
orderByCreateTime
public ModelQuery orderByCreateTime()
Description copied from interface:ModelQuery
Order by the creation time of the models (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByCreateTime
in interfaceModelQuery
-
orderByLastUpdateTime
public ModelQuery orderByLastUpdateTime()
Description copied from interface:ModelQuery
Order by the last update time of the models (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByLastUpdateTime
in interfaceModelQuery
-
orderByTenantId
public ModelQuery orderByTenantId()
Description copied from interface:ModelQuery
Order by tenant id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByTenantId
in interfaceModelQuery
-
executeCount
public long executeCount(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
- Specified by:
executeCount
in classorg.flowable.common.engine.impl.query.AbstractQuery<ModelQuery,Model>
-
executeList
public List<Model> executeList(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
- Specified by:
executeList
in classorg.flowable.common.engine.impl.query.AbstractQuery<ModelQuery,Model>
-
getId
public String getId()
-
getName
public String getName()
-
getNameLike
public String getNameLike()
-
getVersion
public Integer getVersion()
-
getCategory
public String getCategory()
-
getCategoryLike
public String getCategoryLike()
-
getCategoryNotEquals
public String getCategoryNotEquals()
-
getSerialversionuid
public static long getSerialversionuid()
-
getKey
public String getKey()
-
isLatest
public boolean isLatest()
-
getDeploymentId
public String getDeploymentId()
-
isNotDeployed
public boolean isNotDeployed()
-
isDeployed
public boolean isDeployed()
-
getTenantId
public String getTenantId()
-
getTenantIdLike
public String getTenantIdLike()
-
isWithoutTenantId
public boolean isWithoutTenantId()
-
-