public class ModelQueryImpl extends AbstractQuery<ModelQuery,Model> implements ModelQuery
Query.NullHandlingOnOrder
Modifier and Type | Field and 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 |
commandContext, commandExecutor, databaseType, nullHandlingOnOrder, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC
firstResult, maxResults, parameter
Constructor and Description |
---|
ModelQueryImpl() |
ModelQueryImpl(CommandContext commandContext) |
ModelQueryImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and 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 deployment
|
long |
executeCount(CommandContext commandContext) |
List<Model> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results.
|
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 deployed
|
ModelQuery |
orderByCreateTime()
Order by the creation time of the models (needs to be followed by
Query.asc() or Query.desc() ). |
ModelQuery |
orderByLastUpdateTime()
Order by the last update time of the models (needs to be followed by
Query.asc() or Query.desc() ). |
ModelQuery |
orderByModelCategory()
Order by the category of the models (needs to be followed by
Query.asc() or Query.desc() ). |
ModelQuery |
orderByModelId()
Order by the id of the models (needs to be followed by
Query.asc() or Query.desc() ). |
ModelQuery |
orderByModelKey()
Order by the key of the models (needs to be followed by
Query.asc() or Query.desc() ). |
ModelQuery |
orderByModelName()
Order by the name of the models (needs to be followed by
Query.asc() or Query.desc() ). |
ModelQuery |
orderByModelVersion()
Order by the version of the models (needs to be followed by
Query.asc() or Query.desc() ). |
ModelQuery |
orderByTenantId()
Order by tenant id (needs to be followed by
Query.asc() or Query.desc() ). |
addOrder, asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, getDatabaseType, getOrderBy, getOrderByColumns, list, listPage, orderBy, orderBy, setCommandExecutor, setDatabaseType, singleResult
getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setFirstResult, setMaxResults, setParameter
protected String id
protected String category
protected String categoryLike
protected String categoryNotEquals
protected String name
protected String nameLike
protected String key
protected Integer version
protected boolean latest
protected String deploymentId
protected boolean notDeployed
protected boolean deployed
protected String tenantId
protected String tenantIdLike
protected boolean withoutTenantId
public ModelQueryImpl()
public ModelQueryImpl(CommandContext commandContext)
public ModelQueryImpl(CommandExecutor commandExecutor)
public ModelQueryImpl modelId(String modelId)
ModelQuery
modelId
in interface ModelQuery
public ModelQueryImpl modelCategory(String category)
ModelQuery
modelCategory
in interface ModelQuery
public ModelQueryImpl modelCategoryLike(String categoryLike)
ModelQuery
modelCategoryLike
in interface ModelQuery
public ModelQueryImpl modelCategoryNotEquals(String categoryNotEquals)
ModelQuery
modelCategoryNotEquals
in interface ModelQuery
public ModelQueryImpl modelName(String name)
ModelQuery
modelName
in interface ModelQuery
public ModelQueryImpl modelNameLike(String nameLike)
ModelQuery
modelNameLike
in interface ModelQuery
public ModelQuery modelKey(String key)
ModelQuery
modelKey
in interface ModelQuery
public ModelQueryImpl modelVersion(Integer version)
ModelQuery
modelVersion
in interface ModelQuery
public ModelQuery latestVersion()
ModelQuery
latestVersion
in interface ModelQuery
public ModelQuery deploymentId(String deploymentId)
ModelQuery
deploymentId
in interface ModelQuery
public ModelQuery notDeployed()
ModelQuery
notDeployed
in interface ModelQuery
public ModelQuery deployed()
ModelQuery
deployed
in interface ModelQuery
public ModelQuery modelTenantId(String tenantId)
ModelQuery
modelTenantId
in interface ModelQuery
public ModelQuery modelTenantIdLike(String tenantIdLike)
ModelQuery
modelTenantIdLike
in interface ModelQuery
public ModelQuery modelWithoutTenantId()
ModelQuery
modelWithoutTenantId
in interface ModelQuery
public ModelQuery orderByModelCategory()
ModelQuery
Query.asc()
or Query.desc()
).orderByModelCategory
in interface ModelQuery
public ModelQuery orderByModelId()
ModelQuery
Query.asc()
or Query.desc()
).orderByModelId
in interface ModelQuery
public ModelQuery orderByModelKey()
ModelQuery
Query.asc()
or Query.desc()
).orderByModelKey
in interface ModelQuery
public ModelQuery orderByModelVersion()
ModelQuery
Query.asc()
or Query.desc()
).orderByModelVersion
in interface ModelQuery
public ModelQuery orderByModelName()
ModelQuery
Query.asc()
or Query.desc()
).orderByModelName
in interface ModelQuery
public ModelQuery orderByCreateTime()
ModelQuery
Query.asc()
or Query.desc()
).orderByCreateTime
in interface ModelQuery
public ModelQuery orderByLastUpdateTime()
ModelQuery
Query.asc()
or Query.desc()
).orderByLastUpdateTime
in interface ModelQuery
public ModelQuery orderByTenantId()
ModelQuery
Query.asc()
or Query.desc()
).orderByTenantId
in interface ModelQuery
public long executeCount(CommandContext commandContext)
executeCount
in class AbstractQuery<ModelQuery,Model>
public List<Model> executeList(CommandContext commandContext, Page page)
AbstractQuery
executeList
in class AbstractQuery<ModelQuery,Model>
page
- used if the results must be paged. If null, no paging will be applied.public String getId()
public String getName()
public String getNameLike()
public Integer getVersion()
public String getCategory()
public String getCategoryLike()
public String getCategoryNotEquals()
public static long getSerialversionuid()
public String getKey()
public boolean isLatest()
public String getDeploymentId()
public boolean isNotDeployed()
public boolean isDeployed()
public String getTenantId()
public String getTenantIdLike()
public boolean isWithoutTenantId()
Copyright © 2016 Flowable. All rights reserved.