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,Query<ModelQuery,,Model> Command<Object>,ModelQuery
- Author:
- Tijs Rademakers, Joram Barrez
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultTypeNested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected Integerprotected booleanFields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutorFields 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
ConstructorsConstructorDescriptionModelQueryImpl(CommandContext commandContext) ModelQueryImpl(CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptiondeployed()Only select models that are deployed (ie deploymentId != null)deploymentId(String deploymentId) Only select models that are the source for the provided deploymentlongexecuteCount(CommandContext commandContext) executeList(CommandContext commandContext) Executes the actual query to retrieve the list of results.getId()getKey()getName()static longbooleanbooleanisLatest()booleanbooleanOnly 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, singleResultMethods 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 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
-
ModelQueryImpl
-
-
Method Details
-
modelId
Description copied from interface:ModelQueryOnly select model with the given id.- Specified by:
modelIdin interfaceModelQuery
-
modelCategory
Description copied from interface:ModelQueryOnly select models with the given category.- Specified by:
modelCategoryin interfaceModelQuery
-
modelCategoryLike
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. %test%- Specified by:
modelCategoryLikein interfaceModelQuery
-
modelCategoryNotEquals
Description copied from interface:ModelQueryOnly select models that have a different category then the given one.- Specified by:
modelCategoryNotEqualsin interfaceModelQuery
-
modelName
Description copied from interface:ModelQueryOnly select models with the given name.- Specified by:
modelNamein interfaceModelQuery
-
modelNameLike
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. %test%- Specified by:
modelNameLikein interfaceModelQuery
-
modelKey
Description copied from interface:ModelQueryOnly selects models with the given key.- Specified by:
modelKeyin interfaceModelQuery
-
modelVersion
Description copied from interface:ModelQueryOnly select model with a certain version.- Specified by:
modelVersionin interfaceModelQuery
-
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
Description copied from interface:ModelQueryOnly select models that are the source for the provided deployment- Specified by:
deploymentIdin interfaceModelQuery
-
notDeployed
Description copied from interface:ModelQueryOnly select models that are not yet deployed- Specified by:
notDeployedin interfaceModelQuery
-
deployed
Description copied from interface:ModelQueryOnly select models that are deployed (ie deploymentId != null)- Specified by:
deployedin interfaceModelQuery
-
modelTenantId
Description copied from interface:ModelQueryOnly select models that have the given tenant id.- Specified by:
modelTenantIdin interfaceModelQuery
-
modelTenantIdLike
Description copied from interface:ModelQueryOnly select models with a tenant id like the given one.- Specified by:
modelTenantIdLikein interfaceModelQuery
-
modelWithoutTenantId
Description copied from interface:ModelQueryOnly select models that do not have a tenant id.- Specified by:
modelWithoutTenantIdin interfaceModelQuery
-
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
Description copied from interface:ModelQueryOrder by the id of the models (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByModelIdin interfaceModelQuery
-
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
Description copied from interface:ModelQueryOrder by the version of the models (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByModelVersionin interfaceModelQuery
-
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
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
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
Description copied from interface:ModelQueryOrder by tenant id (needs to be followed byQuery.asc()orQuery.desc()).- Specified by:
orderByTenantIdin interfaceModelQuery
-
executeCount
- Specified by:
executeCountin classAbstractQuery<ModelQuery,Model>
-
executeList
Description copied from class:AbstractQueryExecutes the actual query to retrieve the list of results.- Specified by:
executeListin classAbstractQuery<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()
-