org.activiti.engine.impl
类 ProcessDefinitionQueryImpl

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

public class ProcessDefinitionQueryImpl
extends AbstractQuery<ProcessDefinitionQuery,ProcessDefinition>
implements ProcessDefinitionQuery

作者:
Tom Baeyens, Joram Barrez, Daniel Meyer, Saeid Mirzaei
另请参见:
序列化表格

字段摘要
protected  String authorizationUserId
           
protected  String category
           
protected  String categoryLike
           
protected  String categoryNotEquals
           
protected  String deploymentId
           
protected  String eventSubscriptionName
           
protected  String eventSubscriptionType
           
protected  String id
           
protected  String key
           
protected  String keyLike
           
protected  boolean latest
           
protected  String name
           
protected  String nameLike
           
protected  String procDefId
           
protected  String resourceName
           
protected  String resourceNameLike
           
protected  SuspensionState suspensionState
           
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
 
构造方法摘要
ProcessDefinitionQueryImpl()
           
ProcessDefinitionQueryImpl(CommandContext commandContext)
           
ProcessDefinitionQueryImpl(CommandExecutor commandExecutor)
           
 
方法摘要
 ProcessDefinitionQuery active()
          Only selects process definitions which are active
 void checkQueryOk()
           
 ProcessDefinitionQueryImpl deploymentId(String deploymentId)
          Only select process definitions that are deployed in a deployment with the given deployment id
 ProcessDefinitionQuery eventSubscription(String eventType, String eventName)
           
 long executeCount(CommandContext commandContext)
           
 List<ProcessDefinition> executeList(CommandContext commandContext, Page page)
          Executes the actual query to retrieve the list of results.
 List<String> getAuthorizationGroups()
           
 String getCategory()
           
 String getCategoryLike()
           
 String getCategoryNotEquals()
           
 String getDeploymentId()
           
 String getId()
           
 String getKey()
           
 String getKeyLike()
           
 String getName()
           
 String getNameLike()
           
 String getResourceName()
           
 String getResourceNameLike()
           
 SuspensionState getSuspensionState()
           
 Integer getVersion()
           
 boolean isLatest()
           
 ProcessDefinitionQueryImpl latestVersion()
          Only select the process definitions which are the latest deployed (ie. which have the highest version number for the given key).
 ProcessDefinitionQuery messageEventSubscription(String messageName)
           
 ProcessDefinitionQuery messageEventSubscriptionName(String messageName)
          Selects the single process definition which has a start message event with the messageName.
 ProcessDefinitionQuery orderByDeploymentId()
          Order by deployment id (needs to be followed by Query.asc() or Query.desc()).
 ProcessDefinitionQuery orderByProcessDefinitionCategory()
          Order by the category of the process definitions (needs to be followed by Query.asc() or Query.desc()).
 ProcessDefinitionQuery orderByProcessDefinitionId()
          Order by the id of the process definitions (needs to be followed by Query.asc() or Query.desc()).
 ProcessDefinitionQuery orderByProcessDefinitionKey()
          Order by process definition key (needs to be followed by Query.asc() or Query.desc()).
 ProcessDefinitionQuery orderByProcessDefinitionName()
          Order by the name of the process definitions (needs to be followed by Query.asc() or Query.desc()).
 ProcessDefinitionQuery orderByProcessDefinitionVersion()
          Order by the version of the process definitions (needs to be followed by Query.asc() or Query.desc()).
 ProcessDefinitionQueryImpl processDefinitionCategory(String category)
          Only select process definitions with the given category.
 ProcessDefinitionQueryImpl processDefinitionCategoryLike(String categoryLike)
          Only select process definitions where the category matches the given parameter.
 ProcessDefinitionQueryImpl processDefinitionCategoryNotEquals(String categoryNotEquals)
          Only select deployments that have a different category then the given one.
 ProcessDefinitionQueryImpl processDefinitionId(String processDefinitionId)
          Only select process definiton with the given id.
 ProcessDefinitionQueryImpl processDefinitionKey(String key)
          Only select process definition with the given key.
 ProcessDefinitionQueryImpl processDefinitionKeyLike(String keyLike)
          Only select process definitions where the key matches the given parameter.
 ProcessDefinitionQueryImpl processDefinitionName(String name)
          Only select process definitions with the given name.
 ProcessDefinitionQueryImpl processDefinitionNameLike(String nameLike)
          Only select process definitions where the name matches the given parameter.
 ProcessDefinitionQueryImpl processDefinitionResourceName(String resourceName)
          Only select process definition with the given resource name.
 ProcessDefinitionQueryImpl processDefinitionResourceNameLike(String resourceNameLike)
          Only select process definition with a resource name like the given .
 ProcessDefinitionQuery processDefinitionStarter(String procDefId)
           
 ProcessDefinitionQueryImpl processDefinitionVersion(Integer version)
          Only select process definition with a certain version.
 void setSuspensionState(SuspensionState suspensionState)
           
 ProcessDefinitionQueryImpl startableByUser(String userId)
          Only selects process definitions which given userId is authoriezed to start
 ProcessDefinitionQuery suspended()
          Only selects process definitions which are suspended
 
从类 org.activiti.engine.impl.AbstractQuery 继承的方法
addOrder, asc, 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

deploymentId

protected String deploymentId

key

protected String key

keyLike

protected String keyLike

resourceName

protected String resourceName

resourceNameLike

protected String resourceNameLike

version

protected Integer version

latest

protected boolean latest

suspensionState

protected SuspensionState suspensionState

authorizationUserId

protected String authorizationUserId

procDefId

protected String procDefId

eventSubscriptionName

protected String eventSubscriptionName

eventSubscriptionType

protected String eventSubscriptionType
构造方法详细信息

ProcessDefinitionQueryImpl

public ProcessDefinitionQueryImpl()

ProcessDefinitionQueryImpl

public ProcessDefinitionQueryImpl(CommandContext commandContext)

ProcessDefinitionQueryImpl

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

processDefinitionId

public ProcessDefinitionQueryImpl processDefinitionId(String processDefinitionId)
从接口 ProcessDefinitionQuery 复制的描述
Only select process definiton with the given id.

指定者:
接口 ProcessDefinitionQuery 中的 processDefinitionId

processDefinitionCategory

public ProcessDefinitionQueryImpl processDefinitionCategory(String category)
从接口 ProcessDefinitionQuery 复制的描述
Only select process definitions with the given category.

指定者:
接口 ProcessDefinitionQuery 中的 processDefinitionCategory

processDefinitionCategoryLike

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

指定者:
接口 ProcessDefinitionQuery 中的 processDefinitionCategoryLike

processDefinitionCategoryNotEquals

public ProcessDefinitionQueryImpl processDefinitionCategoryNotEquals(String categoryNotEquals)
从接口 ProcessDefinitionQuery 复制的描述
Only select deployments that have a different category then the given one.

指定者:
接口 ProcessDefinitionQuery 中的 processDefinitionCategoryNotEquals
另请参见:
DeploymentBuilder.category(String)

processDefinitionName

public ProcessDefinitionQueryImpl processDefinitionName(String name)
从接口 ProcessDefinitionQuery 复制的描述
Only select process definitions with the given name.

指定者:
接口 ProcessDefinitionQuery 中的 processDefinitionName

processDefinitionNameLike

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

指定者:
接口 ProcessDefinitionQuery 中的 processDefinitionNameLike

deploymentId

public ProcessDefinitionQueryImpl deploymentId(String deploymentId)
从接口 ProcessDefinitionQuery 复制的描述
Only select process definitions that are deployed in a deployment with the given deployment id

指定者:
接口 ProcessDefinitionQuery 中的 deploymentId

processDefinitionKey

public ProcessDefinitionQueryImpl processDefinitionKey(String key)
从接口 ProcessDefinitionQuery 复制的描述
Only select process definition with the given key.

指定者:
接口 ProcessDefinitionQuery 中的 processDefinitionKey

processDefinitionKeyLike

public ProcessDefinitionQueryImpl processDefinitionKeyLike(String keyLike)
从接口 ProcessDefinitionQuery 复制的描述
Only select process definitions where the key matches the given parameter. The syntax that should be used is the same as in SQL, eg. %activiti%

指定者:
接口 ProcessDefinitionQuery 中的 processDefinitionKeyLike

processDefinitionResourceName

public ProcessDefinitionQueryImpl processDefinitionResourceName(String resourceName)
从接口 ProcessDefinitionQuery 复制的描述
Only select process definition with the given resource name.

指定者:
接口 ProcessDefinitionQuery 中的 processDefinitionResourceName

processDefinitionResourceNameLike

public ProcessDefinitionQueryImpl processDefinitionResourceNameLike(String resourceNameLike)
从接口 ProcessDefinitionQuery 复制的描述
Only select process definition with a resource name like the given .

指定者:
接口 ProcessDefinitionQuery 中的 processDefinitionResourceNameLike

processDefinitionVersion

public ProcessDefinitionQueryImpl processDefinitionVersion(Integer version)
从接口 ProcessDefinitionQuery 复制的描述
Only select process definition with a certain version. Particulary useful when used in combination with ProcessDefinitionQuery.processDefinitionKey(String)

指定者:
接口 ProcessDefinitionQuery 中的 processDefinitionVersion

latestVersion

public ProcessDefinitionQueryImpl latestVersion()
从接口 ProcessDefinitionQuery 复制的描述
Only select the process definitions which are the latest deployed (ie. which have the highest version number for the given key). Can only be used in combination with ProcessDefinitionQuery.processDefinitionKey(String) of ProcessDefinitionQuery.processDefinitionKeyLike(String). Can also be used without any other criteria (ie. query.latest().list()), which will then give all the latest versions of all the deployed process definitions.

指定者:
接口 ProcessDefinitionQuery 中的 latestVersion

active

public ProcessDefinitionQuery active()
从接口 ProcessDefinitionQuery 复制的描述
Only selects process definitions which are active

指定者:
接口 ProcessDefinitionQuery 中的 active

suspended

public ProcessDefinitionQuery suspended()
从接口 ProcessDefinitionQuery 复制的描述
Only selects process definitions which are suspended

指定者:
接口 ProcessDefinitionQuery 中的 suspended

messageEventSubscription

public ProcessDefinitionQuery messageEventSubscription(String messageName)
指定者:
接口 ProcessDefinitionQuery 中的 messageEventSubscription
另请参见:
ProcessDefinitionQuery.messageEventSubscriptionName(String)

messageEventSubscriptionName

public ProcessDefinitionQuery messageEventSubscriptionName(String messageName)
从接口 ProcessDefinitionQuery 复制的描述
Selects the single process definition which has a start message event with the messageName.

指定者:
接口 ProcessDefinitionQuery 中的 messageEventSubscriptionName

processDefinitionStarter

public ProcessDefinitionQuery processDefinitionStarter(String procDefId)

eventSubscription

public ProcessDefinitionQuery eventSubscription(String eventType,
                                                String eventName)

getAuthorizationGroups

public List<String> getAuthorizationGroups()

orderByDeploymentId

public ProcessDefinitionQuery orderByDeploymentId()
从接口 ProcessDefinitionQuery 复制的描述
Order by deployment id (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 ProcessDefinitionQuery 中的 orderByDeploymentId

orderByProcessDefinitionKey

public ProcessDefinitionQuery orderByProcessDefinitionKey()
从接口 ProcessDefinitionQuery 复制的描述
Order by process definition key (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 ProcessDefinitionQuery 中的 orderByProcessDefinitionKey

orderByProcessDefinitionCategory

public ProcessDefinitionQuery orderByProcessDefinitionCategory()
从接口 ProcessDefinitionQuery 复制的描述
Order by the category of the process definitions (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 ProcessDefinitionQuery 中的 orderByProcessDefinitionCategory

orderByProcessDefinitionId

public ProcessDefinitionQuery orderByProcessDefinitionId()
从接口 ProcessDefinitionQuery 复制的描述
Order by the id of the process definitions (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 ProcessDefinitionQuery 中的 orderByProcessDefinitionId

orderByProcessDefinitionVersion

public ProcessDefinitionQuery orderByProcessDefinitionVersion()
从接口 ProcessDefinitionQuery 复制的描述
Order by the version of the process definitions (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 ProcessDefinitionQuery 中的 orderByProcessDefinitionVersion

orderByProcessDefinitionName

public ProcessDefinitionQuery orderByProcessDefinitionName()
从接口 ProcessDefinitionQuery 复制的描述
Order by the name of the process definitions (needs to be followed by Query.asc() or Query.desc()).

指定者:
接口 ProcessDefinitionQuery 中的 orderByProcessDefinitionName

executeCount

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

executeList

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

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

checkQueryOk

public void checkQueryOk()
覆盖:
AbstractQuery<ProcessDefinitionQuery,ProcessDefinition> 中的 checkQueryOk

getDeploymentId

public String getDeploymentId()

getId

public String getId()

getName

public String getName()

getNameLike

public String getNameLike()

getKey

public String getKey()

getKeyLike

public String getKeyLike()

getVersion

public Integer getVersion()

isLatest

public boolean isLatest()

getCategory

public String getCategory()

getCategoryLike

public String getCategoryLike()

getResourceName

public String getResourceName()

getResourceNameLike

public String getResourceNameLike()

getSuspensionState

public SuspensionState getSuspensionState()

setSuspensionState

public void setSuspensionState(SuspensionState suspensionState)

getCategoryNotEquals

public String getCategoryNotEquals()

startableByUser

public ProcessDefinitionQueryImpl startableByUser(String userId)
从接口 ProcessDefinitionQuery 复制的描述
Only selects process definitions which given userId is authoriezed to start

指定者:
接口 ProcessDefinitionQuery 中的 startableByUser


Copyright © 2013 Alfresco. All rights reserved.