|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.liferay.portal.service.persistence.UserGroupRoleUtil
public class UserGroupRoleUtil
The persistence utility for the user group role service. This utility wraps 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
UserGroupRolePersistence
,
UserGroupRolePersistenceImpl
Constructor Summary | |
---|---|
UserGroupRoleUtil()
|
Method Summary | |
---|---|
static void |
cacheResult(List<UserGroupRole> userGroupRoles)
Caches the user group roles in the entity cache if it is enabled. |
static void |
cacheResult(UserGroupRole userGroupRole)
Caches the user group role in the entity cache if it is enabled. |
static void |
clearCache()
|
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 |
countByUserId(long userId)
Returns the number of user group roles where userId = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static UserGroupRole |
create(UserGroupRolePK userGroupRolePK)
Creates a new user group role with the primary key. |
static UserGroupRole |
fetchByG_R_First(long groupId,
long roleId,
OrderByComparator 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 orderByComparator)
Returns the last user group role in the ordered set where groupId = ? and roleId = ?. |
static UserGroupRole |
fetchByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first user group role in the ordered set where groupId = ?. |
static UserGroupRole |
fetchByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last user group role in the ordered set where groupId = ?. |
static UserGroupRole |
fetchByPrimaryKey(UserGroupRolePK userGroupRolePK)
Returns the user group role with the primary key or returns null if it could not be found. |
static UserGroupRole |
fetchByRoleId_First(long roleId,
OrderByComparator orderByComparator)
Returns the first user group role in the ordered set where roleId = ?. |
static UserGroupRole |
fetchByRoleId_Last(long roleId,
OrderByComparator orderByComparator)
Returns the last user group role in the ordered set where roleId = ?. |
static UserGroupRole |
fetchByU_G_First(long userId,
long groupId,
OrderByComparator 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 orderByComparator)
Returns the last user group role in the ordered set where userId = ? and groupId = ?. |
static UserGroupRole |
fetchByUserId_First(long userId,
OrderByComparator orderByComparator)
Returns the first user group role in the ordered set where userId = ?. |
static UserGroupRole |
fetchByUserId_Last(long userId,
OrderByComparator 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 orderByComparator)
Returns an ordered range of all the user group roles. |
static UserGroupRole |
findByG_R_First(long groupId,
long roleId,
OrderByComparator 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 orderByComparator)
Returns the last user group role in the ordered set where groupId = ? and roleId = ?. |
static UserGroupRole[] |
findByG_R_PrevAndNext(UserGroupRolePK userGroupRolePK,
long groupId,
long roleId,
OrderByComparator 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> |
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 orderByComparator)
Returns an ordered range of all the user group roles where groupId = ? and roleId = ?. |
static UserGroupRole |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first user group role in the ordered set where groupId = ?. |
static UserGroupRole |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last user group role in the ordered set where groupId = ?. |
static UserGroupRole[] |
findByGroupId_PrevAndNext(UserGroupRolePK userGroupRolePK,
long groupId,
OrderByComparator orderByComparator)
Returns the user group roles before and after the current user group role in the ordered set where groupId = ?. |
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 orderByComparator)
Returns an ordered range of all the user group roles where groupId = ?. |
static UserGroupRole |
findByPrimaryKey(UserGroupRolePK userGroupRolePK)
Returns the user group role with the primary key or throws a NoSuchUserGroupRoleException if it could not be found. |
static UserGroupRole |
findByRoleId_First(long roleId,
OrderByComparator orderByComparator)
Returns the first user group role in the ordered set where roleId = ?. |
static UserGroupRole |
findByRoleId_Last(long roleId,
OrderByComparator orderByComparator)
Returns the last user group role in the ordered set where roleId = ?. |
static UserGroupRole[] |
findByRoleId_PrevAndNext(UserGroupRolePK userGroupRolePK,
long roleId,
OrderByComparator orderByComparator)
Returns the user group roles before and after the current user group role in the ordered set where roleId = ?. |
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 orderByComparator)
Returns an ordered range of all the user group roles where roleId = ?. |
static UserGroupRole |
findByU_G_First(long userId,
long groupId,
OrderByComparator 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 orderByComparator)
Returns the last user group role in the ordered set where userId = ? and groupId = ?. |
static UserGroupRole[] |
findByU_G_PrevAndNext(UserGroupRolePK userGroupRolePK,
long userId,
long groupId,
OrderByComparator orderByComparator)
Returns the user group roles before and after the current user group role in the ordered set where userId = ? and groupId = ?. |
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 orderByComparator)
Returns an ordered range of all the user group roles where userId = ? and groupId = ?. |
static UserGroupRole |
findByUserId_First(long userId,
OrderByComparator orderByComparator)
Returns the first user group role in the ordered set where userId = ?. |
static UserGroupRole |
findByUserId_Last(long userId,
OrderByComparator orderByComparator)
Returns the last user group role in the ordered set where userId = ?. |
static UserGroupRole[] |
findByUserId_PrevAndNext(UserGroupRolePK userGroupRolePK,
long userId,
OrderByComparator orderByComparator)
Returns the user group roles before and after the current user group role in the ordered set where userId = ?. |
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 orderByComparator)
Returns an ordered range of all the user group roles 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 orderByComparator)
|
static UserGroupRolePersistence |
getPersistence()
|
static UserGroupRole |
remove(UserGroupRolePK userGroupRolePK)
Removes the user group role with the primary key from the database. |
static void |
removeAll()
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 void |
removeByUserId(long userId)
Removes all the user group roles where userId = ? from the database. |
void |
setPersistence(UserGroupRolePersistence persistence)
Deprecated. |
static UserGroupRole |
update(UserGroupRole userGroupRole,
boolean merge)
|
static UserGroupRole |
update(UserGroupRole userGroupRole,
boolean merge,
ServiceContext serviceContext)
|
static UserGroupRole |
updateImpl(UserGroupRole userGroupRole,
boolean merge)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserGroupRoleUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(UserGroupRole userGroupRole)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<UserGroupRole> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<UserGroupRole> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<UserGroupRole> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static UserGroupRole update(UserGroupRole userGroupRole, boolean merge) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static UserGroupRole update(UserGroupRole userGroupRole, boolean merge, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
public static void cacheResult(UserGroupRole userGroupRole)
userGroupRole
- the user group rolepublic static void cacheResult(List<UserGroupRole> userGroupRoles)
userGroupRoles
- the user group rolespublic static UserGroupRole create(UserGroupRolePK userGroupRolePK)
userGroupRolePK
- the primary key for the new user group role
public static UserGroupRole remove(UserGroupRolePK userGroupRolePK) throws NoSuchUserGroupRoleException, SystemException
userGroupRolePK
- the primary key of the user group role
NoSuchUserGroupRoleException
- if a user group role with the primary key could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole updateImpl(UserGroupRole userGroupRole, boolean merge) throws SystemException
SystemException
public static UserGroupRole findByPrimaryKey(UserGroupRolePK userGroupRolePK) throws NoSuchUserGroupRoleException, SystemException
NoSuchUserGroupRoleException
if it could not be found.
userGroupRolePK
- the primary key of the user group role
NoSuchUserGroupRoleException
- if a user group role with the primary key could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole fetchByPrimaryKey(UserGroupRolePK userGroupRolePK) throws SystemException
null
if it could not be found.
userGroupRolePK
- the primary key of the user group role
null
if a user group role with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<UserGroupRole> findByUserId(long userId) throws SystemException
userId
- the user ID
SystemException
- if a system exception occurredpublic static List<UserGroupRole> findByUserId(long userId, int start, int end) throws SystemException
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.
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)
SystemException
- if a system exception occurredpublic static List<UserGroupRole> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
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 (optionally null
)
SystemException
- if a system exception occurredpublic static UserGroupRole findByUserId_First(long userId, OrderByComparator orderByComparator) throws NoSuchUserGroupRoleException, SystemException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchUserGroupRoleException
- if a matching user group role could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole fetchByUserId_First(long userId, OrderByComparator orderByComparator) throws SystemException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching user group role could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole findByUserId_Last(long userId, OrderByComparator orderByComparator) throws NoSuchUserGroupRoleException, SystemException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchUserGroupRoleException
- if a matching user group role could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole fetchByUserId_Last(long userId, OrderByComparator orderByComparator) throws SystemException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching user group role could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole[] findByUserId_PrevAndNext(UserGroupRolePK userGroupRolePK, long userId, OrderByComparator orderByComparator) throws NoSuchUserGroupRoleException, SystemException
userGroupRolePK
- the primary key of the current user group roleuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchUserGroupRoleException
- if a user group role with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<UserGroupRole> findByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredpublic static List<UserGroupRole> findByGroupId(long groupId, int start, int end) throws SystemException
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.
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)
SystemException
- if a system exception occurredpublic static List<UserGroupRole> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
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 (optionally null
)
SystemException
- if a system exception occurredpublic static UserGroupRole findByGroupId_First(long groupId, OrderByComparator orderByComparator) throws NoSuchUserGroupRoleException, SystemException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchUserGroupRoleException
- if a matching user group role could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole fetchByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching user group role could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole findByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws NoSuchUserGroupRoleException, SystemException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchUserGroupRoleException
- if a matching user group role could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching user group role could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole[] findByGroupId_PrevAndNext(UserGroupRolePK userGroupRolePK, long groupId, OrderByComparator orderByComparator) throws NoSuchUserGroupRoleException, SystemException
userGroupRolePK
- the primary key of the current user group rolegroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchUserGroupRoleException
- if a user group role with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<UserGroupRole> findByRoleId(long roleId) throws SystemException
roleId
- the role ID
SystemException
- if a system exception occurredpublic static List<UserGroupRole> findByRoleId(long roleId, int start, int end) throws SystemException
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.
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)
SystemException
- if a system exception occurredpublic static List<UserGroupRole> findByRoleId(long roleId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
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 (optionally null
)
SystemException
- if a system exception occurredpublic static UserGroupRole findByRoleId_First(long roleId, OrderByComparator orderByComparator) throws NoSuchUserGroupRoleException, SystemException
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchUserGroupRoleException
- if a matching user group role could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole fetchByRoleId_First(long roleId, OrderByComparator orderByComparator) throws SystemException
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching user group role could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole findByRoleId_Last(long roleId, OrderByComparator orderByComparator) throws NoSuchUserGroupRoleException, SystemException
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchUserGroupRoleException
- if a matching user group role could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole fetchByRoleId_Last(long roleId, OrderByComparator orderByComparator) throws SystemException
roleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching user group role could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole[] findByRoleId_PrevAndNext(UserGroupRolePK userGroupRolePK, long roleId, OrderByComparator orderByComparator) throws NoSuchUserGroupRoleException, SystemException
userGroupRolePK
- the primary key of the current user group roleroleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchUserGroupRoleException
- if a user group role with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<UserGroupRole> findByU_G(long userId, long groupId) throws SystemException
userId
- the user IDgroupId
- the group ID
SystemException
- if a system exception occurredpublic static List<UserGroupRole> findByU_G(long userId, long groupId, int start, int end) throws SystemException
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.
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)
SystemException
- if a system exception occurredpublic static List<UserGroupRole> findByU_G(long userId, long groupId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
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 (optionally null
)
SystemException
- if a system exception occurredpublic static UserGroupRole findByU_G_First(long userId, long groupId, OrderByComparator orderByComparator) throws NoSuchUserGroupRoleException, SystemException
userId
- the user IDgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchUserGroupRoleException
- if a matching user group role could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole fetchByU_G_First(long userId, long groupId, OrderByComparator orderByComparator) throws SystemException
userId
- the user IDgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching user group role could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole findByU_G_Last(long userId, long groupId, OrderByComparator orderByComparator) throws NoSuchUserGroupRoleException, SystemException
userId
- the user IDgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchUserGroupRoleException
- if a matching user group role could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole fetchByU_G_Last(long userId, long groupId, OrderByComparator orderByComparator) throws SystemException
userId
- the user IDgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching user group role could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole[] findByU_G_PrevAndNext(UserGroupRolePK userGroupRolePK, long userId, long groupId, OrderByComparator orderByComparator) throws NoSuchUserGroupRoleException, SystemException
userGroupRolePK
- the primary key of the current user group roleuserId
- the user IDgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchUserGroupRoleException
- if a user group role with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<UserGroupRole> findByG_R(long groupId, long roleId) throws SystemException
groupId
- the group IDroleId
- the role ID
SystemException
- if a system exception occurredpublic static List<UserGroupRole> findByG_R(long groupId, long roleId, int start, int end) throws SystemException
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.
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)
SystemException
- if a system exception occurredpublic static List<UserGroupRole> findByG_R(long groupId, long roleId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
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 (optionally null
)
SystemException
- if a system exception occurredpublic static UserGroupRole findByG_R_First(long groupId, long roleId, OrderByComparator orderByComparator) throws NoSuchUserGroupRoleException, SystemException
groupId
- the group IDroleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchUserGroupRoleException
- if a matching user group role could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole fetchByG_R_First(long groupId, long roleId, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDroleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching user group role could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole findByG_R_Last(long groupId, long roleId, OrderByComparator orderByComparator) throws NoSuchUserGroupRoleException, SystemException
groupId
- the group IDroleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchUserGroupRoleException
- if a matching user group role could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole fetchByG_R_Last(long groupId, long roleId, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDroleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching user group role could not be found
SystemException
- if a system exception occurredpublic static UserGroupRole[] findByG_R_PrevAndNext(UserGroupRolePK userGroupRolePK, long groupId, long roleId, OrderByComparator orderByComparator) throws NoSuchUserGroupRoleException, SystemException
userGroupRolePK
- the primary key of the current user group rolegroupId
- the group IDroleId
- the role IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchUserGroupRoleException
- if a user group role with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<UserGroupRole> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<UserGroupRole> findAll(int start, int end) throws SystemException
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.
start
- the lower bound of the range of user group rolesend
- the upper bound of the range of user group roles (not inclusive)
SystemException
- if a system exception occurredpublic static List<UserGroupRole> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
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 (optionally null
)
SystemException
- if a system exception occurredpublic static void removeByUserId(long userId) throws SystemException
userId
- the user ID
SystemException
- if a system exception occurredpublic static void removeByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredpublic static void removeByRoleId(long roleId) throws SystemException
roleId
- the role ID
SystemException
- if a system exception occurredpublic static void removeByU_G(long userId, long groupId) throws SystemException
userId
- the user IDgroupId
- the group ID
SystemException
- if a system exception occurredpublic static void removeByG_R(long groupId, long roleId) throws SystemException
groupId
- the group IDroleId
- the role ID
SystemException
- if a system exception occurredpublic static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countByUserId(long userId) throws SystemException
userId
- the user ID
SystemException
- if a system exception occurredpublic static int countByGroupId(long groupId) throws SystemException
groupId
- the group ID
SystemException
- if a system exception occurredpublic static int countByRoleId(long roleId) throws SystemException
roleId
- the role ID
SystemException
- if a system exception occurredpublic static int countByU_G(long userId, long groupId) throws SystemException
userId
- the user IDgroupId
- the group ID
SystemException
- if a system exception occurredpublic static int countByG_R(long groupId, long roleId) throws SystemException
groupId
- the group IDroleId
- the role ID
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static UserGroupRolePersistence getPersistence()
public void setPersistence(UserGroupRolePersistence persistence)
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |