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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.db.ListQueryParameterObject.OrderBy, org.flowable.common.engine.impl.db.ListQueryParameterObject.ResultType
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
org.flowable.common.engine.api.query.Query.NullHandlingOnOrder
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected boolean
protected String
protected String
protected String
protected boolean
protected String
protected String
protected boolean
protected String
protected String
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
ConstructorDescriptionModelQueryImpl
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) ModelQueryImpl
(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor) -
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 deploymentlong
executeCount
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) executeList
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) getId()
getKey()
getName()
static long
boolean
boolean
isLatest()
boolean
boolean
Only select models which has the highest version.modelCategory
(String category) Only select models with the given category.modelCategoryLike
(String categoryLike) 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 nameLike) 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 version) 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 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.flowable.common.engine.api.query.Query
asc, count, desc, list, listPage, orderBy, orderBy, singleResult
-
Field Details
-
id
-
category
-
categoryLike
-
categoryNotEquals
-
name
-
nameLike
-
key
-
version
-
latest
protected boolean latest -
deploymentId
-
notDeployed
protected boolean notDeployed -
deployed
protected boolean deployed -
tenantId
-
tenantIdLike
-
withoutTenantId
protected boolean withoutTenantId
-
-
Constructor Details
-
ModelQueryImpl
public ModelQueryImpl() -
ModelQueryImpl
public ModelQueryImpl(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
ModelQueryImpl
public ModelQueryImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)
-
-
Method Details
-
modelId
Description copied from interface:ModelQuery
Only select model with the given id.- Specified by:
modelId
in interfaceModelQuery
-
modelCategory
Description copied from interface:ModelQuery
Only select models with the given category.- Specified by:
modelCategory
in interfaceModelQuery
-
modelCategoryLike
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
Description copied from interface:ModelQuery
Only select models that have a different category then the given one.- Specified by:
modelCategoryNotEquals
in interfaceModelQuery
-
modelName
Description copied from interface:ModelQuery
Only select models with the given name.- Specified by:
modelName
in interfaceModelQuery
-
modelNameLike
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
Description copied from interface:ModelQuery
Only selects models with the given key.- Specified by:
modelKey
in interfaceModelQuery
-
modelVersion
Description copied from interface:ModelQuery
Only select model with a certain version.- Specified by:
modelVersion
in interfaceModelQuery
-
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
Description copied from interface:ModelQuery
Only select models that are the source for the provided deployment- Specified by:
deploymentId
in interfaceModelQuery
-
notDeployed
Description copied from interface:ModelQuery
Only select models that are not yet deployed- Specified by:
notDeployed
in interfaceModelQuery
-
deployed
Description copied from interface:ModelQuery
Only select models that are deployed (ie deploymentId != null)- Specified by:
deployed
in interfaceModelQuery
-
modelTenantId
Description copied from interface:ModelQuery
Only select models that have the given tenant id.- Specified by:
modelTenantId
in interfaceModelQuery
-
modelTenantIdLike
Description copied from interface:ModelQuery
Only select models with a tenant id like the given one.- Specified by:
modelTenantIdLike
in interfaceModelQuery
-
modelWithoutTenantId
Description copied from interface:ModelQuery
Only select models that do not have a tenant id.- Specified by:
modelWithoutTenantId
in interfaceModelQuery
-
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
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
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
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
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
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
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
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
-
getName
-
getNameLike
-
getVersion
-
getCategory
-
getCategoryLike
-
getCategoryNotEquals
-
getSerialversionuid
public static long getSerialversionuid() -
getKey
-
isLatest
public boolean isLatest() -
getDeploymentId
-
isNotDeployed
public boolean isNotDeployed() -
isDeployed
public boolean isDeployed() -
getTenantId
-
getTenantIdLike
-
isWithoutTenantId
public boolean isWithoutTenantId()
-