Liferay 6.2-ce-ga5

com.liferay.portal.service.persistence
Class GroupUtil

java.lang.Object
  extended by com.liferay.portal.service.persistence.GroupUtil

@ProviderType
public class GroupUtil
extends Object

The persistence utility for the group service. This utility wraps 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

See Also:
GroupPersistence, GroupPersistenceImpl

Constructor Summary
GroupUtil()
           
 
Method Summary
static void addOrganization(long pk, long organizationPK)
          Adds an association between the group and the organization.
static void addOrganization(long pk, Organization organization)
          Adds an association between the group and the organization.
static void addOrganizations(long pk, List<Organization> organizations)
          Adds an association between the group and the organizations.
static void addOrganizations(long pk, long[] organizationPKs)
          Adds an association between the group and the organizations.
static void addRole(long pk, long rolePK)
          Adds an association between the group and the role.
static void addRole(long pk, Role role)
          Adds an association between the group and the role.
static void addRoles(long pk, List<Role> roles)
          Adds an association between the group and the roles.
static void addRoles(long pk, long[] rolePKs)
          Adds an association between the group and the roles.
static void addUser(long pk, long userPK)
          Adds an association between the group and the user.
static void addUser(long pk, User user)
          Adds an association between the group and the user.
static void addUserGroup(long pk, long userGroupPK)
          Adds an association between the group and the user group.
static void addUserGroup(long pk, UserGroup userGroup)
          Adds an association between the group and the user group.
static void addUserGroups(long pk, List<UserGroup> userGroups)
          Adds an association between the group and the user groups.
static void addUserGroups(long pk, long[] userGroupPKs)
          Adds an association between the group and the user groups.
static void addUsers(long pk, List<User> users)
          Adds an association between the group and the users.
static void addUsers(long pk, long[] userPKs)
          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 clearCache()
           
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)
          Returns true if the organization is associated with the group.
static boolean containsOrganizations(long pk)
          Returns true if the group has any organizations associated with it.
static boolean containsRole(long pk, long rolePK)
          Returns true if the role is associated with the group.
static boolean containsRoles(long pk)
          Returns true if the group has any roles associated with it.
static boolean containsUser(long pk, long userPK)
          Returns true if the user is associated with the group.
static boolean containsUserGroup(long pk, long userGroupPK)
          Returns true if the user group is associated with the group.
static boolean containsUserGroups(long pk)
          Returns true if the group has any user groups associated with it.
static boolean containsUsers(long pk)
          Returns true if the group has any users associated with it.
static int countAll()
          Returns the number of groups.
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_N(long companyId, long classNameId, long liveGroupId, String name)
          Returns the number of groups where companyId = ? and classNameId = ? and liveGroupId = ? and name = ?.
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(long companyId, long classNameId)
          Returns the number of groups where companyId = ? and classNameId = ?.
static int countByC_F(long companyId, String friendlyURL)
          Returns the number of groups where companyId = ? and friendlyURL = ?.
static int countByC_L_N(long companyId, long liveGroupId, String name)
          Returns the number of groups where companyId = ? and liveGroupId = ? and name = ?.
static int countByC_N(long companyId, String name)
          Returns the number of groups where companyId = ? and name = ?.
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(long companyId, long parentGroupId)
          Returns the number of groups where companyId = ? and parentGroupId = ?.
static int countByC_S(long companyId, boolean site)
          Returns the number of groups where companyId = ? and site = ?.
static int countByCompanyId(long companyId)
          Returns the number of groups where companyId = ?.
static int countByG_C_P(long groupId, long companyId, long parentGroupId)
          Returns the number of groups where groupId > ? and companyId = ? and parentGroupId = ?.
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_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 int countByUuid(String uuid)
          Returns the number of groups where uuid = ?.
static long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static Group create(long groupId)
          Creates a new group with the primary key.
static Group fetchByC_C_C(long companyId, long classNameId, long classPK)
          Returns the group where companyId = ? and classNameId = ? and classPK = ? or returns null if it could not be found.
static Group fetchByC_C_C(long companyId, long classNameId, long classPK, boolean retrieveFromCache)
          Returns the group where companyId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.
static Group fetchByC_C_First(long companyId, long classNameId, OrderByComparator orderByComparator)
          Returns the first group in the ordered set where companyId = ? and classNameId = ?.
static Group fetchByC_C_L_N(long companyId, long classNameId, long liveGroupId, String name)
          Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and name = ? or returns null if it could not be found.
static Group fetchByC_C_L_N(long companyId, long classNameId, long liveGroupId, String name, boolean retrieveFromCache)
          Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
static Group fetchByC_C_Last(long companyId, long classNameId, OrderByComparator 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 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 orderByComparator)
          Returns the last group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.
static Group fetchByC_F(long companyId, String friendlyURL)
          Returns the group where companyId = ? and friendlyURL = ? or returns null if it could not be found.
static Group fetchByC_F(long companyId, String friendlyURL, boolean retrieveFromCache)
          Returns the group where companyId = ? and friendlyURL = ? or returns null if it could not be found, optionally using the finder cache.
static Group fetchByC_L_N(long companyId, long liveGroupId, String name)
          Returns the group where companyId = ? and liveGroupId = ? and name = ? or returns null if it could not be found.
static Group fetchByC_L_N(long companyId, long liveGroupId, String name, boolean retrieveFromCache)
          Returns the group where companyId = ? and liveGroupId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
static Group fetchByC_N(long companyId, String name)
          Returns the group where companyId = ? and name = ? or returns null if it could not be found.
static Group fetchByC_N(long companyId, String name, boolean retrieveFromCache)
          Returns the group where companyId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
static Group fetchByC_P_First(long companyId, long parentGroupId, OrderByComparator orderByComparator)
          Returns the first group in the ordered set where companyId = ? and parentGroupId = ?.
static Group fetchByC_P_Last(long companyId, long parentGroupId, OrderByComparator orderByComparator)
          Returns the last group in the ordered set where companyId = ? and parentGroupId = ?.
static Group fetchByC_P_S_First(long companyId, long parentGroupId, boolean site, OrderByComparator orderByComparator)
          Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.
static Group fetchByC_P_S_Last(long companyId, long parentGroupId, boolean site, OrderByComparator orderByComparator)
          Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.
static Group fetchByC_S_First(long companyId, boolean site, OrderByComparator orderByComparator)
          Returns the first group in the ordered set where companyId = ? and site = ?.
static Group fetchByC_S_Last(long companyId, boolean site, OrderByComparator orderByComparator)
          Returns the last group in the ordered set where companyId = ? and site = ?.
static Group fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first group in the ordered set where companyId = ?.
static Group fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last group in the ordered set where companyId = ?.
static Group fetchByG_C_P_First(long groupId, long companyId, long parentGroupId, OrderByComparator orderByComparator)
          Returns the first group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?.
static Group fetchByG_C_P_Last(long groupId, long companyId, long parentGroupId, OrderByComparator orderByComparator)
          Returns the last group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?.
static Group fetchByLiveGroupId(long liveGroupId)
          Returns the group where liveGroupId = ? or returns null if it could not be found.
static Group fetchByLiveGroupId(long liveGroupId, boolean retrieveFromCache)
          Returns the group where liveGroupId = ? or returns null if it could not be found, optionally using the finder cache.
static Group fetchByPrimaryKey(long groupId)
          Returns the group with the primary key or returns null if it could not be found.
static Group fetchByT_A_First(int type, boolean active, OrderByComparator orderByComparator)
          Returns the first group in the ordered set where type = ? and active = ?.
static Group fetchByT_A_Last(int type, boolean active, OrderByComparator orderByComparator)
          Returns the last group in the ordered set where type = ? and active = ?.
static Group fetchByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the first group in the ordered set where uuid = ? and companyId = ?.
static Group fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the last group in the ordered set where uuid = ? and companyId = ?.
static Group fetchByUuid_First(String uuid, OrderByComparator 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 returns null if it could not be found.
static Group fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache)
          Returns the group where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
static Group fetchByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last group in the ordered set where uuid = ?.
static List<Group> findAll()
          Returns all the groups.
static List<Group> findAll(int start, int end)
          Returns a range of all the groups.
static List<Group> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the groups.
static Group findByC_C_C(long companyId, long classNameId, long classPK)
          Returns the group where companyId = ? and classNameId = ? and classPK = ? or throws a NoSuchGroupException if it could not be found.
static Group findByC_C_First(long companyId, long classNameId, OrderByComparator orderByComparator)
          Returns the first group in the ordered set where companyId = ? and classNameId = ?.
static Group findByC_C_L_N(long companyId, long classNameId, long liveGroupId, String name)
          Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and name = ? or throws a NoSuchGroupException if it could not be found.
static Group findByC_C_Last(long companyId, long classNameId, OrderByComparator orderByComparator)
          Returns the last group in the ordered set where companyId = ? and classNameId = ?.
static Group findByC_C_P_First(long companyId, long classNameId, long parentGroupId, OrderByComparator 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 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 orderByComparator)
          Returns the groups before and after the current group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.
static List<Group> findByC_C_P(long companyId, long classNameId, long parentGroupId)
          Returns all the groups where companyId = ? and classNameId = ? and parentGroupId = ?.
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 = ?.
static List<Group> findByC_C_P(long companyId, long classNameId, long parentGroupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the groups where companyId = ? and classNameId = ? and parentGroupId = ?.
static Group[] findByC_C_PrevAndNext(long groupId, long companyId, long classNameId, OrderByComparator orderByComparator)
          Returns the groups before and after the current group in the ordered set where companyId = ? and classNameId = ?.
static List<Group> findByC_C(long companyId, long classNameId)
          Returns all the groups where companyId = ? and classNameId = ?.
static List<Group> findByC_C(long companyId, long classNameId, int start, int end)
          Returns a range of all the groups where companyId = ? and classNameId = ?.
static List<Group> findByC_C(long companyId, long classNameId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the groups where companyId = ? and classNameId = ?.
static Group findByC_F(long companyId, String friendlyURL)
          Returns the group where companyId = ? and friendlyURL = ? or throws a NoSuchGroupException if it could not be found.
static Group findByC_L_N(long companyId, long liveGroupId, String name)
          Returns the group where companyId = ? and liveGroupId = ? and name = ? or throws a NoSuchGroupException if it could not be found.
static Group findByC_N(long companyId, String name)
          Returns the group where companyId = ? and name = ? or throws a NoSuchGroupException if it could not be found.
static Group findByC_P_First(long companyId, long parentGroupId, OrderByComparator orderByComparator)
          Returns the first group in the ordered set where companyId = ? and parentGroupId = ?.
static Group findByC_P_Last(long companyId, long parentGroupId, OrderByComparator orderByComparator)
          Returns the last group in the ordered set where companyId = ? and parentGroupId = ?.
static Group[] findByC_P_PrevAndNext(long groupId, long companyId, long parentGroupId, OrderByComparator orderByComparator)
          Returns the groups before and after the current group in the ordered set where companyId = ? and parentGroupId = ?.
static Group findByC_P_S_First(long companyId, long parentGroupId, boolean site, OrderByComparator orderByComparator)
          Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.
static Group findByC_P_S_Last(long companyId, long parentGroupId, boolean site, OrderByComparator 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 orderByComparator)
          Returns the groups before and after the current group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.
static List<Group> findByC_P_S(long companyId, long parentGroupId, boolean site)
          Returns all the groups where companyId = ? and parentGroupId = ? and site = ?.
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 = ?.
static List<Group> findByC_P_S(long companyId, long parentGroupId, boolean site, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the groups where companyId = ? and parentGroupId = ? and site = ?.
static List<Group> findByC_P(long companyId, long parentGroupId)
          Returns all the groups where companyId = ? and parentGroupId = ?.
static List<Group> findByC_P(long companyId, long parentGroupId, int start, int end)
          Returns a range of all the groups where companyId = ? and parentGroupId = ?.
static List<Group> findByC_P(long companyId, long parentGroupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the groups where companyId = ? and parentGroupId = ?.
static Group findByC_S_First(long companyId, boolean site, OrderByComparator orderByComparator)
          Returns the first group in the ordered set where companyId = ? and site = ?.
static Group findByC_S_Last(long companyId, boolean site, OrderByComparator 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 orderByComparator)
          Returns the groups before and after the current group in the ordered set where companyId = ? and site = ?.
static List<Group> findByC_S(long companyId, boolean site)
          Returns all the groups where companyId = ? and site = ?.
static List<Group> findByC_S(long companyId, boolean site, int start, int end)
          Returns a range of all the groups where companyId = ? and site = ?.
static List<Group> findByC_S(long companyId, boolean site, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the groups where companyId = ? and site = ?.
static Group findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first group in the ordered set where companyId = ?.
static Group findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last group in the ordered set where companyId = ?.
static Group[] findByCompanyId_PrevAndNext(long groupId, long companyId, OrderByComparator orderByComparator)
          Returns the groups before and after the current group in the ordered set where companyId = ?.
static List<Group> findByCompanyId(long companyId)
          Returns all the groups where companyId = ?.
static List<Group> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the groups where companyId = ?.
static List<Group> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the groups where companyId = ?.
static Group findByG_C_P_First(long groupId, long companyId, long parentGroupId, OrderByComparator orderByComparator)
          Returns the first group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?.
static Group findByG_C_P_Last(long groupId, long companyId, long parentGroupId, OrderByComparator orderByComparator)
          Returns the last group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?.
static List<Group> findByG_C_P(long groupId, long companyId, long parentGroupId)
          Returns all the groups where groupId > ? and companyId = ? and parentGroupId = ?.
static List<Group> findByG_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 = ?.
static List<Group> findByG_C_P(long groupId, long companyId, long parentGroupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the groups where groupId > ? and companyId = ? and parentGroupId = ?.
static Group findByLiveGroupId(long liveGroupId)
          Returns the group where liveGroupId = ? or throws a NoSuchGroupException if it could not be found.
static Group findByPrimaryKey(long groupId)
          Returns the group with the primary key or throws a NoSuchGroupException if it could not be found.
static Group findByT_A_First(int type, boolean active, OrderByComparator orderByComparator)
          Returns the first group in the ordered set where type = ? and active = ?.
static Group findByT_A_Last(int type, boolean active, OrderByComparator 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 orderByComparator)
          Returns the groups before and after the current group in the ordered set where type = ? and active = ?.
static List<Group> findByT_A(int type, boolean active)
          Returns all the groups where type = ? and active = ?.
static List<Group> findByT_A(int type, boolean active, int start, int end)
          Returns a range of all the groups where type = ? and active = ?.
static List<Group> findByT_A(int type, boolean active, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the groups where type = ? and active = ?.
static Group findByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the first group in the ordered set where uuid = ? and companyId = ?.
static Group findByUuid_C_Last(String uuid, long companyId, OrderByComparator 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 orderByComparator)
          Returns the groups before and after the current group in the ordered set where uuid = ? and companyId = ?.
static List<Group> findByUuid_C(String uuid, long companyId)
          Returns all the groups where uuid = ? and companyId = ?.
static List<Group> findByUuid_C(String uuid, long companyId, int start, int end)
          Returns a range of all the groups where uuid = ? and companyId = ?.
static List<Group> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the groups where uuid = ? and companyId = ?.
static Group findByUuid_First(String uuid, OrderByComparator 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 a NoSuchGroupException if it could not be found.
static Group findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last group in the ordered set where uuid = ?.
static Group[] findByUuid_PrevAndNext(long groupId, String uuid, OrderByComparator orderByComparator)
          Returns the groups before and after the current group in the ordered set where uuid = ?.
static List<Group> findByUuid(String uuid)
          Returns all the groups where uuid = ?.
static List<Group> findByUuid(String uuid, int start, int end)
          Returns a range of all the groups where uuid = ?.
static List<Group> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the groups where uuid = ?.
static List<Group> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<Group> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<Group> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
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 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 getPersistence()
           
static List<Role> getRoles(long pk)
          Returns all the roles associated with the group.
static List<Role> getRoles(long pk, int start, int end)
          Returns a range of all the roles associated with the group.
static List<Role> getRoles(long pk, int start, int end, OrderByComparator 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 List<UserGroup> getUserGroups(long pk)
          Returns all the user groups associated with the group.
static List<UserGroup> getUserGroups(long pk, int start, int end)
          Returns a range of all the user groups associated with the group.
static List<UserGroup> getUserGroups(long pk, int start, int end, OrderByComparator 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 List<User> getUsers(long pk)
          Returns all the users associated with the group.
static List<User> getUsers(long pk, int start, int end)
          Returns a range of all the users associated with the group.
static List<User> getUsers(long pk, int start, int end, OrderByComparator 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 removeAll()
          Removes all the groups 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_N(long companyId, long classNameId, long liveGroupId, String name)
          Removes the group where companyId = ? and classNameId = ? and liveGroupId = ? and name = ? 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(long companyId, long classNameId)
          Removes all the groups where companyId = ? and classNameId = ? from the database.
static Group removeByC_F(long companyId, String friendlyURL)
          Removes the group where companyId = ? and friendlyURL = ? from the database.
static Group removeByC_L_N(long companyId, long liveGroupId, String name)
          Removes the group where companyId = ? and liveGroupId = ? and name = ? from the database.
static Group removeByC_N(long companyId, String name)
          Removes the group where companyId = ? and name = ? 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(long companyId, long parentGroupId)
          Removes all the groups where companyId = ? and parentGroupId = ? from the database.
static void removeByC_S(long companyId, boolean site)
          Removes all the groups where companyId = ? and site = ? from the database.
static void removeByCompanyId(long companyId)
          Removes all the groups where companyId = ? from the database.
static void removeByG_C_P(long groupId, long companyId, long parentGroupId)
          Removes all the groups where groupId > ? and companyId = ? and parentGroupId = ? 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_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 removeByUuid(String uuid)
          Removes all the groups where uuid = ? 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, List<Organization> organizations)
          Removes the association between the group and the organizations.
static void removeOrganizations(long pk, long[] organizationPKs)
          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, List<Role> roles)
          Removes the association between the group and the roles.
static void removeRoles(long pk, long[] rolePKs)
          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, List<UserGroup> userGroups)
          Removes the association between the group and the user groups.
static void removeUserGroups(long pk, long[] userGroupPKs)
          Removes the association between the group and the user groups.
static void removeUsers(long pk, List<User> users)
          Removes the association between the group and the users.
static void removeUsers(long pk, long[] userPKs)
          Removes the association between the group and the users.
static void setOrganizations(long pk, List<Organization> organizations)
          Sets the organizations associated with the group, removing and adding associations as necessary.
static void setOrganizations(long pk, long[] organizationPKs)
          Sets the organizations associated with the group, removing and adding associations as necessary.
 void setPersistence(GroupPersistence persistence)
          Deprecated. As of 6.2.0
static void setRoles(long pk, List<Role> roles)
          Sets the roles associated with the group, removing and adding associations as necessary.
static void setRoles(long pk, long[] rolePKs)
          Sets the roles 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 setUserGroups(long pk, long[] userGroupPKs)
          Sets the user groups associated with the group, removing and adding associations as necessary.
static void setUsers(long pk, List<User> users)
          Sets the users 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 Group update(Group group)
           
static Group update(Group group, ServiceContext serviceContext)
           
static Group updateImpl(Group group)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupUtil

public GroupUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(Group group)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
                                  throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<Group> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                        throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<Group> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                               int start,
                                               int end)
                                        throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<Group> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                               int start,
                                               int end,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static Group update(Group group)
                    throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel)

update

public static Group update(Group group,
                           ServiceContext serviceContext)
                    throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)

findByUuid

public static List<Group> findByUuid(String uuid)
                              throws SystemException
Returns all the groups where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the matching groups
Throws:
SystemException - if a system exception occurred

findByUuid

public static List<Group> findByUuid(String uuid,
                                     int start,
                                     int end)
                              throws SystemException
Returns a range of all the groups where uuid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
Returns:
the range of matching groups
Throws:
SystemException - if a system exception occurred

findByUuid

public static List<Group> findByUuid(String uuid,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Returns an ordered range of all the groups where uuid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching groups
Throws:
SystemException - if a system exception occurred

findByUuid_First

public static Group findByUuid_First(String uuid,
                                     OrderByComparator orderByComparator)
                              throws NoSuchGroupException,
                                     SystemException
Returns the first group in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByUuid_First

public static Group fetchByUuid_First(String uuid,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Returns the first group in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_Last

public static Group findByUuid_Last(String uuid,
                                    OrderByComparator orderByComparator)
                             throws NoSuchGroupException,
                                    SystemException
Returns the last group in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByUuid_Last

public static Group fetchByUuid_Last(String uuid,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Returns the last group in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_PrevAndNext

public static Group[] findByUuid_PrevAndNext(long groupId,
                                             String uuid,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchGroupException,
                                             SystemException
Returns the groups before and after the current group in the ordered set where uuid = ?.

Parameters:
groupId - the primary key of the current group
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next group
Throws:
NoSuchGroupException - if a group with the primary key could not be found
SystemException - if a system exception occurred

removeByUuid

public static void removeByUuid(String uuid)
                         throws SystemException
Removes all the groups where uuid = ? from the database.

Parameters:
uuid - the uuid
Throws:
SystemException - if a system exception occurred

countByUuid

public static int countByUuid(String uuid)
                       throws SystemException
Returns the number of groups where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the number of matching groups
Throws:
SystemException - if a system exception occurred

findByUUID_G

public static Group findByUUID_G(String uuid,
                                 long groupId)
                          throws NoSuchGroupException,
                                 SystemException
Returns the group where uuid = ? and groupId = ? or throws a NoSuchGroupException if it could not be found.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByUUID_G

public static Group fetchByUUID_G(String uuid,
                                  long groupId)
                           throws SystemException
Returns the group where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

fetchByUUID_G

public static Group fetchByUUID_G(String uuid,
                                  long groupId,
                                  boolean retrieveFromCache)
                           throws SystemException
Returns the group where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
uuid - the uuid
groupId - the group ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

removeByUUID_G

public static Group removeByUUID_G(String uuid,
                                   long groupId)
                            throws NoSuchGroupException,
                                   SystemException
Removes the group where uuid = ? and groupId = ? from the database.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the group that was removed
Throws:
SystemException - if a system exception occurred
NoSuchGroupException

countByUUID_G

public static int countByUUID_G(String uuid,
                                long groupId)
                         throws SystemException
Returns the number of groups where uuid = ? and groupId = ?.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the number of matching groups
Throws:
SystemException - if a system exception occurred

findByUuid_C

public static List<Group> findByUuid_C(String uuid,
                                       long companyId)
                                throws SystemException
Returns all the groups where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the matching groups
Throws:
SystemException - if a system exception occurred

findByUuid_C

public static List<Group> findByUuid_C(String uuid,
                                       long companyId,
                                       int start,
                                       int end)
                                throws SystemException
Returns a range of all the groups where uuid = ? and companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
Returns:
the range of matching groups
Throws:
SystemException - if a system exception occurred

findByUuid_C

public static List<Group> findByUuid_C(String uuid,
                                       long companyId,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns an ordered range of all the groups where uuid = ? and companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching groups
Throws:
SystemException - if a system exception occurred

findByUuid_C_First

public static Group findByUuid_C_First(String uuid,
                                       long companyId,
                                       OrderByComparator orderByComparator)
                                throws NoSuchGroupException,
                                       SystemException
Returns the first group in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByUuid_C_First

public static Group fetchByUuid_C_First(String uuid,
                                        long companyId,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Returns the first group in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_C_Last

public static Group findByUuid_C_Last(String uuid,
                                      long companyId,
                                      OrderByComparator orderByComparator)
                               throws NoSuchGroupException,
                                      SystemException
Returns the last group in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByUuid_C_Last

public static Group fetchByUuid_C_Last(String uuid,
                                       long companyId,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns the last group in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_C_PrevAndNext

public static Group[] findByUuid_C_PrevAndNext(long groupId,
                                               String uuid,
                                               long companyId,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchGroupException,
                                               SystemException
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 group
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next group
Throws:
NoSuchGroupException - if a group with the primary key could not be found
SystemException - if a system exception occurred

removeByUuid_C

public static void removeByUuid_C(String uuid,
                                  long companyId)
                           throws SystemException
Removes all the groups where uuid = ? and companyId = ? from the database.

Parameters:
uuid - the uuid
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByUuid_C

public static int countByUuid_C(String uuid,
                                long companyId)
                         throws SystemException
Returns the number of groups where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the number of matching groups
Throws:
SystemException - if a system exception occurred

findByCompanyId

public static List<Group> findByCompanyId(long companyId)
                                   throws SystemException
Returns all the groups where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the matching groups
Throws:
SystemException - if a system exception occurred

findByCompanyId

public static List<Group> findByCompanyId(long companyId,
                                          int start,
                                          int end)
                                   throws SystemException
Returns a range of all the groups where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
Returns:
the range of matching groups
Throws:
SystemException - if a system exception occurred

findByCompanyId

public static List<Group> findByCompanyId(long companyId,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Returns an ordered range of all the groups where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching groups
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

public static Group findByCompanyId_First(long companyId,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchGroupException,
                                          SystemException
Returns the first group in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByCompanyId_First

public static Group fetchByCompanyId_First(long companyId,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Returns the first group in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_Last

public static Group findByCompanyId_Last(long companyId,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchGroupException,
                                         SystemException
Returns the last group in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByCompanyId_Last

public static Group fetchByCompanyId_Last(long companyId,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Returns the last group in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public static Group[] findByCompanyId_PrevAndNext(long groupId,
                                                  long companyId,
                                                  OrderByComparator orderByComparator)
                                           throws NoSuchGroupException,
                                                  SystemException
Returns the groups before and after the current group in the ordered set where companyId = ?.

Parameters:
groupId - the primary key of the current group
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next group
Throws:
NoSuchGroupException - if a group with the primary key could not be found
SystemException - if a system exception occurred

removeByCompanyId

public static void removeByCompanyId(long companyId)
                              throws SystemException
Removes all the groups where companyId = ? from the database.

Parameters:
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByCompanyId

public static int countByCompanyId(long companyId)
                            throws SystemException
Returns the number of groups where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the number of matching groups
Throws:
SystemException - if a system exception occurred

findByLiveGroupId

public static Group findByLiveGroupId(long liveGroupId)
                               throws NoSuchGroupException,
                                      SystemException
Returns the group where liveGroupId = ? or throws a NoSuchGroupException 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 found
SystemException - if a system exception occurred

fetchByLiveGroupId

public static Group fetchByLiveGroupId(long liveGroupId)
                                throws SystemException
Returns the group where liveGroupId = ? or returns null 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
Throws:
SystemException - if a system exception occurred

fetchByLiveGroupId

public static Group fetchByLiveGroupId(long liveGroupId,
                                       boolean retrieveFromCache)
                                throws SystemException
Returns the group where liveGroupId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
liveGroupId - the live group ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

removeByLiveGroupId

public static Group removeByLiveGroupId(long liveGroupId)
                                 throws NoSuchGroupException,
                                        SystemException
Removes the group where liveGroupId = ? from the database.

Parameters:
liveGroupId - the live group ID
Returns:
the group that was removed
Throws:
SystemException - if a system exception occurred
NoSuchGroupException

countByLiveGroupId

public static int countByLiveGroupId(long liveGroupId)
                              throws SystemException
Returns the number of groups where liveGroupId = ?.

Parameters:
liveGroupId - the live group ID
Returns:
the number of matching groups
Throws:
SystemException - if a system exception occurred

findByC_C

public static List<Group> findByC_C(long companyId,
                                    long classNameId)
                             throws SystemException
Returns all the groups where companyId = ? and classNameId = ?.

Parameters:
companyId - the company ID
classNameId - the class name ID
Returns:
the matching groups
Throws:
SystemException - if a system exception occurred

findByC_C

public static List<Group> findByC_C(long companyId,
                                    long classNameId,
                                    int start,
                                    int end)
                             throws SystemException
Returns a range of all the groups where companyId = ? and classNameId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
classNameId - the class name ID
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
Returns:
the range of matching groups
Throws:
SystemException - if a system exception occurred

findByC_C

public static List<Group> findByC_C(long companyId,
                                    long classNameId,
                                    int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Returns an ordered range of all the groups where companyId = ? and classNameId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
classNameId - the class name ID
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching groups
Throws:
SystemException - if a system exception occurred

findByC_C_First

public static Group findByC_C_First(long companyId,
                                    long classNameId,
                                    OrderByComparator orderByComparator)
                             throws NoSuchGroupException,
                                    SystemException
Returns the first group in the ordered set where companyId = ? and classNameId = ?.

Parameters:
companyId - the company ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByC_C_First

public static Group fetchByC_C_First(long companyId,
                                     long classNameId,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Returns the first group in the ordered set where companyId = ? and classNameId = ?.

Parameters:
companyId - the company ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

findByC_C_Last

public static Group findByC_C_Last(long companyId,
                                   long classNameId,
                                   OrderByComparator orderByComparator)
                            throws NoSuchGroupException,
                                   SystemException
Returns the last group in the ordered set where companyId = ? and classNameId = ?.

Parameters:
companyId - the company ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByC_C_Last

public static Group fetchByC_C_Last(long companyId,
                                    long classNameId,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Returns the last group in the ordered set where companyId = ? and classNameId = ?.

Parameters:
companyId - the company ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

findByC_C_PrevAndNext

public static Group[] findByC_C_PrevAndNext(long groupId,
                                            long companyId,
                                            long classNameId,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchGroupException,
                                            SystemException
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 group
companyId - the company ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next group
Throws:
NoSuchGroupException - if a group with the primary key could not be found
SystemException - if a system exception occurred

removeByC_C

public static void removeByC_C(long companyId,
                               long classNameId)
                        throws SystemException
Removes all the groups where companyId = ? and classNameId = ? from the database.

Parameters:
companyId - the company ID
classNameId - the class name ID
Throws:
SystemException - if a system exception occurred

countByC_C

public static int countByC_C(long companyId,
                             long classNameId)
                      throws SystemException
Returns the number of groups where companyId = ? and classNameId = ?.

Parameters:
companyId - the company ID
classNameId - the class name ID
Returns:
the number of matching groups
Throws:
SystemException - if a system exception occurred

findByC_P

public static List<Group> findByC_P(long companyId,
                                    long parentGroupId)
                             throws SystemException
Returns all the groups where companyId = ? and parentGroupId = ?.

Parameters:
companyId - the company ID
parentGroupId - the parent group ID
Returns:
the matching groups
Throws:
SystemException - if a system exception occurred

findByC_P

public static List<Group> findByC_P(long companyId,
                                    long parentGroupId,
                                    int start,
                                    int end)
                             throws SystemException
Returns a range of all the groups where companyId = ? and parentGroupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
parentGroupId - the parent group ID
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
Returns:
the range of matching groups
Throws:
SystemException - if a system exception occurred

findByC_P

public static List<Group> findByC_P(long companyId,
                                    long parentGroupId,
                                    int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Returns an ordered range of all the groups where companyId = ? and parentGroupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
parentGroupId - the parent group ID
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching groups
Throws:
SystemException - if a system exception occurred

findByC_P_First

public static Group findByC_P_First(long companyId,
                                    long parentGroupId,
                                    OrderByComparator orderByComparator)
                             throws NoSuchGroupException,
                                    SystemException
Returns the first group in the ordered set where companyId = ? and parentGroupId = ?.

Parameters:
companyId - the company ID
parentGroupId - the parent group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByC_P_First

public static Group fetchByC_P_First(long companyId,
                                     long parentGroupId,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Returns the first group in the ordered set where companyId = ? and parentGroupId = ?.

Parameters:
companyId - the company ID
parentGroupId - the parent group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

findByC_P_Last

public static Group findByC_P_Last(long companyId,
                                   long parentGroupId,
                                   OrderByComparator orderByComparator)
                            throws NoSuchGroupException,
                                   SystemException
Returns the last group in the ordered set where companyId = ? and parentGroupId = ?.

Parameters:
companyId - the company ID
parentGroupId - the parent group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByC_P_Last

public static Group fetchByC_P_Last(long companyId,
                                    long parentGroupId,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Returns the last group in the ordered set where companyId = ? and parentGroupId = ?.

Parameters:
companyId - the company ID
parentGroupId - the parent group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

findByC_P_PrevAndNext

public static Group[] findByC_P_PrevAndNext(long groupId,
                                            long companyId,
                                            long parentGroupId,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchGroupException,
                                            SystemException
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 group
companyId - the company ID
parentGroupId - the parent group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next group
Throws:
NoSuchGroupException - if a group with the primary key could not be found
SystemException - if a system exception occurred

removeByC_P

public static void removeByC_P(long companyId,
                               long parentGroupId)
                        throws SystemException
Removes all the groups where companyId = ? and parentGroupId = ? from the database.

Parameters:
companyId - the company ID
parentGroupId - the parent group ID
Throws:
SystemException - if a system exception occurred

countByC_P

public static int countByC_P(long companyId,
                             long parentGroupId)
                      throws SystemException
Returns the number of groups where companyId = ? and parentGroupId = ?.

Parameters:
companyId - the company ID
parentGroupId - the parent group ID
Returns:
the number of matching groups
Throws:
SystemException - if a system exception occurred

findByC_N

public static Group findByC_N(long companyId,
                              String name)
                       throws NoSuchGroupException,
                              SystemException
Returns the group where companyId = ? and name = ? or throws a NoSuchGroupException if it could not be found.

Parameters:
companyId - the company ID
name - the name
Returns:
the matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByC_N

public static Group fetchByC_N(long companyId,
                               String name)
                        throws SystemException
Returns the group where companyId = ? and name = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
companyId - the company ID
name - the name
Returns:
the matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

fetchByC_N

public static Group fetchByC_N(long companyId,
                               String name,
                               boolean retrieveFromCache)
                        throws SystemException
Returns the group where companyId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
companyId - the company ID
name - the name
retrieveFromCache - whether to use the finder cache
Returns:
the matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

removeByC_N

public static Group removeByC_N(long companyId,
                                String name)
                         throws NoSuchGroupException,
                                SystemException
Removes the group where companyId = ? and name = ? from the database.

Parameters:
companyId - the company ID
name - the name
Returns:
the group that was removed
Throws:
SystemException - if a system exception occurred
NoSuchGroupException

countByC_N

public static int countByC_N(long companyId,
                             String name)
                      throws SystemException
Returns the number of groups where companyId = ? and name = ?.

Parameters:
companyId - the company ID
name - the name
Returns:
the number of matching groups
Throws:
SystemException - if a system exception occurred

findByC_F

public static Group findByC_F(long companyId,
                              String friendlyURL)
                       throws NoSuchGroupException,
                              SystemException
Returns the group where companyId = ? and friendlyURL = ? or throws a NoSuchGroupException if it could not be found.

Parameters:
companyId - the company ID
friendlyURL - the friendly u r l
Returns:
the matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByC_F

public static Group fetchByC_F(long companyId,
                               String friendlyURL)
                        throws SystemException
Returns the group where companyId = ? and friendlyURL = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
companyId - the company ID
friendlyURL - the friendly u r l
Returns:
the matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

fetchByC_F

public static Group fetchByC_F(long companyId,
                               String friendlyURL,
                               boolean retrieveFromCache)
                        throws SystemException
Returns the group where companyId = ? and friendlyURL = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
companyId - the company ID
friendlyURL - the friendly u r l
retrieveFromCache - whether to use the finder cache
Returns:
the matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

removeByC_F

public static Group removeByC_F(long companyId,
                                String friendlyURL)
                         throws NoSuchGroupException,
                                SystemException
Removes the group where companyId = ? and friendlyURL = ? from the database.

Parameters:
companyId - the company ID
friendlyURL - the friendly u r l
Returns:
the group that was removed
Throws:
SystemException - if a system exception occurred
NoSuchGroupException

countByC_F

public static int countByC_F(long companyId,
                             String friendlyURL)
                      throws SystemException
Returns the number of groups where companyId = ? and friendlyURL = ?.

Parameters:
companyId - the company ID
friendlyURL - the friendly u r l
Returns:
the number of matching groups
Throws:
SystemException - if a system exception occurred

findByC_S

public static List<Group> findByC_S(long companyId,
                                    boolean site)
                             throws SystemException
Returns all the groups where companyId = ? and site = ?.

Parameters:
companyId - the company ID
site - the site
Returns:
the matching groups
Throws:
SystemException - if a system exception occurred

findByC_S

public static List<Group> findByC_S(long companyId,
                                    boolean site,
                                    int start,
                                    int end)
                             throws SystemException
Returns a range of all the groups where companyId = ? and site = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
site - the site
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
Returns:
the range of matching groups
Throws:
SystemException - if a system exception occurred

findByC_S

public static List<Group> findByC_S(long companyId,
                                    boolean site,
                                    int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Returns an ordered range of all the groups where companyId = ? and site = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
site - the site
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching groups
Throws:
SystemException - if a system exception occurred

findByC_S_First

public static Group findByC_S_First(long companyId,
                                    boolean site,
                                    OrderByComparator orderByComparator)
                             throws NoSuchGroupException,
                                    SystemException
Returns the first group in the ordered set where companyId = ? and site = ?.

Parameters:
companyId - the company ID
site - the site
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByC_S_First

public static Group fetchByC_S_First(long companyId,
                                     boolean site,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Returns the first group in the ordered set where companyId = ? and site = ?.

Parameters:
companyId - the company ID
site - the site
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

findByC_S_Last

public static Group findByC_S_Last(long companyId,
                                   boolean site,
                                   OrderByComparator orderByComparator)
                            throws NoSuchGroupException,
                                   SystemException
Returns the last group in the ordered set where companyId = ? and site = ?.

Parameters:
companyId - the company ID
site - the site
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByC_S_Last

public static Group fetchByC_S_Last(long companyId,
                                    boolean site,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Returns the last group in the ordered set where companyId = ? and site = ?.

Parameters:
companyId - the company ID
site - the site
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

findByC_S_PrevAndNext

public static Group[] findByC_S_PrevAndNext(long groupId,
                                            long companyId,
                                            boolean site,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchGroupException,
                                            SystemException
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 group
companyId - the company ID
site - the site
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next group
Throws:
NoSuchGroupException - if a group with the primary key could not be found
SystemException - if a system exception occurred

removeByC_S

public static void removeByC_S(long companyId,
                               boolean site)
                        throws SystemException
Removes all the groups where companyId = ? and site = ? from the database.

Parameters:
companyId - the company ID
site - the site
Throws:
SystemException - if a system exception occurred

countByC_S

public static int countByC_S(long companyId,
                             boolean site)
                      throws SystemException
Returns the number of groups where companyId = ? and site = ?.

Parameters:
companyId - the company ID
site - the site
Returns:
the number of matching groups
Throws:
SystemException - if a system exception occurred

findByT_A

public static List<Group> findByT_A(int type,
                                    boolean active)
                             throws SystemException
Returns all the groups where type = ? and active = ?.

Parameters:
type - the type
active - the active
Returns:
the matching groups
Throws:
SystemException - if a system exception occurred

findByT_A

public static List<Group> findByT_A(int type,
                                    boolean active,
                                    int start,
                                    int end)
                             throws SystemException
Returns a range of all the groups where type = ? and active = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
type - the type
active - the active
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
Returns:
the range of matching groups
Throws:
SystemException - if a system exception occurred

findByT_A

public static List<Group> findByT_A(int type,
                                    boolean active,
                                    int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Returns an ordered range of all the groups where type = ? and active = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
type - the type
active - the active
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching groups
Throws:
SystemException - if a system exception occurred

findByT_A_First

public static Group findByT_A_First(int type,
                                    boolean active,
                                    OrderByComparator orderByComparator)
                             throws NoSuchGroupException,
                                    SystemException
Returns the first group in the ordered set where type = ? and active = ?.

Parameters:
type - the type
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByT_A_First

public static Group fetchByT_A_First(int type,
                                     boolean active,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Returns the first group in the ordered set where type = ? and active = ?.

Parameters:
type - the type
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

findByT_A_Last

public static Group findByT_A_Last(int type,
                                   boolean active,
                                   OrderByComparator orderByComparator)
                            throws NoSuchGroupException,
                                   SystemException
Returns the last group in the ordered set where type = ? and active = ?.

Parameters:
type - the type
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByT_A_Last

public static Group fetchByT_A_Last(int type,
                                    boolean active,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Returns the last group in the ordered set where type = ? and active = ?.

Parameters:
type - the type
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

findByT_A_PrevAndNext

public static Group[] findByT_A_PrevAndNext(long groupId,
                                            int type,
                                            boolean active,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchGroupException,
                                            SystemException
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 group
type - the type
active - the active
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next group
Throws:
NoSuchGroupException - if a group with the primary key could not be found
SystemException - if a system exception occurred

removeByT_A

public static void removeByT_A(int type,
                               boolean active)
                        throws SystemException
Removes all the groups where type = ? and active = ? from the database.

Parameters:
type - the type
active - the active
Throws:
SystemException - if a system exception occurred

countByT_A

public static int countByT_A(int type,
                             boolean active)
                      throws SystemException
Returns the number of groups where type = ? and active = ?.

Parameters:
type - the type
active - the active
Returns:
the number of matching groups
Throws:
SystemException - if a system exception occurred

findByG_C_P

public static List<Group> findByG_C_P(long groupId,
                                      long companyId,
                                      long parentGroupId)
                               throws SystemException
Returns all the groups where groupId > ? and companyId = ? and parentGroupId = ?.

Parameters:
groupId - the group ID
companyId - the company ID
parentGroupId - the parent group ID
Returns:
the matching groups
Throws:
SystemException - if a system exception occurred

findByG_C_P

public static List<Group> findByG_C_P(long groupId,
                                      long companyId,
                                      long parentGroupId,
                                      int start,
                                      int end)
                               throws SystemException
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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
companyId - the company ID
parentGroupId - the parent group ID
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
Returns:
the range of matching groups
Throws:
SystemException - if a system exception occurred

findByG_C_P

public static List<Group> findByG_C_P(long groupId,
                                      long companyId,
                                      long parentGroupId,
                                      int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                               throws SystemException
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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
companyId - the company ID
parentGroupId - the parent group ID
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching groups
Throws:
SystemException - if a system exception occurred

findByG_C_P_First

public static Group findByG_C_P_First(long groupId,
                                      long companyId,
                                      long parentGroupId,
                                      OrderByComparator orderByComparator)
                               throws NoSuchGroupException,
                                      SystemException
Returns the first group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?.

Parameters:
groupId - the group ID
companyId - the company ID
parentGroupId - the parent group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByG_C_P_First

public static Group fetchByG_C_P_First(long groupId,
                                       long companyId,
                                       long parentGroupId,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns the first group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?.

Parameters:
groupId - the group ID
companyId - the company ID
parentGroupId - the parent group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_P_Last

public static Group findByG_C_P_Last(long groupId,
                                     long companyId,
                                     long parentGroupId,
                                     OrderByComparator orderByComparator)
                              throws NoSuchGroupException,
                                     SystemException
Returns the last group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?.

Parameters:
groupId - the group ID
companyId - the company ID
parentGroupId - the parent group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByG_C_P_Last

public static Group fetchByG_C_P_Last(long groupId,
                                      long companyId,
                                      long parentGroupId,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Returns the last group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?.

Parameters:
groupId - the group ID
companyId - the company ID
parentGroupId - the parent group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

removeByG_C_P

public static void removeByG_C_P(long groupId,
                                 long companyId,
                                 long parentGroupId)
                          throws SystemException
Removes all the groups where groupId > ? and companyId = ? and parentGroupId = ? from the database.

Parameters:
groupId - the group ID
companyId - the company ID
parentGroupId - the parent group ID
Throws:
SystemException - if a system exception occurred

countByG_C_P

public static int countByG_C_P(long groupId,
                               long companyId,
                               long parentGroupId)
                        throws SystemException
Returns the number of groups where groupId > ? and companyId = ? and parentGroupId = ?.

Parameters:
groupId - the group ID
companyId - the company ID
parentGroupId - the parent group ID
Returns:
the number of matching groups
Throws:
SystemException - if a system exception occurred

findByC_C_C

public static Group findByC_C_C(long companyId,
                                long classNameId,
                                long classPK)
                         throws NoSuchGroupException,
                                SystemException
Returns the group where companyId = ? and classNameId = ? and classPK = ? or throws a NoSuchGroupException if it could not be found.

Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
Returns:
the matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByC_C_C

public static Group fetchByC_C_C(long companyId,
                                 long classNameId,
                                 long classPK)
                          throws SystemException
Returns the group where companyId = ? and classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
Returns:
the matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

fetchByC_C_C

public static Group fetchByC_C_C(long companyId,
                                 long classNameId,
                                 long classPK,
                                 boolean retrieveFromCache)
                          throws SystemException
Returns the group where companyId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
retrieveFromCache - whether to use the finder cache
Returns:
the matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

removeByC_C_C

public static Group removeByC_C_C(long companyId,
                                  long classNameId,
                                  long classPK)
                           throws NoSuchGroupException,
                                  SystemException
Removes the group where companyId = ? and classNameId = ? and classPK = ? from the database.

Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
Returns:
the group that was removed
Throws:
SystemException - if a system exception occurred
NoSuchGroupException

countByC_C_C

public static int countByC_C_C(long companyId,
                               long classNameId,
                               long classPK)
                        throws SystemException
Returns the number of groups where companyId = ? and classNameId = ? and classPK = ?.

Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching groups
Throws:
SystemException - if a system exception occurred

findByC_C_P

public static List<Group> findByC_C_P(long companyId,
                                      long classNameId,
                                      long parentGroupId)
                               throws SystemException
Returns all the groups where companyId = ? and classNameId = ? and parentGroupId = ?.

Parameters:
companyId - the company ID
classNameId - the class name ID
parentGroupId - the parent group ID
Returns:
the matching groups
Throws:
SystemException - if a system exception occurred

findByC_C_P

public static List<Group> findByC_C_P(long companyId,
                                      long classNameId,
                                      long parentGroupId,
                                      int start,
                                      int end)
                               throws SystemException
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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
classNameId - the class name ID
parentGroupId - the parent group ID
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
Returns:
the range of matching groups
Throws:
SystemException - if a system exception occurred

findByC_C_P

public static List<Group> findByC_C_P(long companyId,
                                      long classNameId,
                                      long parentGroupId,
                                      int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                               throws SystemException
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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
classNameId - the class name ID
parentGroupId - the parent group ID
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching groups
Throws:
SystemException - if a system exception occurred

findByC_C_P_First

public static Group findByC_C_P_First(long companyId,
                                      long classNameId,
                                      long parentGroupId,
                                      OrderByComparator orderByComparator)
                               throws NoSuchGroupException,
                                      SystemException
Returns the first group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.

Parameters:
companyId - the company ID
classNameId - the class name ID
parentGroupId - the parent group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByC_C_P_First

public static Group fetchByC_C_P_First(long companyId,
                                       long classNameId,
                                       long parentGroupId,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns the first group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.

Parameters:
companyId - the company ID
classNameId - the class name ID
parentGroupId - the parent group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

findByC_C_P_Last

public static Group findByC_C_P_Last(long companyId,
                                     long classNameId,
                                     long parentGroupId,
                                     OrderByComparator orderByComparator)
                              throws NoSuchGroupException,
                                     SystemException
Returns the last group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.

Parameters:
companyId - the company ID
classNameId - the class name ID
parentGroupId - the parent group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByC_C_P_Last

public static Group fetchByC_C_P_Last(long companyId,
                                      long classNameId,
                                      long parentGroupId,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Returns the last group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.

Parameters:
companyId - the company ID
classNameId - the class name ID
parentGroupId - the parent group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

findByC_C_P_PrevAndNext

public static Group[] findByC_C_P_PrevAndNext(long groupId,
                                              long companyId,
                                              long classNameId,
                                              long parentGroupId,
                                              OrderByComparator orderByComparator)
                                       throws NoSuchGroupException,
                                              SystemException
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 group
companyId - the company ID
classNameId - the class name ID
parentGroupId - the parent group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next group
Throws:
NoSuchGroupException - if a group with the primary key could not be found
SystemException - if a system exception occurred

removeByC_C_P

public static void removeByC_C_P(long companyId,
                                 long classNameId,
                                 long parentGroupId)
                          throws SystemException
Removes all the groups where companyId = ? and classNameId = ? and parentGroupId = ? from the database.

Parameters:
companyId - the company ID
classNameId - the class name ID
parentGroupId - the parent group ID
Throws:
SystemException - if a system exception occurred

countByC_C_P

public static int countByC_C_P(long companyId,
                               long classNameId,
                               long parentGroupId)
                        throws SystemException
Returns the number of groups where companyId = ? and classNameId = ? and parentGroupId = ?.

Parameters:
companyId - the company ID
classNameId - the class name ID
parentGroupId - the parent group ID
Returns:
the number of matching groups
Throws:
SystemException - if a system exception occurred

findByC_P_S

public static List<Group> findByC_P_S(long companyId,
                                      long parentGroupId,
                                      boolean site)
                               throws SystemException
Returns all the groups where companyId = ? and parentGroupId = ? and site = ?.

Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site
Returns:
the matching groups
Throws:
SystemException - if a system exception occurred

findByC_P_S

public static List<Group> findByC_P_S(long companyId,
                                      long parentGroupId,
                                      boolean site,
                                      int start,
                                      int end)
                               throws SystemException
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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
Returns:
the range of matching groups
Throws:
SystemException - if a system exception occurred

findByC_P_S

public static List<Group> findByC_P_S(long companyId,
                                      long parentGroupId,
                                      boolean site,
                                      int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                               throws SystemException
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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching groups
Throws:
SystemException - if a system exception occurred

findByC_P_S_First

public static Group findByC_P_S_First(long companyId,
                                      long parentGroupId,
                                      boolean site,
                                      OrderByComparator orderByComparator)
                               throws NoSuchGroupException,
                                      SystemException
Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.

Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByC_P_S_First

public static Group fetchByC_P_S_First(long companyId,
                                       long parentGroupId,
                                       boolean site,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.

Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

findByC_P_S_Last

public static Group findByC_P_S_Last(long companyId,
                                     long parentGroupId,
                                     boolean site,
                                     OrderByComparator orderByComparator)
                              throws NoSuchGroupException,
                                     SystemException
Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.

Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByC_P_S_Last

public static Group fetchByC_P_S_Last(long companyId,
                                      long parentGroupId,
                                      boolean site,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.

Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

findByC_P_S_PrevAndNext

public static Group[] findByC_P_S_PrevAndNext(long groupId,
                                              long companyId,
                                              long parentGroupId,
                                              boolean site,
                                              OrderByComparator orderByComparator)
                                       throws NoSuchGroupException,
                                              SystemException
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 group
companyId - the company ID
parentGroupId - the parent group ID
site - the site
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next group
Throws:
NoSuchGroupException - if a group with the primary key could not be found
SystemException - if a system exception occurred

removeByC_P_S

public static void removeByC_P_S(long companyId,
                                 long parentGroupId,
                                 boolean site)
                          throws SystemException
Removes all the groups where companyId = ? and parentGroupId = ? and site = ? from the database.

Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site
Throws:
SystemException - if a system exception occurred

countByC_P_S

public static int countByC_P_S(long companyId,
                               long parentGroupId,
                               boolean site)
                        throws SystemException
Returns the number of groups where companyId = ? and parentGroupId = ? and site = ?.

Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site
Returns:
the number of matching groups
Throws:
SystemException - if a system exception occurred

findByC_L_N

public static Group findByC_L_N(long companyId,
                                long liveGroupId,
                                String name)
                         throws NoSuchGroupException,
                                SystemException
Returns the group where companyId = ? and liveGroupId = ? and name = ? or throws a NoSuchGroupException if it could not be found.

Parameters:
companyId - the company ID
liveGroupId - the live group ID
name - the name
Returns:
the matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByC_L_N

public static Group fetchByC_L_N(long companyId,
                                 long liveGroupId,
                                 String name)
                          throws SystemException
Returns the group where companyId = ? and liveGroupId = ? and name = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
companyId - the company ID
liveGroupId - the live group ID
name - the name
Returns:
the matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

fetchByC_L_N

public static Group fetchByC_L_N(long companyId,
                                 long liveGroupId,
                                 String name,
                                 boolean retrieveFromCache)
                          throws SystemException
Returns the group where companyId = ? and liveGroupId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
companyId - the company ID
liveGroupId - the live group ID
name - the name
retrieveFromCache - whether to use the finder cache
Returns:
the matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

removeByC_L_N

public static Group removeByC_L_N(long companyId,
                                  long liveGroupId,
                                  String name)
                           throws NoSuchGroupException,
                                  SystemException
Removes the group where companyId = ? and liveGroupId = ? and name = ? from the database.

Parameters:
companyId - the company ID
liveGroupId - the live group ID
name - the name
Returns:
the group that was removed
Throws:
SystemException - if a system exception occurred
NoSuchGroupException

countByC_L_N

public static int countByC_L_N(long companyId,
                               long liveGroupId,
                               String name)
                        throws SystemException
Returns the number of groups where companyId = ? and liveGroupId = ? and name = ?.

Parameters:
companyId - the company ID
liveGroupId - the live group ID
name - the name
Returns:
the number of matching groups
Throws:
SystemException - if a system exception occurred

findByC_C_L_N

public static Group findByC_C_L_N(long companyId,
                                  long classNameId,
                                  long liveGroupId,
                                  String name)
                           throws NoSuchGroupException,
                                  SystemException
Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and name = ? or throws a NoSuchGroupException if it could not be found.

Parameters:
companyId - the company ID
classNameId - the class name ID
liveGroupId - the live group ID
name - the name
Returns:
the matching group
Throws:
NoSuchGroupException - if a matching group could not be found
SystemException - if a system exception occurred

fetchByC_C_L_N

public static Group fetchByC_C_L_N(long companyId,
                                   long classNameId,
                                   long liveGroupId,
                                   String name)
                            throws SystemException
Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and name = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
companyId - the company ID
classNameId - the class name ID
liveGroupId - the live group ID
name - the name
Returns:
the matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

fetchByC_C_L_N

public static Group fetchByC_C_L_N(long companyId,
                                   long classNameId,
                                   long liveGroupId,
                                   String name,
                                   boolean retrieveFromCache)
                            throws SystemException
Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
companyId - the company ID
classNameId - the class name ID
liveGroupId - the live group ID
name - the name
retrieveFromCache - whether to use the finder cache
Returns:
the matching group, or null if a matching group could not be found
Throws:
SystemException - if a system exception occurred

removeByC_C_L_N

public static Group removeByC_C_L_N(long companyId,
                                    long classNameId,
                                    long liveGroupId,
                                    String name)
                             throws NoSuchGroupException,
                                    SystemException
Removes the group where companyId = ? and classNameId = ? and liveGroupId = ? and name = ? from the database.

Parameters:
companyId - the company ID
classNameId - the class name ID
liveGroupId - the live group ID
name - the name
Returns:
the group that was removed
Throws:
SystemException - if a system exception occurred
NoSuchGroupException

countByC_C_L_N

public static int countByC_C_L_N(long companyId,
                                 long classNameId,
                                 long liveGroupId,
                                 String name)
                          throws SystemException
Returns the number of groups where companyId = ? and classNameId = ? and liveGroupId = ? and name = ?.

Parameters:
companyId - the company ID
classNameId - the class name ID
liveGroupId - the live group ID
name - the name
Returns:
the number of matching groups
Throws:
SystemException - if a system exception occurred

cacheResult

public static void cacheResult(Group group)
Caches the group in the entity cache if it is enabled.

Parameters:
group - the group

cacheResult

public static void cacheResult(List<Group> groups)
Caches the groups in the entity cache if it is enabled.

Parameters:
groups - the groups

create

public static Group create(long groupId)
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

public static Group remove(long groupId)
                    throws NoSuchGroupException,
                           SystemException
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 found
SystemException - if a system exception occurred

updateImpl

public static Group updateImpl(Group group)
                        throws SystemException
Throws:
SystemException

findByPrimaryKey

public static Group findByPrimaryKey(long groupId)
                              throws NoSuchGroupException,
                                     SystemException
Returns the group with the primary key or throws a NoSuchGroupException 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 found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static Group fetchByPrimaryKey(long groupId)
                               throws SystemException
Returns the group with the primary key or returns null 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
Throws:
SystemException - if a system exception occurred

findAll

public static List<Group> findAll()
                           throws SystemException
Returns all the groups.

Returns:
the groups
Throws:
SystemException - if a system exception occurred

findAll

public static List<Group> findAll(int start,
                                  int end)
                           throws SystemException
Returns a range of all the groups.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
Returns:
the range of groups
Throws:
SystemException - if a system exception occurred

findAll

public static List<Group> findAll(int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Returns an ordered range of all the groups.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of groups
Throws:
SystemException - if a system exception occurred

removeAll

public static void removeAll()
                      throws SystemException
Removes all the groups from the database.

Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Returns the number of groups.

Returns:
the number of groups
Throws:
SystemException - if a system exception occurred

getOrganizations

public static List<Organization> getOrganizations(long pk)
                                           throws SystemException
Returns all the organizations associated with the group.

Parameters:
pk - the primary key of the group
Returns:
the organizations associated with the group
Throws:
SystemException - if a system exception occurred

getOrganizations

public static List<Organization> getOrganizations(long pk,
                                                  int start,
                                                  int end)
                                           throws SystemException
Returns a range of all the organizations associated with the group.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
pk - the primary key of the group
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
Returns:
the range of organizations associated with the group
Throws:
SystemException - if a system exception occurred

getOrganizations

public static List<Organization> getOrganizations(long pk,
                                                  int start,
                                                  int end,
                                                  OrderByComparator orderByComparator)
                                           throws SystemException
Returns an ordered range of all the organizations associated with the group.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
pk - the primary key of the group
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of organizations associated with the group
Throws:
SystemException - if a system exception occurred

getOrganizationsSize

public static int getOrganizationsSize(long pk)
                                throws SystemException
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
Throws:
SystemException - if a system exception occurred

containsOrganization

public static boolean containsOrganization(long pk,
                                           long organizationPK)
                                    throws SystemException
Returns true if the organization is associated with the group.

Parameters:
pk - the primary key of the group
organizationPK - the primary key of the organization
Returns:
true if the organization is associated with the group; false otherwise
Throws:
SystemException - if a system exception occurred

containsOrganizations

public static boolean containsOrganizations(long pk)
                                     throws SystemException
Returns true 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
Throws:
SystemException - if a system exception occurred

addOrganization

public static void addOrganization(long pk,
                                   long organizationPK)
                            throws SystemException
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 group
organizationPK - the primary key of the organization
Throws:
SystemException - if a system exception occurred

addOrganization

public static void addOrganization(long pk,
                                   Organization organization)
                            throws SystemException
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 group
organization - the organization
Throws:
SystemException - if a system exception occurred

addOrganizations

public static void addOrganizations(long pk,
                                    long[] organizationPKs)
                             throws SystemException
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 group
organizationPKs - the primary keys of the organizations
Throws:
SystemException - if a system exception occurred

addOrganizations

public static void addOrganizations(long pk,
                                    List<Organization> organizations)
                             throws SystemException
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 group
organizations - the organizations
Throws:
SystemException - if a system exception occurred

clearOrganizations

public static void clearOrganizations(long pk)
                               throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeOrganization

public static void removeOrganization(long pk,
                                      long organizationPK)
                               throws SystemException
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 group
organizationPK - the primary key of the organization
Throws:
SystemException - if a system exception occurred

removeOrganization

public static void removeOrganization(long pk,
                                      Organization organization)
                               throws SystemException
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 group
organization - the organization
Throws:
SystemException - if a system exception occurred

removeOrganizations

public static void removeOrganizations(long pk,
                                       long[] organizationPKs)
                                throws SystemException
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 group
organizationPKs - the primary keys of the organizations
Throws:
SystemException - if a system exception occurred

removeOrganizations

public static void removeOrganizations(long pk,
                                       List<Organization> organizations)
                                throws SystemException
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 group
organizations - the organizations
Throws:
SystemException - if a system exception occurred

setOrganizations

public static void setOrganizations(long pk,
                                    long[] organizationPKs)
                             throws SystemException
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 group
organizationPKs - the primary keys of the organizations to be associated with the group
Throws:
SystemException - if a system exception occurred

setOrganizations

public static void setOrganizations(long pk,
                                    List<Organization> organizations)
                             throws SystemException
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 group
organizations - the organizations to be associated with the group
Throws:
SystemException - if a system exception occurred

getRoles

public static List<Role> getRoles(long pk)
                           throws SystemException
Returns all the roles associated with the group.

Parameters:
pk - the primary key of the group
Returns:
the roles associated with the group
Throws:
SystemException - if a system exception occurred

getRoles

public static List<Role> getRoles(long pk,
                                  int start,
                                  int end)
                           throws SystemException
Returns a range of all the roles associated with the group.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
pk - the primary key of the group
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
Returns:
the range of roles associated with the group
Throws:
SystemException - if a system exception occurred

getRoles

public static List<Role> getRoles(long pk,
                                  int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Returns an ordered range of all the roles associated with the group.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
pk - the primary key of the group
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of roles associated with the group
Throws:
SystemException - if a system exception occurred

getRolesSize

public static int getRolesSize(long pk)
                        throws SystemException
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
Throws:
SystemException - if a system exception occurred

containsRole

public static boolean containsRole(long pk,
                                   long rolePK)
                            throws SystemException
Returns true if the role is associated with the group.

Parameters:
pk - the primary key of the group
rolePK - the primary key of the role
Returns:
true if the role is associated with the group; false otherwise
Throws:
SystemException - if a system exception occurred

containsRoles

public static boolean containsRoles(long pk)
                             throws SystemException
Returns true 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
Throws:
SystemException - if a system exception occurred

addRole

public static void addRole(long pk,
                           long rolePK)
                    throws SystemException
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 group
rolePK - the primary key of the role
Throws:
SystemException - if a system exception occurred

addRole

public static void addRole(long pk,
                           Role role)
                    throws SystemException
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 group
role - the role
Throws:
SystemException - if a system exception occurred

addRoles

public static void addRoles(long pk,
                            long[] rolePKs)
                     throws SystemException
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 group
rolePKs - the primary keys of the roles
Throws:
SystemException - if a system exception occurred

addRoles

public static void addRoles(long pk,
                            List<Role> roles)
                     throws SystemException
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 group
roles - the roles
Throws:
SystemException - if a system exception occurred

clearRoles

public static void clearRoles(long pk)
                       throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeRole

public static void removeRole(long pk,
                              long rolePK)
                       throws SystemException
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 group
rolePK - the primary key of the role
Throws:
SystemException - if a system exception occurred

removeRole

public static void removeRole(long pk,
                              Role role)
                       throws SystemException
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 group
role - the role
Throws:
SystemException - if a system exception occurred

removeRoles

public static void removeRoles(long pk,
                               long[] rolePKs)
                        throws SystemException
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 group
rolePKs - the primary keys of the roles
Throws:
SystemException - if a system exception occurred

removeRoles

public static void removeRoles(long pk,
                               List<Role> roles)
                        throws SystemException
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 group
roles - the roles
Throws:
SystemException - if a system exception occurred

setRoles

public static void setRoles(long pk,
                            long[] rolePKs)
                     throws SystemException
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 group
rolePKs - the primary keys of the roles to be associated with the group
Throws:
SystemException - if a system exception occurred

setRoles

public static void setRoles(long pk,
                            List<Role> roles)
                     throws SystemException
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 group
roles - the roles to be associated with the group
Throws:
SystemException - if a system exception occurred

getUserGroups

public static List<UserGroup> getUserGroups(long pk)
                                     throws SystemException
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
Throws:
SystemException - if a system exception occurred

getUserGroups

public static List<UserGroup> getUserGroups(long pk,
                                            int start,
                                            int end)
                                     throws SystemException
Returns a range of all the user groups associated with the group.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
pk - the primary key of the group
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
Returns:
the range of user groups associated with the group
Throws:
SystemException - if a system exception occurred

getUserGroups

public static List<UserGroup> getUserGroups(long pk,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
pk - the primary key of the group
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of user groups associated with the group
Throws:
SystemException - if a system exception occurred

getUserGroupsSize

public static int getUserGroupsSize(long pk)
                             throws SystemException
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
Throws:
SystemException - if a system exception occurred

containsUserGroup

public static boolean containsUserGroup(long pk,
                                        long userGroupPK)
                                 throws SystemException
Returns true if the user group is associated with the group.

Parameters:
pk - the primary key of the group
userGroupPK - the primary key of the user group
Returns:
true if the user group is associated with the group; false otherwise
Throws:
SystemException - if a system exception occurred

containsUserGroups

public static boolean containsUserGroups(long pk)
                                  throws SystemException
Returns true 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
Throws:
SystemException - if a system exception occurred

addUserGroup

public static void addUserGroup(long pk,
                                long userGroupPK)
                         throws SystemException
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 group
userGroupPK - the primary key of the user group
Throws:
SystemException - if a system exception occurred

addUserGroup

public static void addUserGroup(long pk,
                                UserGroup userGroup)
                         throws SystemException
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 group
userGroup - the user group
Throws:
SystemException - if a system exception occurred

addUserGroups

public static void addUserGroups(long pk,
                                 long[] userGroupPKs)
                          throws SystemException
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 group
userGroupPKs - the primary keys of the user groups
Throws:
SystemException - if a system exception occurred

addUserGroups

public static void addUserGroups(long pk,
                                 List<UserGroup> userGroups)
                          throws SystemException
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 group
userGroups - the user groups
Throws:
SystemException - if a system exception occurred

clearUserGroups

public static void clearUserGroups(long pk)
                            throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeUserGroup

public static void removeUserGroup(long pk,
                                   long userGroupPK)
                            throws SystemException
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 group
userGroupPK - the primary key of the user group
Throws:
SystemException - if a system exception occurred

removeUserGroup

public static void removeUserGroup(long pk,
                                   UserGroup userGroup)
                            throws SystemException
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 group
userGroup - the user group
Throws:
SystemException - if a system exception occurred

removeUserGroups

public static void removeUserGroups(long pk,
                                    long[] userGroupPKs)
                             throws SystemException
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 group
userGroupPKs - the primary keys of the user groups
Throws:
SystemException - if a system exception occurred

removeUserGroups

public static void removeUserGroups(long pk,
                                    List<UserGroup> userGroups)
                             throws SystemException
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 group
userGroups - the user groups
Throws:
SystemException - if a system exception occurred

setUserGroups

public static void setUserGroups(long pk,
                                 long[] userGroupPKs)
                          throws SystemException
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 group
userGroupPKs - the primary keys of the user groups to be associated with the group
Throws:
SystemException - if a system exception occurred

setUserGroups

public static void setUserGroups(long pk,
                                 List<UserGroup> userGroups)
                          throws SystemException
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 group
userGroups - the user groups to be associated with the group
Throws:
SystemException - if a system exception occurred

getUsers

public static List<User> getUsers(long pk)
                           throws SystemException
Returns all the users associated with the group.

Parameters:
pk - the primary key of the group
Returns:
the users associated with the group
Throws:
SystemException - if a system exception occurred

getUsers

public static List<User> getUsers(long pk,
                                  int start,
                                  int end)
                           throws SystemException
Returns a range of all the users associated with the group.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
pk - the primary key of the group
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
Returns:
the range of users associated with the group
Throws:
SystemException - if a system exception occurred

getUsers

public static List<User> getUsers(long pk,
                                  int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Returns an ordered range of all the users associated with the group.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from GroupModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
pk - the primary key of the group
start - the lower bound of the range of groups
end - the upper bound of the range of groups (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of users associated with the group
Throws:
SystemException - if a system exception occurred

getUsersSize

public static int getUsersSize(long pk)
                        throws SystemException
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
Throws:
SystemException - if a system exception occurred

containsUser

public static boolean containsUser(long pk,
                                   long userPK)
                            throws SystemException
Returns true if the user is associated with the group.

Parameters:
pk - the primary key of the group
userPK - the primary key of the user
Returns:
true if the user is associated with the group; false otherwise
Throws:
SystemException - if a system exception occurred

containsUsers

public static boolean containsUsers(long pk)
                             throws SystemException
Returns true 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
Throws:
SystemException - if a system exception occurred

addUser

public static void addUser(long pk,
                           long userPK)
                    throws SystemException
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 group
userPK - the primary key of the user
Throws:
SystemException - if a system exception occurred

addUser

public static void addUser(long pk,
                           User user)
                    throws SystemException
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 group
user - the user
Throws:
SystemException - if a system exception occurred

addUsers

public static void addUsers(long pk,
                            long[] userPKs)
                     throws SystemException
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 group
userPKs - the primary keys of the users
Throws:
SystemException - if a system exception occurred

addUsers

public static void addUsers(long pk,
                            List<User> users)
                     throws SystemException
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 group
users - the users
Throws:
SystemException - if a system exception occurred

clearUsers

public static void clearUsers(long pk)
                       throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeUser

public static void removeUser(long pk,
                              long userPK)
                       throws SystemException
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 group
userPK - the primary key of the user
Throws:
SystemException - if a system exception occurred

removeUser

public static void removeUser(long pk,
                              User user)
                       throws SystemException
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 group
user - the user
Throws:
SystemException - if a system exception occurred

removeUsers

public static void removeUsers(long pk,
                               long[] userPKs)
                        throws SystemException
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 group
userPKs - the primary keys of the users
Throws:
SystemException - if a system exception occurred

removeUsers

public static void removeUsers(long pk,
                               List<User> users)
                        throws SystemException
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 group
users - the users
Throws:
SystemException - if a system exception occurred

setUsers

public static void setUsers(long pk,
                            long[] userPKs)
                     throws SystemException
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 group
userPKs - the primary keys of the users to be associated with the group
Throws:
SystemException - if a system exception occurred

setUsers

public static void setUsers(long pk,
                            List<User> users)
                     throws SystemException
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 group
users - the users to be associated with the group
Throws:
SystemException - if a system exception occurred

getPersistence

public static GroupPersistence getPersistence()

setPersistence

public void setPersistence(GroupPersistence persistence)
Deprecated. As of 6.2.0


Liferay 6.2-ce-ga5