Class UserGroupRoleUtil
com.liferay.portal.service.persistence.impl.UserGroupRolePersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(UserGroupRole userGroupRole) Caches the user group role in the entity cache if it is enabled.static void
cacheResult
(List<UserGroupRole> userGroupRoles) Caches the user group roles in the entity cache if it is enabled.static void
static void
clearCache
(UserGroupRole userGroupRole) static int
countAll()
Returns the number of user group roles.static int
countByG_R
(long groupId, long roleId) Returns the number of user group roles where groupId = ? and roleId = ?.static int
countByGroupId
(long groupId) Returns the number of user group roles where groupId = ?.static int
countByRoleId
(long roleId) Returns the number of user group roles where roleId = ?.static int
countByU_G
(long userId, long groupId) Returns the number of user group roles where userId = ? and groupId = ?.static int
countByU_G_R
(long userId, long groupId, long roleId) Returns the number of user group roles where userId = ? and groupId = ? and roleId = ?.static int
countByUserId
(long userId) Returns the number of user group roles where userId = ?.static long
countWithDynamicQuery
(DynamicQuery dynamicQuery) static UserGroupRole
create
(long userGroupRoleId) Creates a new user group role with the primary key.static UserGroupRole
fetchByG_R_First
(long groupId, long roleId, OrderByComparator<UserGroupRole> orderByComparator) Returns the first user group role in the ordered set where groupId = ? and roleId = ?.static UserGroupRole
fetchByG_R_Last
(long groupId, long roleId, OrderByComparator<UserGroupRole> orderByComparator) Returns the last user group role in the ordered set where groupId = ? and roleId = ?.static UserGroupRole
fetchByGroupId_First
(long groupId, OrderByComparator<UserGroupRole> orderByComparator) Returns the first user group role in the ordered set where groupId = ?.static UserGroupRole
fetchByGroupId_Last
(long groupId, OrderByComparator<UserGroupRole> orderByComparator) Returns the last user group role in the ordered set where groupId = ?.static UserGroupRole
fetchByPrimaryKey
(long userGroupRoleId) Returns the user group role with the primary key or returnsnull
if it could not be found.static Map<Serializable,
UserGroupRole> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static UserGroupRole
fetchByRoleId_First
(long roleId, OrderByComparator<UserGroupRole> orderByComparator) Returns the first user group role in the ordered set where roleId = ?.static UserGroupRole
fetchByRoleId_Last
(long roleId, OrderByComparator<UserGroupRole> orderByComparator) Returns the last user group role in the ordered set where roleId = ?.static UserGroupRole
fetchByU_G_First
(long userId, long groupId, OrderByComparator<UserGroupRole> orderByComparator) Returns the first user group role in the ordered set where userId = ? and groupId = ?.static UserGroupRole
fetchByU_G_Last
(long userId, long groupId, OrderByComparator<UserGroupRole> orderByComparator) Returns the last user group role in the ordered set where userId = ? and groupId = ?.static UserGroupRole
fetchByU_G_R
(long userId, long groupId, long roleId) Returns the user group role where userId = ? and groupId = ? and roleId = ? or returnsnull
if it could not be found.static UserGroupRole
fetchByU_G_R
(long userId, long groupId, long roleId, boolean useFinderCache) Returns the user group role where userId = ? and groupId = ? and roleId = ? or returnsnull
if it could not be found, optionally using the finder cache.static UserGroupRole
fetchByUserId_First
(long userId, OrderByComparator<UserGroupRole> orderByComparator) Returns the first user group role in the ordered set where userId = ?.static UserGroupRole
fetchByUserId_Last
(long userId, OrderByComparator<UserGroupRole> orderByComparator) Returns the last user group role in the ordered set where userId = ?.static List<UserGroupRole>
findAll()
Returns all the user group roles.static List<UserGroupRole>
findAll
(int start, int end) Returns a range of all the user group roles.static List<UserGroupRole>
findAll
(int start, int end, OrderByComparator<UserGroupRole> orderByComparator) Returns an ordered range of all the user group roles.static List<UserGroupRole>
findAll
(int start, int end, OrderByComparator<UserGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group roles.static List<UserGroupRole>
findByG_R
(long groupId, long roleId) Returns all the user group roles where groupId = ? and roleId = ?.static List<UserGroupRole>
findByG_R
(long groupId, long roleId, int start, int end) Returns a range of all the user group roles where groupId = ? and roleId = ?.static List<UserGroupRole>
findByG_R
(long groupId, long roleId, int start, int end, OrderByComparator<UserGroupRole> orderByComparator) Returns an ordered range of all the user group roles where groupId = ? and roleId = ?.static List<UserGroupRole>
findByG_R
(long groupId, long roleId, int start, int end, OrderByComparator<UserGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group roles where groupId = ? and roleId = ?.static UserGroupRole
findByG_R_First
(long groupId, long roleId, OrderByComparator<UserGroupRole> orderByComparator) Returns the first user group role in the ordered set where groupId = ? and roleId = ?.static UserGroupRole
findByG_R_Last
(long groupId, long roleId, OrderByComparator<UserGroupRole> orderByComparator) Returns the last user group role in the ordered set where groupId = ? and roleId = ?.static UserGroupRole[]
findByG_R_PrevAndNext
(long userGroupRoleId, long groupId, long roleId, OrderByComparator<UserGroupRole> orderByComparator) Returns the user group roles before and after the current user group role in the ordered set where groupId = ? and roleId = ?.static List<UserGroupRole>
findByGroupId
(long groupId) Returns all the user group roles where groupId = ?.static List<UserGroupRole>
findByGroupId
(long groupId, int start, int end) Returns a range of all the user group roles where groupId = ?.static List<UserGroupRole>
findByGroupId
(long groupId, int start, int end, OrderByComparator<UserGroupRole> orderByComparator) Returns an ordered range of all the user group roles where groupId = ?.static List<UserGroupRole>
findByGroupId
(long groupId, int start, int end, OrderByComparator<UserGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group roles where groupId = ?.static UserGroupRole
findByGroupId_First
(long groupId, OrderByComparator<UserGroupRole> orderByComparator) Returns the first user group role in the ordered set where groupId = ?.static UserGroupRole
findByGroupId_Last
(long groupId, OrderByComparator<UserGroupRole> orderByComparator) Returns the last user group role in the ordered set where groupId = ?.static UserGroupRole[]
findByGroupId_PrevAndNext
(long userGroupRoleId, long groupId, OrderByComparator<UserGroupRole> orderByComparator) Returns the user group roles before and after the current user group role in the ordered set where groupId = ?.static UserGroupRole
findByPrimaryKey
(long userGroupRoleId) Returns the user group role with the primary key or throws aNoSuchUserGroupRoleException
if it could not be found.static List<UserGroupRole>
findByRoleId
(long roleId) Returns all the user group roles where roleId = ?.static List<UserGroupRole>
findByRoleId
(long roleId, int start, int end) Returns a range of all the user group roles where roleId = ?.static List<UserGroupRole>
findByRoleId
(long roleId, int start, int end, OrderByComparator<UserGroupRole> orderByComparator) Returns an ordered range of all the user group roles where roleId = ?.static List<UserGroupRole>
findByRoleId
(long roleId, int start, int end, OrderByComparator<UserGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group roles where roleId = ?.static UserGroupRole
findByRoleId_First
(long roleId, OrderByComparator<UserGroupRole> orderByComparator) Returns the first user group role in the ordered set where roleId = ?.static UserGroupRole
findByRoleId_Last
(long roleId, OrderByComparator<UserGroupRole> orderByComparator) Returns the last user group role in the ordered set where roleId = ?.static UserGroupRole[]
findByRoleId_PrevAndNext
(long userGroupRoleId, long roleId, OrderByComparator<UserGroupRole> orderByComparator) Returns the user group roles before and after the current user group role in the ordered set where roleId = ?.static List<UserGroupRole>
findByU_G
(long userId, long groupId) Returns all the user group roles where userId = ? and groupId = ?.static List<UserGroupRole>
findByU_G
(long userId, long groupId, int start, int end) Returns a range of all the user group roles where userId = ? and groupId = ?.static List<UserGroupRole>
findByU_G
(long userId, long groupId, int start, int end, OrderByComparator<UserGroupRole> orderByComparator) Returns an ordered range of all the user group roles where userId = ? and groupId = ?.static List<UserGroupRole>
findByU_G
(long userId, long groupId, int start, int end, OrderByComparator<UserGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group roles where userId = ? and groupId = ?.static UserGroupRole
findByU_G_First
(long userId, long groupId, OrderByComparator<UserGroupRole> orderByComparator) Returns the first user group role in the ordered set where userId = ? and groupId = ?.static UserGroupRole
findByU_G_Last
(long userId, long groupId, OrderByComparator<UserGroupRole> orderByComparator) Returns the last user group role in the ordered set where userId = ? and groupId = ?.static UserGroupRole[]
findByU_G_PrevAndNext
(long userGroupRoleId, long userId, long groupId, OrderByComparator<UserGroupRole> orderByComparator) Returns the user group roles before and after the current user group role in the ordered set where userId = ? and groupId = ?.static UserGroupRole
findByU_G_R
(long userId, long groupId, long roleId) Returns the user group role where userId = ? and groupId = ? and roleId = ? or throws aNoSuchUserGroupRoleException
if it could not be found.static List<UserGroupRole>
findByUserId
(long userId) Returns all the user group roles where userId = ?.static List<UserGroupRole>
findByUserId
(long userId, int start, int end) Returns a range of all the user group roles where userId = ?.static List<UserGroupRole>
findByUserId
(long userId, int start, int end, OrderByComparator<UserGroupRole> orderByComparator) Returns an ordered range of all the user group roles where userId = ?.static List<UserGroupRole>
findByUserId
(long userId, int start, int end, OrderByComparator<UserGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group roles where userId = ?.static UserGroupRole
findByUserId_First
(long userId, OrderByComparator<UserGroupRole> orderByComparator) Returns the first user group role in the ordered set where userId = ?.static UserGroupRole
findByUserId_Last
(long userId, OrderByComparator<UserGroupRole> orderByComparator) Returns the last user group role in the ordered set where userId = ?.static UserGroupRole[]
findByUserId_PrevAndNext
(long userGroupRoleId, long userId, OrderByComparator<UserGroupRole> orderByComparator) Returns the user group roles before and after the current user group role in the ordered set where userId = ?.static List<UserGroupRole>
findWithDynamicQuery
(DynamicQuery dynamicQuery) static List<UserGroupRole>
findWithDynamicQuery
(DynamicQuery dynamicQuery, int start, int end) static List<UserGroupRole>
findWithDynamicQuery
(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<UserGroupRole> orderByComparator) static UserGroupRolePersistence
static UserGroupRole
remove
(long userGroupRoleId) Removes the user group role with the primary key from the database.static void
Removes all the user group roles from the database.static void
removeByG_R
(long groupId, long roleId) Removes all the user group roles where groupId = ? and roleId = ? from the database.static void
removeByGroupId
(long groupId) Removes all the user group roles where groupId = ? from the database.static void
removeByRoleId
(long roleId) Removes all the user group roles where roleId = ? from the database.static void
removeByU_G
(long userId, long groupId) Removes all the user group roles where userId = ? and groupId = ? from the database.static UserGroupRole
removeByU_G_R
(long userId, long groupId, long roleId) Removes the user group role where userId = ? and groupId = ? and roleId = ? from the database.static void
removeByUserId
(long userId) Removes all the user group roles where userId = ? from the database.static void
setPersistence
(UserGroupRolePersistence persistence) static UserGroupRole
update
(UserGroupRole userGroupRole) static UserGroupRole
update
(UserGroupRole userGroupRole, ServiceContext serviceContext) static UserGroupRole
updateImpl
(UserGroupRole userGroupRole)
-
Constructor Details
-
UserGroupRoleUtil
public UserGroupRoleUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
-
countWithDynamicQuery
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
-
findWithDynamicQuery
public static List<UserGroupRole> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) -
findWithDynamicQuery
public static List<UserGroupRole> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<UserGroupRole> orderByComparator) -
update
-
update
-
findByUserId
Returns all the user group roles where userId = ?.- Parameters:
userId
- the user ID- Returns:
- the matching user group roles
-
findByUserId
Returns a range of all the user group roles where userId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserGroupRoleModelImpl
.- Parameters:
userId
- the user IDstart
- the lower bound of the range of user group rolesend
- the upper bound of the range of user group roles (not inclusive)- Returns:
- the range of matching user group roles
-
findByUserId
public static List<UserGroupRole> findByUserId(long userId, int start, int end, OrderByComparator<UserGroupRole> orderByComparator) Returns an ordered range of all the user group roles where userId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserGroupRoleModelImpl
.- Parameters:
userId
- the user IDstart
- the lower bound of the range of user group rolesend
- the upper bound of the range of user group roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching user group roles
-
findByUserId
public static List<UserGroupRole> findByUserId(long userId, int start, int end, OrderByComparator<UserGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group roles where userId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserGroupRoleModelImpl
.- Parameters:
userId
- the user IDstart
- the lower bound of the range of user group rolesend
- the upper bound of the range of user group roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching user group roles
-
findByUserId_First
public static UserGroupRole findByUserId_First(long userId, OrderByComparator<UserGroupRole> orderByComparator) throws NoSuchUserGroupRoleException Returns the first user group role in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching user group role
- Throws:
NoSuchUserGroupRoleException
- if a matching user group role could not be foundNoSuchUserGroupRoleException
-
fetchByUserId_First
public static UserGroupRole fetchByUserId_First(long userId, OrderByComparator<UserGroupRole> orderByComparator) Returns the first user group role in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching user group role, or
null
if a matching user group role could not be found
-
findByUserId_Last
public static UserGroupRole findByUserId_Last(long userId, OrderByComparator<UserGroupRole> orderByComparator) throws NoSuchUserGroupRoleException Returns the last user group role in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching user group role
- Throws:
NoSuchUserGroupRoleException
- if a matching user group role could not be foundNoSuchUserGroupRoleException
-
fetchByUserId_Last
public static UserGroupRole fetchByUserId_Last(long userId, OrderByComparator<UserGroupRole> orderByComparator) Returns the last user group role in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching user group role, or
null
if a matching user group role could not be found
-
findByUserId_PrevAndNext
public static UserGroupRole[] findByUserId_PrevAndNext(long userGroupRoleId, long userId, OrderByComparator<UserGroupRole> orderByComparator) throws NoSuchUserGroupRoleException Returns the user group roles before and after the current user group role in the ordered set where userId = ?.- Parameters:
userGroupRoleId
- the primary key of the current user group roleuserId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next user group role
- Throws:
NoSuchUserGroupRoleException
- if a user group role with the primary key could not be foundNoSuchUserGroupRoleException
-
removeByUserId
public static void removeByUserId(long userId) Removes all the user group roles where userId = ? from the database.- Parameters:
userId
- the user ID
-
countByUserId
public static int countByUserId(long userId) Returns the number of user group roles where userId = ?.- Parameters:
userId
- the user ID- Returns:
- the number of matching user group roles
-
findByGroupId
Returns all the user group roles where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the matching user group roles
-
findByGroupId
Returns a range of all the user group roles where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserGroupRoleModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of user group rolesend
- the upper bound of the range of user group roles (not inclusive)- Returns:
- the range of matching user group roles
-
findByGroupId
public static List<UserGroupRole> findByGroupId(long groupId, int start, int end, OrderByComparator<UserGroupRole> orderByComparator) Returns an ordered range of all the user group roles where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserGroupRoleModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of user group rolesend
- the upper bound of the range of user group roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching user group roles
-
findByGroupId
public static List<UserGroupRole> findByGroupId(long groupId, int start, int end, OrderByComparator<UserGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group roles where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserGroupRoleModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of user group rolesend
- the upper bound of the range of user group roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching user group roles
-
findByGroupId_First
public static UserGroupRole findByGroupId_First(long groupId, OrderByComparator<UserGroupRole> orderByComparator) throws NoSuchUserGroupRoleException Returns the first user group role in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching user group role
- Throws:
NoSuchUserGroupRoleException
- if a matching user group role could not be foundNoSuchUserGroupRoleException
-
fetchByGroupId_First
public static UserGroupRole fetchByGroupId_First(long groupId, OrderByComparator<UserGroupRole> orderByComparator) Returns the first user group role in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching user group role, or
null
if a matching user group role could not be found
-
findByGroupId_Last
public static UserGroupRole findByGroupId_Last(long groupId, OrderByComparator<UserGroupRole> orderByComparator) throws NoSuchUserGroupRoleException Returns the last user group role in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching user group role
- Throws:
NoSuchUserGroupRoleException
- if a matching user group role could not be foundNoSuchUserGroupRoleException
-
fetchByGroupId_Last
public static UserGroupRole fetchByGroupId_Last(long groupId, OrderByComparator<UserGroupRole> orderByComparator) Returns the last user group role in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching user group role, or
null
if a matching user group role could not be found
-
findByGroupId_PrevAndNext
public static UserGroupRole[] findByGroupId_PrevAndNext(long userGroupRoleId, long groupId, OrderByComparator<UserGroupRole> orderByComparator) throws NoSuchUserGroupRoleException Returns the user group roles before and after the current user group role in the ordered set where groupId = ?.- Parameters:
userGroupRoleId
- the primary key of the current user group rolegroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next user group role
- Throws:
NoSuchUserGroupRoleException
- if a user group role with the primary key could not be foundNoSuchUserGroupRoleException
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the user group roles where groupId = ? from the database.- Parameters:
groupId
- the group ID
-
countByGroupId
public static int countByGroupId(long groupId) Returns the number of user group roles where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the number of matching user group roles
-
findByRoleId
Returns all the user group roles where roleId = ?.- Parameters:
roleId
- the role ID- Returns:
- the matching user group roles
-
findByRoleId
Returns a range of all the user group roles where roleId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserGroupRoleModelImpl
.- Parameters:
roleId
- the role IDstart
- the lower bound of the range of user group rolesend
- the upper bound of the range of user group roles (not inclusive)- Returns:
- the range of matching user group roles
-
findByRoleId
public static List<UserGroupRole> findByRoleId(long roleId, int start, int end, OrderByComparator<UserGroupRole> orderByComparator) Returns an ordered range of all the user group roles where roleId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserGroupRoleModelImpl
.- Parameters:
roleId
- the role IDstart
- the lower bound of the range of user group rolesend
- the upper bound of the range of user group roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching user group roles
-
findByRoleId
public static List<UserGroupRole> findByRoleId(long roleId, int start, int end, OrderByComparator<UserGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group roles where roleId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserGroupRoleModelImpl
.- Parameters:
roleId
- the role IDstart
- the lower bound of the range of user group rolesend
- the upper bound of the range of user group roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching user group roles
-
findByRoleId_First
public static UserGroupRole findByRoleId_First(long roleId, OrderByComparator<UserGroupRole> orderByComparator) throws NoSuchUserGroupRoleException Returns the first user group role in the ordered set where roleId = ?.- Parameters:
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching user group role
- Throws:
NoSuchUserGroupRoleException
- if a matching user group role could not be foundNoSuchUserGroupRoleException
-
fetchByRoleId_First
public static UserGroupRole fetchByRoleId_First(long roleId, OrderByComparator<UserGroupRole> orderByComparator) Returns the first user group role in the ordered set where roleId = ?.- Parameters:
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching user group role, or
null
if a matching user group role could not be found
-
findByRoleId_Last
public static UserGroupRole findByRoleId_Last(long roleId, OrderByComparator<UserGroupRole> orderByComparator) throws NoSuchUserGroupRoleException Returns the last user group role in the ordered set where roleId = ?.- Parameters:
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching user group role
- Throws:
NoSuchUserGroupRoleException
- if a matching user group role could not be foundNoSuchUserGroupRoleException
-
fetchByRoleId_Last
public static UserGroupRole fetchByRoleId_Last(long roleId, OrderByComparator<UserGroupRole> orderByComparator) Returns the last user group role in the ordered set where roleId = ?.- Parameters:
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching user group role, or
null
if a matching user group role could not be found
-
findByRoleId_PrevAndNext
public static UserGroupRole[] findByRoleId_PrevAndNext(long userGroupRoleId, long roleId, OrderByComparator<UserGroupRole> orderByComparator) throws NoSuchUserGroupRoleException Returns the user group roles before and after the current user group role in the ordered set where roleId = ?.- Parameters:
userGroupRoleId
- the primary key of the current user group roleroleId
- the role IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next user group role
- Throws:
NoSuchUserGroupRoleException
- if a user group role with the primary key could not be foundNoSuchUserGroupRoleException
-
removeByRoleId
public static void removeByRoleId(long roleId) Removes all the user group roles where roleId = ? from the database.- Parameters:
roleId
- the role ID
-
countByRoleId
public static int countByRoleId(long roleId) Returns the number of user group roles where roleId = ?.- Parameters:
roleId
- the role ID- Returns:
- the number of matching user group roles
-
findByU_G
Returns all the user group roles where userId = ? and groupId = ?.- Parameters:
userId
- the user IDgroupId
- the group ID- Returns:
- the matching user group roles
-
findByU_G
Returns a range of all the user group roles where userId = ? and groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserGroupRoleModelImpl
.- Parameters:
userId
- the user IDgroupId
- the group IDstart
- the lower bound of the range of user group rolesend
- the upper bound of the range of user group roles (not inclusive)- Returns:
- the range of matching user group roles
-
findByU_G
public static List<UserGroupRole> findByU_G(long userId, long groupId, int start, int end, OrderByComparator<UserGroupRole> orderByComparator) Returns an ordered range of all the user group roles where userId = ? and groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserGroupRoleModelImpl
.- Parameters:
userId
- the user IDgroupId
- the group IDstart
- the lower bound of the range of user group rolesend
- the upper bound of the range of user group roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching user group roles
-
findByU_G
public static List<UserGroupRole> findByU_G(long userId, long groupId, int start, int end, OrderByComparator<UserGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group roles where userId = ? and groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserGroupRoleModelImpl
.- Parameters:
userId
- the user IDgroupId
- the group IDstart
- the lower bound of the range of user group rolesend
- the upper bound of the range of user group roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching user group roles
-
findByU_G_First
public static UserGroupRole findByU_G_First(long userId, long groupId, OrderByComparator<UserGroupRole> orderByComparator) throws NoSuchUserGroupRoleException Returns the first user group role in the ordered set where userId = ? and groupId = ?.- Parameters:
userId
- the user IDgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching user group role
- Throws:
NoSuchUserGroupRoleException
- if a matching user group role could not be foundNoSuchUserGroupRoleException
-
fetchByU_G_First
public static UserGroupRole fetchByU_G_First(long userId, long groupId, OrderByComparator<UserGroupRole> orderByComparator) Returns the first user group role in the ordered set where userId = ? and groupId = ?.- Parameters:
userId
- the user IDgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching user group role, or
null
if a matching user group role could not be found
-
findByU_G_Last
public static UserGroupRole findByU_G_Last(long userId, long groupId, OrderByComparator<UserGroupRole> orderByComparator) throws NoSuchUserGroupRoleException Returns the last user group role in the ordered set where userId = ? and groupId = ?.- Parameters:
userId
- the user IDgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching user group role
- Throws:
NoSuchUserGroupRoleException
- if a matching user group role could not be foundNoSuchUserGroupRoleException
-
fetchByU_G_Last
public static UserGroupRole fetchByU_G_Last(long userId, long groupId, OrderByComparator<UserGroupRole> orderByComparator) Returns the last user group role in the ordered set where userId = ? and groupId = ?.- Parameters:
userId
- the user IDgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching user group role, or
null
if a matching user group role could not be found
-
findByU_G_PrevAndNext
public static UserGroupRole[] findByU_G_PrevAndNext(long userGroupRoleId, long userId, long groupId, OrderByComparator<UserGroupRole> orderByComparator) throws NoSuchUserGroupRoleException Returns the user group roles before and after the current user group role in the ordered set where userId = ? and groupId = ?.- Parameters:
userGroupRoleId
- the primary key of the current user group roleuserId
- the user IDgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next user group role
- Throws:
NoSuchUserGroupRoleException
- if a user group role with the primary key could not be foundNoSuchUserGroupRoleException
-
removeByU_G
public static void removeByU_G(long userId, long groupId) Removes all the user group roles where userId = ? and groupId = ? from the database.- Parameters:
userId
- the user IDgroupId
- the group ID
-
countByU_G
public static int countByU_G(long userId, long groupId) Returns the number of user group roles where userId = ? and groupId = ?.- Parameters:
userId
- the user IDgroupId
- the group ID- Returns:
- the number of matching user group roles
-
findByG_R
Returns all the user group roles where groupId = ? and roleId = ?.- Parameters:
groupId
- the group IDroleId
- the role ID- Returns:
- the matching user group roles
-
findByG_R
Returns a range of all the user group roles where groupId = ? and roleId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserGroupRoleModelImpl
.- Parameters:
groupId
- the group IDroleId
- the role IDstart
- the lower bound of the range of user group rolesend
- the upper bound of the range of user group roles (not inclusive)- Returns:
- the range of matching user group roles
-
findByG_R
public static List<UserGroupRole> findByG_R(long groupId, long roleId, int start, int end, OrderByComparator<UserGroupRole> orderByComparator) Returns an ordered range of all the user group roles where groupId = ? and roleId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserGroupRoleModelImpl
.- Parameters:
groupId
- the group IDroleId
- the role IDstart
- the lower bound of the range of user group rolesend
- the upper bound of the range of user group roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching user group roles
-
findByG_R
public static List<UserGroupRole> findByG_R(long groupId, long roleId, int start, int end, OrderByComparator<UserGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group roles where groupId = ? and roleId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserGroupRoleModelImpl
.- Parameters:
groupId
- the group IDroleId
- the role IDstart
- the lower bound of the range of user group rolesend
- the upper bound of the range of user group roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching user group roles
-
findByG_R_First
public static UserGroupRole findByG_R_First(long groupId, long roleId, OrderByComparator<UserGroupRole> orderByComparator) throws NoSuchUserGroupRoleException Returns the first user group role in the ordered set where groupId = ? and roleId = ?.- Parameters:
groupId
- the group IDroleId
- the role IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching user group role
- Throws:
NoSuchUserGroupRoleException
- if a matching user group role could not be foundNoSuchUserGroupRoleException
-
fetchByG_R_First
public static UserGroupRole fetchByG_R_First(long groupId, long roleId, OrderByComparator<UserGroupRole> orderByComparator) Returns the first user group role in the ordered set where groupId = ? and roleId = ?.- Parameters:
groupId
- the group IDroleId
- the role IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching user group role, or
null
if a matching user group role could not be found
-
findByG_R_Last
public static UserGroupRole findByG_R_Last(long groupId, long roleId, OrderByComparator<UserGroupRole> orderByComparator) throws NoSuchUserGroupRoleException Returns the last user group role in the ordered set where groupId = ? and roleId = ?.- Parameters:
groupId
- the group IDroleId
- the role IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching user group role
- Throws:
NoSuchUserGroupRoleException
- if a matching user group role could not be foundNoSuchUserGroupRoleException
-
fetchByG_R_Last
public static UserGroupRole fetchByG_R_Last(long groupId, long roleId, OrderByComparator<UserGroupRole> orderByComparator) Returns the last user group role in the ordered set where groupId = ? and roleId = ?.- Parameters:
groupId
- the group IDroleId
- the role IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching user group role, or
null
if a matching user group role could not be found
-
findByG_R_PrevAndNext
public static UserGroupRole[] findByG_R_PrevAndNext(long userGroupRoleId, long groupId, long roleId, OrderByComparator<UserGroupRole> orderByComparator) throws NoSuchUserGroupRoleException Returns the user group roles before and after the current user group role in the ordered set where groupId = ? and roleId = ?.- Parameters:
userGroupRoleId
- the primary key of the current user group rolegroupId
- the group IDroleId
- the role IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next user group role
- Throws:
NoSuchUserGroupRoleException
- if a user group role with the primary key could not be foundNoSuchUserGroupRoleException
-
removeByG_R
public static void removeByG_R(long groupId, long roleId) Removes all the user group roles where groupId = ? and roleId = ? from the database.- Parameters:
groupId
- the group IDroleId
- the role ID
-
countByG_R
public static int countByG_R(long groupId, long roleId) Returns the number of user group roles where groupId = ? and roleId = ?.- Parameters:
groupId
- the group IDroleId
- the role ID- Returns:
- the number of matching user group roles
-
findByU_G_R
public static UserGroupRole findByU_G_R(long userId, long groupId, long roleId) throws NoSuchUserGroupRoleException Returns the user group role where userId = ? and groupId = ? and roleId = ? or throws aNoSuchUserGroupRoleException
if it could not be found.- Parameters:
userId
- the user IDgroupId
- the group IDroleId
- the role ID- Returns:
- the matching user group role
- Throws:
NoSuchUserGroupRoleException
- if a matching user group role could not be foundNoSuchUserGroupRoleException
-
fetchByU_G_R
Returns the user group role where userId = ? and groupId = ? and roleId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
userId
- the user IDgroupId
- the group IDroleId
- the role ID- Returns:
- the matching user group role, or
null
if a matching user group role could not be found
-
fetchByU_G_R
public static UserGroupRole fetchByU_G_R(long userId, long groupId, long roleId, boolean useFinderCache) Returns the user group role where userId = ? and groupId = ? and roleId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
userId
- the user IDgroupId
- the group IDroleId
- the role IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching user group role, or
null
if a matching user group role could not be found
-
removeByU_G_R
public static UserGroupRole removeByU_G_R(long userId, long groupId, long roleId) throws NoSuchUserGroupRoleException Removes the user group role where userId = ? and groupId = ? and roleId = ? from the database.- Parameters:
userId
- the user IDgroupId
- the group IDroleId
- the role ID- Returns:
- the user group role that was removed
- Throws:
NoSuchUserGroupRoleException
-
countByU_G_R
public static int countByU_G_R(long userId, long groupId, long roleId) Returns the number of user group roles where userId = ? and groupId = ? and roleId = ?.- Parameters:
userId
- the user IDgroupId
- the group IDroleId
- the role ID- Returns:
- the number of matching user group roles
-
cacheResult
Caches the user group role in the entity cache if it is enabled.- Parameters:
userGroupRole
- the user group role
-
cacheResult
Caches the user group roles in the entity cache if it is enabled.- Parameters:
userGroupRoles
- the user group roles
-
create
Creates a new user group role with the primary key. Does not add the user group role to the database.- Parameters:
userGroupRoleId
- the primary key for the new user group role- Returns:
- the new user group role
-
remove
Removes the user group role with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
userGroupRoleId
- the primary key of the user group role- Returns:
- the user group role that was removed
- Throws:
NoSuchUserGroupRoleException
- if a user group role with the primary key could not be foundNoSuchUserGroupRoleException
-
updateImpl
-
findByPrimaryKey
public static UserGroupRole findByPrimaryKey(long userGroupRoleId) throws NoSuchUserGroupRoleException Returns the user group role with the primary key or throws aNoSuchUserGroupRoleException
if it could not be found.- Parameters:
userGroupRoleId
- the primary key of the user group role- Returns:
- the user group role
- Throws:
NoSuchUserGroupRoleException
- if a user group role with the primary key could not be foundNoSuchUserGroupRoleException
-
fetchByPrimaryKey
Returns the user group role with the primary key or returnsnull
if it could not be found.- Parameters:
userGroupRoleId
- the primary key of the user group role- Returns:
- the user group role, or
null
if a user group role with the primary key could not be found
-
findAll
Returns all the user group roles.- Returns:
- the user group roles
-
findAll
Returns a range of all the user group roles.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserGroupRoleModelImpl
.- Parameters:
start
- the lower bound of the range of user group rolesend
- the upper bound of the range of user group roles (not inclusive)- Returns:
- the range of user group roles
-
findAll
public static List<UserGroupRole> findAll(int start, int end, OrderByComparator<UserGroupRole> orderByComparator) Returns an ordered range of all the user group roles.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserGroupRoleModelImpl
.- Parameters:
start
- the lower bound of the range of user group rolesend
- the upper bound of the range of user group roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of user group roles
-
findAll
public static List<UserGroupRole> findAll(int start, int end, OrderByComparator<UserGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group roles.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserGroupRoleModelImpl
.- Parameters:
start
- the lower bound of the range of user group rolesend
- the upper bound of the range of user group roles (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of user group roles
-
removeAll
public static void removeAll()Removes all the user group roles from the database. -
countAll
public static int countAll()Returns the number of user group roles.- Returns:
- the number of user group roles
-
getPersistence
-
setPersistence
-