public class GroupQueryImpl extends AbstractQuery<GroupQuery,Group> implements GroupQuery
AbstractQuery.NullHandlingOnOrder| Modifier and Type | Field and Description |
|---|---|
protected String |
id |
protected String |
name |
protected String |
nameLike |
protected String |
procDefId |
protected String |
type |
protected String |
userId |
commandContext, commandExecutor, databaseType, nullHandlingOnOrder, orderBy, orderProperty, resultType, SORTORDER_ASC, SORTORDER_DESCfirstResult, maxResults, parameter| Constructor and Description |
|---|
GroupQueryImpl() |
GroupQueryImpl(CommandContext commandContext) |
GroupQueryImpl(CommandExecutor commandExecutor) |
| Modifier and Type | Method and Description |
|---|---|
long |
executeCount(CommandContext commandContext) |
List<Group> |
executeList(CommandContext commandContext,
Page page)
Executes the actual query to retrieve the list of results.
|
String |
getId() |
String |
getName() |
String |
getNameLike() |
String |
getType() |
String |
getUserId() |
GroupQuery |
groupId(String id)
Only select
Groups with the given id. |
GroupQuery |
groupMember(String userId)
Only selects
Groups where the given user is a member of. |
GroupQuery |
groupName(String name)
Only select
Groups with the given name. |
GroupQuery |
groupNameLike(String nameLike)
Only select
Groups where the name matches the given parameter. |
GroupQuery |
groupType(String type)
Only select
Groups which have the given type. |
GroupQuery |
orderByGroupId()
Order by group id (needs to be followed by
Query.asc() or Query.desc()). |
GroupQuery |
orderByGroupName()
Order by group name (needs to be followed by
Query.asc() or Query.desc()). |
GroupQuery |
orderByGroupType()
Order by group type (needs to be followed by
Query.asc() or Query.desc()). |
GroupQuery |
potentialStarter(String procDefId)
Only select
GroupS that are potential starter for the given process definition. |
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 name
protected String nameLike
protected String type
protected String userId
protected String procDefId
public GroupQueryImpl()
public GroupQueryImpl(CommandContext commandContext)
public GroupQueryImpl(CommandExecutor commandExecutor)
public GroupQuery groupId(String id)
GroupQueryGroups with the given id.groupId in interface GroupQuerypublic GroupQuery groupName(String name)
GroupQueryGroups with the given name.groupName in interface GroupQuerypublic GroupQuery groupNameLike(String nameLike)
GroupQueryGroups where the name matches the given parameter.
The syntax to use is that of SQL, eg. %activiti%.groupNameLike in interface GroupQuerypublic GroupQuery groupType(String type)
GroupQueryGroups which have the given type.groupType in interface GroupQuerypublic GroupQuery groupMember(String userId)
GroupQueryGroups where the given user is a member of.groupMember in interface GroupQuerypublic GroupQuery potentialStarter(String procDefId)
GroupQueryGroupS that are potential starter for the given process definition.potentialStarter in interface GroupQuerypublic GroupQuery orderByGroupId()
GroupQueryQuery.asc() or Query.desc()).orderByGroupId in interface GroupQuerypublic GroupQuery orderByGroupName()
GroupQueryQuery.asc() or Query.desc()).orderByGroupName in interface GroupQuerypublic GroupQuery orderByGroupType()
GroupQueryQuery.asc() or Query.desc()).orderByGroupType in interface GroupQuerypublic long executeCount(CommandContext commandContext)
executeCount in class AbstractQuery<GroupQuery,Group>public List<Group> executeList(CommandContext commandContext, Page page)
AbstractQueryexecuteList in class AbstractQuery<GroupQuery,Group>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 String getType()
public String getUserId()
Copyright © 2016 Alfresco. All rights reserved.