Package org.flowable.idm.engine.impl
Class GroupQueryImpl
java.lang.Object
org.flowable.common.engine.impl.db.ListQueryParameterObject
org.flowable.common.engine.impl.query.AbstractQuery<GroupQuery,Group>
org.flowable.idm.engine.impl.GroupQueryImpl
- All Implemented Interfaces:
Serializable
,CacheAwareQuery<GroupEntity>
,Query<GroupQuery,
,Group> Command<Object>
,GroupQuery
public class GroupQueryImpl
extends AbstractQuery<GroupQuery,Group>
implements GroupQuery, CacheAwareQuery<GroupEntity>
- Author:
- Joram Barrez
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultType
Nested classes/interfaces inherited from interface org.flowable.common.engine.api.query.Query
Query.NullHandlingOnOrder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
protected String
protected String
Fields inherited from class org.flowable.common.engine.impl.query.AbstractQuery
commandContext, commandExecutor
Fields inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
databaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC
-
Constructor Summary
ConstructorsConstructorDescriptionGroupQueryImpl
(CommandContext commandContext) GroupQueryImpl
(CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionlong
executeCount
(CommandContext commandContext) executeList
(CommandContext commandContext) Executes the actual query to retrieve the list of results.getId()
getIds()
getName()
getType()
Only selectGroup
s with the given id.Only selectGroup
s with the given ids.groupMember
(String userId) Only selectsGroup
s where the given user is a member of.groupMembers
(List<String> userIds) Only selectsGroup
s where the given users are a member of.Only selectGroup
s with the given name.groupNameLike
(String nameLike) Only selectGroup
s where the name matches the given parameter.groupNameLikeIgnoreCase
(String nameLikeIgnoreCase) Only selectGroup
s where the name matches the given parameter (ignoring case).Only selectGroup
s which have the given type.Order by group id (needs to be followed byQuery.asc()
orQuery.desc()
).Order by group name (needs to be followed byQuery.asc()
orQuery.desc()
).Order by group type (needs to be followed byQuery.asc()
orQuery.desc()
).Methods inherited from class org.flowable.common.engine.impl.query.AbstractQuery
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResult
Methods inherited from class org.flowable.common.engine.impl.db.ListQueryParameterObject
addOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setParameter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.flowable.common.engine.api.query.CacheAwareQuery
enhanceCachedValue
-
Field Details
-
id
-
ids
-
name
-
nameLike
-
nameLikeIgnoreCase
-
type
-
userId
-
userIds
-
-
Constructor Details
-
GroupQueryImpl
public GroupQueryImpl() -
GroupQueryImpl
-
GroupQueryImpl
-
-
Method Details
-
groupId
Description copied from interface:GroupQuery
Only selectGroup
s with the given id.- Specified by:
groupId
in interfaceGroupQuery
-
groupIds
Description copied from interface:GroupQuery
Only selectGroup
s with the given ids.- Specified by:
groupIds
in interfaceGroupQuery
-
groupName
Description copied from interface:GroupQuery
Only selectGroup
s with the given name.- Specified by:
groupName
in interfaceGroupQuery
-
groupNameLike
Description copied from interface:GroupQuery
Only selectGroup
s where the name matches the given parameter. The syntax to use is that of SQL, eg. %test%.- Specified by:
groupNameLike
in interfaceGroupQuery
-
groupNameLikeIgnoreCase
Description copied from interface:GroupQuery
Only selectGroup
s where the name matches the given parameter (ignoring case). The syntax to use is that of SQL, eg. %test%.- Specified by:
groupNameLikeIgnoreCase
in interfaceGroupQuery
-
groupType
Description copied from interface:GroupQuery
Only selectGroup
s which have the given type.- Specified by:
groupType
in interfaceGroupQuery
-
groupMember
Description copied from interface:GroupQuery
Only selectsGroup
s where the given user is a member of.- Specified by:
groupMember
in interfaceGroupQuery
-
groupMembers
Description copied from interface:GroupQuery
Only selectsGroup
s where the given users are a member of.- Specified by:
groupMembers
in interfaceGroupQuery
-
orderByGroupId
Description copied from interface:GroupQuery
Order by group id (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByGroupId
in interfaceGroupQuery
-
orderByGroupName
Description copied from interface:GroupQuery
Order by group name (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByGroupName
in interfaceGroupQuery
-
orderByGroupType
Description copied from interface:GroupQuery
Order by group type (needs to be followed byQuery.asc()
orQuery.desc()
).- Specified by:
orderByGroupType
in interfaceGroupQuery
-
executeCount
- Specified by:
executeCount
in classAbstractQuery<GroupQuery,
Group>
-
executeList
Description copied from class:AbstractQuery
Executes the actual query to retrieve the list of results.- Specified by:
executeList
in classAbstractQuery<GroupQuery,
Group>
-
getId
- Specified by:
getId
in interfaceCacheAwareQuery<GroupEntity>
-
getIds
-
getName
-
getNameLike
-
getNameLikeIgnoreCase
-
getType
-
getUserId
-
getUserIds
-