com.liferay.portal.service.persistence
Interface UserGroupRolePersistence

All Superinterfaces:
BasePersistence

@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface UserGroupRolePersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByG_R(long groupId, long roleId)
           
 int countByGroupId(long groupId)
           
 int countByRoleId(long roleId)
           
 int countByU_G(long userId, long groupId)
           
 int countByUserId(long userId)
           
 UserGroupRole create(UserGroupRolePK userGroupRolePK)
           
 UserGroupRole fetchByPrimaryKey(UserGroupRolePK userGroupRolePK)
           
 java.util.List<UserGroupRole> findAll()
           
 java.util.List<UserGroupRole> findAll(int start, int end)
           
 java.util.List<UserGroupRole> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroupRole findByG_R_First(long groupId, long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroupRole findByG_R_Last(long groupId, long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroupRole[] findByG_R_PrevAndNext(UserGroupRolePK userGroupRolePK, long groupId, long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<UserGroupRole> findByG_R(long groupId, long roleId)
           
 java.util.List<UserGroupRole> findByG_R(long groupId, long roleId, int start, int end)
           
 java.util.List<UserGroupRole> findByG_R(long groupId, long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroupRole findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroupRole findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroupRole[] findByGroupId_PrevAndNext(UserGroupRolePK userGroupRolePK, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<UserGroupRole> findByGroupId(long groupId)
           
 java.util.List<UserGroupRole> findByGroupId(long groupId, int start, int end)
           
 java.util.List<UserGroupRole> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroupRole findByPrimaryKey(UserGroupRolePK userGroupRolePK)
           
 UserGroupRole findByRoleId_First(long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroupRole findByRoleId_Last(long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroupRole[] findByRoleId_PrevAndNext(UserGroupRolePK userGroupRolePK, long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<UserGroupRole> findByRoleId(long roleId)
           
 java.util.List<UserGroupRole> findByRoleId(long roleId, int start, int end)
           
 java.util.List<UserGroupRole> findByRoleId(long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroupRole findByU_G_First(long userId, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroupRole findByU_G_Last(long userId, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroupRole[] findByU_G_PrevAndNext(UserGroupRolePK userGroupRolePK, long userId, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<UserGroupRole> findByU_G(long userId, long groupId)
           
 java.util.List<UserGroupRole> findByU_G(long userId, long groupId, int start, int end)
           
 java.util.List<UserGroupRole> findByU_G(long userId, long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroupRole findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroupRole findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 UserGroupRole[] findByUserId_PrevAndNext(UserGroupRolePK userGroupRolePK, long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<UserGroupRole> findByUserId(long userId)
           
 java.util.List<UserGroupRole> findByUserId(long userId, int start, int end)
           
 java.util.List<UserGroupRole> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 UserGroupRole remove(UserGroupRole userGroupRole)
           
 UserGroupRole remove(UserGroupRolePK userGroupRolePK)
           
 void removeAll()
           
 void removeByG_R(long groupId, long roleId)
           
 void removeByGroupId(long groupId)
           
 void removeByRoleId(long roleId)
           
 void removeByU_G(long userId, long groupId)
           
 void removeByUserId(long userId)
           
 UserGroupRole update(UserGroupRole userGroupRole)
          Deprecated. Use update(UserGroupRole userGroupRole, boolean merge).
 UserGroupRole update(UserGroupRole userGroupRole, boolean merge)
          Add, update, or merge, the entity.
 UserGroupRole updateImpl(UserGroupRole userGroupRole, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

UserGroupRole create(UserGroupRolePK userGroupRolePK)

remove

UserGroupRole remove(UserGroupRolePK userGroupRolePK)
                     throws NoSuchUserGroupRoleException,
                            com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

remove

UserGroupRole remove(UserGroupRole userGroupRole)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

UserGroupRole update(UserGroupRole userGroupRole)
                     throws com.liferay.portal.SystemException
Deprecated. Use update(UserGroupRole userGroupRole, boolean merge).

Throws:
com.liferay.portal.SystemException

update

UserGroupRole update(UserGroupRole userGroupRole,
                     boolean merge)
                     throws com.liferay.portal.SystemException
Add, update, or merge, the entity. This method also calls the model listeners to trigger the proper events associated with adding, deleting, or updating an entity.

Parameters:
userGroupRole - the entity to add, update, or merge
merge - boolean value for whether to merge the entity. The default value is false. Setting merge to true is more expensive and should only be true when userGroupRole is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

UserGroupRole updateImpl(UserGroupRole userGroupRole,
                         boolean merge)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
UserGroupRole findByPrimaryKey(UserGroupRolePK userGroupRolePK)
                               throws NoSuchUserGroupRoleException,
                                      com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

fetchByPrimaryKey

UserGroupRole fetchByPrimaryKey(UserGroupRolePK userGroupRolePK)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroupRole> findByUserId(long userId)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroupRole> findByUserId(long userId,
                                                         int start,
                                                         int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroupRole> findByUserId(long userId,
                                                         int start,
                                                         int end,
                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
UserGroupRole findByUserId_First(long userId,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws NoSuchUserGroupRoleException,
                                        com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByUserId_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
UserGroupRole findByUserId_Last(long userId,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws NoSuchUserGroupRoleException,
                                       com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByUserId_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
UserGroupRole[] findByUserId_PrevAndNext(UserGroupRolePK userGroupRolePK,
                                                       long userId,
                                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws NoSuchUserGroupRoleException,
                                                com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroupRole> findByGroupId(long groupId)
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroupRole> findByGroupId(long groupId,
                                                          int start,
                                                          int end)
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroupRole> findByGroupId(long groupId,
                                                          int start,
                                                          int end,
                                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
UserGroupRole findByGroupId_First(long groupId,
                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws NoSuchUserGroupRoleException,
                                         com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByGroupId_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
UserGroupRole findByGroupId_Last(long groupId,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws NoSuchUserGroupRoleException,
                                        com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByGroupId_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
UserGroupRole[] findByGroupId_PrevAndNext(UserGroupRolePK userGroupRolePK,
                                                        long groupId,
                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                          throws NoSuchUserGroupRoleException,
                                                 com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByRoleId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroupRole> findByRoleId(long roleId)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByRoleId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroupRole> findByRoleId(long roleId,
                                                         int start,
                                                         int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByRoleId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroupRole> findByRoleId(long roleId,
                                                         int start,
                                                         int end,
                                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByRoleId_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
UserGroupRole findByRoleId_First(long roleId,
                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws NoSuchUserGroupRoleException,
                                        com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByRoleId_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
UserGroupRole findByRoleId_Last(long roleId,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws NoSuchUserGroupRoleException,
                                       com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByRoleId_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
UserGroupRole[] findByRoleId_PrevAndNext(UserGroupRolePK userGroupRolePK,
                                                       long roleId,
                                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws NoSuchUserGroupRoleException,
                                                com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByU_G

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroupRole> findByU_G(long userId,
                                                      long groupId)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByU_G

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroupRole> findByU_G(long userId,
                                                      long groupId,
                                                      int start,
                                                      int end)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByU_G

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroupRole> findByU_G(long userId,
                                                      long groupId,
                                                      int start,
                                                      int end,
                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByU_G_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
UserGroupRole findByU_G_First(long userId,
                                            long groupId,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws NoSuchUserGroupRoleException,
                                     com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByU_G_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
UserGroupRole findByU_G_Last(long userId,
                                           long groupId,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws NoSuchUserGroupRoleException,
                                    com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByU_G_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
UserGroupRole[] findByU_G_PrevAndNext(UserGroupRolePK userGroupRolePK,
                                                    long userId,
                                                    long groupId,
                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws NoSuchUserGroupRoleException,
                                             com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByG_R

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroupRole> findByG_R(long groupId,
                                                      long roleId)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_R

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroupRole> findByG_R(long groupId,
                                                      long roleId,
                                                      int start,
                                                      int end)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_R

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroupRole> findByG_R(long groupId,
                                                      long roleId,
                                                      int start,
                                                      int end,
                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_R_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
UserGroupRole findByG_R_First(long groupId,
                                            long roleId,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws NoSuchUserGroupRoleException,
                                     com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByG_R_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
UserGroupRole findByG_R_Last(long groupId,
                                           long roleId,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws NoSuchUserGroupRoleException,
                                    com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findByG_R_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
UserGroupRole[] findByG_R_PrevAndNext(UserGroupRolePK userGroupRolePK,
                                                    long groupId,
                                                    long roleId,
                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws NoSuchUserGroupRoleException,
                                             com.liferay.portal.SystemException
Throws:
NoSuchUserGroupRoleException
com.liferay.portal.SystemException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                                    int start,
                                                                    int end)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroupRole> findAll()
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroupRole> findAll(int start,
                                                    int end)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<UserGroupRole> findAll(int start,
                                                    int end,
                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByUserId

void removeByUserId(long userId)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByGroupId

void removeByGroupId(long groupId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByRoleId

void removeByRoleId(long roleId)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByU_G

void removeByU_G(long userId,
                 long groupId)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByG_R

void removeByG_R(long groupId,
                 long roleId)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

void removeAll()
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByUserId(long userId)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByGroupId(long groupId)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByRoleId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByRoleId(long roleId)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByU_G

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByU_G(long userId,
                             long groupId)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_R

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByG_R(long groupId,
                             long roleId)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException