com.liferay.portal.service.persistence
Interface OrgGroupRolePersistence

All Superinterfaces:
BasePersistence

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

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 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

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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

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

findByGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<OrgGroupRole> 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<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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

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

findByRoleId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<OrgGroupRole> 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<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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

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

findAll

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

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@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

countAll

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