@ProviderType
public class UserGroupGroupRoleUtil
extends Object
UserGroupGroupRolePersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
UserGroupGroupRolePersistence
,
UserGroupGroupRolePersistenceImpl
Constructor and Description |
---|
UserGroupGroupRoleUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(List<UserGroupGroupRole> userGroupGroupRoles)
Caches the user group group roles in the entity cache if it is enabled.
|
static void |
cacheResult(UserGroupGroupRole userGroupGroupRole)
Caches the user group group role in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(UserGroupGroupRole userGroupGroupRole) |
static int |
countAll()
Returns the number of user group group roles.
|
static int |
countByG_R(long groupId,
long roleId)
Returns the number of user group group roles where groupId = ? and roleId = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of user group group roles where groupId = ?.
|
static int |
countByRoleId(long roleId)
Returns the number of user group group roles where roleId = ?.
|
static int |
countByU_G(long userGroupId,
long groupId)
Returns the number of user group group roles where userGroupId = ? and groupId = ?.
|
static int |
countByUserGroupId(long userGroupId)
Returns the number of user group group roles where userGroupId = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static UserGroupGroupRole |
create(UserGroupGroupRolePK userGroupGroupRolePK)
Creates a new user group group role with the primary key.
|
static 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 = ?.
|
static 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 = ?.
|
static UserGroupGroupRole |
fetchByGroupId_First(long groupId,
OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the first user group group role in the ordered set where groupId = ?.
|
static UserGroupGroupRole |
fetchByGroupId_Last(long groupId,
OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the last user group group role in the ordered set where groupId = ?.
|
static UserGroupGroupRole |
fetchByPrimaryKey(UserGroupGroupRolePK userGroupGroupRolePK)
Returns the user group group role with the primary key or returns
null if it could not be found. |
static Map<Serializable,UserGroupGroupRole> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
static UserGroupGroupRole |
fetchByRoleId_First(long roleId,
OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the first user group group role in the ordered set where roleId = ?.
|
static UserGroupGroupRole |
fetchByRoleId_Last(long roleId,
OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the last user group group role in the ordered set where roleId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static UserGroupGroupRole |
fetchByUserGroupId_First(long userGroupId,
OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the first user group group role in the ordered set where userGroupId = ?.
|
static UserGroupGroupRole |
fetchByUserGroupId_Last(long userGroupId,
OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the last user group group role in the ordered set where userGroupId = ?.
|
static List<UserGroupGroupRole> |
findAll()
Returns all the user group group roles.
|
static List<UserGroupGroupRole> |
findAll(int start,
int end)
Returns a range of all the user group group roles.
|
static List<UserGroupGroupRole> |
findAll(int start,
int end,
OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns an ordered range of all the user group group roles.
|
static List<UserGroupGroupRole> |
findAll(int start,
int end,
OrderByComparator<UserGroupGroupRole> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user group group roles.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static List<UserGroupGroupRole> |
findByG_R(long groupId,
long roleId)
Returns all the user group group roles where groupId = ? and roleId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static UserGroupGroupRole |
findByGroupId_First(long groupId,
OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the first user group group role in the ordered set where groupId = ?.
|
static UserGroupGroupRole |
findByGroupId_Last(long groupId,
OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the last user group group role in the ordered set where groupId = ?.
|
static 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 = ?.
|
static List<UserGroupGroupRole> |
findByGroupId(long groupId)
Returns all the user group group roles where groupId = ?.
|
static List<UserGroupGroupRole> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the user group group roles where groupId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static UserGroupGroupRole |
findByPrimaryKey(UserGroupGroupRolePK userGroupGroupRolePK)
Returns the user group group role with the primary key or throws a
NoSuchUserGroupGroupRoleException if it could not be found. |
static UserGroupGroupRole |
findByRoleId_First(long roleId,
OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the first user group group role in the ordered set where roleId = ?.
|
static UserGroupGroupRole |
findByRoleId_Last(long roleId,
OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the last user group group role in the ordered set where roleId = ?.
|
static 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 = ?.
|
static List<UserGroupGroupRole> |
findByRoleId(long roleId)
Returns all the user group group roles where roleId = ?.
|
static List<UserGroupGroupRole> |
findByRoleId(long roleId,
int start,
int end)
Returns a range of all the user group group roles where roleId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static List<UserGroupGroupRole> |
findByU_G(long userGroupId,
long groupId)
Returns all the user group group roles where userGroupId = ? and groupId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static UserGroupGroupRole |
findByUserGroupId_First(long userGroupId,
OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the first user group group role in the ordered set where userGroupId = ?.
|
static UserGroupGroupRole |
findByUserGroupId_Last(long userGroupId,
OrderByComparator<UserGroupGroupRole> orderByComparator)
Returns the last user group group role in the ordered set where userGroupId = ?.
|
static 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 = ?.
|
static List<UserGroupGroupRole> |
findByUserGroupId(long userGroupId)
Returns all the user group group roles where userGroupId = ?.
|
static List<UserGroupGroupRole> |
findByUserGroupId(long userGroupId,
int start,
int end)
Returns a range of all the user group group roles where userGroupId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static List<UserGroupGroupRole> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static List<UserGroupGroupRole> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static List<UserGroupGroupRole> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<UserGroupGroupRole> orderByComparator) |
static Set<String> |
getCompoundPKColumnNames() |
static UserGroupGroupRolePersistence |
getPersistence() |
static UserGroupGroupRole |
remove(UserGroupGroupRolePK userGroupGroupRolePK)
Removes the user group group role with the primary key from the database.
|
static void |
removeAll()
Removes all the user group group roles from the database.
|
static void |
removeByG_R(long groupId,
long roleId)
Removes all the user group group roles where groupId = ? and roleId = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the user group group roles where groupId = ? from the database.
|
static void |
removeByRoleId(long roleId)
Removes all the user group group roles where roleId = ? from the database.
|
static void |
removeByU_G(long userGroupId,
long groupId)
Removes all the user group group roles where userGroupId = ? and groupId = ? from the database.
|
static void |
removeByUserGroupId(long userGroupId)
Removes all the user group group roles where userGroupId = ? from the database.
|
static UserGroupGroupRole |
update(UserGroupGroupRole userGroupGroupRole) |
static UserGroupGroupRole |
update(UserGroupGroupRole userGroupGroupRole,
ServiceContext serviceContext) |
static UserGroupGroupRole |
updateImpl(UserGroupGroupRole userGroupGroupRole) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(UserGroupGroupRole userGroupGroupRole)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<UserGroupGroupRole> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<UserGroupGroupRole> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static List<UserGroupGroupRole> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator)
public static UserGroupGroupRole update(UserGroupGroupRole userGroupGroupRole)
public static UserGroupGroupRole update(UserGroupGroupRole userGroupGroupRole, ServiceContext serviceContext)
public static List<UserGroupGroupRole> findByUserGroupId(long userGroupId)
userGroupId
- the user group IDpublic static List<UserGroupGroupRole> findByUserGroupId(long userGroupId, int start, int end)
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.
userGroupId
- the user group IDstart
- the lower bound of the range of user group group rolesend
- the upper bound of the range of user group group roles (not inclusive)public static List<UserGroupGroupRole> findByUserGroupId(long userGroupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator)
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.
userGroupId
- the user group IDstart
- the lower bound of the range of user group group rolesend
- the upper bound of the range of user group group roles (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<UserGroupGroupRole> findByUserGroupId(long userGroupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean retrieveFromCache)
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.
userGroupId
- the user group IDstart
- the lower bound of the range of user group group rolesend
- 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 cachepublic static UserGroupGroupRole findByUserGroupId_First(long userGroupId, OrderByComparator<UserGroupGroupRole> orderByComparator) throws NoSuchUserGroupGroupRoleException
userGroupId
- the user group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupGroupRoleException
- if a matching user group group role could not be foundpublic static UserGroupGroupRole fetchByUserGroupId_First(long userGroupId, OrderByComparator<UserGroupGroupRole> orderByComparator)
userGroupId
- the user group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group group role could not be foundpublic static UserGroupGroupRole findByUserGroupId_Last(long userGroupId, OrderByComparator<UserGroupGroupRole> orderByComparator) throws NoSuchUserGroupGroupRoleException
userGroupId
- the user group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupGroupRoleException
- if a matching user group group role could not be foundpublic static UserGroupGroupRole fetchByUserGroupId_Last(long userGroupId, OrderByComparator<UserGroupGroupRole> orderByComparator)
userGroupId
- the user group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group group role could not be foundpublic static UserGroupGroupRole[] findByUserGroupId_PrevAndNext(UserGroupGroupRolePK userGroupGroupRolePK, long userGroupId, OrderByComparator<UserGroupGroupRole> orderByComparator) throws NoSuchUserGroupGroupRoleException
userGroupGroupRolePK
- the primary key of the current user group group roleuserGroupId
- the user group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupGroupRoleException
- if a user group group role with the primary key could not be foundpublic static void removeByUserGroupId(long userGroupId)
userGroupId
- the user group IDpublic static int countByUserGroupId(long userGroupId)
userGroupId
- the user group IDpublic static List<UserGroupGroupRole> findByGroupId(long groupId)
groupId
- the group IDpublic static List<UserGroupGroupRole> findByGroupId(long groupId, int start, int end)
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.
groupId
- the group IDstart
- the lower bound of the range of user group group rolesend
- the upper bound of the range of user group group roles (not inclusive)public static List<UserGroupGroupRole> findByGroupId(long groupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator)
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.
groupId
- the group IDstart
- the lower bound of the range of user group group rolesend
- the upper bound of the range of user group group roles (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<UserGroupGroupRole> findByGroupId(long groupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean retrieveFromCache)
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.
groupId
- the group IDstart
- the lower bound of the range of user group group rolesend
- 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 cachepublic static UserGroupGroupRole findByGroupId_First(long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator) throws NoSuchUserGroupGroupRoleException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupGroupRoleException
- if a matching user group group role could not be foundpublic static UserGroupGroupRole fetchByGroupId_First(long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group group role could not be foundpublic static UserGroupGroupRole findByGroupId_Last(long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator) throws NoSuchUserGroupGroupRoleException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupGroupRoleException
- if a matching user group group role could not be foundpublic static UserGroupGroupRole fetchByGroupId_Last(long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group group role could not be foundpublic static UserGroupGroupRole[] findByGroupId_PrevAndNext(UserGroupGroupRolePK userGroupGroupRolePK, long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator) throws NoSuchUserGroupGroupRoleException
userGroupGroupRolePK
- the primary key of the current user group group rolegroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupGroupRoleException
- if a user group group role with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long groupId)
groupId
- the group IDpublic static List<UserGroupGroupRole> findByRoleId(long roleId)
roleId
- the role IDpublic static List<UserGroupGroupRole> findByRoleId(long roleId, int start, int end)
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.
roleId
- the role IDstart
- the lower bound of the range of user group group rolesend
- the upper bound of the range of user group group roles (not inclusive)public static List<UserGroupGroupRole> findByRoleId(long roleId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator)
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.
roleId
- the role IDstart
- the lower bound of the range of user group group rolesend
- the upper bound of the range of user group group roles (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<UserGroupGroupRole> findByRoleId(long roleId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean retrieveFromCache)
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.
roleId
- the role IDstart
- the lower bound of the range of user group group rolesend
- 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 cachepublic static UserGroupGroupRole findByRoleId_First(long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator) throws NoSuchUserGroupGroupRoleException
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupGroupRoleException
- if a matching user group group role could not be foundpublic static UserGroupGroupRole fetchByRoleId_First(long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator)
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group group role could not be foundpublic static UserGroupGroupRole findByRoleId_Last(long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator) throws NoSuchUserGroupGroupRoleException
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupGroupRoleException
- if a matching user group group role could not be foundpublic static UserGroupGroupRole fetchByRoleId_Last(long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator)
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group group role could not be foundpublic static UserGroupGroupRole[] findByRoleId_PrevAndNext(UserGroupGroupRolePK userGroupGroupRolePK, long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator) throws NoSuchUserGroupGroupRoleException
userGroupGroupRolePK
- the primary key of the current user group group roleroleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupGroupRoleException
- if a user group group role with the primary key could not be foundpublic static void removeByRoleId(long roleId)
roleId
- the role IDpublic static int countByRoleId(long roleId)
roleId
- the role IDpublic static List<UserGroupGroupRole> findByU_G(long userGroupId, long groupId)
userGroupId
- the user group IDgroupId
- the group IDpublic static List<UserGroupGroupRole> findByU_G(long userGroupId, long groupId, int start, int end)
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.
userGroupId
- the user group IDgroupId
- the group IDstart
- the lower bound of the range of user group group rolesend
- the upper bound of the range of user group group roles (not inclusive)public static List<UserGroupGroupRole> findByU_G(long userGroupId, long groupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator)
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.
userGroupId
- the user group IDgroupId
- the group IDstart
- the lower bound of the range of user group group rolesend
- the upper bound of the range of user group group roles (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<UserGroupGroupRole> findByU_G(long userGroupId, long groupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean retrieveFromCache)
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.
userGroupId
- the user group IDgroupId
- the group IDstart
- the lower bound of the range of user group group rolesend
- 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 cachepublic static UserGroupGroupRole findByU_G_First(long userGroupId, long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator) throws NoSuchUserGroupGroupRoleException
userGroupId
- the user group IDgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupGroupRoleException
- if a matching user group group role could not be foundpublic static UserGroupGroupRole fetchByU_G_First(long userGroupId, long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator)
userGroupId
- the user group IDgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group group role could not be foundpublic static UserGroupGroupRole findByU_G_Last(long userGroupId, long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator) throws NoSuchUserGroupGroupRoleException
userGroupId
- the user group IDgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupGroupRoleException
- if a matching user group group role could not be foundpublic static UserGroupGroupRole fetchByU_G_Last(long userGroupId, long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator)
userGroupId
- the user group IDgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group group role could not be foundpublic static UserGroupGroupRole[] findByU_G_PrevAndNext(UserGroupGroupRolePK userGroupGroupRolePK, long userGroupId, long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator) throws NoSuchUserGroupGroupRoleException
userGroupGroupRolePK
- the primary key of the current user group group roleuserGroupId
- the user group IDgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupGroupRoleException
- if a user group group role with the primary key could not be foundpublic static void removeByU_G(long userGroupId, long groupId)
userGroupId
- the user group IDgroupId
- the group IDpublic static int countByU_G(long userGroupId, long groupId)
userGroupId
- the user group IDgroupId
- the group IDpublic static List<UserGroupGroupRole> findByG_R(long groupId, long roleId)
groupId
- the group IDroleId
- the role IDpublic static List<UserGroupGroupRole> findByG_R(long groupId, long roleId, int start, int end)
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.
groupId
- the group IDroleId
- the role IDstart
- the lower bound of the range of user group group rolesend
- the upper bound of the range of user group group roles (not inclusive)public static List<UserGroupGroupRole> findByG_R(long groupId, long roleId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator)
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.
groupId
- the group IDroleId
- the role IDstart
- the lower bound of the range of user group group rolesend
- the upper bound of the range of user group group roles (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<UserGroupGroupRole> findByG_R(long groupId, long roleId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean retrieveFromCache)
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.
groupId
- the group IDroleId
- the role IDstart
- the lower bound of the range of user group group rolesend
- 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 cachepublic static UserGroupGroupRole findByG_R_First(long groupId, long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator) throws NoSuchUserGroupGroupRoleException
groupId
- the group IDroleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupGroupRoleException
- if a matching user group group role could not be foundpublic static UserGroupGroupRole fetchByG_R_First(long groupId, long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator)
groupId
- the group IDroleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group group role could not be foundpublic static UserGroupGroupRole findByG_R_Last(long groupId, long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator) throws NoSuchUserGroupGroupRoleException
groupId
- the group IDroleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupGroupRoleException
- if a matching user group group role could not be foundpublic static UserGroupGroupRole fetchByG_R_Last(long groupId, long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator)
groupId
- the group IDroleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group group role could not be foundpublic static UserGroupGroupRole[] findByG_R_PrevAndNext(UserGroupGroupRolePK userGroupGroupRolePK, long groupId, long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator) throws NoSuchUserGroupGroupRoleException
userGroupGroupRolePK
- the primary key of the current user group group rolegroupId
- the group IDroleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupGroupRoleException
- if a user group group role with the primary key could not be foundpublic static void removeByG_R(long groupId, long roleId)
groupId
- the group IDroleId
- the role IDpublic static int countByG_R(long groupId, long roleId)
groupId
- the group IDroleId
- the role IDpublic static void cacheResult(UserGroupGroupRole userGroupGroupRole)
userGroupGroupRole
- the user group group rolepublic static void cacheResult(List<UserGroupGroupRole> userGroupGroupRoles)
userGroupGroupRoles
- the user group group rolespublic static UserGroupGroupRole create(UserGroupGroupRolePK userGroupGroupRolePK)
userGroupGroupRolePK
- the primary key for the new user group group rolepublic static UserGroupGroupRole remove(UserGroupGroupRolePK userGroupGroupRolePK) throws NoSuchUserGroupGroupRoleException
userGroupGroupRolePK
- the primary key of the user group group roleNoSuchUserGroupGroupRoleException
- if a user group group role with the primary key could not be foundpublic static UserGroupGroupRole updateImpl(UserGroupGroupRole userGroupGroupRole)
public static UserGroupGroupRole findByPrimaryKey(UserGroupGroupRolePK userGroupGroupRolePK) throws NoSuchUserGroupGroupRoleException
NoSuchUserGroupGroupRoleException
if it could not be found.userGroupGroupRolePK
- the primary key of the user group group roleNoSuchUserGroupGroupRoleException
- if a user group group role with the primary key could not be foundpublic static UserGroupGroupRole fetchByPrimaryKey(UserGroupGroupRolePK userGroupGroupRolePK)
null
if it could not be found.userGroupGroupRolePK
- the primary key of the user group group rolenull
if a user group group role with the primary key could not be foundpublic static Map<Serializable,UserGroupGroupRole> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
public static List<UserGroupGroupRole> findAll()
public static List<UserGroupGroupRole> findAll(int start, int end)
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.
start
- the lower bound of the range of user group group rolesend
- the upper bound of the range of user group group roles (not inclusive)public static List<UserGroupGroupRole> findAll(int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator)
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.
start
- the lower bound of the range of user group group rolesend
- the upper bound of the range of user group group roles (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<UserGroupGroupRole> findAll(int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean retrieveFromCache)
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.
start
- the lower bound of the range of user group group rolesend
- 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 cachepublic static void removeAll()
public static int countAll()
public static Set<String> getCompoundPKColumnNames()
public static UserGroupGroupRolePersistence getPersistence()