Liferay 7.0-ce-b4

com.liferay.portal.service.persistence.impl
Class GroupPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<Group>
      extended by com.liferay.portal.service.persistence.impl.GroupPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<Group>, GroupPersistence

@ProviderType
public class GroupPersistenceImpl
extends BasePersistenceImpl<Group>
implements GroupPersistence

The persistence implementation for the group service.

Caching information and settings can be found in portal.properties

See Also:
GroupPersistence, GroupUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
protected  CompanyProvider companyProvider
           
protected  EntityCache entityCache
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_C_A
           
static FinderPath FINDER_PATH_COUNT_BY_C_C
           
static FinderPath FINDER_PATH_COUNT_BY_C_C_C
           
static FinderPath FINDER_PATH_COUNT_BY_C_C_L_GK
           
static FinderPath FINDER_PATH_COUNT_BY_C_C_P
           
static FinderPath FINDER_PATH_COUNT_BY_C_F
           
static FinderPath FINDER_PATH_COUNT_BY_C_GK
           
static FinderPath FINDER_PATH_COUNT_BY_C_L_GK
           
static FinderPath FINDER_PATH_COUNT_BY_C_P
           
static FinderPath FINDER_PATH_COUNT_BY_C_P_S
           
static FinderPath FINDER_PATH_COUNT_BY_C_P_S_I
           
static FinderPath FINDER_PATH_COUNT_BY_C_S
           
static FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static FinderPath FINDER_PATH_COUNT_BY_LIVEGROUPID
           
static FinderPath FINDER_PATH_COUNT_BY_T_A
           
static FinderPath FINDER_PATH_COUNT_BY_UUID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_C
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_G
           
static FinderPath FINDER_PATH_FETCH_BY_C_C_C
           
static FinderPath FINDER_PATH_FETCH_BY_C_C_L_GK
           
static FinderPath FINDER_PATH_FETCH_BY_C_F
           
static FinderPath FINDER_PATH_FETCH_BY_C_GK
           
static FinderPath FINDER_PATH_FETCH_BY_C_L_GK
           
static FinderPath FINDER_PATH_FETCH_BY_LIVEGROUPID
           
static FinderPath FINDER_PATH_FETCH_BY_UUID_G
           
static FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_C_P
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_A
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C_P
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_P
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_P_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_P_S_I
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_P
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_T_A
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_A
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C_P
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_P
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_P_S
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_P_S_I
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_S
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_T_A
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C
           
protected  FinderCache finderCache
           
protected  TableMapper<Group,Organization> groupToOrganizationTableMapper
           
protected  TableMapper<Group,Role> groupToRoleTableMapper
           
protected  TableMapper<Group,UserGroup> groupToUserGroupTableMapper
           
protected  TableMapper<Group,User> groupToUserTableMapper
           
protected  OrganizationPersistence organizationPersistence
           
protected  RolePersistence rolePersistence
           
protected  UserGroupPersistence userGroupPersistence
           
protected  UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
GroupPersistenceImpl()
           
 
Method Summary
 void addOrganization(long pk, long organizationPK)
          Adds an association between the group and the organization.
 void addOrganization(long pk, Organization organization)
          Adds an association between the group and the organization.
 void addOrganizations(long pk, List<Organization> organizations)
          Adds an association between the group and the organizations.
 void addOrganizations(long pk, long[] organizationPKs)
          Adds an association between the group and the organizations.
 void addRole(long pk, long rolePK)
          Adds an association between the group and the role.
 void addRole(long pk, Role role)
          Adds an association between the group and the role.
 void addRoles(long pk, List<Role> roles)
          Adds an association between the group and the roles.
 void addRoles(long pk, long[] rolePKs)
          Adds an association between the group and the roles.
 void addUser(long pk, long userPK)
          Adds an association between the group and the user.
 void addUser(long pk, User user)
          Adds an association between the group and the user.
 void addUserGroup(long pk, long userGroupPK)
          Adds an association between the group and the user group.
 void addUserGroup(long pk, UserGroup userGroup)
          Adds an association between the group and the user group.
 void addUserGroups(long pk, List<UserGroup> userGroups)
          Adds an association between the group and the user groups.
 void addUserGroups(long pk, long[] userGroupPKs)
          Adds an association between the group and the user groups.
 void addUsers(long pk, List<User> users)
          Adds an association between the group and the users.
 void addUsers(long pk, long[] userPKs)
          Adds an association between the group and the users.
 void afterPropertiesSet()
          Initializes the group persistence.
 void cacheResult(Group group)
          Caches the group in the entity cache if it is enabled.
 void cacheResult(List<Group> groups)
          Caches the groups in the entity cache if it is enabled.
protected  void cacheUniqueFindersCache(GroupModelImpl groupModelImpl, boolean isNew)
           
 void clearCache()
          Clears the cache for all groups.
 void clearCache(Group group)
          Clears the cache for the group.
 void clearCache(List<Group> groups)
          Clears the cache for a List instances of this model.
 void clearOrganizations(long pk)
          Clears all associations between the group and its organizations.
 void clearRoles(long pk)
          Clears all associations between the group and its roles.
protected  void clearUniqueFindersCache(GroupModelImpl groupModelImpl)
           
 void clearUserGroups(long pk)
          Clears all associations between the group and its user groups.
 void clearUsers(long pk)
          Clears all associations between the group and its users.
 boolean containsOrganization(long pk, long organizationPK)
          Returns true if the organization is associated with the group.
 boolean containsOrganizations(long pk)
          Returns true if the group has any organizations associated with it.
 boolean containsRole(long pk, long rolePK)
          Returns true if the role is associated with the group.
 boolean containsRoles(long pk)
          Returns true if the group has any roles associated with it.
 boolean containsUser(long pk, long userPK)
          Returns true if the user is associated with the group.
 boolean containsUserGroup(long pk, long userGroupPK)
          Returns true if the user group is associated with the group.
 boolean containsUserGroups(long pk)
          Returns true if the group has any user groups associated with it.
 boolean containsUsers(long pk)
          Returns true if the group has any users associated with it.
 int countAll()
          Returns the number of groups.
 int countByC_A(long companyId, boolean active)
          Returns the number of groups where companyId = ? and active = ?.
 int countByC_C_C(long companyId, long classNameId, long classPK)
          Returns the number of groups where companyId = ? and classNameId = ? and classPK = ?.
 int countByC_C_L_GK(long companyId, long classNameId, long liveGroupId, String groupKey)
          Returns the number of groups where companyId = ? and classNameId = ? and liveGroupId = ? and groupKey = ?.
 int countByC_C_P(long companyId, long classNameId, long parentGroupId)
          Returns the number of groups where companyId = ? and classNameId = ? and parentGroupId = ?.
 int countByC_C(long companyId, long classNameId)
          Returns the number of groups where companyId = ? and classNameId = ?.
 int countByC_F(long companyId, String friendlyURL)
          Returns the number of groups where companyId = ? and friendlyURL = ?.
 int countByC_GK(long companyId, String groupKey)
          Returns the number of groups where companyId = ? and groupKey = ?.
 int countByC_L_GK(long companyId, long liveGroupId, String groupKey)
          Returns the number of groups where companyId = ? and liveGroupId = ? and groupKey = ?.
 int countByC_P_S_I(long companyId, long parentGroupId, boolean site, boolean inheritContent)
          Returns the number of groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.
 int countByC_P_S(long companyId, long parentGroupId, boolean site)
          Returns the number of groups where companyId = ? and parentGroupId = ? and site = ?.
 int countByC_P(long companyId, long parentGroupId)
          Returns the number of groups where companyId = ? and parentGroupId = ?.
 int countByC_S(long companyId, boolean site)
          Returns the number of groups where companyId = ? and site = ?.
 int countByCompanyId(long companyId)
          Returns the number of groups where companyId = ?.
 int countByG_C_P(long groupId, long companyId, long parentGroupId)
          Returns the number of groups where groupId > ? and companyId = ? and parentGroupId = ?.
 int countByLiveGroupId(long liveGroupId)
          Returns the number of groups where liveGroupId = ?.
 int countByT_A(int type, boolean active)
          Returns the number of groups where type = ? and active = ?.
 int countByUuid_C(String uuid, long companyId)
          Returns the number of groups where uuid = ? and companyId = ?.
 int countByUUID_G(String uuid, long groupId)
          Returns the number of groups where uuid = ? and groupId = ?.
 int countByUuid(String uuid)
          Returns the number of groups where uuid = ?.
 Group create(long groupId)
          Creates a new group with the primary key.
 void destroy()
           
 Group fetchByC_A_First(long companyId, boolean active, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where companyId = ? and active = ?.
 Group fetchByC_A_Last(long companyId, boolean active, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where companyId = ? and active = ?.
 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.
 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.
 Group fetchByC_C_First(long companyId, long classNameId, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where companyId = ? and classNameId = ?.
 Group fetchByC_C_L_GK(long companyId, long classNameId, long liveGroupId, String groupKey)
          Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and groupKey = ? or returns null if it could not be found.
 Group fetchByC_C_L_GK(long companyId, long classNameId, long liveGroupId, String groupKey, boolean retrieveFromCache)
          Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and groupKey = ? or returns null if it could not be found, optionally using the finder cache.
 Group fetchByC_C_Last(long companyId, long classNameId, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where companyId = ? and classNameId = ?.
 Group fetchByC_C_P_First(long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.
 Group fetchByC_C_P_Last(long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.
 Group fetchByC_F(long companyId, String friendlyURL)
          Returns the group where companyId = ? and friendlyURL = ? or returns null if it could not be found.
 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.
 Group fetchByC_GK(long companyId, String groupKey)
          Returns the group where companyId = ? and groupKey = ? or returns null if it could not be found.
 Group fetchByC_GK(long companyId, String groupKey, boolean retrieveFromCache)
          Returns the group where companyId = ? and groupKey = ? or returns null if it could not be found, optionally using the finder cache.
 Group fetchByC_L_GK(long companyId, long liveGroupId, String groupKey)
          Returns the group where companyId = ? and liveGroupId = ? and groupKey = ? or returns null if it could not be found.
 Group fetchByC_L_GK(long companyId, long liveGroupId, String groupKey, boolean retrieveFromCache)
          Returns the group where companyId = ? and liveGroupId = ? and groupKey = ? or returns null if it could not be found, optionally using the finder cache.
 Group fetchByC_P_First(long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where companyId = ? and parentGroupId = ?.
 Group fetchByC_P_Last(long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where companyId = ? and parentGroupId = ?.
 Group fetchByC_P_S_First(long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.
 Group fetchByC_P_S_I_First(long companyId, long parentGroupId, boolean site, boolean inheritContent, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.
 Group fetchByC_P_S_I_Last(long companyId, long parentGroupId, boolean site, boolean inheritContent, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.
 Group fetchByC_P_S_Last(long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.
 Group fetchByC_S_First(long companyId, boolean site, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where companyId = ? and site = ?.
 Group fetchByC_S_Last(long companyId, boolean site, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where companyId = ? and site = ?.
 Group fetchByCompanyId_First(long companyId, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where companyId = ?.
 Group fetchByCompanyId_Last(long companyId, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where companyId = ?.
 Group fetchByG_C_P_First(long groupId, long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?.
 Group fetchByG_C_P_Last(long groupId, long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?.
 Group fetchByLiveGroupId(long liveGroupId)
          Returns the group where liveGroupId = ? or returns null if it could not be found.
 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.
 Group fetchByPrimaryKey(long groupId)
          Returns the group with the primary key or returns null if it could not be found.
 Group fetchByPrimaryKey(Serializable primaryKey)
          Returns the group with the primary key or returns null if it could not be found.
 Map<Serializable,Group> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 Group fetchByT_A_First(int type, boolean active, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where type = ? and active = ?.
 Group fetchByT_A_Last(int type, boolean active, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where type = ? and active = ?.
 Group fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where uuid = ? and companyId = ?.
 Group fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where uuid = ? and companyId = ?.
 Group fetchByUuid_First(String uuid, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where uuid = ?.
 Group fetchByUUID_G(String uuid, long groupId)
          Returns the group where uuid = ? and groupId = ? or returns null if it could not be found.
 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.
 Group fetchByUuid_Last(String uuid, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where uuid = ?.
 List<Group> findAll()
          Returns all the groups.
 List<Group> findAll(int start, int end)
          Returns a range of all the groups.
 List<Group> findAll(int start, int end, OrderByComparator<Group> orderByComparator)
          Returns an ordered range of all the groups.
 List<Group> findAll(int start, int end, OrderByComparator<Group> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the groups.
 Group findByC_A_First(long companyId, boolean active, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where companyId = ? and active = ?.
 Group findByC_A_Last(long companyId, boolean active, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where companyId = ? and active = ?.
 Group[] findByC_A_PrevAndNext(long groupId, long companyId, boolean active, OrderByComparator<Group> orderByComparator)
          Returns the groups before and after the current group in the ordered set where companyId = ? and active = ?.
 List<Group> findByC_A(long companyId, boolean active)
          Returns all the groups where companyId = ? and active = ?.
 List<Group> findByC_A(long companyId, boolean active, int start, int end)
          Returns a range of all the groups where companyId = ? and active = ?.
 List<Group> findByC_A(long companyId, boolean active, int start, int end, OrderByComparator<Group> orderByComparator)
          Returns an ordered range of all the groups where companyId = ? and active = ?.
 List<Group> findByC_A(long companyId, boolean active, int start, int end, OrderByComparator<Group> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the groups where companyId = ? and active = ?.
 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.
 Group findByC_C_First(long companyId, long classNameId, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where companyId = ? and classNameId = ?.
 Group findByC_C_L_GK(long companyId, long classNameId, long liveGroupId, String groupKey)
          Returns the group where companyId = ? and classNameId = ? and liveGroupId = ? and groupKey = ? or throws a NoSuchGroupException if it could not be found.
 Group findByC_C_Last(long companyId, long classNameId, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where companyId = ? and classNameId = ?.
 Group findByC_C_P_First(long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.
 Group findByC_C_P_Last(long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.
 Group[] findByC_C_P_PrevAndNext(long groupId, long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator)
          Returns the groups before and after the current group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.
 List<Group> findByC_C_P(long companyId, long classNameId, long parentGroupId)
          Returns all the groups where companyId = ? and classNameId = ? and parentGroupId = ?.
 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 = ?.
 List<Group> findByC_C_P(long companyId, long classNameId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator)
          Returns an ordered range of all the groups where companyId = ? and classNameId = ? and parentGroupId = ?.
 List<Group> findByC_C_P(long companyId, long classNameId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the groups where companyId = ? and classNameId = ? and parentGroupId = ?.
 Group[] findByC_C_PrevAndNext(long groupId, long companyId, long classNameId, OrderByComparator<Group> orderByComparator)
          Returns the groups before and after the current group in the ordered set where companyId = ? and classNameId = ?.
 List<Group> findByC_C(long companyId, long classNameId)
          Returns all the groups where companyId = ? and classNameId = ?.
 List<Group> findByC_C(long companyId, long classNameId, int start, int end)
          Returns a range of all the groups where companyId = ? and classNameId = ?.
 List<Group> findByC_C(long companyId, long classNameId, int start, int end, OrderByComparator<Group> orderByComparator)
          Returns an ordered range of all the groups where companyId = ? and classNameId = ?.
 List<Group> findByC_C(long companyId, long classNameId, int start, int end, OrderByComparator<Group> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the groups where companyId = ? and classNameId = ?.
 Group findByC_F(long companyId, String friendlyURL)
          Returns the group where companyId = ? and friendlyURL = ? or throws a NoSuchGroupException if it could not be found.
 Group findByC_GK(long companyId, String groupKey)
          Returns the group where companyId = ? and groupKey = ? or throws a NoSuchGroupException if it could not be found.
 Group findByC_L_GK(long companyId, long liveGroupId, String groupKey)
          Returns the group where companyId = ? and liveGroupId = ? and groupKey = ? or throws a NoSuchGroupException if it could not be found.
 Group findByC_P_First(long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where companyId = ? and parentGroupId = ?.
 Group findByC_P_Last(long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where companyId = ? and parentGroupId = ?.
 Group[] findByC_P_PrevAndNext(long groupId, long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator)
          Returns the groups before and after the current group in the ordered set where companyId = ? and parentGroupId = ?.
 Group findByC_P_S_First(long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.
 Group findByC_P_S_I_First(long companyId, long parentGroupId, boolean site, boolean inheritContent, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.
 Group findByC_P_S_I_Last(long companyId, long parentGroupId, boolean site, boolean inheritContent, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.
 Group[] findByC_P_S_I_PrevAndNext(long groupId, long companyId, long parentGroupId, boolean site, boolean inheritContent, OrderByComparator<Group> orderByComparator)
          Returns the groups before and after the current group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.
 List<Group> findByC_P_S_I(long companyId, long parentGroupId, boolean site, boolean inheritContent)
          Returns all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.
 List<Group> findByC_P_S_I(long companyId, long parentGroupId, boolean site, boolean inheritContent, int start, int end)
          Returns a range of all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.
 List<Group> findByC_P_S_I(long companyId, long parentGroupId, boolean site, boolean inheritContent, int start, int end, OrderByComparator<Group> orderByComparator)
          Returns an ordered range of all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.
 List<Group> findByC_P_S_I(long companyId, long parentGroupId, boolean site, boolean inheritContent, int start, int end, OrderByComparator<Group> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.
 Group findByC_P_S_Last(long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.
 Group[] findByC_P_S_PrevAndNext(long groupId, long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator)
          Returns the groups before and after the current group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.
 List<Group> findByC_P_S(long companyId, long parentGroupId, boolean site)
          Returns all the groups where companyId = ? and parentGroupId = ? and site = ?.
 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 = ?.
 List<Group> findByC_P_S(long companyId, long parentGroupId, boolean site, int start, int end, OrderByComparator<Group> orderByComparator)
          Returns an ordered range of all the groups where companyId = ? and parentGroupId = ? and site = ?.
 List<Group> findByC_P_S(long companyId, long parentGroupId, boolean site, int start, int end, OrderByComparator<Group> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the groups where companyId = ? and parentGroupId = ? and site = ?.
 List<Group> findByC_P(long companyId, long parentGroupId)
          Returns all the groups where companyId = ? and parentGroupId = ?.
 List<Group> findByC_P(long companyId, long parentGroupId, int start, int end)
          Returns a range of all the groups where companyId = ? and parentGroupId = ?.
 List<Group> findByC_P(long companyId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator)
          Returns an ordered range of all the groups where companyId = ? and parentGroupId = ?.
 List<Group> findByC_P(long companyId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the groups where companyId = ? and parentGroupId = ?.
 Group findByC_S_First(long companyId, boolean site, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where companyId = ? and site = ?.
 Group findByC_S_Last(long companyId, boolean site, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where companyId = ? and site = ?.
 Group[] findByC_S_PrevAndNext(long groupId, long companyId, boolean site, OrderByComparator<Group> orderByComparator)
          Returns the groups before and after the current group in the ordered set where companyId = ? and site = ?.
 List<Group> findByC_S(long companyId, boolean site)
          Returns all the groups where companyId = ? and site = ?.
 List<Group> findByC_S(long companyId, boolean site, int start, int end)
          Returns a range of all the groups where companyId = ? and site = ?.
 List<Group> findByC_S(long companyId, boolean site, int start, int end, OrderByComparator<Group> orderByComparator)
          Returns an ordered range of all the groups where companyId = ? and site = ?.
 List<Group> findByC_S(long companyId, boolean site, int start, int end, OrderByComparator<Group> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the groups where companyId = ? and site = ?.
 Group findByCompanyId_First(long companyId, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where companyId = ?.
 Group findByCompanyId_Last(long companyId, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where companyId = ?.
 Group[] findByCompanyId_PrevAndNext(long groupId, long companyId, OrderByComparator<Group> orderByComparator)
          Returns the groups before and after the current group in the ordered set where companyId = ?.
 List<Group> findByCompanyId(long companyId)
          Returns all the groups where companyId = ?.
 List<Group> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the groups where companyId = ?.
 List<Group> findByCompanyId(long companyId, int start, int end, OrderByComparator<Group> orderByComparator)
          Returns an ordered range of all the groups where companyId = ?.
 List<Group> findByCompanyId(long companyId, int start, int end, OrderByComparator<Group> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the groups where companyId = ?.
 Group findByG_C_P_First(long groupId, long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?.
 Group findByG_C_P_Last(long groupId, long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where groupId > ? and companyId = ? and parentGroupId = ?.
 List<Group> findByG_C_P(long groupId, long companyId, long parentGroupId)
          Returns all the groups where groupId > ? and companyId = ? and parentGroupId = ?.
 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 = ?.
 List<Group> findByG_C_P(long groupId, long companyId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator)
          Returns an ordered range of all the groups where groupId > ? and companyId = ? and parentGroupId = ?.
 List<Group> findByG_C_P(long groupId, long companyId, long parentGroupId, int start, int end, OrderByComparator<Group> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the groups where groupId > ? and companyId = ? and parentGroupId = ?.
 Group findByLiveGroupId(long liveGroupId)
          Returns the group where liveGroupId = ? or throws a NoSuchGroupException if it could not be found.
 Group findByPrimaryKey(long groupId)
          Returns the group with the primary key or throws a NoSuchGroupException if it could not be found.
 Group findByPrimaryKey(Serializable primaryKey)
          Returns the group with the primary key or throws a NoSuchModelException if it could not be found.
 Group findByT_A_First(int type, boolean active, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where type = ? and active = ?.
 Group findByT_A_Last(int type, boolean active, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where type = ? and active = ?.
 Group[] findByT_A_PrevAndNext(long groupId, int type, boolean active, OrderByComparator<Group> orderByComparator)
          Returns the groups before and after the current group in the ordered set where type = ? and active = ?.
 List<Group> findByT_A(int type, boolean active)
          Returns all the groups where type = ? and active = ?.
 List<Group> findByT_A(int type, boolean active, int start, int end)
          Returns a range of all the groups where type = ? and active = ?.
 List<Group> findByT_A(int type, boolean active, int start, int end, OrderByComparator<Group> orderByComparator)
          Returns an ordered range of all the groups where type = ? and active = ?.
 List<Group> findByT_A(int type, boolean active, int start, int end, OrderByComparator<Group> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the groups where type = ? and active = ?.
 Group findByUuid_C_First(String uuid, long companyId, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where uuid = ? and companyId = ?.
 Group findByUuid_C_Last(String uuid, long companyId, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where uuid = ? and companyId = ?.
 Group[] findByUuid_C_PrevAndNext(long groupId, String uuid, long companyId, OrderByComparator<Group> orderByComparator)
          Returns the groups before and after the current group in the ordered set where uuid = ? and companyId = ?.
 List<Group> findByUuid_C(String uuid, long companyId)
          Returns all the groups where uuid = ? and companyId = ?.
 List<Group> findByUuid_C(String uuid, long companyId, int start, int end)
          Returns a range of all the groups where uuid = ? and companyId = ?.
 List<Group> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<Group> orderByComparator)
          Returns an ordered range of all the groups where uuid = ? and companyId = ?.
 List<Group> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<Group> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the groups where uuid = ? and companyId = ?.
 Group findByUuid_First(String uuid, OrderByComparator<Group> orderByComparator)
          Returns the first group in the ordered set where uuid = ?.
 Group findByUUID_G(String uuid, long groupId)
          Returns the group where uuid = ? and groupId = ? or throws a NoSuchGroupException if it could not be found.
 Group findByUuid_Last(String uuid, OrderByComparator<Group> orderByComparator)
          Returns the last group in the ordered set where uuid = ?.
 Group[] findByUuid_PrevAndNext(long groupId, String uuid, OrderByComparator<Group> orderByComparator)
          Returns the groups before and after the current group in the ordered set where uuid = ?.
 List<Group> findByUuid(String uuid)
          Returns all the groups where uuid = ?.
 List<Group> findByUuid(String uuid, int start, int end)
          Returns a range of all the groups where uuid = ?.
 List<Group> findByUuid(String uuid, int start, int end, OrderByComparator<Group> orderByComparator)
          Returns an ordered range of all the groups where uuid = ?.
 List<Group> findByUuid(String uuid, int start, int end, OrderByComparator<Group> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the groups where uuid = ?.
 Set<String> getBadColumnNames()
           
protected  Group getByC_A_PrevAndNext(Session session, Group group, long companyId, boolean active, OrderByComparator<Group> orderByComparator, boolean previous)
           
protected  Group getByC_C_P_PrevAndNext(Session session, Group group, long companyId, long classNameId, long parentGroupId, OrderByComparator<Group> orderByComparator, boolean previous)
           
protected  Group getByC_C_PrevAndNext(Session session, Group group, long companyId, long classNameId, OrderByComparator<Group> orderByComparator, boolean previous)
           
protected  Group getByC_P_PrevAndNext(Session session, Group group, long companyId, long parentGroupId, OrderByComparator<Group> orderByComparator, boolean previous)
           
protected  Group getByC_P_S_I_PrevAndNext(Session session, Group group, long companyId, long parentGroupId, boolean site, boolean inheritContent, OrderByComparator<Group> orderByComparator, boolean previous)
           
protected  Group getByC_P_S_PrevAndNext(Session session, Group group, long companyId, long parentGroupId, boolean site, OrderByComparator<Group> orderByComparator, boolean previous)
           
protected  Group getByC_S_PrevAndNext(Session session, Group group, long companyId, boolean site, OrderByComparator<Group> orderByComparator, boolean previous)
           
protected  Group getByCompanyId_PrevAndNext(Session session, Group group, long companyId, OrderByComparator<Group> orderByComparator, boolean previous)
           
protected  Group getByT_A_PrevAndNext(Session session, Group group, int type, boolean active, OrderByComparator<Group> orderByComparator, boolean previous)
           
protected  Group getByUuid_C_PrevAndNext(Session session, Group group, String uuid, long companyId, OrderByComparator<Group> orderByComparator, boolean previous)
           
protected  Group getByUuid_PrevAndNext(Session session, Group group, String uuid, OrderByComparator<Group> orderByComparator, boolean previous)
           
 long[] getOrganizationPrimaryKeys(long pk)
          Returns the primaryKeys of organizations associated with the group.
 List<Organization> getOrganizations(long pk)
          Returns all the organizations associated with the group.
 List<Organization> getOrganizations(long pk, int start, int end)
          Returns a range of all the organizations associated with the group.
 List<Organization> getOrganizations(long pk, int start, int end, OrderByComparator<Organization> orderByComparator)
          Returns an ordered range of all the organizations associated with the group.
 int getOrganizationsSize(long pk)
          Returns the number of organizations associated with the group.
 long[] getRolePrimaryKeys(long pk)
          Returns the primaryKeys of roles associated with the group.
 List<Role> getRoles(long pk)
          Returns all the roles associated with the group.
 List<Role> getRoles(long pk, int start, int end)
          Returns a range of all the roles associated with the group.
 List<Role> getRoles(long pk, int start, int end, OrderByComparator<Role> orderByComparator)
          Returns an ordered range of all the roles associated with the group.
 int getRolesSize(long pk)
          Returns the number of roles associated with the group.
protected  Map<String,Integer> getTableColumnsMap()
           
 long[] getUserGroupPrimaryKeys(long pk)
          Returns the primaryKeys of user groups associated with the group.
 List<UserGroup> getUserGroups(long pk)
          Returns all the user groups associated with the group.
 List<UserGroup> getUserGroups(long pk, int start, int end)
          Returns a range of all the user groups associated with the group.
 List<UserGroup> getUserGroups(long pk, int start, int end, OrderByComparator<UserGroup> orderByComparator)
          Returns an ordered range of all the user groups associated with the group.
 int getUserGroupsSize(long pk)
          Returns the number of user groups associated with the group.
 long[] getUserPrimaryKeys(long pk)
          Returns the primaryKeys of users associated with the group.
 List<User> getUsers(long pk)
          Returns all the users associated with the group.
 List<User> getUsers(long pk, int start, int end)
          Returns a range of all the users associated with the group.
 List<User> getUsers(long pk, int start, int end, OrderByComparator<User> orderByComparator)
          Returns an ordered range of all the users associated with the group.
 int getUsersSize(long pk)
          Returns the number of users associated with the group.
 Group remove(long groupId)
          Removes the group with the primary key from the database.
 Group remove(Serializable primaryKey)
          Removes the group with the primary key from the database.
 void removeAll()
          Removes all the groups from the database.
 void removeByC_A(long companyId, boolean active)
          Removes all the groups where companyId = ? and active = ? from the database.
 Group removeByC_C_C(long companyId, long classNameId, long classPK)
          Removes the group where companyId = ? and classNameId = ? and classPK = ? from the database.
 Group removeByC_C_L_GK(long companyId, long classNameId, long liveGroupId, String groupKey)
          Removes the group where companyId = ? and classNameId = ? and liveGroupId = ? and groupKey = ? from the database.
 void removeByC_C_P(long companyId, long classNameId, long parentGroupId)
          Removes all the groups where companyId = ? and classNameId = ? and parentGroupId = ? from the database.
 void removeByC_C(long companyId, long classNameId)
          Removes all the groups where companyId = ? and classNameId = ? from the database.
 Group removeByC_F(long companyId, String friendlyURL)
          Removes the group where companyId = ? and friendlyURL = ? from the database.
 Group removeByC_GK(long companyId, String groupKey)
          Removes the group where companyId = ? and groupKey = ? from the database.
 Group removeByC_L_GK(long companyId, long liveGroupId, String groupKey)
          Removes the group where companyId = ? and liveGroupId = ? and groupKey = ? from the database.
 void removeByC_P_S_I(long companyId, long parentGroupId, boolean site, boolean inheritContent)
          Removes all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ? from the database.
 void removeByC_P_S(long companyId, long parentGroupId, boolean site)
          Removes all the groups where companyId = ? and parentGroupId = ? and site = ? from the database.
 void removeByC_P(long companyId, long parentGroupId)
          Removes all the groups where companyId = ? and parentGroupId = ? from the database.
 void removeByC_S(long companyId, boolean site)
          Removes all the groups where companyId = ? and site = ? from the database.
 void removeByCompanyId(long companyId)
          Removes all the groups where companyId = ? from the database.
 void removeByG_C_P(long groupId, long companyId, long parentGroupId)
          Removes all the groups where groupId > ? and companyId = ? and parentGroupId = ? from the database.
 Group removeByLiveGroupId(long liveGroupId)
          Removes the group where liveGroupId = ? from the database.
 void removeByT_A(int type, boolean active)
          Removes all the groups where type = ? and active = ? from the database.
 void removeByUuid_C(String uuid, long companyId)
          Removes all the groups where uuid = ? and companyId = ? from the database.
 Group removeByUUID_G(String uuid, long groupId)
          Removes the group where uuid = ? and groupId = ? from the database.
 void removeByUuid(String uuid)
          Removes all the groups where uuid = ? from the database.
protected  Group removeImpl(Group group)
          Removes the model instance from the database.
 void removeOrganization(long pk, long organizationPK)
          Removes the association between the group and the organization.
 void removeOrganization(long pk, Organization organization)
          Removes the association between the group and the organization.
 void removeOrganizations(long pk, List<Organization> organizations)
          Removes the association between the group and the organizations.
 void removeOrganizations(long pk, long[] organizationPKs)
          Removes the association between the group and the organizations.
 void removeRole(long pk, long rolePK)
          Removes the association between the group and the role.
 void removeRole(long pk, Role role)
          Removes the association between the group and the role.
 void removeRoles(long pk, List<Role> roles)
          Removes the association between the group and the roles.
 void removeRoles(long pk, long[] rolePKs)
          Removes the association between the group and the roles.
 void removeUser(long pk, long userPK)
          Removes the association between the group and the user.
 void removeUser(long pk, User user)
          Removes the association between the group and the user.
 void removeUserGroup(long pk, long userGroupPK)
          Removes the association between the group and the user group.
 void removeUserGroup(long pk, UserGroup userGroup)
          Removes the association between the group and the user group.
 void removeUserGroups(long pk, List<UserGroup> userGroups)
          Removes the association between the group and the user groups.
 void removeUserGroups(long pk, long[] userGroupPKs)
          Removes the association between the group and the user groups.
 void removeUsers(long pk, List<User> users)
          Removes the association between the group and the users.
 void removeUsers(long pk, long[] userPKs)
          Removes the association between the group and the users.
 void setOrganizations(long pk, List<Organization> organizations)
          Sets the organizations associated with the group, removing and adding associations as necessary.
 void setOrganizations(long pk, long[] organizationPKs)
          Sets the organizations associated with the group, removing and adding associations as necessary.
 void setRoles(long pk, List<Role> roles)
          Sets the roles associated with the group, removing and adding associations as necessary.
 void setRoles(long pk, long[] rolePKs)
          Sets the roles associated with the group, removing and adding associations as necessary.
 void setUserGroups(long pk, List<UserGroup> userGroups)
          Sets the user groups associated with the group, removing and adding associations as necessary.
 void setUserGroups(long pk, long[] userGroupPKs)
          Sets the user groups associated with the group, removing and adding associations as necessary.
 void setUsers(long pk, List<User> users)
          Sets the users associated with the group, removing and adding associations as necessary.
 void setUsers(long pk, long[] userPKs)
          Sets the users associated with the group, removing and adding associations as necessary.
protected  Group toUnwrappedModel(Group group)
           
 Group updateImpl(Group group)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

FINDER_PATH_COUNT_BY_UUID

public static final FinderPath FINDER_PATH_COUNT_BY_UUID

FINDER_PATH_FETCH_BY_UUID_G

public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G

FINDER_PATH_COUNT_BY_UUID_G

public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_COUNT_BY_UUID_C

public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_FETCH_BY_LIVEGROUPID

public static final FinderPath FINDER_PATH_FETCH_BY_LIVEGROUPID

FINDER_PATH_COUNT_BY_LIVEGROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_LIVEGROUPID

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C

FINDER_PATH_COUNT_BY_C_C

public static final FinderPath FINDER_PATH_COUNT_BY_C_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_P

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_P

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_P

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_P

FINDER_PATH_COUNT_BY_C_P

public static final FinderPath FINDER_PATH_COUNT_BY_C_P

FINDER_PATH_FETCH_BY_C_GK

public static final FinderPath FINDER_PATH_FETCH_BY_C_GK

FINDER_PATH_COUNT_BY_C_GK

public static final FinderPath FINDER_PATH_COUNT_BY_C_GK

FINDER_PATH_FETCH_BY_C_F

public static final FinderPath FINDER_PATH_FETCH_BY_C_F

FINDER_PATH_COUNT_BY_C_F

public static final FinderPath FINDER_PATH_COUNT_BY_C_F

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_S

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_S

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_S

FINDER_PATH_COUNT_BY_C_S

public static final FinderPath FINDER_PATH_COUNT_BY_C_S

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_A

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_A

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_A

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_A

FINDER_PATH_COUNT_BY_C_A

public static final FinderPath FINDER_PATH_COUNT_BY_C_A

FINDER_PATH_WITH_PAGINATION_FIND_BY_T_A

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_T_A

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_T_A

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_T_A

FINDER_PATH_COUNT_BY_T_A

public static final FinderPath FINDER_PATH_COUNT_BY_T_A

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_P

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_P

FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_C_P

public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_C_P

FINDER_PATH_FETCH_BY_C_C_C

public static final FinderPath FINDER_PATH_FETCH_BY_C_C_C

FINDER_PATH_COUNT_BY_C_C_C

public static final FinderPath FINDER_PATH_COUNT_BY_C_C_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C_P

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C_P

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C_P

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C_P

FINDER_PATH_COUNT_BY_C_C_P

public static final FinderPath FINDER_PATH_COUNT_BY_C_C_P

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_P_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_P_S

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_P_S

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_P_S

FINDER_PATH_COUNT_BY_C_P_S

public static final FinderPath FINDER_PATH_COUNT_BY_C_P_S

FINDER_PATH_FETCH_BY_C_L_GK

public static final FinderPath FINDER_PATH_FETCH_BY_C_L_GK

FINDER_PATH_COUNT_BY_C_L_GK

public static final FinderPath FINDER_PATH_COUNT_BY_C_L_GK

FINDER_PATH_FETCH_BY_C_C_L_GK

public static final FinderPath FINDER_PATH_FETCH_BY_C_C_L_GK

FINDER_PATH_COUNT_BY_C_C_L_GK

public static final FinderPath FINDER_PATH_COUNT_BY_C_C_L_GK

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_P_S_I

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_P_S_I

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_P_S_I

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_P_S_I

FINDER_PATH_COUNT_BY_C_P_S_I

public static final FinderPath FINDER_PATH_COUNT_BY_C_P_S_I

companyProvider

@BeanReference(type=CompanyProviderWrapper.class)
protected CompanyProvider companyProvider

entityCache

protected EntityCache entityCache

finderCache

protected FinderCache finderCache

organizationPersistence

@BeanReference(type=OrganizationPersistence.class)
protected OrganizationPersistence organizationPersistence

groupToOrganizationTableMapper

protected TableMapper<Group,Organization> groupToOrganizationTableMapper

rolePersistence

@BeanReference(type=RolePersistence.class)
protected RolePersistence rolePersistence

groupToRoleTableMapper

protected TableMapper<Group,Role> groupToRoleTableMapper

userGroupPersistence

@BeanReference(type=UserGroupPersistence.class)
protected UserGroupPersistence userGroupPersistence

groupToUserGroupTableMapper

protected TableMapper<Group,UserGroup> groupToUserGroupTableMapper

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence

groupToUserTableMapper

protected TableMapper<Group,User> groupToUserTableMapper
Constructor Detail

GroupPersistenceImpl

public GroupPersistenceImpl()
Method Detail

findByUuid

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

Specified by:
findByUuid in interface GroupPersistence
Parameters:
uuid - the uuid
Returns:
the matching groups

findByUuid

public List<Group> findByUuid(String uuid,
                              int start,
                              int end)
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.

Specified by:
findByUuid in interface GroupPersistence
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

findByUuid

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

Useful when paginating results. Returns a maximum of end - start instances. start 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.

Specified by:
findByUuid in interface GroupPersistence
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

findByUuid

public List<Group> findByUuid(String uuid,
                              int start,
                              int end,
                              OrderByComparator<Group> orderByComparator,
                              boolean retrieveFromCache)
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.

Specified by:
findByUuid in interface GroupPersistence
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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching groups

findByUuid_First

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

Specified by:
findByUuid_First in interface GroupPersistence
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

fetchByUuid_First

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

Specified by:
fetchByUuid_First in interface GroupPersistence
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

findByUuid_Last

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

Specified by:
findByUuid_Last in interface GroupPersistence
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

fetchByUuid_Last

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

Specified by:
fetchByUuid_Last in interface GroupPersistence
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

findByUuid_PrevAndNext

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

Specified by:
findByUuid_PrevAndNext in interface GroupPersistence
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

getByUuid_PrevAndNext

protected Group getByUuid_PrevAndNext(Session session,
                                      Group group,
                                      String uuid,
                                      OrderByComparator<Group> orderByComparator,
                                      boolean previous)

removeByUuid

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

Specified by:
removeByUuid in interface GroupPersistence
Parameters:
uuid - the uuid

countByUuid

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

Specified by:
countByUuid in interface GroupPersistence
Parameters:
uuid - the uuid
Returns:
the number of matching groups

findByUUID_G

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

Specified by:
findByUUID_G in interface GroupPersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching group
Throws:
NoSuchGroupException - if a matching group could not be found

fetchByUUID_G

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

Specified by:
fetchByUUID_G in interface GroupPersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching group, or null if a matching group could not be found

fetchByUUID_G

public 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.

Specified by:
fetchByUUID_G in interface GroupPersistence
Parameters:
uuid - the uuid
groupId - the group ID
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching group, or null if a matching group could not be found

removeByUUID_G

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

Specified by:
removeByUUID_G in interface GroupPersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the group that was removed
Throws:
NoSuchGroupException

countByUUID_G

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

Specified by:
countByUUID_G in interface GroupPersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the number of matching groups

findByUuid_C

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

Specified by:
findByUuid_C in interface GroupPersistence
Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the matching groups

findByUuid_C

public List<Group> findByUuid_C(String uuid,
                                long companyId,
                                int start,
                                int end)
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.

Specified by:
findByUuid_C in interface GroupPersistence
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

findByUuid_C

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

Useful when paginating results. Returns a maximum of end - start instances. start 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.

Specified by:
findByUuid_C in interface GroupPersistence
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

findByUuid_C

public List<Group> findByUuid_C(String uuid,
                                long companyId,
                                int start,
                                int end,
                                OrderByComparator<Group> orderByComparator,
                                boolean retrieveFromCache)
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.

Specified by:
findByUuid_C in interface GroupPersistence
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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching groups

findByUuid_C_First

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

Specified by:
findByUuid_C_First in interface GroupPersistence
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

fetchByUuid_C_First

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

Specified by:
fetchByUuid_C_First in interface GroupPersistence
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

findByUuid_C_Last

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

Specified by:
findByUuid_C_Last in interface GroupPersistence
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

fetchByUuid_C_Last

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

Specified by:
fetchByUuid_C_Last in interface GroupPersistence
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

findByUuid_C_PrevAndNext

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

Specified by:
findByUuid_C_PrevAndNext in interface GroupPersistence
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

getByUuid_C_PrevAndNext

protected Group getByUuid_C_PrevAndNext(Session session,
                                        Group group,
                                        String uuid,
                                        long companyId,
                                        OrderByComparator<Group> orderByComparator,
                                        boolean previous)

removeByUuid_C

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

Specified by:
removeByUuid_C in interface GroupPersistence
Parameters:
uuid - the uuid
companyId - the company ID

countByUuid_C

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

Specified by:
countByUuid_C in interface GroupPersistence
Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the number of matching groups

findByCompanyId

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

Specified by:
findByCompanyId in interface GroupPersistence
Parameters:
companyId - the company ID
Returns:
the matching groups

findByCompanyId

public List<Group> findByCompanyId(long companyId,
                                   int start,
                                   int end)
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.

Specified by:
findByCompanyId in interface GroupPersistence
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

findByCompanyId

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

Useful when paginating results. Returns a maximum of end - start instances. start 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.

Specified by:
findByCompanyId in interface GroupPersistence
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

findByCompanyId

public List<Group> findByCompanyId(long companyId,
                                   int start,
                                   int end,
                                   OrderByComparator<Group> orderByComparator,
                                   boolean retrieveFromCache)
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.

Specified by:
findByCompanyId in interface GroupPersistence
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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching groups

findByCompanyId_First

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

Specified by:
findByCompanyId_First in interface GroupPersistence
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

fetchByCompanyId_First

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

Specified by:
fetchByCompanyId_First in interface GroupPersistence
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

findByCompanyId_Last

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

Specified by:
findByCompanyId_Last in interface GroupPersistence
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

fetchByCompanyId_Last

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

Specified by:
fetchByCompanyId_Last in interface GroupPersistence
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

findByCompanyId_PrevAndNext

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

Specified by:
findByCompanyId_PrevAndNext in interface GroupPersistence
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

getByCompanyId_PrevAndNext

protected Group getByCompanyId_PrevAndNext(Session session,
                                           Group group,
                                           long companyId,
                                           OrderByComparator<Group> orderByComparator,
                                           boolean previous)

removeByCompanyId

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

Specified by:
removeByCompanyId in interface GroupPersistence
Parameters:
companyId - the company ID

countByCompanyId

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

Specified by:
countByCompanyId in interface GroupPersistence
Parameters:
companyId - the company ID
Returns:
the number of matching groups

findByLiveGroupId

public Group findByLiveGroupId(long liveGroupId)
                        throws NoSuchGroupException
Returns the group where liveGroupId = ? or throws a NoSuchGroupException if it could not be found.

Specified by:
findByLiveGroupId in interface GroupPersistence
Parameters:
liveGroupId - the live group ID
Returns:
the matching group
Throws:
NoSuchGroupException - if a matching group could not be found

fetchByLiveGroupId

public Group fetchByLiveGroupId(long liveGroupId)
Returns the group where liveGroupId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByLiveGroupId in interface GroupPersistence
Parameters:
liveGroupId - the live group ID
Returns:
the matching group, or null if a matching group could not be found

fetchByLiveGroupId

public 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.

Specified by:
fetchByLiveGroupId in interface GroupPersistence
Parameters:
liveGroupId - the live group ID
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching group, or null if a matching group could not be found

removeByLiveGroupId

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

Specified by:
removeByLiveGroupId in interface GroupPersistence
Parameters:
liveGroupId - the live group ID
Returns:
the group that was removed
Throws:
NoSuchGroupException

countByLiveGroupId

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

Specified by:
countByLiveGroupId in interface GroupPersistence
Parameters:
liveGroupId - the live group ID
Returns:
the number of matching groups

findByC_C

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

Specified by:
findByC_C in interface GroupPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
Returns:
the matching groups

findByC_C

public List<Group> findByC_C(long companyId,
                             long classNameId,
                             int start,
                             int end)
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.

Specified by:
findByC_C in interface GroupPersistence
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

findByC_C

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

Useful when paginating results. Returns a maximum of end - start instances. start 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.

Specified by:
findByC_C in interface GroupPersistence
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

findByC_C

public List<Group> findByC_C(long companyId,
                             long classNameId,
                             int start,
                             int end,
                             OrderByComparator<Group> orderByComparator,
                             boolean retrieveFromCache)
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.

Specified by:
findByC_C in interface GroupPersistence
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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching groups

findByC_C_First

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

Specified by:
findByC_C_First in interface GroupPersistence
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

fetchByC_C_First

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

Specified by:
fetchByC_C_First in interface GroupPersistence
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

findByC_C_Last

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

Specified by:
findByC_C_Last in interface GroupPersistence
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

fetchByC_C_Last

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

Specified by:
fetchByC_C_Last in interface GroupPersistence
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

findByC_C_PrevAndNext

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

Specified by:
findByC_C_PrevAndNext in interface GroupPersistence
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

getByC_C_PrevAndNext

protected Group getByC_C_PrevAndNext(Session session,
                                     Group group,
                                     long companyId,
                                     long classNameId,
                                     OrderByComparator<Group> orderByComparator,
                                     boolean previous)

removeByC_C

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

Specified by:
removeByC_C in interface GroupPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID

countByC_C

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

Specified by:
countByC_C in interface GroupPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
Returns:
the number of matching groups

findByC_P

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

Specified by:
findByC_P in interface GroupPersistence
Parameters:
companyId - the company ID
parentGroupId - the parent group ID
Returns:
the matching groups

findByC_P

public List<Group> findByC_P(long companyId,
                             long parentGroupId,
                             int start,
                             int end)
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.

Specified by:
findByC_P in interface GroupPersistence
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

findByC_P

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

Useful when paginating results. Returns a maximum of end - start instances. start 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.

Specified by:
findByC_P in interface GroupPersistence
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

findByC_P

public List<Group> findByC_P(long companyId,
                             long parentGroupId,
                             int start,
                             int end,
                             OrderByComparator<Group> orderByComparator,
                             boolean retrieveFromCache)
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.

Specified by:
findByC_P in interface GroupPersistence
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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching groups

findByC_P_First

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

Specified by:
findByC_P_First in interface GroupPersistence
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

fetchByC_P_First

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

Specified by:
fetchByC_P_First in interface GroupPersistence
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

findByC_P_Last

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

Specified by:
findByC_P_Last in interface GroupPersistence
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

fetchByC_P_Last

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

Specified by:
fetchByC_P_Last in interface GroupPersistence
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

findByC_P_PrevAndNext

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

Specified by:
findByC_P_PrevAndNext in interface GroupPersistence
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

getByC_P_PrevAndNext

protected Group getByC_P_PrevAndNext(Session session,
                                     Group group,
                                     long companyId,
                                     long parentGroupId,
                                     OrderByComparator<Group> orderByComparator,
                                     boolean previous)

removeByC_P

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

Specified by:
removeByC_P in interface GroupPersistence
Parameters:
companyId - the company ID
parentGroupId - the parent group ID

countByC_P

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

Specified by:
countByC_P in interface GroupPersistence
Parameters:
companyId - the company ID
parentGroupId - the parent group ID
Returns:
the number of matching groups

findByC_GK

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

Specified by:
findByC_GK in interface GroupPersistence
Parameters:
companyId - the company ID
groupKey - the group key
Returns:
the matching group
Throws:
NoSuchGroupException - if a matching group could not be found

fetchByC_GK

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

Specified by:
fetchByC_GK in interface GroupPersistence
Parameters:
companyId - the company ID
groupKey - the group key
Returns:
the matching group, or null if a matching group could not be found

fetchByC_GK

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

Specified by:
fetchByC_GK in interface GroupPersistence
Parameters:
companyId - the company ID
groupKey - the group key
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching group, or null if a matching group could not be found

removeByC_GK

public Group removeByC_GK(long companyId,
                          String groupKey)
                   throws NoSuchGroupException
Removes the group where companyId = ? and groupKey = ? from the database.

Specified by:
removeByC_GK in interface GroupPersistence
Parameters:
companyId - the company ID
groupKey - the group key
Returns:
the group that was removed
Throws:
NoSuchGroupException

countByC_GK

public int countByC_GK(long companyId,
                       String groupKey)
Returns the number of groups where companyId = ? and groupKey = ?.

Specified by:
countByC_GK in interface GroupPersistence
Parameters:
companyId - the company ID
groupKey - the group key
Returns:
the number of matching groups

findByC_F

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

Specified by:
findByC_F in interface GroupPersistence
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

fetchByC_F

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

Specified by:
fetchByC_F in interface GroupPersistence
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

fetchByC_F

public 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.

Specified by:
fetchByC_F in interface GroupPersistence
Parameters:
companyId - the company ID
friendlyURL - the friendly u r l
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching group, or null if a matching group could not be found

removeByC_F

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

Specified by:
removeByC_F in interface GroupPersistence
Parameters:
companyId - the company ID
friendlyURL - the friendly u r l
Returns:
the group that was removed
Throws:
NoSuchGroupException

countByC_F

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

Specified by:
countByC_F in interface GroupPersistence
Parameters:
companyId - the company ID
friendlyURL - the friendly u r l
Returns:
the number of matching groups

findByC_S

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

Specified by:
findByC_S in interface GroupPersistence
Parameters:
companyId - the company ID
site - the site
Returns:
the matching groups

findByC_S

public List<Group> findByC_S(long companyId,
                             boolean site,
                             int start,
                             int end)
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.

Specified by:
findByC_S in interface GroupPersistence
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

findByC_S

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

Useful when paginating results. Returns a maximum of end - start instances. start 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.

Specified by:
findByC_S in interface GroupPersistence
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

findByC_S

public List<Group> findByC_S(long companyId,
                             boolean site,
                             int start,
                             int end,
                             OrderByComparator<Group> orderByComparator,
                             boolean retrieveFromCache)
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.

Specified by:
findByC_S in interface GroupPersistence
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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching groups

findByC_S_First

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

Specified by:
findByC_S_First in interface GroupPersistence
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

fetchByC_S_First

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

Specified by:
fetchByC_S_First in interface GroupPersistence
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

findByC_S_Last

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

Specified by:
findByC_S_Last in interface GroupPersistence
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

fetchByC_S_Last

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

Specified by:
fetchByC_S_Last in interface GroupPersistence
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

findByC_S_PrevAndNext

public Group[] findByC_S_PrevAndNext(long groupId,
                                     long companyId,
                                     boolean site,
                                     OrderByComparator<Group> orderByComparator)
                              throws NoSuchGroupException
Returns the groups before and after the current group in the ordered set where companyId = ? and site = ?.

Specified by:
findByC_S_PrevAndNext in interface GroupPersistence
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

getByC_S_PrevAndNext

protected Group getByC_S_PrevAndNext(Session session,
                                     Group group,
                                     long companyId,
                                     boolean site,
                                     OrderByComparator<Group> orderByComparator,
                                     boolean previous)

removeByC_S

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

Specified by:
removeByC_S in interface GroupPersistence
Parameters:
companyId - the company ID
site - the site

countByC_S

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

Specified by:
countByC_S in interface GroupPersistence
Parameters:
companyId - the company ID
site - the site
Returns:
the number of matching groups

findByC_A

public List<Group> findByC_A(long companyId,
                             boolean active)
Returns all the groups where companyId = ? and active = ?.

Specified by:
findByC_A in interface GroupPersistence
Parameters:
companyId - the company ID
active - the active
Returns:
the matching groups

findByC_A

public List<Group> findByC_A(long companyId,
                             boolean active,
                             int start,
                             int end)
Returns a range of all the groups where companyId = ? 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.

Specified by:
findByC_A in interface GroupPersistence
Parameters:
companyId - the company ID
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

findByC_A

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

Useful when paginating results. Returns a maximum of end - start instances. start 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.

Specified by:
findByC_A in interface GroupPersistence
Parameters:
companyId - the company ID
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

findByC_A

public List<Group> findByC_A(long companyId,
                             boolean active,
                             int start,
                             int end,
                             OrderByComparator<Group> orderByComparator,
                             boolean retrieveFromCache)
Returns an ordered range of all the groups where companyId = ? 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.

Specified by:
findByC_A in interface GroupPersistence
Parameters:
companyId - the company ID
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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching groups

findByC_A_First

public Group findByC_A_First(long companyId,
                             boolean active,
                             OrderByComparator<Group> orderByComparator)
                      throws NoSuchGroupException
Returns the first group in the ordered set where companyId = ? and active = ?.

Specified by:
findByC_A_First in interface GroupPersistence
Parameters:
companyId - the company ID
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

fetchByC_A_First

public Group fetchByC_A_First(long companyId,
                              boolean active,
                              OrderByComparator<Group> orderByComparator)
Returns the first group in the ordered set where companyId = ? and active = ?.

Specified by:
fetchByC_A_First in interface GroupPersistence
Parameters:
companyId - the company ID
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

findByC_A_Last

public Group findByC_A_Last(long companyId,
                            boolean active,
                            OrderByComparator<Group> orderByComparator)
                     throws NoSuchGroupException
Returns the last group in the ordered set where companyId = ? and active = ?.

Specified by:
findByC_A_Last in interface GroupPersistence
Parameters:
companyId - the company ID
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

fetchByC_A_Last

public Group fetchByC_A_Last(long companyId,
                             boolean active,
                             OrderByComparator<Group> orderByComparator)
Returns the last group in the ordered set where companyId = ? and active = ?.

Specified by:
fetchByC_A_Last in interface GroupPersistence
Parameters:
companyId - the company ID
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

findByC_A_PrevAndNext

public Group[] findByC_A_PrevAndNext(long groupId,
                                     long companyId,
                                     boolean active,
                                     OrderByComparator<Group> orderByComparator)
                              throws NoSuchGroupException
Returns the groups before and after the current group in the ordered set where companyId = ? and active = ?.

Specified by:
findByC_A_PrevAndNext in interface GroupPersistence
Parameters:
groupId - the primary key of the current group
companyId - the company ID
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

getByC_A_PrevAndNext

protected Group getByC_A_PrevAndNext(Session session,
                                     Group group,
                                     long companyId,
                                     boolean active,
                                     OrderByComparator<Group> orderByComparator,
                                     boolean previous)

removeByC_A

public void removeByC_A(long companyId,
                        boolean active)
Removes all the groups where companyId = ? and active = ? from the database.

Specified by:
removeByC_A in interface GroupPersistence
Parameters:
companyId - the company ID
active - the active

countByC_A

public int countByC_A(long companyId,
                      boolean active)
Returns the number of groups where companyId = ? and active = ?.

Specified by:
countByC_A in interface GroupPersistence
Parameters:
companyId - the company ID
active - the active
Returns:
the number of matching groups

findByT_A

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

Specified by:
findByT_A in interface GroupPersistence
Parameters:
type - the type
active - the active
Returns:
the matching groups

findByT_A

public List<Group> findByT_A(int type,
                             boolean active,
                             int start,
                             int end)
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.

Specified by:
findByT_A in interface GroupPersistence
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

findByT_A

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

Useful when paginating results. Returns a maximum of end - start instances. start 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.

Specified by:
findByT_A in interface GroupPersistence
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

findByT_A

public List<Group> findByT_A(int type,
                             boolean active,
                             int start,
                             int end,
                             OrderByComparator<Group> orderByComparator,
                             boolean retrieveFromCache)
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.

Specified by:
findByT_A in interface GroupPersistence
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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching groups

findByT_A_First

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

Specified by:
findByT_A_First in interface GroupPersistence
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

fetchByT_A_First

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

Specified by:
fetchByT_A_First in interface GroupPersistence
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

findByT_A_Last

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

Specified by:
findByT_A_Last in interface GroupPersistence
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

fetchByT_A_Last

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

Specified by:
fetchByT_A_Last in interface GroupPersistence
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

findByT_A_PrevAndNext

public Group[] findByT_A_PrevAndNext(long groupId,
                                     int type,
                                     boolean active,
                                     OrderByComparator<Group> orderByComparator)
                              throws NoSuchGroupException
Returns the groups before and after the current group in the ordered set where type = ? and active = ?.

Specified by:
findByT_A_PrevAndNext in interface GroupPersistence
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

getByT_A_PrevAndNext

protected Group getByT_A_PrevAndNext(Session session,
                                     Group group,
                                     int type,
                                     boolean active,
                                     OrderByComparator<Group> orderByComparator,
                                     boolean previous)

removeByT_A

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

Specified by:
removeByT_A in interface GroupPersistence
Parameters:
type - the type
active - the active

countByT_A

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

Specified by:
countByT_A in interface GroupPersistence
Parameters:
type - the type
active - the active
Returns:
the number of matching groups

findByG_C_P

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

Specified by:
findByG_C_P in interface GroupPersistence
Parameters:
groupId - the group ID
companyId - the company ID
parentGroupId - the parent group ID
Returns:
the matching groups

findByG_C_P

public 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 = ?.

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.

Specified by:
findByG_C_P in interface GroupPersistence
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

findByG_C_P

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

Useful when paginating results. Returns a maximum of end - start instances. start 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.

Specified by:
findByG_C_P in interface GroupPersistence
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

findByG_C_P

public List<Group> findByG_C_P(long groupId,
                               long companyId,
                               long parentGroupId,
                               int start,
                               int end,
                               OrderByComparator<Group> orderByComparator,
                               boolean retrieveFromCache)
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.

Specified by:
findByG_C_P in interface GroupPersistence
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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching groups

findByG_C_P_First

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

Specified by:
findByG_C_P_First in interface GroupPersistence
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

fetchByG_C_P_First

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

Specified by:
fetchByG_C_P_First in interface GroupPersistence
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

findByG_C_P_Last

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

Specified by:
findByG_C_P_Last in interface GroupPersistence
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

fetchByG_C_P_Last

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

Specified by:
fetchByG_C_P_Last in interface GroupPersistence
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

removeByG_C_P

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

Specified by:
removeByG_C_P in interface GroupPersistence
Parameters:
groupId - the group ID
companyId - the company ID
parentGroupId - the parent group ID

countByG_C_P

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

Specified by:
countByG_C_P in interface GroupPersistence
Parameters:
groupId - the group ID
companyId - the company ID
parentGroupId - the parent group ID
Returns:
the number of matching groups

findByC_C_C

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

Specified by:
findByC_C_C in interface GroupPersistence
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

fetchByC_C_C

public 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. Uses the finder cache.

Specified by:
fetchByC_C_C in interface GroupPersistence
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

fetchByC_C_C

public 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.

Specified by:
fetchByC_C_C in interface GroupPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching group, or null if a matching group could not be found

removeByC_C_C

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

Specified by:
removeByC_C_C in interface GroupPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
Returns:
the group that was removed
Throws:
NoSuchGroupException

countByC_C_C

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

Specified by:
countByC_C_C in interface GroupPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching groups

findByC_C_P

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

Specified by:
findByC_C_P in interface GroupPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
parentGroupId - the parent group ID
Returns:
the matching groups

findByC_C_P

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

Useful when paginating results. Returns a maximum of end - start instances. start 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.

Specified by:
findByC_C_P in interface GroupPersistence
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

findByC_C_P

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

Useful when paginating results. Returns a maximum of end - start instances. start 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.

Specified by:
findByC_C_P in interface GroupPersistence
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

findByC_C_P

public List<Group> findByC_C_P(long companyId,
                               long classNameId,
                               long parentGroupId,
                               int start,
                               int end,
                               OrderByComparator<Group> orderByComparator,
                               boolean retrieveFromCache)
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.

Specified by:
findByC_C_P in interface GroupPersistence
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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching groups

findByC_C_P_First

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

Specified by:
findByC_C_P_First in interface GroupPersistence
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

fetchByC_C_P_First

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

Specified by:
fetchByC_C_P_First in interface GroupPersistence
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

findByC_C_P_Last

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

Specified by:
findByC_C_P_Last in interface GroupPersistence
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

fetchByC_C_P_Last

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

Specified by:
fetchByC_C_P_Last in interface GroupPersistence
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

findByC_C_P_PrevAndNext

public Group[] findByC_C_P_PrevAndNext(long groupId,
                                       long companyId,
                                       long classNameId,
                                       long parentGroupId,
                                       OrderByComparator<Group> orderByComparator)
                                throws NoSuchGroupException
Returns the groups before and after the current group in the ordered set where companyId = ? and classNameId = ? and parentGroupId = ?.

Specified by:
findByC_C_P_PrevAndNext in interface GroupPersistence
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

getByC_C_P_PrevAndNext

protected Group getByC_C_P_PrevAndNext(Session session,
                                       Group group,
                                       long companyId,
                                       long classNameId,
                                       long parentGroupId,
                                       OrderByComparator<Group> orderByComparator,
                                       boolean previous)

removeByC_C_P

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

Specified by:
removeByC_C_P in interface GroupPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
parentGroupId - the parent group ID

countByC_C_P

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

Specified by:
countByC_C_P in interface GroupPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
parentGroupId - the parent group ID
Returns:
the number of matching groups

findByC_P_S

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

Specified by:
findByC_P_S in interface GroupPersistence
Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site
Returns:
the matching groups

findByC_P_S

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

Useful when paginating results. Returns a maximum of end - start instances. start 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.

Specified by:
findByC_P_S in interface GroupPersistence
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

findByC_P_S

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

Useful when paginating results. Returns a maximum of end - start instances. start 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.

Specified by:
findByC_P_S in interface GroupPersistence
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

findByC_P_S

public List<Group> findByC_P_S(long companyId,
                               long parentGroupId,
                               boolean site,
                               int start,
                               int end,
                               OrderByComparator<Group> orderByComparator,
                               boolean retrieveFromCache)
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.

Specified by:
findByC_P_S in interface GroupPersistence
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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching groups

findByC_P_S_First

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

Specified by:
findByC_P_S_First in interface GroupPersistence
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

fetchByC_P_S_First

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

Specified by:
fetchByC_P_S_First in interface GroupPersistence
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

findByC_P_S_Last

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

Specified by:
findByC_P_S_Last in interface GroupPersistence
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

fetchByC_P_S_Last

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

Specified by:
fetchByC_P_S_Last in interface GroupPersistence
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

findByC_P_S_PrevAndNext

public Group[] findByC_P_S_PrevAndNext(long groupId,
                                       long companyId,
                                       long parentGroupId,
                                       boolean site,
                                       OrderByComparator<Group> orderByComparator)
                                throws NoSuchGroupException
Returns the groups before and after the current group in the ordered set where companyId = ? and parentGroupId = ? and site = ?.

Specified by:
findByC_P_S_PrevAndNext in interface GroupPersistence
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

getByC_P_S_PrevAndNext

protected Group getByC_P_S_PrevAndNext(Session session,
                                       Group group,
                                       long companyId,
                                       long parentGroupId,
                                       boolean site,
                                       OrderByComparator<Group> orderByComparator,
                                       boolean previous)

removeByC_P_S

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

Specified by:
removeByC_P_S in interface GroupPersistence
Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site

countByC_P_S

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

Specified by:
countByC_P_S in interface GroupPersistence
Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site
Returns:
the number of matching groups

findByC_L_GK

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

Specified by:
findByC_L_GK in interface GroupPersistence
Parameters:
companyId - the company ID
liveGroupId - the live group ID
groupKey - the group key
Returns:
the matching group
Throws:
NoSuchGroupException - if a matching group could not be found

fetchByC_L_GK

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

Specified by:
fetchByC_L_GK in interface GroupPersistence
Parameters:
companyId - the company ID
liveGroupId - the live group ID
groupKey - the group key
Returns:
the matching group, or null if a matching group could not be found

fetchByC_L_GK

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

Specified by:
fetchByC_L_GK in interface GroupPersistence
Parameters:
companyId - the company ID
liveGroupId - the live group ID
groupKey - the group key
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching group, or null if a matching group could not be found

removeByC_L_GK

public Group removeByC_L_GK(long companyId,
                            long liveGroupId,
                            String groupKey)
                     throws NoSuchGroupException
Removes the group where companyId = ? and liveGroupId = ? and groupKey = ? from the database.

Specified by:
removeByC_L_GK in interface GroupPersistence
Parameters:
companyId - the company ID
liveGroupId - the live group ID
groupKey - the group key
Returns:
the group that was removed
Throws:
NoSuchGroupException

countByC_L_GK

public int countByC_L_GK(long companyId,
                         long liveGroupId,
                         String groupKey)
Returns the number of groups where companyId = ? and liveGroupId = ? and groupKey = ?.

Specified by:
countByC_L_GK in interface GroupPersistence
Parameters:
companyId - the company ID
liveGroupId - the live group ID
groupKey - the group key
Returns:
the number of matching groups

findByC_C_L_GK

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

Specified by:
findByC_C_L_GK in interface GroupPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
liveGroupId - the live group ID
groupKey - the group key
Returns:
the matching group
Throws:
NoSuchGroupException - if a matching group could not be found

fetchByC_C_L_GK

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

Specified by:
fetchByC_C_L_GK in interface GroupPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
liveGroupId - the live group ID
groupKey - the group key
Returns:
the matching group, or null if a matching group could not be found

fetchByC_C_L_GK

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

Specified by:
fetchByC_C_L_GK in interface GroupPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
liveGroupId - the live group ID
groupKey - the group key
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching group, or null if a matching group could not be found

removeByC_C_L_GK

public Group removeByC_C_L_GK(long companyId,
                              long classNameId,
                              long liveGroupId,
                              String groupKey)
                       throws NoSuchGroupException
Removes the group where companyId = ? and classNameId = ? and liveGroupId = ? and groupKey = ? from the database.

Specified by:
removeByC_C_L_GK in interface GroupPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
liveGroupId - the live group ID
groupKey - the group key
Returns:
the group that was removed
Throws:
NoSuchGroupException

countByC_C_L_GK

public int countByC_C_L_GK(long companyId,
                           long classNameId,
                           long liveGroupId,
                           String groupKey)
Returns the number of groups where companyId = ? and classNameId = ? and liveGroupId = ? and groupKey = ?.

Specified by:
countByC_C_L_GK in interface GroupPersistence
Parameters:
companyId - the company ID
classNameId - the class name ID
liveGroupId - the live group ID
groupKey - the group key
Returns:
the number of matching groups

findByC_P_S_I

public List<Group> findByC_P_S_I(long companyId,
                                 long parentGroupId,
                                 boolean site,
                                 boolean inheritContent)
Returns all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.

Specified by:
findByC_P_S_I in interface GroupPersistence
Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site
inheritContent - the inherit content
Returns:
the matching groups

findByC_P_S_I

public List<Group> findByC_P_S_I(long companyId,
                                 long parentGroupId,
                                 boolean site,
                                 boolean inheritContent,
                                 int start,
                                 int end)
Returns a range of all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.

Useful when paginating results. Returns a maximum of end - start instances. start 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.

Specified by:
findByC_P_S_I in interface GroupPersistence
Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site
inheritContent - the inherit content
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

findByC_P_S_I

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

Useful when paginating results. Returns a maximum of end - start instances. start 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.

Specified by:
findByC_P_S_I in interface GroupPersistence
Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site
inheritContent - the inherit content
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

findByC_P_S_I

public List<Group> findByC_P_S_I(long companyId,
                                 long parentGroupId,
                                 boolean site,
                                 boolean inheritContent,
                                 int start,
                                 int end,
                                 OrderByComparator<Group> orderByComparator,
                                 boolean retrieveFromCache)
Returns an ordered range of all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.

Useful when paginating results. Returns a maximum of end - start instances. start 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.

Specified by:
findByC_P_S_I in interface GroupPersistence
Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site
inheritContent - the inherit content
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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching groups

findByC_P_S_I_First

public Group findByC_P_S_I_First(long companyId,
                                 long parentGroupId,
                                 boolean site,
                                 boolean inheritContent,
                                 OrderByComparator<Group> orderByComparator)
                          throws NoSuchGroupException
Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.

Specified by:
findByC_P_S_I_First in interface GroupPersistence
Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site
inheritContent - the inherit content
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

fetchByC_P_S_I_First

public Group fetchByC_P_S_I_First(long companyId,
                                  long parentGroupId,
                                  boolean site,
                                  boolean inheritContent,
                                  OrderByComparator<Group> orderByComparator)
Returns the first group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.

Specified by:
fetchByC_P_S_I_First in interface GroupPersistence
Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site
inheritContent - the inherit content
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

findByC_P_S_I_Last

public Group findByC_P_S_I_Last(long companyId,
                                long parentGroupId,
                                boolean site,
                                boolean inheritContent,
                                OrderByComparator<Group> orderByComparator)
                         throws NoSuchGroupException
Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.

Specified by:
findByC_P_S_I_Last in interface GroupPersistence
Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site
inheritContent - the inherit content
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

fetchByC_P_S_I_Last

public Group fetchByC_P_S_I_Last(long companyId,
                                 long parentGroupId,
                                 boolean site,
                                 boolean inheritContent,
                                 OrderByComparator<Group> orderByComparator)
Returns the last group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.

Specified by:
fetchByC_P_S_I_Last in interface GroupPersistence
Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site
inheritContent - the inherit content
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

findByC_P_S_I_PrevAndNext

public Group[] findByC_P_S_I_PrevAndNext(long groupId,
                                         long companyId,
                                         long parentGroupId,
                                         boolean site,
                                         boolean inheritContent,
                                         OrderByComparator<Group> orderByComparator)
                                  throws NoSuchGroupException
Returns the groups before and after the current group in the ordered set where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.

Specified by:
findByC_P_S_I_PrevAndNext in interface GroupPersistence
Parameters:
groupId - the primary key of the current group
companyId - the company ID
parentGroupId - the parent group ID
site - the site
inheritContent - the inherit content
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

getByC_P_S_I_PrevAndNext

protected Group getByC_P_S_I_PrevAndNext(Session session,
                                         Group group,
                                         long companyId,
                                         long parentGroupId,
                                         boolean site,
                                         boolean inheritContent,
                                         OrderByComparator<Group> orderByComparator,
                                         boolean previous)

removeByC_P_S_I

public void removeByC_P_S_I(long companyId,
                            long parentGroupId,
                            boolean site,
                            boolean inheritContent)
Removes all the groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ? from the database.

Specified by:
removeByC_P_S_I in interface GroupPersistence
Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site
inheritContent - the inherit content

countByC_P_S_I

public int countByC_P_S_I(long companyId,
                          long parentGroupId,
                          boolean site,
                          boolean inheritContent)
Returns the number of groups where companyId = ? and parentGroupId = ? and site = ? and inheritContent = ?.

Specified by:
countByC_P_S_I in interface GroupPersistence
Parameters:
companyId - the company ID
parentGroupId - the parent group ID
site - the site
inheritContent - the inherit content
Returns:
the number of matching groups

cacheResult

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

Specified by:
cacheResult in interface GroupPersistence
Parameters:
group - the group

cacheResult

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

Specified by:
cacheResult in interface GroupPersistence
Parameters:
groups - the groups

clearCache

public void clearCache()
Clears the cache for all groups.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<Group>
Overrides:
clearCache in class BasePersistenceImpl<Group>

clearCache

public void clearCache(Group group)
Clears the cache for the group.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<Group>
Overrides:
clearCache in class BasePersistenceImpl<Group>
Parameters:
group - the instance of this model to clear the cache for

clearCache

public void clearCache(List<Group> groups)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<Group>
Overrides:
clearCache in class BasePersistenceImpl<Group>
Parameters:
groups - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(GroupModelImpl groupModelImpl,
                                       boolean isNew)

clearUniqueFindersCache

protected void clearUniqueFindersCache(GroupModelImpl groupModelImpl)

create

public Group create(long groupId)
Creates a new group with the primary key. Does not add the group to the database.

Specified by:
create in interface GroupPersistence
Parameters:
groupId - the primary key for the new group
Returns:
the new group

remove

public Group remove(long groupId)
             throws NoSuchGroupException
Removes the group with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface GroupPersistence
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

remove

public Group remove(Serializable primaryKey)
             throws NoSuchGroupException
Removes the group with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<Group>
Overrides:
remove in class BasePersistenceImpl<Group>
Parameters:
primaryKey - 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

removeImpl

protected Group removeImpl(Group group)
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<Group>
Parameters:
group - the model instance to remove
Returns:
the model instance that was removed

updateImpl

public Group updateImpl(Group group)
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface GroupPersistence
Overrides:
updateImpl in class BasePersistenceImpl<Group>
Parameters:
group - the model instance to update
Returns:
the model instance that was updated

toUnwrappedModel

protected Group toUnwrappedModel(Group group)

findByPrimaryKey

public Group findByPrimaryKey(Serializable primaryKey)
                       throws NoSuchGroupException
Returns the group with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<Group>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<Group>
Parameters:
primaryKey - the primary key of the group
Returns:
the group
Throws:
NoSuchGroupException - if a group with the primary key could not be found

findByPrimaryKey

public Group findByPrimaryKey(long groupId)
                       throws NoSuchGroupException
Returns the group with the primary key or throws a NoSuchGroupException if it could not be found.

Specified by:
findByPrimaryKey in interface GroupPersistence
Parameters:
groupId - the primary key of the group
Returns:
the group
Throws:
NoSuchGroupException - if a group with the primary key could not be found

fetchByPrimaryKey

public Group fetchByPrimaryKey(Serializable primaryKey)
Returns the group with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<Group>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<Group>
Parameters:
primaryKey - the primary key of the group
Returns:
the group, or null if a group with the primary key could not be found

fetchByPrimaryKey

public Group fetchByPrimaryKey(long groupId)
Returns the group with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface GroupPersistence
Parameters:
groupId - the primary key of the group
Returns:
the group, or null if a group with the primary key could not be found

fetchByPrimaryKeys

public Map<Serializable,Group> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface BasePersistence<Group>
Specified by:
fetchByPrimaryKeys in interface GroupPersistence
Overrides:
fetchByPrimaryKeys in class BasePersistenceImpl<Group>

findAll

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

Specified by:
findAll in interface GroupPersistence
Returns:
the groups

findAll

public List<Group> findAll(int start,
                           int end)
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.

Specified by:
findAll in interface GroupPersistence
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

findAll

public List<Group> findAll(int start,
                           int end,
                           OrderByComparator<Group> orderByComparator)
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.

Specified by:
findAll in interface GroupPersistence
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

findAll

public List<Group> findAll(int start,
                           int end,
                           OrderByComparator<Group> orderByComparator,
                           boolean retrieveFromCache)
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.

Specified by:
findAll in interface GroupPersistence
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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of groups

removeAll

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

Specified by:
removeAll in interface GroupPersistence

countAll

public int countAll()
Returns the number of groups.

Specified by:
countAll in interface GroupPersistence
Returns:
the number of groups

getOrganizationPrimaryKeys

public long[] getOrganizationPrimaryKeys(long pk)
Returns the primaryKeys of organizations associated with the group.

Specified by:
getOrganizationPrimaryKeys in interface GroupPersistence
Parameters:
pk - the primary key of the group
Returns:
long[] of the primaryKeys of organizations associated with the group

getOrganizations

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

Specified by:
getOrganizations in interface GroupPersistence
Parameters:
pk - the primary key of the group
Returns:
the organizations associated with the group

getOrganizations

public List<Organization> getOrganizations(long pk,
                                           int start,
                                           int end)
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.

Specified by:
getOrganizations in interface GroupPersistence
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

getOrganizations

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

Useful when paginating results. Returns a maximum of end - start instances. start 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.

Specified by:
getOrganizations in interface GroupPersistence
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

getOrganizationsSize

public int getOrganizationsSize(long pk)
Returns the number of organizations associated with the group.

Specified by:
getOrganizationsSize in interface GroupPersistence
Parameters:
pk - the primary key of the group
Returns:
the number of organizations associated with the group

containsOrganization

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

Specified by:
containsOrganization in interface GroupPersistence
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

containsOrganizations

public boolean containsOrganizations(long pk)
Returns true if the group has any organizations associated with it.

Specified by:
containsOrganizations in interface GroupPersistence
Parameters:
pk - the primary key of the group to check for associations with organizations
Returns:
true if the group has any organizations associated with it; false otherwise

addOrganization

public void addOrganization(long pk,
                            long organizationPK)
Adds an association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addOrganization in interface GroupPersistence
Parameters:
pk - the primary key of the group
organizationPK - the primary key of the organization

addOrganization

public void addOrganization(long pk,
                            Organization organization)
Adds an association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addOrganization in interface GroupPersistence
Parameters:
pk - the primary key of the group
organization - the organization

addOrganizations

public void addOrganizations(long pk,
                             long[] organizationPKs)
Adds an association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addOrganizations in interface GroupPersistence
Parameters:
pk - the primary key of the group
organizationPKs - the primary keys of the organizations

addOrganizations

public void addOrganizations(long pk,
                             List<Organization> organizations)
Adds an association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addOrganizations in interface GroupPersistence
Parameters:
pk - the primary key of the group
organizations - the organizations

clearOrganizations

public void clearOrganizations(long pk)
Clears all associations between the group and its organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearOrganizations in interface GroupPersistence
Parameters:
pk - the primary key of the group to clear the associated organizations from

removeOrganization

public void removeOrganization(long pk,
                               long organizationPK)
Removes the association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeOrganization in interface GroupPersistence
Parameters:
pk - the primary key of the group
organizationPK - the primary key of the organization

removeOrganization

public void removeOrganization(long pk,
                               Organization organization)
Removes the association between the group and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeOrganization in interface GroupPersistence
Parameters:
pk - the primary key of the group
organization - the organization

removeOrganizations

public void removeOrganizations(long pk,
                                long[] organizationPKs)
Removes the association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeOrganizations in interface GroupPersistence
Parameters:
pk - the primary key of the group
organizationPKs - the primary keys of the organizations

removeOrganizations

public void removeOrganizations(long pk,
                                List<Organization> organizations)
Removes the association between the group and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeOrganizations in interface GroupPersistence
Parameters:
pk - the primary key of the group
organizations - the organizations

setOrganizations

public void setOrganizations(long pk,
                             long[] organizationPKs)
Sets the organizations associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setOrganizations in interface GroupPersistence
Parameters:
pk - the primary key of the group
organizationPKs - the primary keys of the organizations to be associated with the group

setOrganizations

public void setOrganizations(long pk,
                             List<Organization> organizations)
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.

Specified by:
setOrganizations in interface GroupPersistence
Parameters:
pk - the primary key of the group
organizations - the organizations to be associated with the group

getRolePrimaryKeys

public long[] getRolePrimaryKeys(long pk)
Returns the primaryKeys of roles associated with the group.

Specified by:
getRolePrimaryKeys in interface GroupPersistence
Parameters:
pk - the primary key of the group
Returns:
long[] of the primaryKeys of roles associated with the group

getRoles

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

Specified by:
getRoles in interface GroupPersistence
Parameters:
pk - the primary key of the group
Returns:
the roles associated with the group

getRoles

public List<Role> getRoles(long pk,
                           int start,
                           int end)
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.

Specified by:
getRoles in interface GroupPersistence
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

getRoles

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

Useful when paginating results. Returns a maximum of end - start instances. start 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.

Specified by:
getRoles in interface GroupPersistence
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

getRolesSize

public int getRolesSize(long pk)
Returns the number of roles associated with the group.

Specified by:
getRolesSize in interface GroupPersistence
Parameters:
pk - the primary key of the group
Returns:
the number of roles associated with the group

containsRole

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

Specified by:
containsRole in interface GroupPersistence
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

containsRoles

public boolean containsRoles(long pk)
Returns true if the group has any roles associated with it.

Specified by:
containsRoles in interface GroupPersistence
Parameters:
pk - the primary key of the group to check for associations with roles
Returns:
true if the group has any roles associated with it; false otherwise

addRole

public void addRole(long pk,
                    long rolePK)
Adds an association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addRole in interface GroupPersistence
Parameters:
pk - the primary key of the group
rolePK - the primary key of the role

addRole

public void addRole(long pk,
                    Role role)
Adds an association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addRole in interface GroupPersistence
Parameters:
pk - the primary key of the group
role - the role

addRoles

public void addRoles(long pk,
                     long[] rolePKs)
Adds an association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addRoles in interface GroupPersistence
Parameters:
pk - the primary key of the group
rolePKs - the primary keys of the roles

addRoles

public void addRoles(long pk,
                     List<Role> roles)
Adds an association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addRoles in interface GroupPersistence
Parameters:
pk - the primary key of the group
roles - the roles

clearRoles

public void clearRoles(long pk)
Clears all associations between the group and its roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearRoles in interface GroupPersistence
Parameters:
pk - the primary key of the group to clear the associated roles from

removeRole

public void removeRole(long pk,
                       long rolePK)
Removes the association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeRole in interface GroupPersistence
Parameters:
pk - the primary key of the group
rolePK - the primary key of the role

removeRole

public void removeRole(long pk,
                       Role role)
Removes the association between the group and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeRole in interface GroupPersistence
Parameters:
pk - the primary key of the group
role - the role

removeRoles

public void removeRoles(long pk,
                        long[] rolePKs)
Removes the association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeRoles in interface GroupPersistence
Parameters:
pk - the primary key of the group
rolePKs - the primary keys of the roles

removeRoles

public void removeRoles(long pk,
                        List<Role> roles)
Removes the association between the group and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeRoles in interface GroupPersistence
Parameters:
pk - the primary key of the group
roles - the roles

setRoles

public void setRoles(long pk,
                     long[] rolePKs)
Sets the roles associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setRoles in interface GroupPersistence
Parameters:
pk - the primary key of the group
rolePKs - the primary keys of the roles to be associated with the group

setRoles

public void setRoles(long pk,
                     List<Role> roles)
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.

Specified by:
setRoles in interface GroupPersistence
Parameters:
pk - the primary key of the group
roles - the roles to be associated with the group

getUserGroupPrimaryKeys

public long[] getUserGroupPrimaryKeys(long pk)
Returns the primaryKeys of user groups associated with the group.

Specified by:
getUserGroupPrimaryKeys in interface GroupPersistence
Parameters:
pk - the primary key of the group
Returns:
long[] of the primaryKeys of user groups associated with the group

getUserGroups

public List<UserGroup> getUserGroups(long pk)
Returns all the user groups associated with the group.

Specified by:
getUserGroups in interface GroupPersistence
Parameters:
pk - the primary key of the group
Returns:
the user groups associated with the group

getUserGroups

public List<UserGroup> getUserGroups(long pk,
                                     int start,
                                     int end)
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.

Specified by:
getUserGroups in interface GroupPersistence
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

getUserGroups

public List<UserGroup> getUserGroups(long pk,
                                     int start,
                                     int end,
                                     OrderByComparator<UserGroup> orderByComparator)
Returns an ordered range of all the user groups associated with the group.

Useful when paginating results. Returns a maximum of end - start instances. start 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.

Specified by:
getUserGroups in interface GroupPersistence
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

getUserGroupsSize

public int getUserGroupsSize(long pk)
Returns the number of user groups associated with the group.

Specified by:
getUserGroupsSize in interface GroupPersistence
Parameters:
pk - the primary key of the group
Returns:
the number of user groups associated with the group

containsUserGroup

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

Specified by:
containsUserGroup in interface GroupPersistence
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

containsUserGroups

public boolean containsUserGroups(long pk)
Returns true if the group has any user groups associated with it.

Specified by:
containsUserGroups in interface GroupPersistence
Parameters:
pk - the primary key of the group to check for associations with user groups
Returns:
true if the group has any user groups associated with it; false otherwise

addUserGroup

public void addUserGroup(long pk,
                         long userGroupPK)
Adds an association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUserGroup in interface GroupPersistence
Parameters:
pk - the primary key of the group
userGroupPK - the primary key of the user group

addUserGroup

public void addUserGroup(long pk,
                         UserGroup userGroup)
Adds an association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUserGroup in interface GroupPersistence
Parameters:
pk - the primary key of the group
userGroup - the user group

addUserGroups

public void addUserGroups(long pk,
                          long[] userGroupPKs)
Adds an association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUserGroups in interface GroupPersistence
Parameters:
pk - the primary key of the group
userGroupPKs - the primary keys of the user groups

addUserGroups

public void addUserGroups(long pk,
                          List<UserGroup> userGroups)
Adds an association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUserGroups in interface GroupPersistence
Parameters:
pk - the primary key of the group
userGroups - the user groups

clearUserGroups

public void clearUserGroups(long pk)
Clears all associations between the group and its user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearUserGroups in interface GroupPersistence
Parameters:
pk - the primary key of the group to clear the associated user groups from

removeUserGroup

public void removeUserGroup(long pk,
                            long userGroupPK)
Removes the association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUserGroup in interface GroupPersistence
Parameters:
pk - the primary key of the group
userGroupPK - the primary key of the user group

removeUserGroup

public void removeUserGroup(long pk,
                            UserGroup userGroup)
Removes the association between the group and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUserGroup in interface GroupPersistence
Parameters:
pk - the primary key of the group
userGroup - the user group

removeUserGroups

public void removeUserGroups(long pk,
                             long[] userGroupPKs)
Removes the association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUserGroups in interface GroupPersistence
Parameters:
pk - the primary key of the group
userGroupPKs - the primary keys of the user groups

removeUserGroups

public void removeUserGroups(long pk,
                             List<UserGroup> userGroups)
Removes the association between the group and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUserGroups in interface GroupPersistence
Parameters:
pk - the primary key of the group
userGroups - the user groups

setUserGroups

public void setUserGroups(long pk,
                          long[] userGroupPKs)
Sets the user groups associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setUserGroups in interface GroupPersistence
Parameters:
pk - the primary key of the group
userGroupPKs - the primary keys of the user groups to be associated with the group

setUserGroups

public void setUserGroups(long pk,
                          List<UserGroup> userGroups)
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.

Specified by:
setUserGroups in interface GroupPersistence
Parameters:
pk - the primary key of the group
userGroups - the user groups to be associated with the group

getUserPrimaryKeys

public long[] getUserPrimaryKeys(long pk)
Returns the primaryKeys of users associated with the group.

Specified by:
getUserPrimaryKeys in interface GroupPersistence
Parameters:
pk - the primary key of the group
Returns:
long[] of the primaryKeys of users associated with the group

getUsers

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

Specified by:
getUsers in interface GroupPersistence
Parameters:
pk - the primary key of the group
Returns:
the users associated with the group

getUsers

public List<User> getUsers(long pk,
                           int start,
                           int end)
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.

Specified by:
getUsers in interface GroupPersistence
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

getUsers

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

Useful when paginating results. Returns a maximum of end - start instances. start 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.

Specified by:
getUsers in interface GroupPersistence
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

getUsersSize

public int getUsersSize(long pk)
Returns the number of users associated with the group.

Specified by:
getUsersSize in interface GroupPersistence
Parameters:
pk - the primary key of the group
Returns:
the number of users associated with the group

containsUser

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

Specified by:
containsUser in interface GroupPersistence
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

containsUsers

public boolean containsUsers(long pk)
Returns true if the group has any users associated with it.

Specified by:
containsUsers in interface GroupPersistence
Parameters:
pk - the primary key of the group to check for associations with users
Returns:
true if the group has any users associated with it; false otherwise

addUser

public void addUser(long pk,
                    long userPK)
Adds an association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUser in interface GroupPersistence
Parameters:
pk - the primary key of the group
userPK - the primary key of the user

addUser

public void addUser(long pk,
                    User user)
Adds an association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUser in interface GroupPersistence
Parameters:
pk - the primary key of the group
user - the user

addUsers

public void addUsers(long pk,
                     long[] userPKs)
Adds an association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUsers in interface GroupPersistence
Parameters:
pk - the primary key of the group
userPKs - the primary keys of the users

addUsers

public void addUsers(long pk,
                     List<User> users)
Adds an association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUsers in interface GroupPersistence
Parameters:
pk - the primary key of the group
users - the users

clearUsers

public void clearUsers(long pk)
Clears all associations between the group and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearUsers in interface GroupPersistence
Parameters:
pk - the primary key of the group to clear the associated users from

removeUser

public void removeUser(long pk,
                       long userPK)
Removes the association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUser in interface GroupPersistence
Parameters:
pk - the primary key of the group
userPK - the primary key of the user

removeUser

public void removeUser(long pk,
                       User user)
Removes the association between the group and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUser in interface GroupPersistence
Parameters:
pk - the primary key of the group
user - the user

removeUsers

public void removeUsers(long pk,
                        long[] userPKs)
Removes the association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUsers in interface GroupPersistence
Parameters:
pk - the primary key of the group
userPKs - the primary keys of the users

removeUsers

public void removeUsers(long pk,
                        List<User> users)
Removes the association between the group and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUsers in interface GroupPersistence
Parameters:
pk - the primary key of the group
users - the users

setUsers

public void setUsers(long pk,
                     long[] userPKs)
Sets the users associated with the group, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setUsers in interface GroupPersistence
Parameters:
pk - the primary key of the group
userPKs - the primary keys of the users to be associated with the group

setUsers

public void setUsers(long pk,
                     List<User> users)
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.

Specified by:
setUsers in interface GroupPersistence
Parameters:
pk - the primary key of the group
users - the users to be associated with the group

getBadColumnNames

public Set<String> getBadColumnNames()
Specified by:
getBadColumnNames in interface BasePersistence<Group>
Specified by:
getBadColumnNames in interface GroupPersistence
Overrides:
getBadColumnNames in class BasePersistenceImpl<Group>

getTableColumnsMap

protected Map<String,Integer> getTableColumnsMap()
Overrides:
getTableColumnsMap in class BasePersistenceImpl<Group>

afterPropertiesSet

public void afterPropertiesSet()
Initializes the group persistence.


destroy

public void destroy()

Liferay 7.0-ce-b4