com.liferay.portal.service.persistence
Interface UserGroupRolePersistence


public interface UserGroupRolePersistence

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 begin, int end)
           
 java.util.List<UserGroupRole> findAll(int begin, 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 begin, int end)
           
 java.util.List<UserGroupRole> findByG_R(long groupId, long roleId, int begin, 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 begin, int end)
           
 java.util.List<UserGroupRole> findByGroupId(long groupId, int begin, 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 begin, int end)
           
 java.util.List<UserGroupRole> findByRoleId(long roleId, int begin, 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 begin, int end)
           
 java.util.List<UserGroupRole> findByU_G(long userId, long groupId, int begin, 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 begin, int end)
           
 java.util.List<UserGroupRole> findByUserId(long userId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<UserGroupRole> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List<UserGroupRole> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, 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)
           
 

Method Detail

create

UserGroupRole create(UserGroupRolePK userGroupRolePK)

remove

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

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

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

fetchByPrimaryKey

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

findByUserId

java.util.List<UserGroupRole> findByUserId(long userId)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

java.util.List<UserGroupRole> findByUserId(long userId,
                                           int begin,
                                           int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

java.util.List<UserGroupRole> findByUserId(long userId,
                                           int begin,
                                           int end,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId_First

UserGroupRole findByUserId_First(long userId,
                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws com.liferay.portal.SystemException,
                                        NoSuchUserGroupRoleException
Throws:
com.liferay.portal.SystemException
NoSuchUserGroupRoleException

findByUserId_Last

UserGroupRole findByUserId_Last(long userId,
                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws com.liferay.portal.SystemException,
                                       NoSuchUserGroupRoleException
Throws:
com.liferay.portal.SystemException
NoSuchUserGroupRoleException

findByUserId_PrevAndNext

UserGroupRole[] findByUserId_PrevAndNext(UserGroupRolePK userGroupRolePK,
                                         long userId,
                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException,
                                                NoSuchUserGroupRoleException
Throws:
com.liferay.portal.SystemException
NoSuchUserGroupRoleException

findByGroupId

java.util.List<UserGroupRole> findByGroupId(long groupId)
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

java.util.List<UserGroupRole> findByGroupId(long groupId,
                                            int begin,
                                            int end)
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

java.util.List<UserGroupRole> findByGroupId(long groupId,
                                            int begin,
                                            int end,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId_First

UserGroupRole findByGroupId_First(long groupId,
                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchUserGroupRoleException
Throws:
com.liferay.portal.SystemException
NoSuchUserGroupRoleException

findByGroupId_Last

UserGroupRole findByGroupId_Last(long groupId,
                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws com.liferay.portal.SystemException,
                                        NoSuchUserGroupRoleException
Throws:
com.liferay.portal.SystemException
NoSuchUserGroupRoleException

findByGroupId_PrevAndNext

UserGroupRole[] findByGroupId_PrevAndNext(UserGroupRolePK userGroupRolePK,
                                          long groupId,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                          throws com.liferay.portal.SystemException,
                                                 NoSuchUserGroupRoleException
Throws:
com.liferay.portal.SystemException
NoSuchUserGroupRoleException

findByRoleId

java.util.List<UserGroupRole> findByRoleId(long roleId)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByRoleId

java.util.List<UserGroupRole> findByRoleId(long roleId,
                                           int begin,
                                           int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByRoleId

java.util.List<UserGroupRole> findByRoleId(long roleId,
                                           int begin,
                                           int end,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByRoleId_First

UserGroupRole findByRoleId_First(long roleId,
                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws com.liferay.portal.SystemException,
                                        NoSuchUserGroupRoleException
Throws:
com.liferay.portal.SystemException
NoSuchUserGroupRoleException

findByRoleId_Last

UserGroupRole findByRoleId_Last(long roleId,
                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws com.liferay.portal.SystemException,
                                       NoSuchUserGroupRoleException
Throws:
com.liferay.portal.SystemException
NoSuchUserGroupRoleException

findByRoleId_PrevAndNext

UserGroupRole[] findByRoleId_PrevAndNext(UserGroupRolePK userGroupRolePK,
                                         long roleId,
                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException,
                                                NoSuchUserGroupRoleException
Throws:
com.liferay.portal.SystemException
NoSuchUserGroupRoleException

findByU_G

java.util.List<UserGroupRole> findByU_G(long userId,
                                        long groupId)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByU_G

java.util.List<UserGroupRole> findByU_G(long userId,
                                        long groupId,
                                        int begin,
                                        int end)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByU_G

java.util.List<UserGroupRole> findByU_G(long userId,
                                        long groupId,
                                        int begin,
                                        int end,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByU_G_First

UserGroupRole findByU_G_First(long userId,
                              long groupId,
                              com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException,
                                     NoSuchUserGroupRoleException
Throws:
com.liferay.portal.SystemException
NoSuchUserGroupRoleException

findByU_G_Last

UserGroupRole findByU_G_Last(long userId,
                             long groupId,
                             com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws com.liferay.portal.SystemException,
                                    NoSuchUserGroupRoleException
Throws:
com.liferay.portal.SystemException
NoSuchUserGroupRoleException

findByU_G_PrevAndNext

UserGroupRole[] findByU_G_PrevAndNext(UserGroupRolePK userGroupRolePK,
                                      long userId,
                                      long groupId,
                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchUserGroupRoleException
Throws:
com.liferay.portal.SystemException
NoSuchUserGroupRoleException

findByG_R

java.util.List<UserGroupRole> findByG_R(long groupId,
                                        long roleId)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_R

java.util.List<UserGroupRole> findByG_R(long groupId,
                                        long roleId,
                                        int begin,
                                        int end)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_R

java.util.List<UserGroupRole> findByG_R(long groupId,
                                        long roleId,
                                        int begin,
                                        int end,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByG_R_First

UserGroupRole findByG_R_First(long groupId,
                              long roleId,
                              com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException,
                                     NoSuchUserGroupRoleException
Throws:
com.liferay.portal.SystemException
NoSuchUserGroupRoleException

findByG_R_Last

UserGroupRole findByG_R_Last(long groupId,
                             long roleId,
                             com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws com.liferay.portal.SystemException,
                                    NoSuchUserGroupRoleException
Throws:
com.liferay.portal.SystemException
NoSuchUserGroupRoleException

findByG_R_PrevAndNext

UserGroupRole[] findByG_R_PrevAndNext(UserGroupRolePK userGroupRolePK,
                                      long groupId,
                                      long roleId,
                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchUserGroupRoleException
Throws:
com.liferay.portal.SystemException
NoSuchUserGroupRoleException

findWithDynamicQuery

java.util.List<UserGroupRole> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

java.util.List<UserGroupRole> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                                   int begin,
                                                   int end)
                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<UserGroupRole> findAll()
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<UserGroupRole> findAll(int begin,
                                      int end)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<UserGroupRole> findAll(int begin,
                                      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

int countByUserId(long userId)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByGroupId

int countByGroupId(long groupId)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByRoleId

int countByRoleId(long roleId)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByU_G

int countByU_G(long userId,
               long groupId)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByG_R

int countByG_R(long groupId,
               long roleId)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException