Class GroupUtil
com.liferay.portal.service.persistence.impl.GroupPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
addOrganization
(long pk, long organizationPK) Adds an association between the group and the organization.static boolean
addOrganization
(long pk, Organization organization) Adds an association between the group and the organization.static boolean
addOrganizations
(long pk, long[] organizationPKs) Adds an association between the group and the organizations.static boolean
addOrganizations
(long pk, List<Organization> organizations) Adds an association between the group and the organizations.static boolean
addRole
(long pk, long rolePK) Adds an association between the group and the role.static boolean
Adds an association between the group and the role.static boolean
addRoles
(long pk, long[] rolePKs) Adds an association between the group and the roles.static boolean
Adds an association between the group and the roles.static boolean
addUser
(long pk, long userPK) Adds an association between the group and the user.static boolean
Adds an association between the group and the user.static boolean
addUserGroup
(long pk, long userGroupPK) Adds an association between the group and the user group.static boolean
addUserGroup
(long pk, UserGroup userGroup) Adds an association between the group and the user group.static boolean
addUserGroups
(long pk, long[] userGroupPKs) Adds an association between the group and the user groups.static boolean
addUserGroups
(long pk, List<UserGroup> userGroups) Adds an association between the group and the user groups.static boolean
addUsers
(long pk, long[] userPKs) Adds an association between the group and the users.static boolean
Adds an association between the group and the users.static void
cacheResult
(Group group) Caches the group in the entity cache if it is enabled.static void
cacheResult
(List<Group> groups) Caches the groups in the entity cache if it is enabled.static void
static void
clearCache
(Group group) static void
clearOrganizations
(long pk) Clears all associations between the group and its organizations.static void
clearRoles
(long pk) Clears all associations between the group and its roles.static void
clearUserGroups
(long pk) Clears all associations between the group and its user groups.static void
clearUsers
(long pk) Clears all associations between the group and its users.static boolean
containsOrganization
(long pk, long organizationPK) Returnstrue
if the organization is associated with the group.static boolean
containsOrganizations
(long pk) Returnstrue
if the group has any organizations associated with it.static boolean
containsRole
(long pk, long rolePK) Returnstrue
if the role is associated with the group.static boolean
containsRoles
(long pk) Returnstrue
if the group has any roles associated with it.static boolean
containsUser
(long pk, long userPK) Returnstrue
if the user is associated with the group.static boolean
containsUserGroup
(long pk, long userGroupPK) Returnstrue
if the user group is associated with the group.static boolean
containsUserGroups
(long pk) Returnstrue
if the group has any user groups associated with it.static boolean
containsUsers
(long pk) Returnstrue
if the group has any users associated with it.static int
countAll()
Returns the number of groups.static int
countByC_A
(long companyId, boolean active) Returns the number of groups where companyId = ? and active = ?.static int
countByC_C
(long companyId, long classNameId) Returns the number of groups where companyId = ? and classNameId = ?.static int
countByC_C_C
(long companyId, long classNameId, long classPK) Returns the number of groups where companyId = ? and classNameId = ? and classPK = ?.static int
countByC_C_L_GK
(long companyId, long classNameId, long liveGroupId, String groupKey) Returns the number of groups where companyId = ? and classNameId = ? and liveGroupId = ? and groupKey = ?.static int
countByC_C_P
(long companyId, long classNameId, long parentGroupId) Returns the number of groups where companyId = ? and classNameId = ? and parentGroupId = ?.static int
countByC_C_S
(long companyId, long classNameId, boolean site) Returns the number of groups where companyId = ? and classNameId = ? and site = ?.static int
countByC_CPK
(long classNameId, long classPK) Returns the number of groups where classNameId = ? and classPK = ?.static int
countByC_F
(long companyId, String friendlyURL) Returns the number of groups where companyId = ? and friendlyURL = ?.static int
countByC_GK
(long companyId, String groupKey) Returns the number of groups where companyId = ? and groupKey = ?.static int
countByC_GK
(long companyId, String[] groupKeys) Returns the number of groups where companyId = ? and groupKey = any ?.static int
countByC_L_GK
(long companyId, long liveGroupId, String groupKey) Returns the number of groups where companyId = ? and liveGroupId = ? and groupKey = ?.static int
countByC_LikeN_S
(long companyId, String name, boolean site) Returns the number of groups where companyId = ? and name LIKE ? and site = ?.static int
countByC_LikeT_S
(long companyId, String treePath, boolean site) Returns the number of groups where companyId = ? and treePath LIKE ? and site = ?.static int
countByC_P
(long companyId, long parentGroupId) Returns the number of groups where companyId = ? and parentGroupId = ?.static int
countByC_P_LikeN_S
(long companyId, long parentGroupId, String name, boolean site) Returns the number of groups where companyId = ? and parentGroupId = ? and name LIKE ? and site = ?.static int
countByC_P_S
(long companyId, long parentGroupId, boolean site) Returns the number of groups where companyId = ? and parentGroupId = ? and site = ?.static int
countByC_P_S_I
(long companyId, long parentGroupId, boolean site, boolean inheritContent) Returns the number of groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.static int
countByC_S
(long companyId, boolean site) Returns the number of groups where companyId = ? and site = ?.static int
countByC_S_A
(long companyId, boolean site, boolean active) Returns the number of groups where companyId = ? and site = ? and active = ?.static int
countByCompanyId
(long companyId) Returns the number of groups where companyId = ?.static int
countByERC_C
(String externalReferenceCode, long companyId) Returns the number of groups where externalReferenceCode = ? and companyId = ?.static int
countByGtG_C_C_P
(long groupId, long companyId, long classNameId, long parentGroupId) Returns the number of groups where groupId > ? and companyId = ? and classNameId = ? and parentGroupId = ?.static int
countByGtG_C_P
(long groupId, long companyId, long parentGroupId) Returns the number of groups where groupId > ? and companyId = ? and parentGroupId = ?.static int
countByGtG_C_P_S
(long groupId, long companyId, long parentGroupId, boolean site) Returns the number of groups where groupId > ? and companyId = ? and parentGroupId = ? and site = ?.static int
countByLiveGroupId
(long liveGroupId) Returns the number of groups where liveGroupId = ?.static int
countByT_A
(int type, boolean active) Returns the number of groups where type = ? and active = ?.static int
countByUuid
(String uuid) Returns the number of groups where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of groups where uuid = ? and companyId = ?.static int
countByUUID_G
(String uuid, long groupId) Returns the number of groups where uuid = ? and groupId = ?.static long
countWithDynamicQuery
(DynamicQuery dynamicQuery) static Group
create
(long groupId) Creates a new group with the primary key.static Group
fetchByC_A_First
(long companyId, boolean active, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and active = ?.static Group
fetchByC_A_Last
(long companyId, boolean active, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and active = ?.static Group
fetchByC_C_C
(long companyId, long classNameId, long classPK) Returns the group where companyId = ? and classNameId = ? and classPK = ? or returnsnull
if it could not be found.static Group
fetchByC_C_C
(long companyId, long classNameId, long classPK, boolean useFinderCache) Returns the group where companyId = ? and classNameId = ? and classPK = ? or returnsnull
if it could not be found, optionally using the finder cache.static Group
fetchByC_C_First
(long companyId, long classNameId, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and classNameId = ?.static Group
fetchByC_C_L_GK
(long companyId, long classNameId, long liveGroupId, String groupKey) Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and groupKey = ? or returnsnull
if it could not be found.static Group
fetchByC_C_L_GK
(long companyId, long classNameId, long liveGroupId, String groupKey, boolean useFinderCache) Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and groupKey = ? or returnsnull
if it could not be found, optionally using the finder cache.static Group
fetchByC_C_Last
(long companyId, long classNameId, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and classNameId = ?.static Group
fetchByC_C_P_First
(long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.static Group
fetchByC_C_P_Last
(long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.static Group
fetchByC_C_S_First
(long companyId, long classNameId, boolean site, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and classNameId = ? and site = ?.static Group
fetchByC_C_S_Last
(long companyId, long classNameId, boolean site, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and classNameId = ? and site = ?.static Group
fetchByC_CPK_First
(long classNameId, long classPK, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where classNameId = ? and classPK = ?.static Group
fetchByC_CPK_Last
(long classNameId, long classPK, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where classNameId = ? and classPK = ?.static Group
fetchByC_F
(long companyId, String friendlyURL) Returns the group where companyId = ? and friendlyURL = ? or returnsnull
if it could not be found.static Group
fetchByC_F
(long companyId, String friendlyURL, boolean useFinderCache) Returns the group where companyId = ? and friendlyURL = ? or returnsnull
if it could not be found, optionally using the finder cache.static Group
fetchByC_GK
(long companyId, String groupKey) Returns the group where companyId = ? and groupKey = ? or returnsnull
if it could not be found.static Group
fetchByC_GK
(long companyId, String groupKey, boolean useFinderCache) Returns the group where companyId = ? and groupKey = ? or returnsnull
if it could not be found, optionally using the finder cache.static Group
fetchByC_L_GK
(long companyId, long liveGroupId, String groupKey) Returns the group where companyId = ? and liveGroupId = ? and groupKey = ? or returnsnull
if it could not be found.static Group
fetchByC_L_GK
(long companyId, long liveGroupId, String groupKey, boolean useFinderCache) Returns the group where companyId = ? and liveGroupId = ? and groupKey = ? or returnsnull
if it could not be found, optionally using the finder cache.static Group
fetchByC_LikeN_S_First
(long companyId, String name, boolean site, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and name LIKE ? and site = ?.static Group
fetchByC_LikeN_S_Last
(long companyId, String name, boolean site, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and name LIKE ? and site = ?.static Group
fetchByC_LikeT_S_First
(long companyId, String treePath, boolean site, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and treePath LIKE ? and site = ?.static Group
fetchByC_LikeT_S_Last
(long companyId, String treePath, boolean site, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and treePath LIKE ? and site = ?.static Group
fetchByC_P_First
(long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and parentGroupId = ?.static Group
fetchByC_P_Last
(long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and parentGroupId = ?.static Group
fetchByC_P_LikeN_S_First
(long companyId, long parentGroupId, String name, boolean site, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and name LIKE ? and site = ?.static Group
fetchByC_P_LikeN_S_Last
(long companyId, long parentGroupId, String name, boolean site, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and name LIKE ? and site = ?.static Group
fetchByC_P_S_First
(long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.static Group
fetchByC_P_S_I_First
(long companyId, long parentGroupId, boolean site, boolean inheritContent, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.static Group
fetchByC_P_S_I_Last
(long companyId, long parentGroupId, boolean site, boolean inheritContent, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.static Group
fetchByC_P_S_Last
(long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.static Group
fetchByC_S_A_First
(long companyId, boolean site, boolean active, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and site = ? and active = ?.static Group
fetchByC_S_A_Last
(long companyId, boolean site, boolean active, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and site = ? and active = ?.static Group
fetchByC_S_First
(long companyId, boolean site, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and site = ?.static Group
fetchByC_S_Last
(long companyId, boolean site, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and site = ?.static Group
fetchByCompanyId_First
(long companyId, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ?.static Group
fetchByCompanyId_Last
(long companyId, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ?.static Group
fetchByERC_C
(String externalReferenceCode, long companyId) Returns the group where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.static Group
fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the group where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.static Group
fetchByGtG_C_C_P_First
(long groupId, long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where groupId > ? and companyId = ? and classNameId = ? and parentGroupId = ?.static Group
fetchByGtG_C_C_P_Last
(long groupId, long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where groupId > ? and companyId = ? and classNameId = ? and parentGroupId = ?.static Group
fetchByGtG_C_P_First
(long groupId, long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?.static Group
fetchByGtG_C_P_Last
(long groupId, long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?.static Group
fetchByGtG_C_P_S_First
(long groupId, long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ? and site = ?.static Group
fetchByGtG_C_P_S_Last
(long groupId, long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ? and site = ?.static Group
fetchByLiveGroupId
(long liveGroupId) Returns the group where liveGroupId = ? or returnsnull
if it could not be found.static Group
fetchByLiveGroupId
(long liveGroupId, boolean useFinderCache) Returns the group where liveGroupId = ? or returnsnull
if it could not be found, optionally using the finder cache.static Group
fetchByPrimaryKey
(long groupId) Returns the group with the primary key or returnsnull
if it could not be found.static Map<Serializable,
Group> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static Group
fetchByT_A_First
(int type, boolean active, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where type = ? and active = ?.static Group
fetchByT_A_Last
(int type, boolean active, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where type = ? and active = ?.static Group
fetchByUuid_C_First
(String uuid, long companyId, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where uuid = ? and companyId = ?.static Group
fetchByUuid_C_Last
(String uuid, long companyId, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where uuid = ? and companyId = ?.static Group
fetchByUuid_First
(String uuid, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where uuid = ?.static Group
fetchByUUID_G
(String uuid, long groupId) Returns the group where uuid = ? and groupId = ? or returnsnull
if it could not be found.static Group
fetchByUUID_G
(String uuid, long groupId, boolean useFinderCache) Returns the group where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.static Group
fetchByUuid_Last
(String uuid, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where uuid = ?.findAll()
Returns all the groups.findAll
(int start, int end) Returns a range of all the groups.findAll
(int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups.findAll
(int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups.findByC_A
(long companyId, boolean active) Returns all the groups where companyId = ? and active = ?.findByC_A
(long companyId, boolean active, int start, int end) Returns a range of all the groups where companyId = ? and active = ?.findByC_A
(long companyId, boolean active, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and active = ?.findByC_A
(long companyId, boolean active, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and active = ?.static Group
findByC_A_First
(long companyId, boolean active, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and active = ?.static Group
findByC_A_Last
(long companyId, boolean active, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and active = ?.static Group[]
findByC_A_PrevAndNext
(long groupId, long companyId, boolean active, OrderByComparator<Group> orderByComparator) Returns the groups before and after the current group in the ordered set where companyId = ? and active = ?.findByC_C
(long companyId, long classNameId) Returns all the groups where companyId = ? and classNameId = ?.findByC_C
(long companyId, long classNameId, int start, int end) Returns a range of all the groups where companyId = ? and classNameId = ?.findByC_C
(long companyId, long classNameId, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and classNameId = ?.findByC_C
(long companyId, long classNameId, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and classNameId = ?.static Group
findByC_C_C
(long companyId, long classNameId, long classPK) Returns the group where companyId = ? and classNameId = ? and classPK = ? or throws aNoSuchGroupException
if it could not be found.static Group
findByC_C_First
(long companyId, long classNameId, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and classNameId = ?.static Group
findByC_C_L_GK
(long companyId, long classNameId, long liveGroupId, String groupKey) Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and groupKey = ? or throws aNoSuchGroupException
if it could not be found.static Group
findByC_C_Last
(long companyId, long classNameId, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and classNameId = ?.findByC_C_P
(long companyId, long classNameId, long parentGroupId) Returns all the groups where companyId = ? and classNameId = ? and parentGroupId = ?.findByC_C_P
(long companyId, long classNameId, long parentGroupId, int start, int end) Returns a range of all the groups where companyId = ? and classNameId = ? and parentGroupId = ?.findByC_C_P
(long companyId, long classNameId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and classNameId = ? and parentGroupId = ?.findByC_C_P
(long companyId, long classNameId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and classNameId = ? and parentGroupId = ?.static Group
findByC_C_P_First
(long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.static Group
findByC_C_P_Last
(long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.static Group[]
findByC_C_P_PrevAndNext
(long groupId, long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the groups before and after the current group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.static Group[]
findByC_C_PrevAndNext
(long groupId, long companyId, long classNameId, OrderByComparator<Group> orderByComparator) Returns the groups before and after the current group in the ordered set where companyId = ? and classNameId = ?.findByC_C_S
(long companyId, long classNameId, boolean site) Returns all the groups where companyId = ? and classNameId = ? and site = ?.findByC_C_S
(long companyId, long classNameId, boolean site, int start, int end) Returns a range of all the groups where companyId = ? and classNameId = ? and site = ?.findByC_C_S
(long companyId, long classNameId, boolean site, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and classNameId = ? and site = ?.findByC_C_S
(long companyId, long classNameId, boolean site, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and classNameId = ? and site = ?.static Group
findByC_C_S_First
(long companyId, long classNameId, boolean site, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and classNameId = ? and site = ?.static Group
findByC_C_S_Last
(long companyId, long classNameId, boolean site, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and classNameId = ? and site = ?.static Group[]
findByC_C_S_PrevAndNext
(long groupId, long companyId, long classNameId, boolean site, OrderByComparator<Group> orderByComparator) Returns the groups before and after the current group in the ordered set where companyId = ? and classNameId = ? and site = ?.findByC_CPK
(long classNameId, long classPK) Returns all the groups where classNameId = ? and classPK = ?.findByC_CPK
(long classNameId, long classPK, int start, int end) Returns a range of all the groups where classNameId = ? and classPK = ?.findByC_CPK
(long classNameId, long classPK, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where classNameId = ? and classPK = ?.findByC_CPK
(long classNameId, long classPK, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where classNameId = ? and classPK = ?.static Group
findByC_CPK_First
(long classNameId, long classPK, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where classNameId = ? and classPK = ?.static Group
findByC_CPK_Last
(long classNameId, long classPK, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where classNameId = ? and classPK = ?.static Group[]
findByC_CPK_PrevAndNext
(long groupId, long classNameId, long classPK, OrderByComparator<Group> orderByComparator) Returns the groups before and after the current group in the ordered set where classNameId = ? and classPK = ?.static Group
Returns the group where companyId = ? and friendlyURL = ? or throws aNoSuchGroupException
if it could not be found.static Group
findByC_GK
(long companyId, String groupKey) Returns the group where companyId = ? and groupKey = ? or throws aNoSuchGroupException
if it could not be found.findByC_GK
(long companyId, String[] groupKeys) Returns all the groups where companyId = ? and groupKey = any ?.findByC_GK
(long companyId, String[] groupKeys, int start, int end) Returns a range of all the groups where companyId = ? and groupKey = any ?.findByC_GK
(long companyId, String[] groupKeys, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and groupKey = any ?.findByC_GK
(long companyId, String[] groupKeys, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and groupKey = ?, optionally using the finder cache.static Group
findByC_L_GK
(long companyId, long liveGroupId, String groupKey) Returns the group where companyId = ? and liveGroupId = ? and groupKey = ? or throws aNoSuchGroupException
if it could not be found.findByC_LikeN_S
(long companyId, String name, boolean site) Returns all the groups where companyId = ? and name LIKE ? and site = ?.findByC_LikeN_S
(long companyId, String name, boolean site, int start, int end) Returns a range of all the groups where companyId = ? and name LIKE ? and site = ?.findByC_LikeN_S
(long companyId, String name, boolean site, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and name LIKE ? and site = ?.findByC_LikeN_S
(long companyId, String name, boolean site, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and name LIKE ? and site = ?.static Group
findByC_LikeN_S_First
(long companyId, String name, boolean site, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and name LIKE ? and site = ?.static Group
findByC_LikeN_S_Last
(long companyId, String name, boolean site, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and name LIKE ? and site = ?.static Group[]
findByC_LikeN_S_PrevAndNext
(long groupId, long companyId, String name, boolean site, OrderByComparator<Group> orderByComparator) Returns the groups before and after the current group in the ordered set where companyId = ? and name LIKE ? and site = ?.findByC_LikeT_S
(long companyId, String treePath, boolean site) Returns all the groups where companyId = ? and treePath LIKE ? and site = ?.findByC_LikeT_S
(long companyId, String treePath, boolean site, int start, int end) Returns a range of all the groups where companyId = ? and treePath LIKE ? and site = ?.findByC_LikeT_S
(long companyId, String treePath, boolean site, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and treePath LIKE ? and site = ?.findByC_LikeT_S
(long companyId, String treePath, boolean site, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and treePath LIKE ? and site = ?.static Group
findByC_LikeT_S_First
(long companyId, String treePath, boolean site, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and treePath LIKE ? and site = ?.static Group
findByC_LikeT_S_Last
(long companyId, String treePath, boolean site, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and treePath LIKE ? and site = ?.static Group[]
findByC_LikeT_S_PrevAndNext
(long groupId, long companyId, String treePath, boolean site, OrderByComparator<Group> orderByComparator) Returns the groups before and after the current group in the ordered set where companyId = ? and treePath LIKE ? and site = ?.findByC_P
(long companyId, long parentGroupId) Returns all the groups where companyId = ? and parentGroupId = ?.findByC_P
(long companyId, long parentGroupId, int start, int end) Returns a range of all the groups where companyId = ? and parentGroupId = ?.findByC_P
(long companyId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and parentGroupId = ?.findByC_P
(long companyId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and parentGroupId = ?.static Group
findByC_P_First
(long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and parentGroupId = ?.static Group
findByC_P_Last
(long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and parentGroupId = ?.findByC_P_LikeN_S
(long companyId, long parentGroupId, String name, boolean site) Returns all the groups where companyId = ? and parentGroupId = ? and name LIKE ? and site = ?.findByC_P_LikeN_S
(long companyId, long parentGroupId, String name, boolean site, int start, int end) Returns a range of all the groups where companyId = ? and parentGroupId = ? and name LIKE ? and site = ?.findByC_P_LikeN_S
(long companyId, long parentGroupId, String name, boolean site, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and parentGroupId = ? and name LIKE ? and site = ?.findByC_P_LikeN_S
(long companyId, long parentGroupId, String name, boolean site, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and parentGroupId = ? and name LIKE ? and site = ?.static Group
findByC_P_LikeN_S_First
(long companyId, long parentGroupId, String name, boolean site, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and name LIKE ? and site = ?.static Group
findByC_P_LikeN_S_Last
(long companyId, long parentGroupId, String name, boolean site, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and name LIKE ? and site = ?.static Group[]
findByC_P_LikeN_S_PrevAndNext
(long groupId, long companyId, long parentGroupId, String name, boolean site, OrderByComparator<Group> orderByComparator) Returns the groups before and after the current group in the ordered set where companyId = ? and parentGroupId = ? and name LIKE ? and site = ?.static Group[]
findByC_P_PrevAndNext
(long groupId, long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the groups before and after the current group in the ordered set where companyId = ? and parentGroupId = ?.findByC_P_S
(long companyId, long parentGroupId, boolean site) Returns all the groups where companyId = ? and parentGroupId = ? and site = ?.findByC_P_S
(long companyId, long parentGroupId, boolean site, int start, int end) Returns a range of all the groups where companyId = ? and parentGroupId = ? and site = ?.findByC_P_S
(long companyId, long parentGroupId, boolean site, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and parentGroupId = ? and site = ?.findByC_P_S
(long companyId, long parentGroupId, boolean site, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and parentGroupId = ? and site = ?.static Group
findByC_P_S_First
(long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.findByC_P_S_I
(long companyId, long parentGroupId, boolean site, boolean inheritContent) Returns all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.findByC_P_S_I
(long companyId, long parentGroupId, boolean site, boolean inheritContent, int start, int end) Returns a range of all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.findByC_P_S_I
(long companyId, long parentGroupId, boolean site, boolean inheritContent, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.findByC_P_S_I
(long companyId, long parentGroupId, boolean site, boolean inheritContent, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.static Group
findByC_P_S_I_First
(long companyId, long parentGroupId, boolean site, boolean inheritContent, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.static Group
findByC_P_S_I_Last
(long companyId, long parentGroupId, boolean site, boolean inheritContent, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.static Group[]
findByC_P_S_I_PrevAndNext
(long groupId, long companyId, long parentGroupId, boolean site, boolean inheritContent, OrderByComparator<Group> orderByComparator) Returns the groups before and after the current group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.static Group
findByC_P_S_Last
(long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.static Group[]
findByC_P_S_PrevAndNext
(long groupId, long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator) Returns the groups before and after the current group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.findByC_S
(long companyId, boolean site) Returns all the groups where companyId = ? and site = ?.findByC_S
(long companyId, boolean site, int start, int end) Returns a range of all the groups where companyId = ? and site = ?.findByC_S
(long companyId, boolean site, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and site = ?.findByC_S
(long companyId, boolean site, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and site = ?.findByC_S_A
(long companyId, boolean site, boolean active) Returns all the groups where companyId = ? and site = ? and active = ?.findByC_S_A
(long companyId, boolean site, boolean active, int start, int end) Returns a range of all the groups where companyId = ? and site = ? and active = ?.findByC_S_A
(long companyId, boolean site, boolean active, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and site = ? and active = ?.findByC_S_A
(long companyId, boolean site, boolean active, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and site = ? and active = ?.static Group
findByC_S_A_First
(long companyId, boolean site, boolean active, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and site = ? and active = ?.static Group
findByC_S_A_Last
(long companyId, boolean site, boolean active, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and site = ? and active = ?.static Group[]
findByC_S_A_PrevAndNext
(long groupId, long companyId, boolean site, boolean active, OrderByComparator<Group> orderByComparator) Returns the groups before and after the current group in the ordered set where companyId = ? and site = ? and active = ?.static Group
findByC_S_First
(long companyId, boolean site, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and site = ?.static Group
findByC_S_Last
(long companyId, boolean site, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and site = ?.static Group[]
findByC_S_PrevAndNext
(long groupId, long companyId, boolean site, OrderByComparator<Group> orderByComparator) Returns the groups before and after the current group in the ordered set where companyId = ? and site = ?.findByCompanyId
(long companyId) Returns all the groups where companyId = ?.findByCompanyId
(long companyId, int start, int end) Returns a range of all the groups where companyId = ?.findByCompanyId
(long companyId, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ?.findByCompanyId
(long companyId, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ?.static Group
findByCompanyId_First
(long companyId, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ?.static Group
findByCompanyId_Last
(long companyId, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ?.static Group[]
findByCompanyId_PrevAndNext
(long groupId, long companyId, OrderByComparator<Group> orderByComparator) Returns the groups before and after the current group in the ordered set where companyId = ?.static Group
findByERC_C
(String externalReferenceCode, long companyId) Returns the group where externalReferenceCode = ? and companyId = ? or throws aNoSuchGroupException
if it could not be found.findByGtG_C_C_P
(long groupId, long companyId, long classNameId, long parentGroupId) Returns all the groups where groupId > ? and companyId = ? and classNameId = ? and parentGroupId = ?.findByGtG_C_C_P
(long groupId, long companyId, long classNameId, long parentGroupId, int start, int end) Returns a range of all the groups where groupId > ? and companyId = ? and classNameId = ? and parentGroupId = ?.findByGtG_C_C_P
(long groupId, long companyId, long classNameId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where groupId > ? and companyId = ? and classNameId = ? and parentGroupId = ?.findByGtG_C_C_P
(long groupId, long companyId, long classNameId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where groupId > ? and companyId = ? and classNameId = ? and parentGroupId = ?.static Group
findByGtG_C_C_P_First
(long groupId, long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where groupId > ? and companyId = ? and classNameId = ? and parentGroupId = ?.static Group
findByGtG_C_C_P_Last
(long groupId, long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where groupId > ? and companyId = ? and classNameId = ? and parentGroupId = ?.findByGtG_C_P
(long groupId, long companyId, long parentGroupId) Returns all the groups where groupId > ? and companyId = ? and parentGroupId = ?.findByGtG_C_P
(long groupId, long companyId, long parentGroupId, int start, int end) Returns a range of all the groups where groupId > ? and companyId = ? and parentGroupId = ?.findByGtG_C_P
(long groupId, long companyId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where groupId > ? and companyId = ? and parentGroupId = ?.findByGtG_C_P
(long groupId, long companyId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where groupId > ? and companyId = ? and parentGroupId = ?.static Group
findByGtG_C_P_First
(long groupId, long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?.static Group
findByGtG_C_P_Last
(long groupId, long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?.findByGtG_C_P_S
(long groupId, long companyId, long parentGroupId, boolean site) Returns all the groups where groupId > ? and companyId = ? and parentGroupId = ? and site = ?.findByGtG_C_P_S
(long groupId, long companyId, long parentGroupId, boolean site, int start, int end) Returns a range of all the groups where groupId > ? and companyId = ? and parentGroupId = ? and site = ?.findByGtG_C_P_S
(long groupId, long companyId, long parentGroupId, boolean site, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where groupId > ? and companyId = ? and parentGroupId = ? and site = ?.findByGtG_C_P_S
(long groupId, long companyId, long parentGroupId, boolean site, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where groupId > ? and companyId = ? and parentGroupId = ? and site = ?.static Group
findByGtG_C_P_S_First
(long groupId, long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ? and site = ?.static Group
findByGtG_C_P_S_Last
(long groupId, long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ? and site = ?.static Group
findByLiveGroupId
(long liveGroupId) Returns the group where liveGroupId = ? or throws aNoSuchGroupException
if it could not be found.static Group
findByPrimaryKey
(long groupId) Returns the group with the primary key or throws aNoSuchGroupException
if it could not be found.findByT_A
(int type, boolean active) Returns all the groups where type = ? and active = ?.findByT_A
(int type, boolean active, int start, int end) Returns a range of all the groups where type = ? and active = ?.findByT_A
(int type, boolean active, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where type = ? and active = ?.findByT_A
(int type, boolean active, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where type = ? and active = ?.static Group
findByT_A_First
(int type, boolean active, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where type = ? and active = ?.static Group
findByT_A_Last
(int type, boolean active, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where type = ? and active = ?.static Group[]
findByT_A_PrevAndNext
(long groupId, int type, boolean active, OrderByComparator<Group> orderByComparator) Returns the groups before and after the current group in the ordered set where type = ? and active = ?.findByUuid
(String uuid) Returns all the groups where uuid = ?.findByUuid
(String uuid, int start, int end) Returns a range of all the groups where uuid = ?.findByUuid
(String uuid, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where uuid = ?.findByUuid
(String uuid, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where uuid = ?.findByUuid_C
(String uuid, long companyId) Returns all the groups where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the groups where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where uuid = ? and companyId = ?.static Group
findByUuid_C_First
(String uuid, long companyId, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where uuid = ? and companyId = ?.static Group
findByUuid_C_Last
(String uuid, long companyId, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where uuid = ? and companyId = ?.static Group[]
findByUuid_C_PrevAndNext
(long groupId, String uuid, long companyId, OrderByComparator<Group> orderByComparator) Returns the groups before and after the current group in the ordered set where uuid = ? and companyId = ?.static Group
findByUuid_First
(String uuid, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where uuid = ?.static Group
findByUUID_G
(String uuid, long groupId) Returns the group where uuid = ? and groupId = ? or throws aNoSuchGroupException
if it could not be found.static Group
findByUuid_Last
(String uuid, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where uuid = ?.static Group[]
findByUuid_PrevAndNext
(long groupId, String uuid, OrderByComparator<Group> orderByComparator) Returns the groups before and after the current group in the ordered set where uuid = ?.findWithDynamicQuery
(DynamicQuery dynamicQuery) findWithDynamicQuery
(DynamicQuery dynamicQuery, int start, int end) findWithDynamicQuery
(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<Group> orderByComparator) static long[]
getOrganizationPrimaryKeys
(long pk) Returns the primaryKeys of organizations associated with the group.static List<Organization>
getOrganizations
(long pk) Returns all the organizations associated with the group.static List<Organization>
getOrganizations
(long pk, int start, int end) Returns a range of all the organizations associated with the group.static List<Organization>
getOrganizations
(long pk, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations associated with the group.static int
getOrganizationsSize
(long pk) Returns the number of organizations associated with the group.static GroupPersistence
static long[]
getRolePrimaryKeys
(long pk) Returns the primaryKeys of roles associated with the group.getRoles
(long pk) Returns all the roles associated with the group.getRoles
(long pk, int start, int end) Returns a range of all the roles associated with the group.getRoles
(long pk, int start, int end, OrderByComparator<Role> orderByComparator) Returns an ordered range of all the roles associated with the group.static int
getRolesSize
(long pk) Returns the number of roles associated with the group.static long[]
getUserGroupPrimaryKeys
(long pk) Returns the primaryKeys of user groups associated with the group.getUserGroups
(long pk) Returns all the user groups associated with the group.getUserGroups
(long pk, int start, int end) Returns a range of all the user groups associated with the group.getUserGroups
(long pk, int start, int end, OrderByComparator<UserGroup> orderByComparator) Returns an ordered range of all the user groups associated with the group.static int
getUserGroupsSize
(long pk) Returns the number of user groups associated with the group.static long[]
getUserPrimaryKeys
(long pk) Returns the primaryKeys of users associated with the group.getUsers
(long pk) Returns all the users associated with the group.getUsers
(long pk, int start, int end) Returns a range of all the users associated with the group.getUsers
(long pk, int start, int end, OrderByComparator<User> orderByComparator) Returns an ordered range of all the users associated with the group.static int
getUsersSize
(long pk) Returns the number of users associated with the group.static Group
remove
(long groupId) Removes the group with the primary key from the database.static void
Removes all the groups from the database.static void
removeByC_A
(long companyId, boolean active) Removes all the groups where companyId = ? and active = ? from the database.static void
removeByC_C
(long companyId, long classNameId) Removes all the groups where companyId = ? and classNameId = ? from the database.static Group
removeByC_C_C
(long companyId, long classNameId, long classPK) Removes the group where companyId = ? and classNameId = ? and classPK = ? from the database.static Group
removeByC_C_L_GK
(long companyId, long classNameId, long liveGroupId, String groupKey) Removes the group where companyId = ? and classNameId = ? and liveGroupId = ? and groupKey = ? from the database.static void
removeByC_C_P
(long companyId, long classNameId, long parentGroupId) Removes all the groups where companyId = ? and classNameId = ? and parentGroupId = ? from the database.static void
removeByC_C_S
(long companyId, long classNameId, boolean site) Removes all the groups where companyId = ? and classNameId = ? and site = ? from the database.static void
removeByC_CPK
(long classNameId, long classPK) Removes all the groups where classNameId = ? and classPK = ? from the database.static Group
removeByC_F
(long companyId, String friendlyURL) Removes the group where companyId = ? and friendlyURL = ? from the database.static Group
removeByC_GK
(long companyId, String groupKey) Removes the group where companyId = ? and groupKey = ? from the database.static Group
removeByC_L_GK
(long companyId, long liveGroupId, String groupKey) Removes the group where companyId = ? and liveGroupId = ? and groupKey = ? from the database.static void
removeByC_LikeN_S
(long companyId, String name, boolean site) Removes all the groups where companyId = ? and name LIKE ? and site = ? from the database.static void
removeByC_LikeT_S
(long companyId, String treePath, boolean site) Removes all the groups where companyId = ? and treePath LIKE ? and site = ? from the database.static void
removeByC_P
(long companyId, long parentGroupId) Removes all the groups where companyId = ? and parentGroupId = ? from the database.static void
removeByC_P_LikeN_S
(long companyId, long parentGroupId, String name, boolean site) Removes all the groups where companyId = ? and parentGroupId = ? and name LIKE ? and site = ? from the database.static void
removeByC_P_S
(long companyId, long parentGroupId, boolean site) Removes all the groups where companyId = ? and parentGroupId = ? and site = ? from the database.static void
removeByC_P_S_I
(long companyId, long parentGroupId, boolean site, boolean inheritContent) Removes all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ? from the database.static void
removeByC_S
(long companyId, boolean site) Removes all the groups where companyId = ? and site = ? from the database.static void
removeByC_S_A
(long companyId, boolean site, boolean active) Removes all the groups where companyId = ? and site = ? and active = ? from the database.static void
removeByCompanyId
(long companyId) Removes all the groups where companyId = ? from the database.static Group
removeByERC_C
(String externalReferenceCode, long companyId) Removes the group where externalReferenceCode = ? and companyId = ? from the database.static void
removeByGtG_C_C_P
(long groupId, long companyId, long classNameId, long parentGroupId) Removes all the groups where groupId > ? and companyId = ? and classNameId = ? and parentGroupId = ? from the database.static void
removeByGtG_C_P
(long groupId, long companyId, long parentGroupId) Removes all the groups where groupId > ? and companyId = ? and parentGroupId = ? from the database.static void
removeByGtG_C_P_S
(long groupId, long companyId, long parentGroupId, boolean site) Removes all the groups where groupId > ? and companyId = ? and parentGroupId = ? and site = ? from the database.static Group
removeByLiveGroupId
(long liveGroupId) Removes the group where liveGroupId = ? from the database.static void
removeByT_A
(int type, boolean active) Removes all the groups where type = ? and active = ? from the database.static void
removeByUuid
(String uuid) Removes all the groups where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the groups where uuid = ? and companyId = ? from the database.static Group
removeByUUID_G
(String uuid, long groupId) Removes the group where uuid = ? and groupId = ? from the database.static void
removeOrganization
(long pk, long organizationPK) Removes the association between the group and the organization.static void
removeOrganization
(long pk, Organization organization) Removes the association between the group and the organization.static void
removeOrganizations
(long pk, long[] organizationPKs) Removes the association between the group and the organizations.static void
removeOrganizations
(long pk, List<Organization> organizations) Removes the association between the group and the organizations.static void
removeRole
(long pk, long rolePK) Removes the association between the group and the role.static void
removeRole
(long pk, Role role) Removes the association between the group and the role.static void
removeRoles
(long pk, long[] rolePKs) Removes the association between the group and the roles.static void
removeRoles
(long pk, List<Role> roles) Removes the association between the group and the roles.static void
removeUser
(long pk, long userPK) Removes the association between the group and the user.static void
removeUser
(long pk, User user) Removes the association between the group and the user.static void
removeUserGroup
(long pk, long userGroupPK) Removes the association between the group and the user group.static void
removeUserGroup
(long pk, UserGroup userGroup) Removes the association between the group and the user group.static void
removeUserGroups
(long pk, long[] userGroupPKs) Removes the association between the group and the user groups.static void
removeUserGroups
(long pk, List<UserGroup> userGroups) Removes the association between the group and the user groups.static void
removeUsers
(long pk, long[] userPKs) Removes the association between the group and the users.static void
removeUsers
(long pk, List<User> users) Removes the association between the group and the users.static void
setOrganizations
(long pk, long[] organizationPKs) Sets the organizations associated with the group, removing and adding associations as necessary.static void
setOrganizations
(long pk, List<Organization> organizations) Sets the organizations associated with the group, removing and adding associations as necessary.static void
setPersistence
(GroupPersistence persistence) static void
setRoles
(long pk, long[] rolePKs) Sets the roles associated with the group, removing and adding associations as necessary.static void
Sets the roles associated with the group, removing and adding associations as necessary.static void
setUserGroups
(long pk, long[] userGroupPKs) Sets the user groups associated with the group, removing and adding associations as necessary.static void
setUserGroups
(long pk, List<UserGroup> userGroups) Sets the user groups associated with the group, removing and adding associations as necessary.static void
setUsers
(long pk, long[] userPKs) Sets the users associated with the group, removing and adding associations as necessary.static void
Sets the users associated with the group, removing and adding associations as necessary.static Group
static Group
update
(Group group, ServiceContext serviceContext) static Group
updateImpl
(Group group)
-
Constructor Details
-
GroupUtil
public GroupUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
-
countWithDynamicQuery
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
-
findWithDynamicQuery
-
findWithDynamicQuery
public static List<Group> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<Group> orderByComparator) -
update
-
update
-
findByUuid
Returns all the groups where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching groups
-
findByUuid
Returns a range of all the groups where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of matching groups
-
findByUuid
public static List<Group> findByUuid(String uuid, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching groups
-
findByUuid
public static List<Group> findByUuid(String uuid, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching groups
-
findByUuid_First
public static Group findByUuid_First(String uuid, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the first group in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByUuid_First
Returns the first group in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group, or
null
if a matching group could not be found
-
findByUuid_Last
public static Group findByUuid_Last(String uuid, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the last group in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByUuid_Last
Returns the last group in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group, or
null
if a matching group could not be found
-
findByUuid_PrevAndNext
public static Group[] findByUuid_PrevAndNext(long groupId, String uuid, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the groups before and after the current group in the ordered set where uuid = ?.- Parameters:
groupId
- the primary key of the current groupuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next group
- Throws:
NoSuchGroupException
- if a group with the primary key could not be foundNoSuchGroupException
-
removeByUuid
Removes all the groups where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of groups where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching groups
-
findByUUID_G
Returns the group where uuid = ? and groupId = ? or throws aNoSuchGroupException
if it could not be found.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByUUID_G
Returns the group where uuid = ? and groupId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching group, or
null
if a matching group could not be found
-
fetchByUUID_G
Returns the group where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching group, or
null
if a matching group could not be found
-
removeByUUID_G
Removes the group where uuid = ? and groupId = ? from the database.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the group that was removed
- Throws:
NoSuchGroupException
-
countByUUID_G
Returns the number of groups where uuid = ? and groupId = ?.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the number of matching groups
-
findByUuid_C
Returns all the groups where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching groups
-
findByUuid_C
Returns a range of all the groups where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of matching groups
-
findByUuid_C
public static List<Group> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching groups
-
findByUuid_C
public static List<Group> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching groups
-
findByUuid_C_First
public static Group findByUuid_C_First(String uuid, long companyId, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the first group in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByUuid_C_First
public static Group fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group, or
null
if a matching group could not be found
-
findByUuid_C_Last
public static Group findByUuid_C_Last(String uuid, long companyId, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the last group in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByUuid_C_Last
public static Group fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group, or
null
if a matching group could not be found
-
findByUuid_C_PrevAndNext
public static Group[] findByUuid_C_PrevAndNext(long groupId, String uuid, long companyId, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the groups before and after the current group in the ordered set where uuid = ? and companyId = ?.- Parameters:
groupId
- the primary key of the current groupuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next group
- Throws:
NoSuchGroupException
- if a group with the primary key could not be foundNoSuchGroupException
-
removeByUuid_C
Removes all the groups where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of groups where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching groups
-
findByCompanyId
Returns all the groups where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching groups
-
findByCompanyId
Returns a range of all the groups where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of matching groups
-
findByCompanyId
public static List<Group> findByCompanyId(long companyId, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching groups
-
findByCompanyId
public static List<Group> findByCompanyId(long companyId, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching groups
-
findByCompanyId_First
public static Group findByCompanyId_First(long companyId, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the first group in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByCompanyId_First
public static Group fetchByCompanyId_First(long companyId, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group, or
null
if a matching group could not be found
-
findByCompanyId_Last
public static Group findByCompanyId_Last(long companyId, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the last group in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByCompanyId_Last
public static Group fetchByCompanyId_Last(long companyId, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group, or
null
if a matching group could not be found
-
findByCompanyId_PrevAndNext
public static Group[] findByCompanyId_PrevAndNext(long groupId, long companyId, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the groups before and after the current group in the ordered set where companyId = ?.- Parameters:
groupId
- the primary key of the current groupcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next group
- Throws:
NoSuchGroupException
- if a group with the primary key could not be foundNoSuchGroupException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the groups where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of groups where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching groups
-
findByLiveGroupId
Returns the group where liveGroupId = ? or throws aNoSuchGroupException
if it could not be found.- Parameters:
liveGroupId
- the live group ID- Returns:
- the matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByLiveGroupId
Returns the group where liveGroupId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
liveGroupId
- the live group ID- Returns:
- the matching group, or
null
if a matching group could not be found
-
fetchByLiveGroupId
Returns the group where liveGroupId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
liveGroupId
- the live group IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching group, or
null
if a matching group could not be found
-
removeByLiveGroupId
Removes the group where liveGroupId = ? from the database.- Parameters:
liveGroupId
- the live group ID- Returns:
- the group that was removed
- Throws:
NoSuchGroupException
-
countByLiveGroupId
public static int countByLiveGroupId(long liveGroupId) Returns the number of groups where liveGroupId = ?.- Parameters:
liveGroupId
- the live group ID- Returns:
- the number of matching groups
-
findByC_C
Returns all the groups where companyId = ? and classNameId = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name ID- Returns:
- the matching groups
-
findByC_C
Returns a range of all the groups where companyId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDclassNameId
- the class name IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of matching groups
-
findByC_C
public static List<Group> findByC_C(long companyId, long classNameId, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDclassNameId
- the class name IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching groups
-
findByC_C
public static List<Group> findByC_C(long companyId, long classNameId, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and classNameId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDclassNameId
- the class name IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching groups
-
findByC_C_First
public static Group findByC_C_First(long companyId, long classNameId, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the first group in the ordered set where companyId = ? and classNameId = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_C_First
public static Group fetchByC_C_First(long companyId, long classNameId, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and classNameId = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group, or
null
if a matching group could not be found
-
findByC_C_Last
public static Group findByC_C_Last(long companyId, long classNameId, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the last group in the ordered set where companyId = ? and classNameId = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_C_Last
public static Group fetchByC_C_Last(long companyId, long classNameId, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and classNameId = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group, or
null
if a matching group could not be found
-
findByC_C_PrevAndNext
public static Group[] findByC_C_PrevAndNext(long groupId, long companyId, long classNameId, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the groups before and after the current group in the ordered set where companyId = ? and classNameId = ?.- Parameters:
groupId
- the primary key of the current groupcompanyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next group
- Throws:
NoSuchGroupException
- if a group with the primary key could not be foundNoSuchGroupException
-
removeByC_C
public static void removeByC_C(long companyId, long classNameId) Removes all the groups where companyId = ? and classNameId = ? from the database.- Parameters:
companyId
- the company IDclassNameId
- the class name ID
-
countByC_C
public static int countByC_C(long companyId, long classNameId) Returns the number of groups where companyId = ? and classNameId = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name ID- Returns:
- the number of matching groups
-
findByC_P
Returns all the groups where companyId = ? and parentGroupId = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group ID- Returns:
- the matching groups
-
findByC_P
Returns a range of all the groups where companyId = ? and parentGroupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of matching groups
-
findByC_P
public static List<Group> findByC_P(long companyId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and parentGroupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching groups
-
findByC_P
public static List<Group> findByC_P(long companyId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and parentGroupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching groups
-
findByC_P_First
public static Group findByC_P_First(long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the first group in the ordered set where companyId = ? and parentGroupId = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_P_First
public static Group fetchByC_P_First(long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and parentGroupId = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group, or
null
if a matching group could not be found
-
findByC_P_Last
public static Group findByC_P_Last(long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the last group in the ordered set where companyId = ? and parentGroupId = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_P_Last
public static Group fetchByC_P_Last(long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and parentGroupId = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group, or
null
if a matching group could not be found
-
findByC_P_PrevAndNext
public static Group[] findByC_P_PrevAndNext(long groupId, long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the groups before and after the current group in the ordered set where companyId = ? and parentGroupId = ?.- Parameters:
groupId
- the primary key of the current groupcompanyId
- the company IDparentGroupId
- the parent group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next group
- Throws:
NoSuchGroupException
- if a group with the primary key could not be foundNoSuchGroupException
-
removeByC_P
public static void removeByC_P(long companyId, long parentGroupId) Removes all the groups where companyId = ? and parentGroupId = ? from the database.- Parameters:
companyId
- the company IDparentGroupId
- the parent group ID
-
countByC_P
public static int countByC_P(long companyId, long parentGroupId) Returns the number of groups where companyId = ? and parentGroupId = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group ID- Returns:
- the number of matching groups
-
findByC_GK
Returns all the groups where companyId = ? and groupKey = any ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDgroupKeys
- the group keys- Returns:
- the matching groups
-
findByC_GK
Returns a range of all the groups where companyId = ? and groupKey = any ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDgroupKeys
- the group keysstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of matching groups
-
findByC_GK
public static List<Group> findByC_GK(long companyId, String[] groupKeys, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and groupKey = any ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDgroupKeys
- the group keysstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching groups
-
findByC_GK
public static List<Group> findByC_GK(long companyId, String[] groupKeys, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and groupKey = ?, optionally using the finder cache.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDgroupKeys
- the group keysstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching groups
-
findByC_GK
Returns the group where companyId = ? and groupKey = ? or throws aNoSuchGroupException
if it could not be found.- Parameters:
companyId
- the company IDgroupKey
- the group key- Returns:
- the matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_GK
Returns the group where companyId = ? and groupKey = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDgroupKey
- the group key- Returns:
- the matching group, or
null
if a matching group could not be found
-
fetchByC_GK
Returns the group where companyId = ? and groupKey = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDgroupKey
- the group keyuseFinderCache
- whether to use the finder cache- Returns:
- the matching group, or
null
if a matching group could not be found
-
removeByC_GK
Removes the group where companyId = ? and groupKey = ? from the database.- Parameters:
companyId
- the company IDgroupKey
- the group key- Returns:
- the group that was removed
- Throws:
NoSuchGroupException
-
countByC_GK
Returns the number of groups where companyId = ? and groupKey = ?.- Parameters:
companyId
- the company IDgroupKey
- the group key- Returns:
- the number of matching groups
-
countByC_GK
Returns the number of groups where companyId = ? and groupKey = any ?.- Parameters:
companyId
- the company IDgroupKeys
- the group keys- Returns:
- the number of matching groups
-
findByC_F
Returns the group where companyId = ? and friendlyURL = ? or throws aNoSuchGroupException
if it could not be found.- Parameters:
companyId
- the company IDfriendlyURL
- the friendly url- Returns:
- the matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_F
Returns the group where companyId = ? and friendlyURL = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDfriendlyURL
- the friendly url- Returns:
- the matching group, or
null
if a matching group could not be found
-
fetchByC_F
Returns the group where companyId = ? and friendlyURL = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDfriendlyURL
- the friendly urluseFinderCache
- whether to use the finder cache- Returns:
- the matching group, or
null
if a matching group could not be found
-
removeByC_F
Removes the group where companyId = ? and friendlyURL = ? from the database.- Parameters:
companyId
- the company IDfriendlyURL
- the friendly url- Returns:
- the group that was removed
- Throws:
NoSuchGroupException
-
countByC_F
Returns the number of groups where companyId = ? and friendlyURL = ?.- Parameters:
companyId
- the company IDfriendlyURL
- the friendly url- Returns:
- the number of matching groups
-
findByC_S
Returns all the groups where companyId = ? and site = ?.- Parameters:
companyId
- the company IDsite
- the site- Returns:
- the matching groups
-
findByC_S
Returns a range of all the groups where companyId = ? and site = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDsite
- the sitestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of matching groups
-
findByC_S
public static List<Group> findByC_S(long companyId, boolean site, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and site = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDsite
- the sitestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching groups
-
findByC_S
public static List<Group> findByC_S(long companyId, boolean site, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and site = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDsite
- the sitestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching groups
-
findByC_S_First
public static Group findByC_S_First(long companyId, boolean site, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the first group in the ordered set where companyId = ? and site = ?.- Parameters:
companyId
- the company IDsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_S_First
public static Group fetchByC_S_First(long companyId, boolean site, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and site = ?.- Parameters:
companyId
- the company IDsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group, or
null
if a matching group could not be found
-
findByC_S_Last
public static Group findByC_S_Last(long companyId, boolean site, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the last group in the ordered set where companyId = ? and site = ?.- Parameters:
companyId
- the company IDsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_S_Last
public static Group fetchByC_S_Last(long companyId, boolean site, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and site = ?.- Parameters:
companyId
- the company IDsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group, or
null
if a matching group could not be found
-
findByC_S_PrevAndNext
public static Group[] findByC_S_PrevAndNext(long groupId, long companyId, boolean site, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the groups before and after the current group in the ordered set where companyId = ? and site = ?.- Parameters:
groupId
- the primary key of the current groupcompanyId
- the company IDsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next group
- Throws:
NoSuchGroupException
- if a group with the primary key could not be foundNoSuchGroupException
-
removeByC_S
public static void removeByC_S(long companyId, boolean site) Removes all the groups where companyId = ? and site = ? from the database.- Parameters:
companyId
- the company IDsite
- the site
-
countByC_S
public static int countByC_S(long companyId, boolean site) Returns the number of groups where companyId = ? and site = ?.- Parameters:
companyId
- the company IDsite
- the site- Returns:
- the number of matching groups
-
findByC_A
Returns all the groups where companyId = ? and active = ?.- Parameters:
companyId
- the company IDactive
- the active- Returns:
- the matching groups
-
findByC_A
Returns a range of all the groups where companyId = ? and active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDactive
- the activestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of matching groups
-
findByC_A
public static List<Group> findByC_A(long companyId, boolean active, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDactive
- the activestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching groups
-
findByC_A
public static List<Group> findByC_A(long companyId, boolean active, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDactive
- the activestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching groups
-
findByC_A_First
public static Group findByC_A_First(long companyId, boolean active, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the first group in the ordered set where companyId = ? and active = ?.- Parameters:
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_A_First
public static Group fetchByC_A_First(long companyId, boolean active, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and active = ?.- Parameters:
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group, or
null
if a matching group could not be found
-
findByC_A_Last
public static Group findByC_A_Last(long companyId, boolean active, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the last group in the ordered set where companyId = ? and active = ?.- Parameters:
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_A_Last
public static Group fetchByC_A_Last(long companyId, boolean active, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and active = ?.- Parameters:
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group, or
null
if a matching group could not be found
-
findByC_A_PrevAndNext
public static Group[] findByC_A_PrevAndNext(long groupId, long companyId, boolean active, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the groups before and after the current group in the ordered set where companyId = ? and active = ?.- Parameters:
groupId
- the primary key of the current groupcompanyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next group
- Throws:
NoSuchGroupException
- if a group with the primary key could not be foundNoSuchGroupException
-
removeByC_A
public static void removeByC_A(long companyId, boolean active) Removes all the groups where companyId = ? and active = ? from the database.- Parameters:
companyId
- the company IDactive
- the active
-
countByC_A
public static int countByC_A(long companyId, boolean active) Returns the number of groups where companyId = ? and active = ?.- Parameters:
companyId
- the company IDactive
- the active- Returns:
- the number of matching groups
-
findByC_CPK
Returns all the groups where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching groups
-
findByC_CPK
Returns a range of all the groups where classNameId = ? and classPK = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of matching groups
-
findByC_CPK
public static List<Group> findByC_CPK(long classNameId, long classPK, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where classNameId = ? and classPK = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching groups
-
findByC_CPK
public static List<Group> findByC_CPK(long classNameId, long classPK, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where classNameId = ? and classPK = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching groups
-
findByC_CPK_First
public static Group findByC_CPK_First(long classNameId, long classPK, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the first group in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_CPK_First
public static Group fetchByC_CPK_First(long classNameId, long classPK, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group, or
null
if a matching group could not be found
-
findByC_CPK_Last
public static Group findByC_CPK_Last(long classNameId, long classPK, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the last group in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_CPK_Last
public static Group fetchByC_CPK_Last(long classNameId, long classPK, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group, or
null
if a matching group could not be found
-
findByC_CPK_PrevAndNext
public static Group[] findByC_CPK_PrevAndNext(long groupId, long classNameId, long classPK, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the groups before and after the current group in the ordered set where classNameId = ? and classPK = ?.- Parameters:
groupId
- the primary key of the current groupclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next group
- Throws:
NoSuchGroupException
- if a group with the primary key could not be foundNoSuchGroupException
-
removeByC_CPK
public static void removeByC_CPK(long classNameId, long classPK) Removes all the groups where classNameId = ? and classPK = ? from the database.- Parameters:
classNameId
- the class name IDclassPK
- the class pk
-
countByC_CPK
public static int countByC_CPK(long classNameId, long classPK) Returns the number of groups where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the number of matching groups
-
findByT_A
Returns all the groups where type = ? and active = ?.- Parameters:
type
- the typeactive
- the active- Returns:
- the matching groups
-
findByT_A
Returns a range of all the groups where type = ? and active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
type
- the typeactive
- the activestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of matching groups
-
findByT_A
public static List<Group> findByT_A(int type, boolean active, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where type = ? and active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
type
- the typeactive
- the activestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching groups
-
findByT_A
public static List<Group> findByT_A(int type, boolean active, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where type = ? and active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
type
- the typeactive
- the activestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching groups
-
findByT_A_First
public static Group findByT_A_First(int type, boolean active, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the first group in the ordered set where type = ? and active = ?.- Parameters:
type
- the typeactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByT_A_First
public static Group fetchByT_A_First(int type, boolean active, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where type = ? and active = ?.- Parameters:
type
- the typeactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group, or
null
if a matching group could not be found
-
findByT_A_Last
public static Group findByT_A_Last(int type, boolean active, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the last group in the ordered set where type = ? and active = ?.- Parameters:
type
- the typeactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByT_A_Last
public static Group fetchByT_A_Last(int type, boolean active, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where type = ? and active = ?.- Parameters:
type
- the typeactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group, or
null
if a matching group could not be found
-
findByT_A_PrevAndNext
public static Group[] findByT_A_PrevAndNext(long groupId, int type, boolean active, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the groups before and after the current group in the ordered set where type = ? and active = ?.- Parameters:
groupId
- the primary key of the current grouptype
- the typeactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next group
- Throws:
NoSuchGroupException
- if a group with the primary key could not be foundNoSuchGroupException
-
removeByT_A
public static void removeByT_A(int type, boolean active) Removes all the groups where type = ? and active = ? from the database.- Parameters:
type
- the typeactive
- the active
-
countByT_A
public static int countByT_A(int type, boolean active) Returns the number of groups where type = ? and active = ?.- Parameters:
type
- the typeactive
- the active- Returns:
- the number of matching groups
-
findByGtG_C_P
Returns all the groups where groupId > ? and companyId = ? and parentGroupId = ?.- Parameters:
groupId
- the group IDcompanyId
- the company IDparentGroupId
- the parent group ID- Returns:
- the matching groups
-
findByGtG_C_P
public static List<Group> findByGtG_C_P(long groupId, long companyId, long parentGroupId, int start, int end) Returns a range of all the groups where groupId > ? and companyId = ? and parentGroupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
groupId
- the group IDcompanyId
- the company IDparentGroupId
- the parent group IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of matching groups
-
findByGtG_C_P
public static List<Group> findByGtG_C_P(long groupId, long companyId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where groupId > ? and companyId = ? and parentGroupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
groupId
- the group IDcompanyId
- the company IDparentGroupId
- the parent group IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching groups
-
findByGtG_C_P
public static List<Group> findByGtG_C_P(long groupId, long companyId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where groupId > ? and companyId = ? and parentGroupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
groupId
- the group IDcompanyId
- the company IDparentGroupId
- the parent group IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching groups
-
findByGtG_C_P_First
public static Group findByGtG_C_P_First(long groupId, long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the first group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?.- Parameters:
groupId
- the group IDcompanyId
- the company IDparentGroupId
- the parent group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByGtG_C_P_First
public static Group fetchByGtG_C_P_First(long groupId, long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?.- Parameters:
groupId
- the group IDcompanyId
- the company IDparentGroupId
- the parent group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group, or
null
if a matching group could not be found
-
findByGtG_C_P_Last
public static Group findByGtG_C_P_Last(long groupId, long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the last group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?.- Parameters:
groupId
- the group IDcompanyId
- the company IDparentGroupId
- the parent group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByGtG_C_P_Last
public static Group fetchByGtG_C_P_Last(long groupId, long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?.- Parameters:
groupId
- the group IDcompanyId
- the company IDparentGroupId
- the parent group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group, or
null
if a matching group could not be found
-
removeByGtG_C_P
public static void removeByGtG_C_P(long groupId, long companyId, long parentGroupId) Removes all the groups where groupId > ? and companyId = ? and parentGroupId = ? from the database.- Parameters:
groupId
- the group IDcompanyId
- the company IDparentGroupId
- the parent group ID
-
countByGtG_C_P
public static int countByGtG_C_P(long groupId, long companyId, long parentGroupId) Returns the number of groups where groupId > ? and companyId = ? and parentGroupId = ?.- Parameters:
groupId
- the group IDcompanyId
- the company IDparentGroupId
- the parent group ID- Returns:
- the number of matching groups
-
findByC_C_C
public static Group findByC_C_C(long companyId, long classNameId, long classPK) throws NoSuchGroupException Returns the group where companyId = ? and classNameId = ? and classPK = ? or throws aNoSuchGroupException
if it could not be found.- Parameters:
companyId
- the company IDclassNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_C_C
Returns the group where companyId = ? and classNameId = ? and classPK = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDclassNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching group, or
null
if a matching group could not be found
-
fetchByC_C_C
public static Group fetchByC_C_C(long companyId, long classNameId, long classPK, boolean useFinderCache) Returns the group where companyId = ? and classNameId = ? and classPK = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDclassNameId
- the class name IDclassPK
- the class pkuseFinderCache
- whether to use the finder cache- Returns:
- the matching group, or
null
if a matching group could not be found
-
removeByC_C_C
public static Group removeByC_C_C(long companyId, long classNameId, long classPK) throws NoSuchGroupException Removes the group where companyId = ? and classNameId = ? and classPK = ? from the database.- Parameters:
companyId
- the company IDclassNameId
- the class name IDclassPK
- the class pk- Returns:
- the group that was removed
- Throws:
NoSuchGroupException
-
countByC_C_C
public static int countByC_C_C(long companyId, long classNameId, long classPK) Returns the number of groups where companyId = ? and classNameId = ? and classPK = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDclassPK
- the class pk- Returns:
- the number of matching groups
-
findByC_C_P
Returns all the groups where companyId = ? and classNameId = ? and parentGroupId = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDparentGroupId
- the parent group ID- Returns:
- the matching groups
-
findByC_C_P
public static List<Group> findByC_C_P(long companyId, long classNameId, long parentGroupId, int start, int end) Returns a range of all the groups where companyId = ? and classNameId = ? and parentGroupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDclassNameId
- the class name IDparentGroupId
- the parent group IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of matching groups
-
findByC_C_P
public static List<Group> findByC_C_P(long companyId, long classNameId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and classNameId = ? and parentGroupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDclassNameId
- the class name IDparentGroupId
- the parent group IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching groups
-
findByC_C_P
public static List<Group> findByC_C_P(long companyId, long classNameId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and classNameId = ? and parentGroupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDclassNameId
- the class name IDparentGroupId
- the parent group IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching groups
-
findByC_C_P_First
public static Group findByC_C_P_First(long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the first group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDparentGroupId
- the parent group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_C_P_First
public static Group fetchByC_C_P_First(long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDparentGroupId
- the parent group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group, or
null
if a matching group could not be found
-
findByC_C_P_Last
public static Group findByC_C_P_Last(long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the last group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDparentGroupId
- the parent group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_C_P_Last
public static Group fetchByC_C_P_Last(long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDparentGroupId
- the parent group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group, or
null
if a matching group could not be found
-
findByC_C_P_PrevAndNext
public static Group[] findByC_C_P_PrevAndNext(long groupId, long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the groups before and after the current group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.- Parameters:
groupId
- the primary key of the current groupcompanyId
- the company IDclassNameId
- the class name IDparentGroupId
- the parent group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next group
- Throws:
NoSuchGroupException
- if a group with the primary key could not be foundNoSuchGroupException
-
removeByC_C_P
public static void removeByC_C_P(long companyId, long classNameId, long parentGroupId) Removes all the groups where companyId = ? and classNameId = ? and parentGroupId = ? from the database.- Parameters:
companyId
- the company IDclassNameId
- the class name IDparentGroupId
- the parent group ID
-
countByC_C_P
public static int countByC_C_P(long companyId, long classNameId, long parentGroupId) Returns the number of groups where companyId = ? and classNameId = ? and parentGroupId = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDparentGroupId
- the parent group ID- Returns:
- the number of matching groups
-
findByC_C_S
Returns all the groups where companyId = ? and classNameId = ? and site = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDsite
- the site- Returns:
- the matching groups
-
findByC_C_S
public static List<Group> findByC_C_S(long companyId, long classNameId, boolean site, int start, int end) Returns a range of all the groups where companyId = ? and classNameId = ? and site = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDclassNameId
- the class name IDsite
- the sitestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of matching groups
-
findByC_C_S
public static List<Group> findByC_C_S(long companyId, long classNameId, boolean site, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and classNameId = ? and site = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDclassNameId
- the class name IDsite
- the sitestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching groups
-
findByC_C_S
public static List<Group> findByC_C_S(long companyId, long classNameId, boolean site, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and classNameId = ? and site = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDclassNameId
- the class name IDsite
- the sitestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching groups
-
findByC_C_S_First
public static Group findByC_C_S_First(long companyId, long classNameId, boolean site, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the first group in the ordered set where companyId = ? and classNameId = ? and site = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_C_S_First
public static Group fetchByC_C_S_First(long companyId, long classNameId, boolean site, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and classNameId = ? and site = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group, or
null
if a matching group could not be found
-
findByC_C_S_Last
public static Group findByC_C_S_Last(long companyId, long classNameId, boolean site, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the last group in the ordered set where companyId = ? and classNameId = ? and site = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_C_S_Last
public static Group fetchByC_C_S_Last(long companyId, long classNameId, boolean site, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and classNameId = ? and site = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group, or
null
if a matching group could not be found
-
findByC_C_S_PrevAndNext
public static Group[] findByC_C_S_PrevAndNext(long groupId, long companyId, long classNameId, boolean site, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the groups before and after the current group in the ordered set where companyId = ? and classNameId = ? and site = ?.- Parameters:
groupId
- the primary key of the current groupcompanyId
- the company IDclassNameId
- the class name IDsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next group
- Throws:
NoSuchGroupException
- if a group with the primary key could not be foundNoSuchGroupException
-
removeByC_C_S
public static void removeByC_C_S(long companyId, long classNameId, boolean site) Removes all the groups where companyId = ? and classNameId = ? and site = ? from the database.- Parameters:
companyId
- the company IDclassNameId
- the class name IDsite
- the site
-
countByC_C_S
public static int countByC_C_S(long companyId, long classNameId, boolean site) Returns the number of groups where companyId = ? and classNameId = ? and site = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDsite
- the site- Returns:
- the number of matching groups
-
findByC_P_S
Returns all the groups where companyId = ? and parentGroupId = ? and site = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDsite
- the site- Returns:
- the matching groups
-
findByC_P_S
public static List<Group> findByC_P_S(long companyId, long parentGroupId, boolean site, int start, int end) Returns a range of all the groups where companyId = ? and parentGroupId = ? and site = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDsite
- the sitestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of matching groups
-
findByC_P_S
public static List<Group> findByC_P_S(long companyId, long parentGroupId, boolean site, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and parentGroupId = ? and site = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDsite
- the sitestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching groups
-
findByC_P_S
public static List<Group> findByC_P_S(long companyId, long parentGroupId, boolean site, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and parentGroupId = ? and site = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDsite
- the sitestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching groups
-
findByC_P_S_First
public static Group findByC_P_S_First(long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_P_S_First
public static Group fetchByC_P_S_First(long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group, or
null
if a matching group could not be found
-
findByC_P_S_Last
public static Group findByC_P_S_Last(long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_P_S_Last
public static Group fetchByC_P_S_Last(long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group, or
null
if a matching group could not be found
-
findByC_P_S_PrevAndNext
public static Group[] findByC_P_S_PrevAndNext(long groupId, long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the groups before and after the current group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.- Parameters:
groupId
- the primary key of the current groupcompanyId
- the company IDparentGroupId
- the parent group IDsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next group
- Throws:
NoSuchGroupException
- if a group with the primary key could not be foundNoSuchGroupException
-
removeByC_P_S
public static void removeByC_P_S(long companyId, long parentGroupId, boolean site) Removes all the groups where companyId = ? and parentGroupId = ? and site = ? from the database.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDsite
- the site
-
countByC_P_S
public static int countByC_P_S(long companyId, long parentGroupId, boolean site) Returns the number of groups where companyId = ? and parentGroupId = ? and site = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDsite
- the site- Returns:
- the number of matching groups
-
findByC_L_GK
public static Group findByC_L_GK(long companyId, long liveGroupId, String groupKey) throws NoSuchGroupException Returns the group where companyId = ? and liveGroupId = ? and groupKey = ? or throws aNoSuchGroupException
if it could not be found.- Parameters:
companyId
- the company IDliveGroupId
- the live group IDgroupKey
- the group key- Returns:
- the matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_L_GK
Returns the group where companyId = ? and liveGroupId = ? and groupKey = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDliveGroupId
- the live group IDgroupKey
- the group key- Returns:
- the matching group, or
null
if a matching group could not be found
-
fetchByC_L_GK
public static Group fetchByC_L_GK(long companyId, long liveGroupId, String groupKey, boolean useFinderCache) Returns the group where companyId = ? and liveGroupId = ? and groupKey = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDliveGroupId
- the live group IDgroupKey
- the group keyuseFinderCache
- whether to use the finder cache- Returns:
- the matching group, or
null
if a matching group could not be found
-
removeByC_L_GK
public static Group removeByC_L_GK(long companyId, long liveGroupId, String groupKey) throws NoSuchGroupException Removes the group where companyId = ? and liveGroupId = ? and groupKey = ? from the database.- Parameters:
companyId
- the company IDliveGroupId
- the live group IDgroupKey
- the group key- Returns:
- the group that was removed
- Throws:
NoSuchGroupException
-
countByC_L_GK
Returns the number of groups where companyId = ? and liveGroupId = ? and groupKey = ?.- Parameters:
companyId
- the company IDliveGroupId
- the live group IDgroupKey
- the group key- Returns:
- the number of matching groups
-
findByC_LikeT_S
Returns all the groups where companyId = ? and treePath LIKE ? and site = ?.- Parameters:
companyId
- the company IDtreePath
- the tree pathsite
- the site- Returns:
- the matching groups
-
findByC_LikeT_S
public static List<Group> findByC_LikeT_S(long companyId, String treePath, boolean site, int start, int end) Returns a range of all the groups where companyId = ? and treePath LIKE ? and site = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDtreePath
- the tree pathsite
- the sitestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of matching groups
-
findByC_LikeT_S
public static List<Group> findByC_LikeT_S(long companyId, String treePath, boolean site, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and treePath LIKE ? and site = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDtreePath
- the tree pathsite
- the sitestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching groups
-
findByC_LikeT_S
public static List<Group> findByC_LikeT_S(long companyId, String treePath, boolean site, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and treePath LIKE ? and site = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDtreePath
- the tree pathsite
- the sitestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching groups
-
findByC_LikeT_S_First
public static Group findByC_LikeT_S_First(long companyId, String treePath, boolean site, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the first group in the ordered set where companyId = ? and treePath LIKE ? and site = ?.- Parameters:
companyId
- the company IDtreePath
- the tree pathsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_LikeT_S_First
public static Group fetchByC_LikeT_S_First(long companyId, String treePath, boolean site, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and treePath LIKE ? and site = ?.- Parameters:
companyId
- the company IDtreePath
- the tree pathsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group, or
null
if a matching group could not be found
-
findByC_LikeT_S_Last
public static Group findByC_LikeT_S_Last(long companyId, String treePath, boolean site, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the last group in the ordered set where companyId = ? and treePath LIKE ? and site = ?.- Parameters:
companyId
- the company IDtreePath
- the tree pathsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_LikeT_S_Last
public static Group fetchByC_LikeT_S_Last(long companyId, String treePath, boolean site, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and treePath LIKE ? and site = ?.- Parameters:
companyId
- the company IDtreePath
- the tree pathsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group, or
null
if a matching group could not be found
-
findByC_LikeT_S_PrevAndNext
public static Group[] findByC_LikeT_S_PrevAndNext(long groupId, long companyId, String treePath, boolean site, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the groups before and after the current group in the ordered set where companyId = ? and treePath LIKE ? and site = ?.- Parameters:
groupId
- the primary key of the current groupcompanyId
- the company IDtreePath
- the tree pathsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next group
- Throws:
NoSuchGroupException
- if a group with the primary key could not be foundNoSuchGroupException
-
removeByC_LikeT_S
Removes all the groups where companyId = ? and treePath LIKE ? and site = ? from the database.- Parameters:
companyId
- the company IDtreePath
- the tree pathsite
- the site
-
countByC_LikeT_S
Returns the number of groups where companyId = ? and treePath LIKE ? and site = ?.- Parameters:
companyId
- the company IDtreePath
- the tree pathsite
- the site- Returns:
- the number of matching groups
-
findByC_LikeN_S
Returns all the groups where companyId = ? and name LIKE ? and site = ?.- Parameters:
companyId
- the company IDname
- the namesite
- the site- Returns:
- the matching groups
-
findByC_LikeN_S
public static List<Group> findByC_LikeN_S(long companyId, String name, boolean site, int start, int end) Returns a range of all the groups where companyId = ? and name LIKE ? and site = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDname
- the namesite
- the sitestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of matching groups
-
findByC_LikeN_S
public static List<Group> findByC_LikeN_S(long companyId, String name, boolean site, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and name LIKE ? and site = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDname
- the namesite
- the sitestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching groups
-
findByC_LikeN_S
public static List<Group> findByC_LikeN_S(long companyId, String name, boolean site, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and name LIKE ? and site = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDname
- the namesite
- the sitestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching groups
-
findByC_LikeN_S_First
public static Group findByC_LikeN_S_First(long companyId, String name, boolean site, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the first group in the ordered set where companyId = ? and name LIKE ? and site = ?.- Parameters:
companyId
- the company IDname
- the namesite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_LikeN_S_First
public static Group fetchByC_LikeN_S_First(long companyId, String name, boolean site, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and name LIKE ? and site = ?.- Parameters:
companyId
- the company IDname
- the namesite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group, or
null
if a matching group could not be found
-
findByC_LikeN_S_Last
public static Group findByC_LikeN_S_Last(long companyId, String name, boolean site, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the last group in the ordered set where companyId = ? and name LIKE ? and site = ?.- Parameters:
companyId
- the company IDname
- the namesite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_LikeN_S_Last
public static Group fetchByC_LikeN_S_Last(long companyId, String name, boolean site, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and name LIKE ? and site = ?.- Parameters:
companyId
- the company IDname
- the namesite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group, or
null
if a matching group could not be found
-
findByC_LikeN_S_PrevAndNext
public static Group[] findByC_LikeN_S_PrevAndNext(long groupId, long companyId, String name, boolean site, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the groups before and after the current group in the ordered set where companyId = ? and name LIKE ? and site = ?.- Parameters:
groupId
- the primary key of the current groupcompanyId
- the company IDname
- the namesite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next group
- Throws:
NoSuchGroupException
- if a group with the primary key could not be foundNoSuchGroupException
-
removeByC_LikeN_S
Removes all the groups where companyId = ? and name LIKE ? and site = ? from the database.- Parameters:
companyId
- the company IDname
- the namesite
- the site
-
countByC_LikeN_S
Returns the number of groups where companyId = ? and name LIKE ? and site = ?.- Parameters:
companyId
- the company IDname
- the namesite
- the site- Returns:
- the number of matching groups
-
findByC_S_A
Returns all the groups where companyId = ? and site = ? and active = ?.- Parameters:
companyId
- the company IDsite
- the siteactive
- the active- Returns:
- the matching groups
-
findByC_S_A
public static List<Group> findByC_S_A(long companyId, boolean site, boolean active, int start, int end) Returns a range of all the groups where companyId = ? and site = ? and active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDsite
- the siteactive
- the activestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of matching groups
-
findByC_S_A
public static List<Group> findByC_S_A(long companyId, boolean site, boolean active, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and site = ? and active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDsite
- the siteactive
- the activestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching groups
-
findByC_S_A
public static List<Group> findByC_S_A(long companyId, boolean site, boolean active, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and site = ? and active = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDsite
- the siteactive
- the activestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching groups
-
findByC_S_A_First
public static Group findByC_S_A_First(long companyId, boolean site, boolean active, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the first group in the ordered set where companyId = ? and site = ? and active = ?.- Parameters:
companyId
- the company IDsite
- the siteactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_S_A_First
public static Group fetchByC_S_A_First(long companyId, boolean site, boolean active, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and site = ? and active = ?.- Parameters:
companyId
- the company IDsite
- the siteactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group, or
null
if a matching group could not be found
-
findByC_S_A_Last
public static Group findByC_S_A_Last(long companyId, boolean site, boolean active, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the last group in the ordered set where companyId = ? and site = ? and active = ?.- Parameters:
companyId
- the company IDsite
- the siteactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_S_A_Last
public static Group fetchByC_S_A_Last(long companyId, boolean site, boolean active, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and site = ? and active = ?.- Parameters:
companyId
- the company IDsite
- the siteactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group, or
null
if a matching group could not be found
-
findByC_S_A_PrevAndNext
public static Group[] findByC_S_A_PrevAndNext(long groupId, long companyId, boolean site, boolean active, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the groups before and after the current group in the ordered set where companyId = ? and site = ? and active = ?.- Parameters:
groupId
- the primary key of the current groupcompanyId
- the company IDsite
- the siteactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next group
- Throws:
NoSuchGroupException
- if a group with the primary key could not be foundNoSuchGroupException
-
removeByC_S_A
public static void removeByC_S_A(long companyId, boolean site, boolean active) Removes all the groups where companyId = ? and site = ? and active = ? from the database.- Parameters:
companyId
- the company IDsite
- the siteactive
- the active
-
countByC_S_A
public static int countByC_S_A(long companyId, boolean site, boolean active) Returns the number of groups where companyId = ? and site = ? and active = ?.- Parameters:
companyId
- the company IDsite
- the siteactive
- the active- Returns:
- the number of matching groups
-
findByGtG_C_C_P
public static List<Group> findByGtG_C_C_P(long groupId, long companyId, long classNameId, long parentGroupId) Returns all the groups where groupId > ? and companyId = ? and classNameId = ? and parentGroupId = ?.- Parameters:
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDparentGroupId
- the parent group ID- Returns:
- the matching groups
-
findByGtG_C_C_P
public static List<Group> findByGtG_C_C_P(long groupId, long companyId, long classNameId, long parentGroupId, int start, int end) Returns a range of all the groups where groupId > ? and companyId = ? and classNameId = ? and parentGroupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDparentGroupId
- the parent group IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of matching groups
-
findByGtG_C_C_P
public static List<Group> findByGtG_C_C_P(long groupId, long companyId, long classNameId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where groupId > ? and companyId = ? and classNameId = ? and parentGroupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDparentGroupId
- the parent group IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching groups
-
findByGtG_C_C_P
public static List<Group> findByGtG_C_C_P(long groupId, long companyId, long classNameId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where groupId > ? and companyId = ? and classNameId = ? and parentGroupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDparentGroupId
- the parent group IDstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching groups
-
findByGtG_C_C_P_First
public static Group findByGtG_C_C_P_First(long groupId, long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the first group in the ordered set where groupId > ? and companyId = ? and classNameId = ? and parentGroupId = ?.- Parameters:
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDparentGroupId
- the parent group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByGtG_C_C_P_First
public static Group fetchByGtG_C_C_P_First(long groupId, long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where groupId > ? and companyId = ? and classNameId = ? and parentGroupId = ?.- Parameters:
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDparentGroupId
- the parent group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group, or
null
if a matching group could not be found
-
findByGtG_C_C_P_Last
public static Group findByGtG_C_C_P_Last(long groupId, long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the last group in the ordered set where groupId > ? and companyId = ? and classNameId = ? and parentGroupId = ?.- Parameters:
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDparentGroupId
- the parent group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByGtG_C_C_P_Last
public static Group fetchByGtG_C_C_P_Last(long groupId, long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where groupId > ? and companyId = ? and classNameId = ? and parentGroupId = ?.- Parameters:
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDparentGroupId
- the parent group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group, or
null
if a matching group could not be found
-
removeByGtG_C_C_P
public static void removeByGtG_C_C_P(long groupId, long companyId, long classNameId, long parentGroupId) Removes all the groups where groupId > ? and companyId = ? and classNameId = ? and parentGroupId = ? from the database.- Parameters:
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDparentGroupId
- the parent group ID
-
countByGtG_C_C_P
public static int countByGtG_C_C_P(long groupId, long companyId, long classNameId, long parentGroupId) Returns the number of groups where groupId > ? and companyId = ? and classNameId = ? and parentGroupId = ?.- Parameters:
groupId
- the group IDcompanyId
- the company IDclassNameId
- the class name IDparentGroupId
- the parent group ID- Returns:
- the number of matching groups
-
findByGtG_C_P_S
public static List<Group> findByGtG_C_P_S(long groupId, long companyId, long parentGroupId, boolean site) Returns all the groups where groupId > ? and companyId = ? and parentGroupId = ? and site = ?.- Parameters:
groupId
- the group IDcompanyId
- the company IDparentGroupId
- the parent group IDsite
- the site- Returns:
- the matching groups
-
findByGtG_C_P_S
public static List<Group> findByGtG_C_P_S(long groupId, long companyId, long parentGroupId, boolean site, int start, int end) Returns a range of all the groups where groupId > ? and companyId = ? and parentGroupId = ? and site = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
groupId
- the group IDcompanyId
- the company IDparentGroupId
- the parent group IDsite
- the sitestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of matching groups
-
findByGtG_C_P_S
public static List<Group> findByGtG_C_P_S(long groupId, long companyId, long parentGroupId, boolean site, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where groupId > ? and companyId = ? and parentGroupId = ? and site = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
groupId
- the group IDcompanyId
- the company IDparentGroupId
- the parent group IDsite
- the sitestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching groups
-
findByGtG_C_P_S
public static List<Group> findByGtG_C_P_S(long groupId, long companyId, long parentGroupId, boolean site, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where groupId > ? and companyId = ? and parentGroupId = ? and site = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
groupId
- the group IDcompanyId
- the company IDparentGroupId
- the parent group IDsite
- the sitestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching groups
-
findByGtG_C_P_S_First
public static Group findByGtG_C_P_S_First(long groupId, long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the first group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ? and site = ?.- Parameters:
groupId
- the group IDcompanyId
- the company IDparentGroupId
- the parent group IDsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByGtG_C_P_S_First
public static Group fetchByGtG_C_P_S_First(long groupId, long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ? and site = ?.- Parameters:
groupId
- the group IDcompanyId
- the company IDparentGroupId
- the parent group IDsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group, or
null
if a matching group could not be found
-
findByGtG_C_P_S_Last
public static Group findByGtG_C_P_S_Last(long groupId, long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the last group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ? and site = ?.- Parameters:
groupId
- the group IDcompanyId
- the company IDparentGroupId
- the parent group IDsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByGtG_C_P_S_Last
public static Group fetchByGtG_C_P_S_Last(long groupId, long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ? and site = ?.- Parameters:
groupId
- the group IDcompanyId
- the company IDparentGroupId
- the parent group IDsite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group, or
null
if a matching group could not be found
-
removeByGtG_C_P_S
public static void removeByGtG_C_P_S(long groupId, long companyId, long parentGroupId, boolean site) Removes all the groups where groupId > ? and companyId = ? and parentGroupId = ? and site = ? from the database.- Parameters:
groupId
- the group IDcompanyId
- the company IDparentGroupId
- the parent group IDsite
- the site
-
countByGtG_C_P_S
public static int countByGtG_C_P_S(long groupId, long companyId, long parentGroupId, boolean site) Returns the number of groups where groupId > ? and companyId = ? and parentGroupId = ? and site = ?.- Parameters:
groupId
- the group IDcompanyId
- the company IDparentGroupId
- the parent group IDsite
- the site- Returns:
- the number of matching groups
-
findByC_C_L_GK
public static Group findByC_C_L_GK(long companyId, long classNameId, long liveGroupId, String groupKey) throws NoSuchGroupException Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and groupKey = ? or throws aNoSuchGroupException
if it could not be found.- Parameters:
companyId
- the company IDclassNameId
- the class name IDliveGroupId
- the live group IDgroupKey
- the group key- Returns:
- the matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_C_L_GK
public static Group fetchByC_C_L_GK(long companyId, long classNameId, long liveGroupId, String groupKey) Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and groupKey = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDclassNameId
- the class name IDliveGroupId
- the live group IDgroupKey
- the group key- Returns:
- the matching group, or
null
if a matching group could not be found
-
fetchByC_C_L_GK
public static Group fetchByC_C_L_GK(long companyId, long classNameId, long liveGroupId, String groupKey, boolean useFinderCache) Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and groupKey = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDclassNameId
- the class name IDliveGroupId
- the live group IDgroupKey
- the group keyuseFinderCache
- whether to use the finder cache- Returns:
- the matching group, or
null
if a matching group could not be found
-
removeByC_C_L_GK
public static Group removeByC_C_L_GK(long companyId, long classNameId, long liveGroupId, String groupKey) throws NoSuchGroupException Removes the group where companyId = ? and classNameId = ? and liveGroupId = ? and groupKey = ? from the database.- Parameters:
companyId
- the company IDclassNameId
- the class name IDliveGroupId
- the live group IDgroupKey
- the group key- Returns:
- the group that was removed
- Throws:
NoSuchGroupException
-
countByC_C_L_GK
public static int countByC_C_L_GK(long companyId, long classNameId, long liveGroupId, String groupKey) Returns the number of groups where companyId = ? and classNameId = ? and liveGroupId = ? and groupKey = ?.- Parameters:
companyId
- the company IDclassNameId
- the class name IDliveGroupId
- the live group IDgroupKey
- the group key- Returns:
- the number of matching groups
-
findByC_P_LikeN_S
public static List<Group> findByC_P_LikeN_S(long companyId, long parentGroupId, String name, boolean site) Returns all the groups where companyId = ? and parentGroupId = ? and name LIKE ? and site = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDname
- the namesite
- the site- Returns:
- the matching groups
-
findByC_P_LikeN_S
public static List<Group> findByC_P_LikeN_S(long companyId, long parentGroupId, String name, boolean site, int start, int end) Returns a range of all the groups where companyId = ? and parentGroupId = ? and name LIKE ? and site = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDname
- the namesite
- the sitestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of matching groups
-
findByC_P_LikeN_S
public static List<Group> findByC_P_LikeN_S(long companyId, long parentGroupId, String name, boolean site, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and parentGroupId = ? and name LIKE ? and site = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDname
- the namesite
- the sitestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching groups
-
findByC_P_LikeN_S
public static List<Group> findByC_P_LikeN_S(long companyId, long parentGroupId, String name, boolean site, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and parentGroupId = ? and name LIKE ? and site = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDname
- the namesite
- the sitestart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching groups
-
findByC_P_LikeN_S_First
public static Group findByC_P_LikeN_S_First(long companyId, long parentGroupId, String name, boolean site, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and name LIKE ? and site = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDname
- the namesite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_P_LikeN_S_First
public static Group fetchByC_P_LikeN_S_First(long companyId, long parentGroupId, String name, boolean site, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and name LIKE ? and site = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDname
- the namesite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group, or
null
if a matching group could not be found
-
findByC_P_LikeN_S_Last
public static Group findByC_P_LikeN_S_Last(long companyId, long parentGroupId, String name, boolean site, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and name LIKE ? and site = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDname
- the namesite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_P_LikeN_S_Last
public static Group fetchByC_P_LikeN_S_Last(long companyId, long parentGroupId, String name, boolean site, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and name LIKE ? and site = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDname
- the namesite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group, or
null
if a matching group could not be found
-
findByC_P_LikeN_S_PrevAndNext
public static Group[] findByC_P_LikeN_S_PrevAndNext(long groupId, long companyId, long parentGroupId, String name, boolean site, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the groups before and after the current group in the ordered set where companyId = ? and parentGroupId = ? and name LIKE ? and site = ?.- Parameters:
groupId
- the primary key of the current groupcompanyId
- the company IDparentGroupId
- the parent group IDname
- the namesite
- the siteorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next group
- Throws:
NoSuchGroupException
- if a group with the primary key could not be foundNoSuchGroupException
-
removeByC_P_LikeN_S
public static void removeByC_P_LikeN_S(long companyId, long parentGroupId, String name, boolean site) Removes all the groups where companyId = ? and parentGroupId = ? and name LIKE ? and site = ? from the database.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDname
- the namesite
- the site
-
countByC_P_LikeN_S
Returns the number of groups where companyId = ? and parentGroupId = ? and name LIKE ? and site = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDname
- the namesite
- the site- Returns:
- the number of matching groups
-
findByC_P_S_I
public static List<Group> findByC_P_S_I(long companyId, long parentGroupId, boolean site, boolean inheritContent) Returns all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDsite
- the siteinheritContent
- the inherit content- Returns:
- the matching groups
-
findByC_P_S_I
public static List<Group> findByC_P_S_I(long companyId, long parentGroupId, boolean site, boolean inheritContent, int start, int end) Returns a range of all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDsite
- the siteinheritContent
- the inherit contentstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of matching groups
-
findByC_P_S_I
public static List<Group> findByC_P_S_I(long companyId, long parentGroupId, boolean site, boolean inheritContent, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDsite
- the siteinheritContent
- the inherit contentstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching groups
-
findByC_P_S_I
public static List<Group> findByC_P_S_I(long companyId, long parentGroupId, boolean site, boolean inheritContent, int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDsite
- the siteinheritContent
- the inherit contentstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching groups
-
findByC_P_S_I_First
public static Group findByC_P_S_I_First(long companyId, long parentGroupId, boolean site, boolean inheritContent, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDsite
- the siteinheritContent
- the inherit contentorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_P_S_I_First
public static Group fetchByC_P_S_I_First(long companyId, long parentGroupId, boolean site, boolean inheritContent, OrderByComparator<Group> orderByComparator) Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDsite
- the siteinheritContent
- the inherit contentorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching group, or
null
if a matching group could not be found
-
findByC_P_S_I_Last
public static Group findByC_P_S_I_Last(long companyId, long parentGroupId, boolean site, boolean inheritContent, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDsite
- the siteinheritContent
- the inherit contentorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByC_P_S_I_Last
public static Group fetchByC_P_S_I_Last(long companyId, long parentGroupId, boolean site, boolean inheritContent, OrderByComparator<Group> orderByComparator) Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDsite
- the siteinheritContent
- the inherit contentorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching group, or
null
if a matching group could not be found
-
findByC_P_S_I_PrevAndNext
public static Group[] findByC_P_S_I_PrevAndNext(long groupId, long companyId, long parentGroupId, boolean site, boolean inheritContent, OrderByComparator<Group> orderByComparator) throws NoSuchGroupException Returns the groups before and after the current group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.- Parameters:
groupId
- the primary key of the current groupcompanyId
- the company IDparentGroupId
- the parent group IDsite
- the siteinheritContent
- the inherit contentorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next group
- Throws:
NoSuchGroupException
- if a group with the primary key could not be foundNoSuchGroupException
-
removeByC_P_S_I
public static void removeByC_P_S_I(long companyId, long parentGroupId, boolean site, boolean inheritContent) Removes all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ? from the database.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDsite
- the siteinheritContent
- the inherit content
-
countByC_P_S_I
public static int countByC_P_S_I(long companyId, long parentGroupId, boolean site, boolean inheritContent) Returns the number of groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.- Parameters:
companyId
- the company IDparentGroupId
- the parent group IDsite
- the siteinheritContent
- the inherit content- Returns:
- the number of matching groups
-
findByERC_C
public static Group findByERC_C(String externalReferenceCode, long companyId) throws NoSuchGroupException Returns the group where externalReferenceCode = ? and companyId = ? or throws aNoSuchGroupException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching group
- Throws:
NoSuchGroupException
- if a matching group could not be foundNoSuchGroupException
-
fetchByERC_C
Returns the group where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching group, or
null
if a matching group could not be found
-
fetchByERC_C
public static Group fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the group where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching group, or
null
if a matching group could not be found
-
removeByERC_C
public static Group removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchGroupException Removes the group where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the group that was removed
- Throws:
NoSuchGroupException
-
countByERC_C
Returns the number of groups where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching groups
-
cacheResult
Caches the group in the entity cache if it is enabled.- Parameters:
group
- the group
-
cacheResult
Caches the groups in the entity cache if it is enabled.- Parameters:
groups
- the groups
-
create
Creates a new group with the primary key. Does not add the group to the database.- Parameters:
groupId
- the primary key for the new group- Returns:
- the new group
-
remove
Removes the group with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
groupId
- the primary key of the group- Returns:
- the group that was removed
- Throws:
NoSuchGroupException
- if a group with the primary key could not be foundNoSuchGroupException
-
updateImpl
-
findByPrimaryKey
Returns the group with the primary key or throws aNoSuchGroupException
if it could not be found.- Parameters:
groupId
- the primary key of the group- Returns:
- the group
- Throws:
NoSuchGroupException
- if a group with the primary key could not be foundNoSuchGroupException
-
fetchByPrimaryKey
Returns the group with the primary key or returnsnull
if it could not be found.- Parameters:
groupId
- the primary key of the group- Returns:
- the group, or
null
if a group with the primary key could not be found
-
findAll
Returns all the groups.- Returns:
- the groups
-
findAll
Returns a range of all the groups.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
start
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of groups
-
findAll
Returns an ordered range of all the groups.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
start
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of groups
-
findAll
public static List<Group> findAll(int start, int end, OrderByComparator<Group> orderByComparator, boolean useFinderCache) Returns an ordered range of all the groups.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
start
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of groups
-
removeAll
public static void removeAll()Removes all the groups from the database. -
countAll
public static int countAll()Returns the number of groups.- Returns:
- the number of groups
-
getOrganizationPrimaryKeys
public static long[] getOrganizationPrimaryKeys(long pk) Returns the primaryKeys of organizations associated with the group.- Parameters:
pk
- the primary key of the group- Returns:
- long[] of the primaryKeys of organizations associated with the group
-
getOrganizations
Returns all the organizations associated with the group.- Parameters:
pk
- the primary key of the group- Returns:
- the organizations associated with the group
-
getOrganizations
Returns a range of all the organizations associated with the group.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
pk
- the primary key of the groupstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of organizations associated with the group
-
getOrganizations
public static List<Organization> getOrganizations(long pk, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations associated with the group.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
pk
- the primary key of the groupstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of organizations associated with the group
-
getOrganizationsSize
public static int getOrganizationsSize(long pk) Returns the number of organizations associated with the group.- Parameters:
pk
- the primary key of the group- Returns:
- the number of organizations associated with the group
-
containsOrganization
public static boolean containsOrganization(long pk, long organizationPK) Returnstrue
if the organization is associated with the group.- Parameters:
pk
- the primary key of the grouporganizationPK
- the primary key of the organization- Returns:
true
if the organization is associated with the group;false
otherwise
-
containsOrganizations
public static boolean containsOrganizations(long pk) Returnstrue
if the group has any organizations associated with it.- Parameters:
pk
- the primary key of the group to check for associations with organizations- Returns:
true
if the group has any organizations associated with it;false
otherwise
-
addOrganization
public static boolean addOrganization(long pk, long organizationPK) Adds an association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the grouporganizationPK
- the primary key of the organization- Returns:
true
if an association between the group and the organization was added;false
if they were already associated
-
addOrganization
Adds an association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the grouporganization
- the organization- Returns:
true
if an association between the group and the organization was added;false
if they were already associated
-
addOrganizations
public static boolean addOrganizations(long pk, long[] organizationPKs) Adds an association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the grouporganizationPKs
- the primary keys of the organizations- Returns:
true
if at least one association between the group and the organizations was added;false
if they were all already associated
-
addOrganizations
Adds an association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the grouporganizations
- the organizations- Returns:
true
if at least one association between the group and the organizations was added;false
if they were all already associated
-
clearOrganizations
public static void clearOrganizations(long pk) Clears all associations between the group and its organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the group to clear the associated organizations from
-
removeOrganization
public static void removeOrganization(long pk, long organizationPK) Removes the association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the grouporganizationPK
- the primary key of the organization
-
removeOrganization
Removes the association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the grouporganization
- the organization
-
removeOrganizations
public static void removeOrganizations(long pk, long[] organizationPKs) Removes the association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the grouporganizationPKs
- the primary keys of the organizations
-
removeOrganizations
Removes the association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the grouporganizations
- the organizations
-
setOrganizations
public static void setOrganizations(long pk, long[] organizationPKs) Sets the organizations associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the grouporganizationPKs
- the primary keys of the organizations to be associated with the group
-
setOrganizations
Sets the organizations associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the grouporganizations
- the organizations to be associated with the group
-
getRolePrimaryKeys
public static long[] getRolePrimaryKeys(long pk) Returns the primaryKeys of roles associated with the group.- Parameters:
pk
- the primary key of the group- Returns:
- long[] of the primaryKeys of roles associated with the group
-
getRoles
Returns all the roles associated with the group.- Parameters:
pk
- the primary key of the group- Returns:
- the roles associated with the group
-
getRoles
Returns a range of all the roles associated with the group.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
pk
- the primary key of the groupstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of roles associated with the group
-
getRoles
public static List<Role> getRoles(long pk, int start, int end, OrderByComparator<Role> orderByComparator) Returns an ordered range of all the roles associated with the group.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
pk
- the primary key of the groupstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of roles associated with the group
-
getRolesSize
public static int getRolesSize(long pk) Returns the number of roles associated with the group.- Parameters:
pk
- the primary key of the group- Returns:
- the number of roles associated with the group
-
containsRole
public static boolean containsRole(long pk, long rolePK) Returnstrue
if the role is associated with the group.- Parameters:
pk
- the primary key of the grouprolePK
- the primary key of the role- Returns:
true
if the role is associated with the group;false
otherwise
-
containsRoles
public static boolean containsRoles(long pk) Returnstrue
if the group has any roles associated with it.- Parameters:
pk
- the primary key of the group to check for associations with roles- Returns:
true
if the group has any roles associated with it;false
otherwise
-
addRole
public static boolean addRole(long pk, long rolePK) Adds an association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the grouprolePK
- the primary key of the role- Returns:
true
if an association between the group and the role was added;false
if they were already associated
-
addRole
Adds an association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the grouprole
- the role- Returns:
true
if an association between the group and the role was added;false
if they were already associated
-
addRoles
public static boolean addRoles(long pk, long[] rolePKs) Adds an association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the grouprolePKs
- the primary keys of the roles- Returns:
true
if at least one association between the group and the roles was added;false
if they were all already associated
-
addRoles
Adds an association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the grouproles
- the roles- Returns:
true
if at least one association between the group and the roles was added;false
if they were all already associated
-
clearRoles
public static void clearRoles(long pk) Clears all associations between the group and its roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the group to clear the associated roles from
-
removeRole
public static void removeRole(long pk, long rolePK) Removes the association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the grouprolePK
- the primary key of the role
-
removeRole
Removes the association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the grouprole
- the role
-
removeRoles
public static void removeRoles(long pk, long[] rolePKs) Removes the association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the grouprolePKs
- the primary keys of the roles
-
removeRoles
Removes the association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the grouproles
- the roles
-
setRoles
public static void setRoles(long pk, long[] rolePKs) Sets the roles associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the grouprolePKs
- the primary keys of the roles to be associated with the group
-
setRoles
Sets the roles associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the grouproles
- the roles to be associated with the group
-
getUserGroupPrimaryKeys
public static long[] getUserGroupPrimaryKeys(long pk) Returns the primaryKeys of user groups associated with the group.- Parameters:
pk
- the primary key of the group- Returns:
- long[] of the primaryKeys of user groups associated with the group
-
getUserGroups
Returns all the user groups associated with the group.- Parameters:
pk
- the primary key of the group- Returns:
- the user groups associated with the group
-
getUserGroups
Returns a range of all the user groups associated with the group.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
pk
- the primary key of the groupstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of user groups associated with the group
-
getUserGroups
public static List<UserGroup> getUserGroups(long pk, int start, int end, OrderByComparator<UserGroup> orderByComparator) Returns an ordered range of all the user groups associated with the group.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
pk
- the primary key of the groupstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of user groups associated with the group
-
getUserGroupsSize
public static int getUserGroupsSize(long pk) Returns the number of user groups associated with the group.- Parameters:
pk
- the primary key of the group- Returns:
- the number of user groups associated with the group
-
containsUserGroup
public static boolean containsUserGroup(long pk, long userGroupPK) Returnstrue
if the user group is associated with the group.- Parameters:
pk
- the primary key of the groupuserGroupPK
- the primary key of the user group- Returns:
true
if the user group is associated with the group;false
otherwise
-
containsUserGroups
public static boolean containsUserGroups(long pk) Returnstrue
if the group has any user groups associated with it.- Parameters:
pk
- the primary key of the group to check for associations with user groups- Returns:
true
if the group has any user groups associated with it;false
otherwise
-
addUserGroup
public static boolean addUserGroup(long pk, long userGroupPK) Adds an association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the groupuserGroupPK
- the primary key of the user group- Returns:
true
if an association between the group and the user group was added;false
if they were already associated
-
addUserGroup
Adds an association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the groupuserGroup
- the user group- Returns:
true
if an association between the group and the user group was added;false
if they were already associated
-
addUserGroups
public static boolean addUserGroups(long pk, long[] userGroupPKs) Adds an association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the groupuserGroupPKs
- the primary keys of the user groups- Returns:
true
if at least one association between the group and the user groups was added;false
if they were all already associated
-
addUserGroups
Adds an association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the groupuserGroups
- the user groups- Returns:
true
if at least one association between the group and the user groups was added;false
if they were all already associated
-
clearUserGroups
public static void clearUserGroups(long pk) Clears all associations between the group and its user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the group to clear the associated user groups from
-
removeUserGroup
public static void removeUserGroup(long pk, long userGroupPK) Removes the association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the groupuserGroupPK
- the primary key of the user group
-
removeUserGroup
Removes the association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the groupuserGroup
- the user group
-
removeUserGroups
public static void removeUserGroups(long pk, long[] userGroupPKs) Removes the association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the groupuserGroupPKs
- the primary keys of the user groups
-
removeUserGroups
Removes the association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the groupuserGroups
- the user groups
-
setUserGroups
public static void setUserGroups(long pk, long[] userGroupPKs) Sets the user groups associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the groupuserGroupPKs
- the primary keys of the user groups to be associated with the group
-
setUserGroups
Sets the user groups associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the groupuserGroups
- the user groups to be associated with the group
-
getUserPrimaryKeys
public static long[] getUserPrimaryKeys(long pk) Returns the primaryKeys of users associated with the group.- Parameters:
pk
- the primary key of the group- Returns:
- long[] of the primaryKeys of users associated with the group
-
getUsers
Returns all the users associated with the group.- Parameters:
pk
- the primary key of the group- Returns:
- the users associated with the group
-
getUsers
Returns a range of all the users associated with the group.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
pk
- the primary key of the groupstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)- Returns:
- the range of users associated with the group
-
getUsers
public static List<User> getUsers(long pk, int start, int end, OrderByComparator<User> orderByComparator) Returns an ordered range of all the users associated with the group.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromGroupModelImpl
.- Parameters:
pk
- the primary key of the groupstart
- the lower bound of the range of groupsend
- the upper bound of the range of groups (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of users associated with the group
-
getUsersSize
public static int getUsersSize(long pk) Returns the number of users associated with the group.- Parameters:
pk
- the primary key of the group- Returns:
- the number of users associated with the group
-
containsUser
public static boolean containsUser(long pk, long userPK) Returnstrue
if the user is associated with the group.- Parameters:
pk
- the primary key of the groupuserPK
- the primary key of the user- Returns:
true
if the user is associated with the group;false
otherwise
-
containsUsers
public static boolean containsUsers(long pk) Returnstrue
if the group has any users associated with it.- Parameters:
pk
- the primary key of the group to check for associations with users- Returns:
true
if the group has any users associated with it;false
otherwise
-
addUser
public static boolean addUser(long pk, long userPK) Adds an association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the groupuserPK
- the primary key of the user- Returns:
true
if an association between the group and the user was added;false
if they were already associated
-
addUser
Adds an association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the groupuser
- the user- Returns:
true
if an association between the group and the user was added;false
if they were already associated
-
addUsers
public static boolean addUsers(long pk, long[] userPKs) Adds an association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the groupuserPKs
- the primary keys of the users- Returns:
true
if at least one association between the group and the users was added;false
if they were all already associated
-
addUsers
Adds an association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the groupusers
- the users- Returns:
true
if at least one association between the group and the users was added;false
if they were all already associated
-
clearUsers
public static void clearUsers(long pk) Clears all associations between the group and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the group to clear the associated users from
-
removeUser
public static void removeUser(long pk, long userPK) Removes the association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the groupuserPK
- the primary key of the user
-
removeUser
Removes the association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the groupuser
- the user
-
removeUsers
public static void removeUsers(long pk, long[] userPKs) Removes the association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the groupuserPKs
- the primary keys of the users
-
removeUsers
Removes the association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the groupusers
- the users
-
setUsers
public static void setUsers(long pk, long[] userPKs) Sets the users associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the groupuserPKs
- the primary keys of the users to be associated with the group
-
setUsers
Sets the users associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the groupusers
- the users to be associated with the group
-
getPersistence
-
setPersistence
-