Liferay 6.0.5

com.liferay.portal.service.persistence
Class UserGroupGroupRoleUtil

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

public class UserGroupGroupRoleUtil
extends Object

The persistence utility for the user group group role service. This utility wraps UserGroupGroupRolePersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

See Also:
UserGroupGroupRolePersistence, UserGroupGroupRolePersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
UserGroupGroupRoleUtil()
           
 
Method Summary
static void cacheResult(List<UserGroupGroupRole> userGroupGroupRoles)
          Caches the user group group roles in the entity cache if it is enabled.
static void cacheResult(UserGroupGroupRole userGroupGroupRole)
          Caches the user group group role in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(UserGroupGroupRole userGroupGroupRole)
           
static int countAll()
          Counts all the user group group roles.
static int countByG_R(long groupId, long roleId)
          Counts all the user group group roles where groupId = ? and roleId = ?.
static int countByGroupId(long groupId)
          Counts all the user group group roles where groupId = ?.
static int countByRoleId(long roleId)
          Counts all the user group group roles where roleId = ?.
static int countByU_G(long userGroupId, long groupId)
          Counts all the user group group roles where userGroupId = ? and groupId = ?.
static int countByUserGroupId(long userGroupId)
          Counts all the user group group roles where userGroupId = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static UserGroupGroupRole create(UserGroupGroupRolePK userGroupGroupRolePK)
          Creates a new user group group role with the primary key.
static UserGroupGroupRole fetchByPrimaryKey(UserGroupGroupRolePK userGroupGroupRolePK)
          Finds the user group group role with the primary key or returns null if it could not be found.
static List<UserGroupGroupRole> findAll()
          Finds all the user group group roles.
static List<UserGroupGroupRole> findAll(int start, int end)
          Finds a range of all the user group group roles.
static List<UserGroupGroupRole> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the user group group roles.
static UserGroupGroupRole findByG_R_First(long groupId, long roleId, OrderByComparator orderByComparator)
          Finds the first user group group role in the ordered set where groupId = ? and roleId = ?.
static UserGroupGroupRole findByG_R_Last(long groupId, long roleId, OrderByComparator orderByComparator)
          Finds the last user group group role in the ordered set where groupId = ? and roleId = ?.
static UserGroupGroupRole[] findByG_R_PrevAndNext(UserGroupGroupRolePK userGroupGroupRolePK, long groupId, long roleId, OrderByComparator orderByComparator)
          Finds the user group group roles before and after the current user group group role in the ordered set where groupId = ? and roleId = ?.
static List<UserGroupGroupRole> findByG_R(long groupId, long roleId)
          Finds all the user group group roles where groupId = ? and roleId = ?.
static List<UserGroupGroupRole> findByG_R(long groupId, long roleId, int start, int end)
          Finds a range of all the user group group roles where groupId = ? and roleId = ?.
static List<UserGroupGroupRole> findByG_R(long groupId, long roleId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the user group group roles where groupId = ? and roleId = ?.
static UserGroupGroupRole findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first user group group role in the ordered set where groupId = ?.
static UserGroupGroupRole findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last user group group role in the ordered set where groupId = ?.
static UserGroupGroupRole[] findByGroupId_PrevAndNext(UserGroupGroupRolePK userGroupGroupRolePK, long groupId, OrderByComparator orderByComparator)
          Finds the user group group roles before and after the current user group group role in the ordered set where groupId = ?.
static List<UserGroupGroupRole> findByGroupId(long groupId)
          Finds all the user group group roles where groupId = ?.
static List<UserGroupGroupRole> findByGroupId(long groupId, int start, int end)
          Finds a range of all the user group group roles where groupId = ?.
static List<UserGroupGroupRole> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the user group group roles where groupId = ?.
static UserGroupGroupRole findByPrimaryKey(UserGroupGroupRolePK userGroupGroupRolePK)
          Finds the user group group role with the primary key or throws a NoSuchUserGroupGroupRoleException if it could not be found.
static UserGroupGroupRole findByRoleId_First(long roleId, OrderByComparator orderByComparator)
          Finds the first user group group role in the ordered set where roleId = ?.
static UserGroupGroupRole findByRoleId_Last(long roleId, OrderByComparator orderByComparator)
          Finds the last user group group role in the ordered set where roleId = ?.
static UserGroupGroupRole[] findByRoleId_PrevAndNext(UserGroupGroupRolePK userGroupGroupRolePK, long roleId, OrderByComparator orderByComparator)
          Finds the user group group roles before and after the current user group group role in the ordered set where roleId = ?.
static List<UserGroupGroupRole> findByRoleId(long roleId)
          Finds all the user group group roles where roleId = ?.
static List<UserGroupGroupRole> findByRoleId(long roleId, int start, int end)
          Finds a range of all the user group group roles where roleId = ?.
static List<UserGroupGroupRole> findByRoleId(long roleId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the user group group roles where roleId = ?.
static UserGroupGroupRole findByU_G_First(long userGroupId, long groupId, OrderByComparator orderByComparator)
          Finds the first user group group role in the ordered set where userGroupId = ? and groupId = ?.
static UserGroupGroupRole findByU_G_Last(long userGroupId, long groupId, OrderByComparator orderByComparator)
          Finds the last user group group role in the ordered set where userGroupId = ? and groupId = ?.
static UserGroupGroupRole[] findByU_G_PrevAndNext(UserGroupGroupRolePK userGroupGroupRolePK, long userGroupId, long groupId, OrderByComparator orderByComparator)
          Finds the user group group roles before and after the current user group group role in the ordered set where userGroupId = ? and groupId = ?.
static List<UserGroupGroupRole> findByU_G(long userGroupId, long groupId)
          Finds all the user group group roles where userGroupId = ? and groupId = ?.
static List<UserGroupGroupRole> findByU_G(long userGroupId, long groupId, int start, int end)
          Finds a range of all the user group group roles where userGroupId = ? and groupId = ?.
static List<UserGroupGroupRole> findByU_G(long userGroupId, long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the user group group roles where userGroupId = ? and groupId = ?.
static UserGroupGroupRole findByUserGroupId_First(long userGroupId, OrderByComparator orderByComparator)
          Finds the first user group group role in the ordered set where userGroupId = ?.
static UserGroupGroupRole findByUserGroupId_Last(long userGroupId, OrderByComparator orderByComparator)
          Finds the last user group group role in the ordered set where userGroupId = ?.
static UserGroupGroupRole[] findByUserGroupId_PrevAndNext(UserGroupGroupRolePK userGroupGroupRolePK, long userGroupId, OrderByComparator orderByComparator)
          Finds the user group group roles before and after the current user group group role in the ordered set where userGroupId = ?.
static List<UserGroupGroupRole> findByUserGroupId(long userGroupId)
          Finds all the user group group roles where userGroupId = ?.
static List<UserGroupGroupRole> findByUserGroupId(long userGroupId, int start, int end)
          Finds a range of all the user group group roles where userGroupId = ?.
static List<UserGroupGroupRole> findByUserGroupId(long userGroupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the user group group roles where userGroupId = ?.
static List<UserGroupGroupRole> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<UserGroupGroupRole> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<UserGroupGroupRole> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static UserGroupGroupRolePersistence getPersistence()
           
static UserGroupGroupRole remove(UserGroupGroupRole userGroupGroupRole)
           
static UserGroupGroupRole remove(UserGroupGroupRolePK userGroupGroupRolePK)
          Removes the user group group role with the primary key from the database.
static void removeAll()
          Removes all the user group group roles from the database.
static void removeByG_R(long groupId, long roleId)
          Removes all the user group group roles where groupId = ? and roleId = ? from the database.
static void removeByGroupId(long groupId)
          Removes all the user group group roles where groupId = ? from the database.
static void removeByRoleId(long roleId)
          Removes all the user group group roles where roleId = ? from the database.
static void removeByU_G(long userGroupId, long groupId)
          Removes all the user group group roles where userGroupId = ? and groupId = ? from the database.
static void removeByUserGroupId(long userGroupId)
          Removes all the user group group roles where userGroupId = ? from the database.
 void setPersistence(UserGroupGroupRolePersistence persistence)
           
static UserGroupGroupRole update(UserGroupGroupRole userGroupGroupRole, boolean merge)
           
static UserGroupGroupRole update(UserGroupGroupRole userGroupGroupRole, boolean merge, ServiceContext serviceContext)
           
static UserGroupGroupRole updateImpl(UserGroupGroupRole userGroupGroupRole, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserGroupGroupRoleUtil

public UserGroupGroupRoleUtil()
Method Detail

clearCache

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

clearCache

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

countWithDynamicQuery

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

findWithDynamicQuery

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

findWithDynamicQuery

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

findWithDynamicQuery

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

remove

public static UserGroupGroupRole remove(UserGroupGroupRole userGroupGroupRole)
                                 throws SystemException
Throws:
SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static UserGroupGroupRole update(UserGroupGroupRole userGroupGroupRole,
                                        boolean merge)
                                 throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static UserGroupGroupRole update(UserGroupGroupRole userGroupGroupRole,
                                        boolean merge,
                                        ServiceContext serviceContext)
                                 throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

public static void cacheResult(UserGroupGroupRole userGroupGroupRole)
Caches the user group group role in the entity cache if it is enabled.

Parameters:
userGroupGroupRole - the user group group role to cache

cacheResult

public static void cacheResult(List<UserGroupGroupRole> userGroupGroupRoles)
Caches the user group group roles in the entity cache if it is enabled.

Parameters:
userGroupGroupRoles - the user group group roles to cache

create

public static UserGroupGroupRole create(UserGroupGroupRolePK userGroupGroupRolePK)
Creates a new user group group role with the primary key. Does not add the user group group role to the database.

Parameters:
userGroupGroupRolePK - the primary key for the new user group group role
Returns:
the new user group group role

remove

public static UserGroupGroupRole remove(UserGroupGroupRolePK userGroupGroupRolePK)
                                 throws NoSuchUserGroupGroupRoleException,
                                        SystemException
Removes the user group group role with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
userGroupGroupRolePK - the primary key of the user group group role to remove
Returns:
the user group group role that was removed
Throws:
NoSuchUserGroupGroupRoleException - if a user group group role with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static UserGroupGroupRole updateImpl(UserGroupGroupRole userGroupGroupRole,
                                            boolean merge)
                                     throws SystemException
Throws:
SystemException

findByPrimaryKey

public static UserGroupGroupRole findByPrimaryKey(UserGroupGroupRolePK userGroupGroupRolePK)
                                           throws NoSuchUserGroupGroupRoleException,
                                                  SystemException
Finds the user group group role with the primary key or throws a NoSuchUserGroupGroupRoleException if it could not be found.

Parameters:
userGroupGroupRolePK - the primary key of the user group group role to find
Returns:
the user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a user group group role with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static UserGroupGroupRole fetchByPrimaryKey(UserGroupGroupRolePK userGroupGroupRolePK)
                                            throws SystemException
Finds the user group group role with the primary key or returns null if it could not be found.

Parameters:
userGroupGroupRolePK - the primary key of the user group group role to find
Returns:
the user group group role, or null if a user group group role with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByUserGroupId

public static List<UserGroupGroupRole> findByUserGroupId(long userGroupId)
                                                  throws SystemException
Finds all the user group group roles where userGroupId = ?.

Parameters:
userGroupId - the user group id to search with
Returns:
the matching user group group roles
Throws:
SystemException - if a system exception occurred

findByUserGroupId

public static List<UserGroupGroupRole> findByUserGroupId(long userGroupId,
                                                         int start,
                                                         int end)
                                                  throws SystemException
Finds a range of all the user group group roles where userGroupId = ?.

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.

Parameters:
userGroupId - the user group id to search with
start - the lower bound of the range of user group group roles to return
end - the upper bound of the range of user group group roles to return (not inclusive)
Returns:
the range of matching user group group roles
Throws:
SystemException - if a system exception occurred

findByUserGroupId

public static List<UserGroupGroupRole> findByUserGroupId(long userGroupId,
                                                         int start,
                                                         int end,
                                                         OrderByComparator orderByComparator)
                                                  throws SystemException
Finds an ordered range of all the user group group roles where userGroupId = ?.

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.

Parameters:
userGroupId - the user group id to search with
start - the lower bound of the range of user group group roles to return
end - the upper bound of the range of user group group roles to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching user group group roles
Throws:
SystemException - if a system exception occurred

findByUserGroupId_First

public static UserGroupGroupRole findByUserGroupId_First(long userGroupId,
                                                         OrderByComparator orderByComparator)
                                                  throws NoSuchUserGroupGroupRoleException,
                                                         SystemException
Finds the first user group group role in the ordered set where userGroupId = ?.

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.

Parameters:
userGroupId - the user group id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a matching user group group role could not be found
SystemException - if a system exception occurred

findByUserGroupId_Last

public static UserGroupGroupRole findByUserGroupId_Last(long userGroupId,
                                                        OrderByComparator orderByComparator)
                                                 throws NoSuchUserGroupGroupRoleException,
                                                        SystemException
Finds the last user group group role in the ordered set where userGroupId = ?.

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.

Parameters:
userGroupId - the user group id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a matching user group group role could not be found
SystemException - if a system exception occurred

findByUserGroupId_PrevAndNext

public static UserGroupGroupRole[] findByUserGroupId_PrevAndNext(UserGroupGroupRolePK userGroupGroupRolePK,
                                                                 long userGroupId,
                                                                 OrderByComparator orderByComparator)
                                                          throws NoSuchUserGroupGroupRoleException,
                                                                 SystemException
Finds the user group group roles before and after the current user group group role in the ordered set where userGroupId = ?.

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.

Parameters:
userGroupGroupRolePK - the primary key of the current user group group role
userGroupId - the user group id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a user group group role with the primary key could not be found
SystemException - if a system exception occurred

findByGroupId

public static List<UserGroupGroupRole> findByGroupId(long groupId)
                                              throws SystemException
Finds all the user group group roles where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the matching user group group roles
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<UserGroupGroupRole> findByGroupId(long groupId,
                                                     int start,
                                                     int end)
                                              throws SystemException
Finds a range of all the user group group roles where groupId = ?.

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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of user group group roles to return
end - the upper bound of the range of user group group roles to return (not inclusive)
Returns:
the range of matching user group group roles
Throws:
SystemException - if a system exception occurred

findByGroupId

public static List<UserGroupGroupRole> findByGroupId(long groupId,
                                                     int start,
                                                     int end,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Finds an ordered range of all the user group group roles where groupId = ?.

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.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of user group group roles to return
end - the upper bound of the range of user group group roles to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching user group group roles
Throws:
SystemException - if a system exception occurred

findByGroupId_First

public static UserGroupGroupRole findByGroupId_First(long groupId,
                                                     OrderByComparator orderByComparator)
                                              throws NoSuchUserGroupGroupRoleException,
                                                     SystemException
Finds the first user group group role in the ordered set where groupId = ?.

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.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a matching user group group role could not be found
SystemException - if a system exception occurred

findByGroupId_Last

public static UserGroupGroupRole findByGroupId_Last(long groupId,
                                                    OrderByComparator orderByComparator)
                                             throws NoSuchUserGroupGroupRoleException,
                                                    SystemException
Finds the last user group group role in the ordered set where groupId = ?.

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.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a matching user group group role could not be found
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public static UserGroupGroupRole[] findByGroupId_PrevAndNext(UserGroupGroupRolePK userGroupGroupRolePK,
                                                             long groupId,
                                                             OrderByComparator orderByComparator)
                                                      throws NoSuchUserGroupGroupRoleException,
                                                             SystemException
Finds the user group group roles before and after the current user group group role in the ordered set where groupId = ?.

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.

Parameters:
userGroupGroupRolePK - the primary key of the current user group group role
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a user group group role with the primary key could not be found
SystemException - if a system exception occurred

findByRoleId

public static List<UserGroupGroupRole> findByRoleId(long roleId)
                                             throws SystemException
Finds all the user group group roles where roleId = ?.

Parameters:
roleId - the role id to search with
Returns:
the matching user group group roles
Throws:
SystemException - if a system exception occurred

findByRoleId

public static List<UserGroupGroupRole> findByRoleId(long roleId,
                                                    int start,
                                                    int end)
                                             throws SystemException
Finds a range of all the user group group roles where roleId = ?.

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.

Parameters:
roleId - the role id to search with
start - the lower bound of the range of user group group roles to return
end - the upper bound of the range of user group group roles to return (not inclusive)
Returns:
the range of matching user group group roles
Throws:
SystemException - if a system exception occurred

findByRoleId

public static List<UserGroupGroupRole> findByRoleId(long roleId,
                                                    int start,
                                                    int end,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException
Finds an ordered range of all the user group group roles where roleId = ?.

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.

Parameters:
roleId - the role id to search with
start - the lower bound of the range of user group group roles to return
end - the upper bound of the range of user group group roles to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching user group group roles
Throws:
SystemException - if a system exception occurred

findByRoleId_First

public static UserGroupGroupRole findByRoleId_First(long roleId,
                                                    OrderByComparator orderByComparator)
                                             throws NoSuchUserGroupGroupRoleException,
                                                    SystemException
Finds the first user group group role in the ordered set where roleId = ?.

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.

Parameters:
roleId - the role id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a matching user group group role could not be found
SystemException - if a system exception occurred

findByRoleId_Last

public static UserGroupGroupRole findByRoleId_Last(long roleId,
                                                   OrderByComparator orderByComparator)
                                            throws NoSuchUserGroupGroupRoleException,
                                                   SystemException
Finds the last user group group role in the ordered set where roleId = ?.

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.

Parameters:
roleId - the role id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a matching user group group role could not be found
SystemException - if a system exception occurred

findByRoleId_PrevAndNext

public static UserGroupGroupRole[] findByRoleId_PrevAndNext(UserGroupGroupRolePK userGroupGroupRolePK,
                                                            long roleId,
                                                            OrderByComparator orderByComparator)
                                                     throws NoSuchUserGroupGroupRoleException,
                                                            SystemException
Finds the user group group roles before and after the current user group group role in the ordered set where roleId = ?.

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.

Parameters:
userGroupGroupRolePK - the primary key of the current user group group role
roleId - the role id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a user group group role with the primary key could not be found
SystemException - if a system exception occurred

findByU_G

public static List<UserGroupGroupRole> findByU_G(long userGroupId,
                                                 long groupId)
                                          throws SystemException
Finds all the user group group roles where userGroupId = ? and groupId = ?.

Parameters:
userGroupId - the user group id to search with
groupId - the group id to search with
Returns:
the matching user group group roles
Throws:
SystemException - if a system exception occurred

findByU_G

public static List<UserGroupGroupRole> findByU_G(long userGroupId,
                                                 long groupId,
                                                 int start,
                                                 int end)
                                          throws SystemException
Finds a range of all the user group group roles where userGroupId = ? and groupId = ?.

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.

Parameters:
userGroupId - the user group id to search with
groupId - the group id to search with
start - the lower bound of the range of user group group roles to return
end - the upper bound of the range of user group group roles to return (not inclusive)
Returns:
the range of matching user group group roles
Throws:
SystemException - if a system exception occurred

findByU_G

public static List<UserGroupGroupRole> findByU_G(long userGroupId,
                                                 long groupId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Finds an ordered range of all the user group group roles where userGroupId = ? and groupId = ?.

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.

Parameters:
userGroupId - the user group id to search with
groupId - the group id to search with
start - the lower bound of the range of user group group roles to return
end - the upper bound of the range of user group group roles to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching user group group roles
Throws:
SystemException - if a system exception occurred

findByU_G_First

public static UserGroupGroupRole findByU_G_First(long userGroupId,
                                                 long groupId,
                                                 OrderByComparator orderByComparator)
                                          throws NoSuchUserGroupGroupRoleException,
                                                 SystemException
Finds the first user group group role in the ordered set where userGroupId = ? and groupId = ?.

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.

Parameters:
userGroupId - the user group id to search with
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a matching user group group role could not be found
SystemException - if a system exception occurred

findByU_G_Last

public static UserGroupGroupRole findByU_G_Last(long userGroupId,
                                                long groupId,
                                                OrderByComparator orderByComparator)
                                         throws NoSuchUserGroupGroupRoleException,
                                                SystemException
Finds the last user group group role in the ordered set where userGroupId = ? and groupId = ?.

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.

Parameters:
userGroupId - the user group id to search with
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a matching user group group role could not be found
SystemException - if a system exception occurred

findByU_G_PrevAndNext

public static UserGroupGroupRole[] findByU_G_PrevAndNext(UserGroupGroupRolePK userGroupGroupRolePK,
                                                         long userGroupId,
                                                         long groupId,
                                                         OrderByComparator orderByComparator)
                                                  throws NoSuchUserGroupGroupRoleException,
                                                         SystemException
Finds the user group group roles before and after the current user group group role in the ordered set where userGroupId = ? and groupId = ?.

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.

Parameters:
userGroupGroupRolePK - the primary key of the current user group group role
userGroupId - the user group id to search with
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a user group group role with the primary key could not be found
SystemException - if a system exception occurred

findByG_R

public static List<UserGroupGroupRole> findByG_R(long groupId,
                                                 long roleId)
                                          throws SystemException
Finds all the user group group roles where groupId = ? and roleId = ?.

Parameters:
groupId - the group id to search with
roleId - the role id to search with
Returns:
the matching user group group roles
Throws:
SystemException - if a system exception occurred

findByG_R

public static List<UserGroupGroupRole> findByG_R(long groupId,
                                                 long roleId,
                                                 int start,
                                                 int end)
                                          throws SystemException
Finds a range of all the user group group roles where groupId = ? and roleId = ?.

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.

Parameters:
groupId - the group id to search with
roleId - the role id to search with
start - the lower bound of the range of user group group roles to return
end - the upper bound of the range of user group group roles to return (not inclusive)
Returns:
the range of matching user group group roles
Throws:
SystemException - if a system exception occurred

findByG_R

public static List<UserGroupGroupRole> findByG_R(long groupId,
                                                 long roleId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Finds an ordered range of all the user group group roles where groupId = ? and roleId = ?.

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.

Parameters:
groupId - the group id to search with
roleId - the role id to search with
start - the lower bound of the range of user group group roles to return
end - the upper bound of the range of user group group roles to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching user group group roles
Throws:
SystemException - if a system exception occurred

findByG_R_First

public static UserGroupGroupRole findByG_R_First(long groupId,
                                                 long roleId,
                                                 OrderByComparator orderByComparator)
                                          throws NoSuchUserGroupGroupRoleException,
                                                 SystemException
Finds the first user group group role in the ordered set where groupId = ? and roleId = ?.

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.

Parameters:
groupId - the group id to search with
roleId - the role id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a matching user group group role could not be found
SystemException - if a system exception occurred

findByG_R_Last

public static UserGroupGroupRole findByG_R_Last(long groupId,
                                                long roleId,
                                                OrderByComparator orderByComparator)
                                         throws NoSuchUserGroupGroupRoleException,
                                                SystemException
Finds the last user group group role in the ordered set where groupId = ? and roleId = ?.

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.

Parameters:
groupId - the group id to search with
roleId - the role id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a matching user group group role could not be found
SystemException - if a system exception occurred

findByG_R_PrevAndNext

public static UserGroupGroupRole[] findByG_R_PrevAndNext(UserGroupGroupRolePK userGroupGroupRolePK,
                                                         long groupId,
                                                         long roleId,
                                                         OrderByComparator orderByComparator)
                                                  throws NoSuchUserGroupGroupRoleException,
                                                         SystemException
Finds the user group group roles before and after the current user group group role in the ordered set where groupId = ? and roleId = ?.

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.

Parameters:
userGroupGroupRolePK - the primary key of the current user group group role
groupId - the group id to search with
roleId - the role id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a user group group role with the primary key could not be found
SystemException - if a system exception occurred

findAll

public static List<UserGroupGroupRole> findAll()
                                        throws SystemException
Finds all the user group group roles.

Returns:
the user group group roles
Throws:
SystemException - if a system exception occurred

findAll

public static List<UserGroupGroupRole> findAll(int start,
                                               int end)
                                        throws SystemException
Finds a range of all the user group group roles.

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.

Parameters:
start - the lower bound of the range of user group group roles to return
end - the upper bound of the range of user group group roles to return (not inclusive)
Returns:
the range of user group group roles
Throws:
SystemException - if a system exception occurred

findAll

public static List<UserGroupGroupRole> findAll(int start,
                                               int end,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Finds an ordered range of all the user group group roles.

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.

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

removeByUserGroupId

public static void removeByUserGroupId(long userGroupId)
                                throws SystemException
Removes all the user group group roles where userGroupId = ? from the database.

Parameters:
userGroupId - the user group id to search with
Throws:
SystemException - if a system exception occurred

removeByGroupId

public static void removeByGroupId(long groupId)
                            throws SystemException
Removes all the user group group roles where groupId = ? from the database.

Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByRoleId

public static void removeByRoleId(long roleId)
                           throws SystemException
Removes all the user group group roles where roleId = ? from the database.

Parameters:
roleId - the role id to search with
Throws:
SystemException - if a system exception occurred

removeByU_G

public static void removeByU_G(long userGroupId,
                               long groupId)
                        throws SystemException
Removes all the user group group roles where userGroupId = ? and groupId = ? from the database.

Parameters:
userGroupId - the user group id to search with
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByG_R

public static void removeByG_R(long groupId,
                               long roleId)
                        throws SystemException
Removes all the user group group roles where groupId = ? and roleId = ? from the database.

Parameters:
groupId - the group id to search with
roleId - the role id to search with
Throws:
SystemException - if a system exception occurred

removeAll

public static void removeAll()
                      throws SystemException
Removes all the user group group roles from the database.

Throws:
SystemException - if a system exception occurred

countByUserGroupId

public static int countByUserGroupId(long userGroupId)
                              throws SystemException
Counts all the user group group roles where userGroupId = ?.

Parameters:
userGroupId - the user group id to search with
Returns:
the number of matching user group group roles
Throws:
SystemException - if a system exception occurred

countByGroupId

public static int countByGroupId(long groupId)
                          throws SystemException
Counts all the user group group roles where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching user group group roles
Throws:
SystemException - if a system exception occurred

countByRoleId

public static int countByRoleId(long roleId)
                         throws SystemException
Counts all the user group group roles where roleId = ?.

Parameters:
roleId - the role id to search with
Returns:
the number of matching user group group roles
Throws:
SystemException - if a system exception occurred

countByU_G

public static int countByU_G(long userGroupId,
                             long groupId)
                      throws SystemException
Counts all the user group group roles where userGroupId = ? and groupId = ?.

Parameters:
userGroupId - the user group id to search with
groupId - the group id to search with
Returns:
the number of matching user group group roles
Throws:
SystemException - if a system exception occurred

countByG_R

public static int countByG_R(long groupId,
                             long roleId)
                      throws SystemException
Counts all the user group group roles where groupId = ? and roleId = ?.

Parameters:
groupId - the group id to search with
roleId - the role id to search with
Returns:
the number of matching user group group roles
Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Counts all the user group group roles.

Returns:
the number of user group group roles
Throws:
SystemException - if a system exception occurred

getPersistence

public static UserGroupGroupRolePersistence getPersistence()

setPersistence

public void setPersistence(UserGroupGroupRolePersistence persistence)

Liferay 6.0.5