public class ModelQueryImpl extends AbstractQuery<ModelQuery,Model> implements ModelQuery
AbstractQuery.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_DESCfirstResult, 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 |
getId() |
String |
getName() |
String |
getNameLike() |
Integer |
getVersion() |
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, singleResultgetFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setFirstResult, setMaxResults, setParameterprotected 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)
ModelQuerymodelId in interface ModelQuerypublic ModelQueryImpl modelCategory(String category)
ModelQuerymodelCategory in interface ModelQuerypublic ModelQueryImpl modelCategoryLike(String categoryLike)
ModelQuerymodelCategoryLike in interface ModelQuerypublic ModelQueryImpl modelCategoryNotEquals(String categoryNotEquals)
ModelQuerymodelCategoryNotEquals in interface ModelQuerypublic ModelQueryImpl modelName(String name)
ModelQuerymodelName in interface ModelQuerypublic ModelQueryImpl modelNameLike(String nameLike)
ModelQuerymodelNameLike in interface ModelQuerypublic ModelQuery modelKey(String key)
ModelQuerymodelKey in interface ModelQuerypublic ModelQueryImpl modelVersion(Integer version)
ModelQuerymodelVersion in interface ModelQuerypublic ModelQuery latestVersion()
ModelQuerylatestVersion in interface ModelQuerypublic ModelQuery deploymentId(String deploymentId)
ModelQuerydeploymentId in interface ModelQuerypublic ModelQuery notDeployed()
ModelQuerynotDeployed in interface ModelQuerypublic ModelQuery deployed()
ModelQuerydeployed in interface ModelQuerypublic ModelQuery modelTenantId(String tenantId)
ModelQuerymodelTenantId in interface ModelQuerypublic ModelQuery modelTenantIdLike(String tenantIdLike)
ModelQuerymodelTenantIdLike in interface ModelQuerypublic ModelQuery modelWithoutTenantId()
ModelQuerymodelWithoutTenantId in interface ModelQuerypublic ModelQuery orderByModelCategory()
ModelQueryQuery.asc() or Query.desc()).orderByModelCategory in interface ModelQuerypublic ModelQuery orderByModelId()
ModelQueryQuery.asc() or Query.desc()).orderByModelId in interface ModelQuerypublic ModelQuery orderByModelKey()
ModelQueryQuery.asc() or Query.desc()).orderByModelKey in interface ModelQuerypublic ModelQuery orderByModelVersion()
ModelQueryQuery.asc() or Query.desc()).orderByModelVersion in interface ModelQuerypublic ModelQuery orderByModelName()
ModelQueryQuery.asc() or Query.desc()).orderByModelName in interface ModelQuerypublic ModelQuery orderByCreateTime()
ModelQueryQuery.asc() or Query.desc()).orderByCreateTime in interface ModelQuerypublic ModelQuery orderByLastUpdateTime()
ModelQueryQuery.asc() or Query.desc()).orderByLastUpdateTime in interface ModelQuerypublic ModelQuery orderByTenantId()
ModelQueryQuery.asc() or Query.desc()).orderByTenantId in interface ModelQuerypublic long executeCount(CommandContext commandContext)
executeCount in class AbstractQuery<ModelQuery,Model>public List<Model> executeList(CommandContext commandContext, Page page)
AbstractQueryexecuteList 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()
Copyright © 2016 Alfresco. All rights reserved.