org.activiti.engine.impl
类 ModelQueryImpl

java.lang.Object
  继承者 org.activiti.engine.impl.db.ListQueryParameterObject
      继承者 org.activiti.engine.impl.AbstractQuery<ModelQuery,Model>
          继承者 org.activiti.engine.impl.ModelQueryImpl
所有已实现的接口:
Serializable, Command<Object>, Query<ModelQuery,Model>, ModelQuery

public class ModelQueryImpl
extends AbstractQuery<ModelQuery,Model>
implements ModelQuery

作者:
Tijs Rademakers, Joram Barrez
另请参见:
序列化表格

字段摘要
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  Integer version
           
 
从类 org.activiti.engine.impl.AbstractQuery 继承的字段
commandContext, commandExecutor, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESC
 
从类 org.activiti.engine.impl.db.ListQueryParameterObject 继承的字段
databaseType, firstResult, maxResults, parameter
 
构造方法摘要
ModelQueryImpl()
           
ModelQueryImpl(CommandContext commandContext)
           
ModelQueryImpl(CommandExecutor commandExecutor)
           
 
方法摘要
 ModelQuery deployed()
          Only select models that are deployed (ie deploymentId !
 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.
 ModelQueryImpl modelVersion(Integer version)
          Only select model with a certain version.
 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()).
 
从类 org.activiti.engine.impl.AbstractQuery 继承的方法
addOrder, asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, getOrderBy, list, listPage, orderBy, setCommandExecutor, singleResult
 
从类 org.activiti.engine.impl.db.ListQueryParameterObject 继承的方法
getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getParameter, setDatabaseType, setFirstResult, setMaxResults, setParameter
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 org.activiti.engine.query.Query 继承的方法
asc, count, desc, list, listPage, singleResult
 

字段详细信息

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
构造方法详细信息

ModelQueryImpl

public ModelQueryImpl()

ModelQueryImpl

public ModelQueryImpl(CommandContext commandContext)

ModelQueryImpl

public ModelQueryImpl(CommandExecutor commandExecutor)
方法详细信息

modelId

public ModelQueryImpl modelId(String modelId)
从接口 ModelQuery 复制的描述
Only select model with the given id.

指定者:
接口 ModelQuery 中的 modelId

modelCategory

public ModelQueryImpl modelCategory(String category)
从接口 ModelQuery 复制的描述
Only select models with the given category.

指定者:
接口 ModelQuery 中的 modelCategory

modelCategoryLike

public ModelQueryImpl modelCategoryLike(String categoryLike)
从接口 ModelQuery 复制的描述
Only select models where the category matches the given parameter. The syntax that should be used is the same as in SQL, eg. %activiti%

指定者:
接口 ModelQuery 中的 modelCategoryLike

modelCategoryNotEquals

public ModelQueryImpl modelCategoryNotEquals(String categoryNotEquals)
从接口 ModelQuery 复制的描述
Only select models that have a different category then the given one.

指定者:
接口 ModelQuery 中的 modelCategoryNotEquals

modelName

public ModelQueryImpl modelName(String name)
从接口 ModelQuery 复制的描述
Only select models with the given name.

指定者:
接口 ModelQuery 中的 modelName

modelNameLike

public ModelQueryImpl modelNameLike(String nameLike)
从接口 ModelQuery 复制的描述
Only select models where the name matches the given parameter. The syntax that should be used is the same as in SQL, eg. %activiti%

指定者:
接口 ModelQuery 中的 modelNameLike

modelKey

public ModelQuery modelKey(String key)
从接口 ModelQuery 复制的描述
Only selects models with the given key.

指定者:
接口 ModelQuery 中的 modelKey

modelVersion

public ModelQueryImpl modelVersion(Integer version)
从接口 ModelQuery 复制的描述
Only select model with a certain version.

指定者:
接口 ModelQuery 中的 modelVersion

latestVersion

public ModelQuery latestVersion()
从接口 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)

指定者:
接口 ModelQuery 中的 latestVersion

deploymentId

public ModelQuery deploymentId(String deploymentId)
从接口 ModelQuery 复制的描述
Only select models that are the source for the provided deployment

指定者:
接口 ModelQuery 中的 deploymentId

notDeployed

public ModelQuery notDeployed()
从接口 ModelQuery 复制的描述
Only select models that are not yet deployed

指定者:
接口 ModelQuery 中的 notDeployed

deployed

public ModelQuery deployed()
从接口 ModelQuery 复制的描述
Only select models that are deployed (ie deploymentId != null)

指定者:
接口 ModelQuery 中的 deployed

orderByModelCategory

public ModelQuery orderByModelCategory()
从接口 ModelQuery 复制的描述
Order by the category of the models (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 ModelQuery 中的 orderByModelCategory

orderByModelId

public ModelQuery orderByModelId()
从接口 ModelQuery 复制的描述
Order by the id of the models (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 ModelQuery 中的 orderByModelId

orderByModelKey

public ModelQuery orderByModelKey()
从接口 ModelQuery 复制的描述
Order by the key of the models (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 ModelQuery 中的 orderByModelKey

orderByModelVersion

public ModelQuery orderByModelVersion()
从接口 ModelQuery 复制的描述
Order by the version of the models (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 ModelQuery 中的 orderByModelVersion

orderByModelName

public ModelQuery orderByModelName()
从接口 ModelQuery 复制的描述
Order by the name of the models (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 ModelQuery 中的 orderByModelName

orderByCreateTime

public ModelQuery orderByCreateTime()
从接口 ModelQuery 复制的描述
Order by the creation time of the models (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 ModelQuery 中的 orderByCreateTime

orderByLastUpdateTime

public ModelQuery orderByLastUpdateTime()
从接口 ModelQuery 复制的描述
Order by the last update time of the models (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 ModelQuery 中的 orderByLastUpdateTime

executeCount

public long executeCount(CommandContext commandContext)
指定者:
AbstractQuery<ModelQuery,Model> 中的 executeCount

executeList

public List<Model> executeList(CommandContext commandContext,
                               Page page)
从类 AbstractQuery 复制的描述
Executes the actual query to retrieve the list of results.

指定者:
AbstractQuery<ModelQuery,Model> 中的 executeList
page - used if the results must be paged. If null, no paging will be applied.

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()


Copyright © 2013 Alfresco. All rights reserved.