Liferay 7.0-ce-b4

com.liferay.portal.service.persistence
Interface UserGroupGroupRolePersistence

All Superinterfaces:
BasePersistence<UserGroupGroupRole>
All Known Implementing Classes:
UserGroupGroupRolePersistenceImpl

@ProviderType
public interface UserGroupGroupRolePersistence
extends BasePersistence<UserGroupGroupRole>

The persistence interface for the user group group role service.

Caching information and settings can be found in portal.properties

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

Method Summary
 void cacheResult(List<UserGroupGroupRole> userGroupGroupRoles)
          Caches the user group group roles in the entity cache if it is enabled.
 void cacheResult(UserGroupGroupRole userGroupGroupRole)
          Caches the user group group role in the entity cache if it is enabled.
 int countAll()
          Returns the number of user group group roles.
 int countByG_R(long groupId, long roleId)
          Returns the number of user group group roles where groupId = ? and roleId = ?.
 int countByGroupId(long groupId)
          Returns the number of user group group roles where groupId = ?.
 int countByRoleId(long roleId)
          Returns the number of user group group roles where roleId = ?.
 int countByU_G(long userGroupId, long groupId)
          Returns the number of user group group roles where userGroupId = ? and groupId = ?.
 int countByUserGroupId(long userGroupId)
          Returns the number of user group group roles where userGroupId = ?.
 UserGroupGroupRole create(UserGroupGroupRolePK userGroupGroupRolePK)
          Creates a new user group group role with the primary key.
 UserGroupGroupRole fetchByG_R_First(long groupId, long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the first user group group role in the ordered set where groupId = ? and roleId = ?.
 UserGroupGroupRole fetchByG_R_Last(long groupId, long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the last user group group role in the ordered set where groupId = ? and roleId = ?.
 UserGroupGroupRole fetchByGroupId_First(long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the first user group group role in the ordered set where groupId = ?.
 UserGroupGroupRole fetchByGroupId_Last(long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the last user group group role in the ordered set where groupId = ?.
 UserGroupGroupRole fetchByPrimaryKey(UserGroupGroupRolePK userGroupGroupRolePK)
          Returns the user group group role with the primary key or returns null if it could not be found.
 Map<Serializable,UserGroupGroupRole> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 UserGroupGroupRole fetchByRoleId_First(long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the first user group group role in the ordered set where roleId = ?.
 UserGroupGroupRole fetchByRoleId_Last(long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the last user group group role in the ordered set where roleId = ?.
 UserGroupGroupRole fetchByU_G_First(long userGroupId, long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the first user group group role in the ordered set where userGroupId = ? and groupId = ?.
 UserGroupGroupRole fetchByU_G_Last(long userGroupId, long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the last user group group role in the ordered set where userGroupId = ? and groupId = ?.
 UserGroupGroupRole fetchByUserGroupId_First(long userGroupId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the first user group group role in the ordered set where userGroupId = ?.
 UserGroupGroupRole fetchByUserGroupId_Last(long userGroupId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the last user group group role in the ordered set where userGroupId = ?.
 List<UserGroupGroupRole> findAll()
          Returns all the user group group roles.
 List<UserGroupGroupRole> findAll(int start, int end)
          Returns a range of all the user group group roles.
 List<UserGroupGroupRole> findAll(int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns an ordered range of all the user group group roles.
 List<UserGroupGroupRole> findAll(int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the user group group roles.
 UserGroupGroupRole findByG_R_First(long groupId, long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the first user group group role in the ordered set where groupId = ? and roleId = ?.
 UserGroupGroupRole findByG_R_Last(long groupId, long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the last user group group role in the ordered set where groupId = ? and roleId = ?.
 UserGroupGroupRole[] findByG_R_PrevAndNext(UserGroupGroupRolePK userGroupGroupRolePK, long groupId, long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the user group group roles before and after the current user group group role in the ordered set where groupId = ? and roleId = ?.
 List<UserGroupGroupRole> findByG_R(long groupId, long roleId)
          Returns all the user group group roles where groupId = ? and roleId = ?.
 List<UserGroupGroupRole> findByG_R(long groupId, long roleId, int start, int end)
          Returns a range of all the user group group roles where groupId = ? and roleId = ?.
 List<UserGroupGroupRole> findByG_R(long groupId, long roleId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns an ordered range of all the user group group roles where groupId = ? and roleId = ?.
 List<UserGroupGroupRole> findByG_R(long groupId, long roleId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the user group group roles where groupId = ? and roleId = ?.
 UserGroupGroupRole findByGroupId_First(long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the first user group group role in the ordered set where groupId = ?.
 UserGroupGroupRole findByGroupId_Last(long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the last user group group role in the ordered set where groupId = ?.
 UserGroupGroupRole[] findByGroupId_PrevAndNext(UserGroupGroupRolePK userGroupGroupRolePK, long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the user group group roles before and after the current user group group role in the ordered set where groupId = ?.
 List<UserGroupGroupRole> findByGroupId(long groupId)
          Returns all the user group group roles where groupId = ?.
 List<UserGroupGroupRole> findByGroupId(long groupId, int start, int end)
          Returns a range of all the user group group roles where groupId = ?.
 List<UserGroupGroupRole> findByGroupId(long groupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns an ordered range of all the user group group roles where groupId = ?.
 List<UserGroupGroupRole> findByGroupId(long groupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the user group group roles where groupId = ?.
 UserGroupGroupRole findByPrimaryKey(UserGroupGroupRolePK userGroupGroupRolePK)
          Returns the user group group role with the primary key or throws a NoSuchUserGroupGroupRoleException if it could not be found.
 UserGroupGroupRole findByRoleId_First(long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the first user group group role in the ordered set where roleId = ?.
 UserGroupGroupRole findByRoleId_Last(long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the last user group group role in the ordered set where roleId = ?.
 UserGroupGroupRole[] findByRoleId_PrevAndNext(UserGroupGroupRolePK userGroupGroupRolePK, long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the user group group roles before and after the current user group group role in the ordered set where roleId = ?.
 List<UserGroupGroupRole> findByRoleId(long roleId)
          Returns all the user group group roles where roleId = ?.
 List<UserGroupGroupRole> findByRoleId(long roleId, int start, int end)
          Returns a range of all the user group group roles where roleId = ?.
 List<UserGroupGroupRole> findByRoleId(long roleId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns an ordered range of all the user group group roles where roleId = ?.
 List<UserGroupGroupRole> findByRoleId(long roleId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the user group group roles where roleId = ?.
 UserGroupGroupRole findByU_G_First(long userGroupId, long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the first user group group role in the ordered set where userGroupId = ? and groupId = ?.
 UserGroupGroupRole findByU_G_Last(long userGroupId, long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the last user group group role in the ordered set where userGroupId = ? and groupId = ?.
 UserGroupGroupRole[] findByU_G_PrevAndNext(UserGroupGroupRolePK userGroupGroupRolePK, long userGroupId, long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the user group group roles before and after the current user group group role in the ordered set where userGroupId = ? and groupId = ?.
 List<UserGroupGroupRole> findByU_G(long userGroupId, long groupId)
          Returns all the user group group roles where userGroupId = ? and groupId = ?.
 List<UserGroupGroupRole> findByU_G(long userGroupId, long groupId, int start, int end)
          Returns a range of all the user group group roles where userGroupId = ? and groupId = ?.
 List<UserGroupGroupRole> findByU_G(long userGroupId, long groupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns an ordered range of all the user group group roles where userGroupId = ? and groupId = ?.
 List<UserGroupGroupRole> findByU_G(long userGroupId, long groupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the user group group roles where userGroupId = ? and groupId = ?.
 UserGroupGroupRole findByUserGroupId_First(long userGroupId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the first user group group role in the ordered set where userGroupId = ?.
 UserGroupGroupRole findByUserGroupId_Last(long userGroupId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the last user group group role in the ordered set where userGroupId = ?.
 UserGroupGroupRole[] findByUserGroupId_PrevAndNext(UserGroupGroupRolePK userGroupGroupRolePK, long userGroupId, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns the user group group roles before and after the current user group group role in the ordered set where userGroupId = ?.
 List<UserGroupGroupRole> findByUserGroupId(long userGroupId)
          Returns all the user group group roles where userGroupId = ?.
 List<UserGroupGroupRole> findByUserGroupId(long userGroupId, int start, int end)
          Returns a range of all the user group group roles where userGroupId = ?.
 List<UserGroupGroupRole> findByUserGroupId(long userGroupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator)
          Returns an ordered range of all the user group group roles where userGroupId = ?.
 List<UserGroupGroupRole> findByUserGroupId(long userGroupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the user group group roles where userGroupId = ?.
 UserGroupGroupRole remove(UserGroupGroupRolePK userGroupGroupRolePK)
          Removes the user group group role with the primary key from the database.
 void removeAll()
          Removes all the user group group roles from the database.
 void removeByG_R(long groupId, long roleId)
          Removes all the user group group roles where groupId = ? and roleId = ? from the database.
 void removeByGroupId(long groupId)
          Removes all the user group group roles where groupId = ? from the database.
 void removeByRoleId(long roleId)
          Removes all the user group group roles where roleId = ? from the database.
 void removeByU_G(long userGroupId, long groupId)
          Removes all the user group group roles where userGroupId = ? and groupId = ? from the database.
 void removeByUserGroupId(long userGroupId)
          Removes all the user group group roles where userGroupId = ? from the database.
 UserGroupGroupRole updateImpl(UserGroupGroupRole userGroupGroupRole)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update
 

Method Detail

findByUserGroupId

List<UserGroupGroupRole> findByUserGroupId(long userGroupId)
Returns all the user group group roles where userGroupId = ?.

Parameters:
userGroupId - the user group ID
Returns:
the matching user group group roles

findByUserGroupId

List<UserGroupGroupRole> findByUserGroupId(long userGroupId,
                                           int start,
                                           int end)
Returns 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. 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 UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
userGroupId - the user group ID
start - the lower bound of the range of user group group roles
end - the upper bound of the range of user group group roles (not inclusive)
Returns:
the range of matching user group group roles

findByUserGroupId

List<UserGroupGroupRole> findByUserGroupId(long userGroupId,
                                           int start,
                                           int end,
                                           OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns 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. 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 UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
userGroupId - the user group ID
start - the lower bound of the range of user group group roles
end - the upper bound of the range of user group group roles (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching user group group roles

findByUserGroupId

List<UserGroupGroupRole> findByUserGroupId(long userGroupId,
                                           int start,
                                           int end,
                                           OrderByComparator<UserGroupGroupRole> orderByComparator,
                                           boolean retrieveFromCache)
Returns 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. 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 UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
userGroupId - the user group ID
start - the lower bound of the range of user group group roles
end - the upper bound of the range of user group group roles (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 user group group roles

findByUserGroupId_First

UserGroupGroupRole findByUserGroupId_First(long userGroupId,
                                           OrderByComparator<UserGroupGroupRole> orderByComparator)
                                           throws NoSuchUserGroupGroupRoleException
Returns the first user group group role in the ordered set where userGroupId = ?.

Parameters:
userGroupId - the user group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a matching user group group role could not be found

fetchByUserGroupId_First

UserGroupGroupRole fetchByUserGroupId_First(long userGroupId,
                                            OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the first user group group role in the ordered set where userGroupId = ?.

Parameters:
userGroupId - the user group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user group group role, or null if a matching user group group role could not be found

findByUserGroupId_Last

UserGroupGroupRole findByUserGroupId_Last(long userGroupId,
                                          OrderByComparator<UserGroupGroupRole> orderByComparator)
                                          throws NoSuchUserGroupGroupRoleException
Returns the last user group group role in the ordered set where userGroupId = ?.

Parameters:
userGroupId - the user group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a matching user group group role could not be found

fetchByUserGroupId_Last

UserGroupGroupRole fetchByUserGroupId_Last(long userGroupId,
                                           OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the last user group group role in the ordered set where userGroupId = ?.

Parameters:
userGroupId - the user group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user group group role, or null if a matching user group group role could not be found

findByUserGroupId_PrevAndNext

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

Parameters:
userGroupGroupRolePK - the primary key of the current user group group role
userGroupId - the user group ID
orderByComparator - the comparator to order the set by (optionally null)
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

removeByUserGroupId

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

Parameters:
userGroupId - the user group ID

countByUserGroupId

int countByUserGroupId(long userGroupId)
Returns the number of user group group roles where userGroupId = ?.

Parameters:
userGroupId - the user group ID
Returns:
the number of matching user group group roles

findByGroupId

List<UserGroupGroupRole> findByGroupId(long groupId)
Returns all the user group group roles where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching user group group roles

findByGroupId

List<UserGroupGroupRole> findByGroupId(long groupId,
                                       int start,
                                       int end)
Returns 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. 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 UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
start - the lower bound of the range of user group group roles
end - the upper bound of the range of user group group roles (not inclusive)
Returns:
the range of matching user group group roles

findByGroupId

List<UserGroupGroupRole> findByGroupId(long groupId,
                                       int start,
                                       int end,
                                       OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns 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. 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 UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
start - the lower bound of the range of user group group roles
end - the upper bound of the range of user group group roles (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching user group group roles

findByGroupId

List<UserGroupGroupRole> findByGroupId(long groupId,
                                       int start,
                                       int end,
                                       OrderByComparator<UserGroupGroupRole> orderByComparator,
                                       boolean retrieveFromCache)
Returns 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. 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 UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
start - the lower bound of the range of user group group roles
end - the upper bound of the range of user group group roles (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 user group group roles

findByGroupId_First

UserGroupGroupRole findByGroupId_First(long groupId,
                                       OrderByComparator<UserGroupGroupRole> orderByComparator)
                                       throws NoSuchUserGroupGroupRoleException
Returns the first user group group role in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a matching user group group role could not be found

fetchByGroupId_First

UserGroupGroupRole fetchByGroupId_First(long groupId,
                                        OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the first user group group role in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user group group role, or null if a matching user group group role could not be found

findByGroupId_Last

UserGroupGroupRole findByGroupId_Last(long groupId,
                                      OrderByComparator<UserGroupGroupRole> orderByComparator)
                                      throws NoSuchUserGroupGroupRoleException
Returns the last user group group role in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a matching user group group role could not be found

fetchByGroupId_Last

UserGroupGroupRole fetchByGroupId_Last(long groupId,
                                       OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the last user group group role in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user group group role, or null if a matching user group group role could not be found

findByGroupId_PrevAndNext

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

Parameters:
userGroupGroupRolePK - the primary key of the current user group group role
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
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

removeByGroupId

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

Parameters:
groupId - the group ID

countByGroupId

int countByGroupId(long groupId)
Returns the number of user group group roles where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching user group group roles

findByRoleId

List<UserGroupGroupRole> findByRoleId(long roleId)
Returns all the user group group roles where roleId = ?.

Parameters:
roleId - the role ID
Returns:
the matching user group group roles

findByRoleId

List<UserGroupGroupRole> findByRoleId(long roleId,
                                      int start,
                                      int end)
Returns 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. 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 UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
roleId - the role ID
start - the lower bound of the range of user group group roles
end - the upper bound of the range of user group group roles (not inclusive)
Returns:
the range of matching user group group roles

findByRoleId

List<UserGroupGroupRole> findByRoleId(long roleId,
                                      int start,
                                      int end,
                                      OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns 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. 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 UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
roleId - the role ID
start - the lower bound of the range of user group group roles
end - the upper bound of the range of user group group roles (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching user group group roles

findByRoleId

List<UserGroupGroupRole> findByRoleId(long roleId,
                                      int start,
                                      int end,
                                      OrderByComparator<UserGroupGroupRole> orderByComparator,
                                      boolean retrieveFromCache)
Returns 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. 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 UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
roleId - the role ID
start - the lower bound of the range of user group group roles
end - the upper bound of the range of user group group roles (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 user group group roles

findByRoleId_First

UserGroupGroupRole findByRoleId_First(long roleId,
                                      OrderByComparator<UserGroupGroupRole> orderByComparator)
                                      throws NoSuchUserGroupGroupRoleException
Returns the first user group group role in the ordered set where roleId = ?.

Parameters:
roleId - the role ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a matching user group group role could not be found

fetchByRoleId_First

UserGroupGroupRole fetchByRoleId_First(long roleId,
                                       OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the first user group group role in the ordered set where roleId = ?.

Parameters:
roleId - the role ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user group group role, or null if a matching user group group role could not be found

findByRoleId_Last

UserGroupGroupRole findByRoleId_Last(long roleId,
                                     OrderByComparator<UserGroupGroupRole> orderByComparator)
                                     throws NoSuchUserGroupGroupRoleException
Returns the last user group group role in the ordered set where roleId = ?.

Parameters:
roleId - the role ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a matching user group group role could not be found

fetchByRoleId_Last

UserGroupGroupRole fetchByRoleId_Last(long roleId,
                                      OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the last user group group role in the ordered set where roleId = ?.

Parameters:
roleId - the role ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user group group role, or null if a matching user group group role could not be found

findByRoleId_PrevAndNext

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

Parameters:
userGroupGroupRolePK - the primary key of the current user group group role
roleId - the role ID
orderByComparator - the comparator to order the set by (optionally null)
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

removeByRoleId

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

Parameters:
roleId - the role ID

countByRoleId

int countByRoleId(long roleId)
Returns the number of user group group roles where roleId = ?.

Parameters:
roleId - the role ID
Returns:
the number of matching user group group roles

findByU_G

List<UserGroupGroupRole> findByU_G(long userGroupId,
                                   long groupId)
Returns all the user group group roles where userGroupId = ? and groupId = ?.

Parameters:
userGroupId - the user group ID
groupId - the group ID
Returns:
the matching user group group roles

findByU_G

List<UserGroupGroupRole> findByU_G(long userGroupId,
                                   long groupId,
                                   int start,
                                   int end)
Returns 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. 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 UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
userGroupId - the user group ID
groupId - the group ID
start - the lower bound of the range of user group group roles
end - the upper bound of the range of user group group roles (not inclusive)
Returns:
the range of matching user group group roles

findByU_G

List<UserGroupGroupRole> findByU_G(long userGroupId,
                                   long groupId,
                                   int start,
                                   int end,
                                   OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns 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. 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 UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
userGroupId - the user group ID
groupId - the group ID
start - the lower bound of the range of user group group roles
end - the upper bound of the range of user group group roles (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching user group group roles

findByU_G

List<UserGroupGroupRole> findByU_G(long userGroupId,
                                   long groupId,
                                   int start,
                                   int end,
                                   OrderByComparator<UserGroupGroupRole> orderByComparator,
                                   boolean retrieveFromCache)
Returns 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. 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 UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
userGroupId - the user group ID
groupId - the group ID
start - the lower bound of the range of user group group roles
end - the upper bound of the range of user group group roles (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 user group group roles

findByU_G_First

UserGroupGroupRole findByU_G_First(long userGroupId,
                                   long groupId,
                                   OrderByComparator<UserGroupGroupRole> orderByComparator)
                                   throws NoSuchUserGroupGroupRoleException
Returns the first user group group role in the ordered set where userGroupId = ? and groupId = ?.

Parameters:
userGroupId - the user group ID
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a matching user group group role could not be found

fetchByU_G_First

UserGroupGroupRole fetchByU_G_First(long userGroupId,
                                    long groupId,
                                    OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the first user group group role in the ordered set where userGroupId = ? and groupId = ?.

Parameters:
userGroupId - the user group ID
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user group group role, or null if a matching user group group role could not be found

findByU_G_Last

UserGroupGroupRole findByU_G_Last(long userGroupId,
                                  long groupId,
                                  OrderByComparator<UserGroupGroupRole> orderByComparator)
                                  throws NoSuchUserGroupGroupRoleException
Returns the last user group group role in the ordered set where userGroupId = ? and groupId = ?.

Parameters:
userGroupId - the user group ID
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a matching user group group role could not be found

fetchByU_G_Last

UserGroupGroupRole fetchByU_G_Last(long userGroupId,
                                   long groupId,
                                   OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the last user group group role in the ordered set where userGroupId = ? and groupId = ?.

Parameters:
userGroupId - the user group ID
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user group group role, or null if a matching user group group role could not be found

findByU_G_PrevAndNext

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

Parameters:
userGroupGroupRolePK - the primary key of the current user group group role
userGroupId - the user group ID
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
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

removeByU_G

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

Parameters:
userGroupId - the user group ID
groupId - the group ID

countByU_G

int countByU_G(long userGroupId,
               long groupId)
Returns the number of user group group roles where userGroupId = ? and groupId = ?.

Parameters:
userGroupId - the user group ID
groupId - the group ID
Returns:
the number of matching user group group roles

findByG_R

List<UserGroupGroupRole> findByG_R(long groupId,
                                   long roleId)
Returns all the user group group roles where groupId = ? and roleId = ?.

Parameters:
groupId - the group ID
roleId - the role ID
Returns:
the matching user group group roles

findByG_R

List<UserGroupGroupRole> findByG_R(long groupId,
                                   long roleId,
                                   int start,
                                   int end)
Returns 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. 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 UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
roleId - the role ID
start - the lower bound of the range of user group group roles
end - the upper bound of the range of user group group roles (not inclusive)
Returns:
the range of matching user group group roles

findByG_R

List<UserGroupGroupRole> findByG_R(long groupId,
                                   long roleId,
                                   int start,
                                   int end,
                                   OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns 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. 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 UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
roleId - the role ID
start - the lower bound of the range of user group group roles
end - the upper bound of the range of user group group roles (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching user group group roles

findByG_R

List<UserGroupGroupRole> findByG_R(long groupId,
                                   long roleId,
                                   int start,
                                   int end,
                                   OrderByComparator<UserGroupGroupRole> orderByComparator,
                                   boolean retrieveFromCache)
Returns 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. 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 UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
groupId - the group ID
roleId - the role ID
start - the lower bound of the range of user group group roles
end - the upper bound of the range of user group group roles (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 user group group roles

findByG_R_First

UserGroupGroupRole findByG_R_First(long groupId,
                                   long roleId,
                                   OrderByComparator<UserGroupGroupRole> orderByComparator)
                                   throws NoSuchUserGroupGroupRoleException
Returns the first user group group role in the ordered set where groupId = ? and roleId = ?.

Parameters:
groupId - the group ID
roleId - the role ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a matching user group group role could not be found

fetchByG_R_First

UserGroupGroupRole fetchByG_R_First(long groupId,
                                    long roleId,
                                    OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the first user group group role in the ordered set where groupId = ? and roleId = ?.

Parameters:
groupId - the group ID
roleId - the role ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user group group role, or null if a matching user group group role could not be found

findByG_R_Last

UserGroupGroupRole findByG_R_Last(long groupId,
                                  long roleId,
                                  OrderByComparator<UserGroupGroupRole> orderByComparator)
                                  throws NoSuchUserGroupGroupRoleException
Returns the last user group group role in the ordered set where groupId = ? and roleId = ?.

Parameters:
groupId - the group ID
roleId - the role ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a matching user group group role could not be found

fetchByG_R_Last

UserGroupGroupRole fetchByG_R_Last(long groupId,
                                   long roleId,
                                   OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the last user group group role in the ordered set where groupId = ? and roleId = ?.

Parameters:
groupId - the group ID
roleId - the role ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user group group role, or null if a matching user group group role could not be found

findByG_R_PrevAndNext

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

Parameters:
userGroupGroupRolePK - the primary key of the current user group group role
groupId - the group ID
roleId - the role ID
orderByComparator - the comparator to order the set by (optionally null)
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

removeByG_R

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

Parameters:
groupId - the group ID
roleId - the role ID

countByG_R

int countByG_R(long groupId,
               long roleId)
Returns the number of user group group roles where groupId = ? and roleId = ?.

Parameters:
groupId - the group ID
roleId - the role ID
Returns:
the number of matching user group group roles

cacheResult

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

cacheResult

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

create

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

UserGroupGroupRole remove(UserGroupGroupRolePK userGroupGroupRolePK)
                          throws NoSuchUserGroupGroupRoleException
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
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

updateImpl

UserGroupGroupRole updateImpl(UserGroupGroupRole userGroupGroupRole)

findByPrimaryKey

UserGroupGroupRole findByPrimaryKey(UserGroupGroupRolePK userGroupGroupRolePK)
                                    throws NoSuchUserGroupGroupRoleException
Returns 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
Returns:
the user group group role
Throws:
NoSuchUserGroupGroupRoleException - if a user group group role with the primary key could not be found

fetchByPrimaryKey

UserGroupGroupRole fetchByPrimaryKey(UserGroupGroupRolePK userGroupGroupRolePK)
Returns 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
Returns:
the user group group role, or null if a user group group role with the primary key could not be found

fetchByPrimaryKeys

Map<Serializable,UserGroupGroupRole> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface BasePersistence<UserGroupGroupRole>

findAll

List<UserGroupGroupRole> findAll()
Returns all the user group group roles.

Returns:
the user group group roles

findAll

List<UserGroupGroupRole> findAll(int start,
                                 int end)
Returns 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. 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 UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of user group group roles
end - the upper bound of the range of user group group roles (not inclusive)
Returns:
the range of user group group roles

findAll

List<UserGroupGroupRole> findAll(int start,
                                 int end,
                                 OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns 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. 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 UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of user group group roles
end - the upper bound of the range of user group group roles (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of user group group roles

findAll

List<UserGroupGroupRole> findAll(int start,
                                 int end,
                                 OrderByComparator<UserGroupGroupRole> orderByComparator,
                                 boolean retrieveFromCache)
Returns 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. 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 UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of user group group roles
end - the upper bound of the range of user group group roles (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 user group group roles

removeAll

void removeAll()
Removes all the user group group roles from the database.


countAll

int countAll()
Returns the number of user group group roles.

Returns:
the number of user group group roles

Liferay 7.0-ce-b4