com.liferay.portal.service.persistence
Interface OrgGroupRolePersistence

All Superinterfaces:
BasePersistence

public interface OrgGroupRolePersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 void cacheResult(java.util.List<OrgGroupRole> orgGroupRoles)
           
 void cacheResult(OrgGroupRole orgGroupRole)
           
 void clearCache()
           
 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 start, int end)
           
 java.util.List<OrgGroupRole> findAll(int start, 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 start, int end)
           
 java.util.List<OrgGroupRole> findByGroupId(long groupId, int start, 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 start, int end)
           
 java.util.List<OrgGroupRole> findByRoleId(long roleId, 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)
           
 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)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

cacheResult

void cacheResult(OrgGroupRole orgGroupRole)

cacheResult

void cacheResult(java.util.List<OrgGroupRole> orgGroupRoles)

clearCache

void clearCache()
Specified by:
clearCache in interface BasePersistence

create

OrgGroupRole create(OrgGroupRolePK orgGroupRolePK)

remove

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

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 NoSuchOrgGroupRoleException,
                                     com.liferay.portal.SystemException
Throws:
NoSuchOrgGroupRoleException
com.liferay.portal.SystemException

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 start,
                                           int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByGroupId

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

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

findByGroupId_Last

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

findByGroupId_PrevAndNext

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

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 start,
                                          int end)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByRoleId

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

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

findByRoleId_Last

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

findByRoleId_PrevAndNext

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

findWithDynamicQuery

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

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

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

findAll

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

findAll

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