com.liferay.portal.service.persistence
Interface OrgGroupRolePersistence


public interface OrgGroupRolePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByGroupId(long groupId)
           
 int countByRoleId(long roleId)
           
 OrgGroupRole create(OrgGroupRolePK orgGroupRolePK)
           
 OrgGroupRole fetchByPrimaryKey(OrgGroupRolePK orgGroupRolePK)
           
 java.util.List<OrgGroupRole> findAll()
           
 java.util.List<OrgGroupRole> findAll(int begin, int end)
           
 java.util.List<OrgGroupRole> findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 OrgGroupRole findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 OrgGroupRole findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 OrgGroupRole[] findByGroupId_PrevAndNext(OrgGroupRolePK orgGroupRolePK, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<OrgGroupRole> findByGroupId(long groupId)
           
 java.util.List<OrgGroupRole> findByGroupId(long groupId, int begin, int end)
           
 java.util.List<OrgGroupRole> findByGroupId(long groupId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 OrgGroupRole findByPrimaryKey(OrgGroupRolePK orgGroupRolePK)
           
 OrgGroupRole findByRoleId_First(long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 OrgGroupRole findByRoleId_Last(long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 OrgGroupRole[] findByRoleId_PrevAndNext(OrgGroupRolePK orgGroupRolePK, long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<OrgGroupRole> findByRoleId(long roleId)
           
 java.util.List<OrgGroupRole> findByRoleId(long roleId, int begin, int end)
           
 java.util.List<OrgGroupRole> findByRoleId(long roleId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<OrgGroupRole> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List<OrgGroupRole> findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 OrgGroupRole remove(OrgGroupRole orgGroupRole)
           
 OrgGroupRole remove(OrgGroupRolePK orgGroupRolePK)
           
 void removeAll()
           
 void removeByGroupId(long groupId)
           
 void removeByRoleId(long roleId)
           
 OrgGroupRole update(OrgGroupRole orgGroupRole)
          Deprecated. Use update(OrgGroupRole orgGroupRole, boolean merge).
 OrgGroupRole update(OrgGroupRole orgGroupRole, boolean merge)
          Add, update, or merge, the entity.
 OrgGroupRole updateImpl(OrgGroupRole orgGroupRole, boolean merge)
           
 

Method Detail

create

OrgGroupRole create(OrgGroupRolePK orgGroupRolePK)

remove

OrgGroupRole remove(OrgGroupRolePK orgGroupRolePK)
                    throws com.liferay.portal.SystemException,
                           NoSuchOrgGroupRoleException
Throws:
com.liferay.portal.SystemException
NoSuchOrgGroupRoleException

remove

OrgGroupRole remove(OrgGroupRole orgGroupRole)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

OrgGroupRole update(OrgGroupRole orgGroupRole)
                    throws com.liferay.portal.SystemException
Deprecated. Use update(OrgGroupRole orgGroupRole, boolean merge).

Throws:
com.liferay.portal.SystemException

update

OrgGroupRole update(OrgGroupRole orgGroupRole,
                    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:
orgGroupRole - 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 orgGroupRole 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

OrgGroupRole updateImpl(OrgGroupRole orgGroupRole,
                        boolean merge)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

OrgGroupRole findByPrimaryKey(OrgGroupRolePK orgGroupRolePK)
                              throws com.liferay.portal.SystemException,
                                     NoSuchOrgGroupRoleException
Throws:
com.liferay.portal.SystemException
NoSuchOrgGroupRoleException

fetchByPrimaryKey

OrgGroupRole fetchByPrimaryKey(OrgGroupRolePK orgGroupRolePK)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

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

findByGroupId

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

findByGroupId

java.util.List<OrgGroupRole> 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

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

findByGroupId_Last

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

findByGroupId_PrevAndNext

OrgGroupRole[] findByGroupId_PrevAndNext(OrgGroupRolePK orgGroupRolePK,
                                         long groupId,
                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException,
                                                NoSuchOrgGroupRoleException
Throws:
com.liferay.portal.SystemException
NoSuchOrgGroupRoleException

findByRoleId

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

findByRoleId

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

findByRoleId

java.util.List<OrgGroupRole> 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

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

findByRoleId_Last

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

findByRoleId_PrevAndNext

OrgGroupRole[] findByRoleId_PrevAndNext(OrgGroupRolePK orgGroupRolePK,
                                        long roleId,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException,
                                               NoSuchOrgGroupRoleException
Throws:
com.liferay.portal.SystemException
NoSuchOrgGroupRoleException

findWithDynamicQuery

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

findWithDynamicQuery

java.util.List<OrgGroupRole> 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<OrgGroupRole> findAll()
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

java.util.List<OrgGroupRole> findAll(int begin,
                                     int end,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                     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

removeAll

void removeAll()
               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

countAll

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