Liferay 6.0.5

com.liferay.portal.service.persistence
Interface OrgGroupPermissionPersistence

All Superinterfaces:
BasePersistence<OrgGroupPermission>
All Known Implementing Classes:
OrgGroupPermissionPersistenceImpl

public interface OrgGroupPermissionPersistence
extends BasePersistence<OrgGroupPermission>

The persistence interface for the org group permission service.

Never modify or reference this interface directly. Always use OrgGroupPermissionUtil to access the org group permission persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface.

Caching information and settings can be found in portal.properties

See Also:
OrgGroupPermissionPersistenceImpl, OrgGroupPermissionUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Method Summary
 void cacheResult(List<OrgGroupPermission> orgGroupPermissions)
          Caches the org group permissions in the entity cache if it is enabled.
 void cacheResult(OrgGroupPermission orgGroupPermission)
          Caches the org group permission in the entity cache if it is enabled.
 int countAll()
          Counts all the org group permissions.
 int countByGroupId(long groupId)
          Counts all the org group permissions where groupId = ?.
 int countByPermissionId(long permissionId)
          Counts all the org group permissions where permissionId = ?.
 OrgGroupPermission create(OrgGroupPermissionPK orgGroupPermissionPK)
          Creates a new org group permission with the primary key.
 OrgGroupPermission fetchByPrimaryKey(OrgGroupPermissionPK orgGroupPermissionPK)
          Finds the org group permission with the primary key or returns null if it could not be found.
 List<OrgGroupPermission> findAll()
          Finds all the org group permissions.
 List<OrgGroupPermission> findAll(int start, int end)
          Finds a range of all the org group permissions.
 List<OrgGroupPermission> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the org group permissions.
 OrgGroupPermission findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first org group permission in the ordered set where groupId = ?.
 OrgGroupPermission findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last org group permission in the ordered set where groupId = ?.
 OrgGroupPermission[] findByGroupId_PrevAndNext(OrgGroupPermissionPK orgGroupPermissionPK, long groupId, OrderByComparator orderByComparator)
          Finds the org group permissions before and after the current org group permission in the ordered set where groupId = ?.
 List<OrgGroupPermission> findByGroupId(long groupId)
          Finds all the org group permissions where groupId = ?.
 List<OrgGroupPermission> findByGroupId(long groupId, int start, int end)
          Finds a range of all the org group permissions where groupId = ?.
 List<OrgGroupPermission> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the org group permissions where groupId = ?.
 OrgGroupPermission findByPermissionId_First(long permissionId, OrderByComparator orderByComparator)
          Finds the first org group permission in the ordered set where permissionId = ?.
 OrgGroupPermission findByPermissionId_Last(long permissionId, OrderByComparator orderByComparator)
          Finds the last org group permission in the ordered set where permissionId = ?.
 OrgGroupPermission[] findByPermissionId_PrevAndNext(OrgGroupPermissionPK orgGroupPermissionPK, long permissionId, OrderByComparator orderByComparator)
          Finds the org group permissions before and after the current org group permission in the ordered set where permissionId = ?.
 List<OrgGroupPermission> findByPermissionId(long permissionId)
          Finds all the org group permissions where permissionId = ?.
 List<OrgGroupPermission> findByPermissionId(long permissionId, int start, int end)
          Finds a range of all the org group permissions where permissionId = ?.
 List<OrgGroupPermission> findByPermissionId(long permissionId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the org group permissions where permissionId = ?.
 OrgGroupPermission findByPrimaryKey(OrgGroupPermissionPK orgGroupPermissionPK)
          Finds the org group permission with the primary key or throws a NoSuchOrgGroupPermissionException if it could not be found.
 OrgGroupPermission remove(OrgGroupPermissionPK orgGroupPermissionPK)
          Removes the org group permission with the primary key from the database.
 void removeAll()
          Removes all the org group permissions from the database.
 void removeByGroupId(long groupId)
          Removes all the org group permissions where groupId = ? from the database.
 void removeByPermissionId(long permissionId)
          Removes all the org group permissions where permissionId = ? from the database.
 OrgGroupPermission updateImpl(OrgGroupPermission orgGroupPermission, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

void cacheResult(OrgGroupPermission orgGroupPermission)
Caches the org group permission in the entity cache if it is enabled.

Parameters:
orgGroupPermission - the org group permission to cache

cacheResult

void cacheResult(List<OrgGroupPermission> orgGroupPermissions)
Caches the org group permissions in the entity cache if it is enabled.

Parameters:
orgGroupPermissions - the org group permissions to cache

create

OrgGroupPermission create(OrgGroupPermissionPK orgGroupPermissionPK)
Creates a new org group permission with the primary key. Does not add the org group permission to the database.

Parameters:
orgGroupPermissionPK - the primary key for the new org group permission
Returns:
the new org group permission

remove

OrgGroupPermission remove(OrgGroupPermissionPK orgGroupPermissionPK)
                          throws NoSuchOrgGroupPermissionException,
                                 SystemException
Removes the org group permission with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
orgGroupPermissionPK - the primary key of the org group permission to remove
Returns:
the org group permission that was removed
Throws:
NoSuchOrgGroupPermissionException - if a org group permission with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

OrgGroupPermission updateImpl(OrgGroupPermission orgGroupPermission,
                              boolean merge)
                              throws SystemException
Throws:
SystemException

findByPrimaryKey

OrgGroupPermission findByPrimaryKey(OrgGroupPermissionPK orgGroupPermissionPK)
                                    throws NoSuchOrgGroupPermissionException,
                                           SystemException
Finds the org group permission with the primary key or throws a NoSuchOrgGroupPermissionException if it could not be found.

Parameters:
orgGroupPermissionPK - the primary key of the org group permission to find
Returns:
the org group permission
Throws:
NoSuchOrgGroupPermissionException - if a org group permission with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

OrgGroupPermission fetchByPrimaryKey(OrgGroupPermissionPK orgGroupPermissionPK)
                                     throws SystemException
Finds the org group permission with the primary key or returns null if it could not be found.

Parameters:
orgGroupPermissionPK - the primary key of the org group permission to find
Returns:
the org group permission, or null if a org group permission with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId

List<OrgGroupPermission> findByGroupId(long groupId)
                                       throws SystemException
Finds all the org group permissions where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the matching org group permissions
Throws:
SystemException - if a system exception occurred

findByGroupId

List<OrgGroupPermission> findByGroupId(long groupId,
                                       int start,
                                       int end)
                                       throws SystemException
Finds a range of all the org group permissions where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of org group permissions to return
end - the upper bound of the range of org group permissions to return (not inclusive)
Returns:
the range of matching org group permissions
Throws:
SystemException - if a system exception occurred

findByGroupId

List<OrgGroupPermission> findByGroupId(long groupId,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                       throws SystemException
Finds an ordered range of all the org group permissions where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
start - the lower bound of the range of org group permissions to return
end - the upper bound of the range of org group permissions to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching org group permissions
Throws:
SystemException - if a system exception occurred

findByGroupId_First

OrgGroupPermission findByGroupId_First(long groupId,
                                       OrderByComparator orderByComparator)
                                       throws NoSuchOrgGroupPermissionException,
                                              SystemException
Finds the first org group permission in the ordered set where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching org group permission
Throws:
NoSuchOrgGroupPermissionException - if a matching org group permission could not be found
SystemException - if a system exception occurred

findByGroupId_Last

OrgGroupPermission findByGroupId_Last(long groupId,
                                      OrderByComparator orderByComparator)
                                      throws NoSuchOrgGroupPermissionException,
                                             SystemException
Finds the last org group permission in the ordered set where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching org group permission
Throws:
NoSuchOrgGroupPermissionException - if a matching org group permission could not be found
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

OrgGroupPermission[] findByGroupId_PrevAndNext(OrgGroupPermissionPK orgGroupPermissionPK,
                                               long groupId,
                                               OrderByComparator orderByComparator)
                                               throws NoSuchOrgGroupPermissionException,
                                                      SystemException
Finds the org group permissions before and after the current org group permission in the ordered set where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
orgGroupPermissionPK - the primary key of the current org group permission
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next org group permission
Throws:
NoSuchOrgGroupPermissionException - if a org group permission with the primary key could not be found
SystemException - if a system exception occurred

findByPermissionId

List<OrgGroupPermission> findByPermissionId(long permissionId)
                                            throws SystemException
Finds all the org group permissions where permissionId = ?.

Parameters:
permissionId - the permission id to search with
Returns:
the matching org group permissions
Throws:
SystemException - if a system exception occurred

findByPermissionId

List<OrgGroupPermission> findByPermissionId(long permissionId,
                                            int start,
                                            int end)
                                            throws SystemException
Finds a range of all the org group permissions where permissionId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
permissionId - the permission id to search with
start - the lower bound of the range of org group permissions to return
end - the upper bound of the range of org group permissions to return (not inclusive)
Returns:
the range of matching org group permissions
Throws:
SystemException - if a system exception occurred

findByPermissionId

List<OrgGroupPermission> findByPermissionId(long permissionId,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                            throws SystemException
Finds an ordered range of all the org group permissions where permissionId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
permissionId - the permission id to search with
start - the lower bound of the range of org group permissions to return
end - the upper bound of the range of org group permissions to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching org group permissions
Throws:
SystemException - if a system exception occurred

findByPermissionId_First

OrgGroupPermission findByPermissionId_First(long permissionId,
                                            OrderByComparator orderByComparator)
                                            throws NoSuchOrgGroupPermissionException,
                                                   SystemException
Finds the first org group permission in the ordered set where permissionId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
permissionId - the permission id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching org group permission
Throws:
NoSuchOrgGroupPermissionException - if a matching org group permission could not be found
SystemException - if a system exception occurred

findByPermissionId_Last

OrgGroupPermission findByPermissionId_Last(long permissionId,
                                           OrderByComparator orderByComparator)
                                           throws NoSuchOrgGroupPermissionException,
                                                  SystemException
Finds the last org group permission in the ordered set where permissionId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
permissionId - the permission id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching org group permission
Throws:
NoSuchOrgGroupPermissionException - if a matching org group permission could not be found
SystemException - if a system exception occurred

findByPermissionId_PrevAndNext

OrgGroupPermission[] findByPermissionId_PrevAndNext(OrgGroupPermissionPK orgGroupPermissionPK,
                                                    long permissionId,
                                                    OrderByComparator orderByComparator)
                                                    throws NoSuchOrgGroupPermissionException,
                                                           SystemException
Finds the org group permissions before and after the current org group permission in the ordered set where permissionId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
orgGroupPermissionPK - the primary key of the current org group permission
permissionId - the permission id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next org group permission
Throws:
NoSuchOrgGroupPermissionException - if a org group permission with the primary key could not be found
SystemException - if a system exception occurred

findAll

List<OrgGroupPermission> findAll()
                                 throws SystemException
Finds all the org group permissions.

Returns:
the org group permissions
Throws:
SystemException - if a system exception occurred

findAll

List<OrgGroupPermission> findAll(int start,
                                 int end)
                                 throws SystemException
Finds a range of all the org group permissions.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of org group permissions to return
end - the upper bound of the range of org group permissions to return (not inclusive)
Returns:
the range of org group permissions
Throws:
SystemException - if a system exception occurred

findAll

List<OrgGroupPermission> findAll(int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Finds an ordered range of all the org group permissions.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of org group permissions to return
end - the upper bound of the range of org group permissions to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of org group permissions
Throws:
SystemException - if a system exception occurred

removeByGroupId

void removeByGroupId(long groupId)
                     throws SystemException
Removes all the org group permissions where groupId = ? from the database.

Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByPermissionId

void removeByPermissionId(long permissionId)
                          throws SystemException
Removes all the org group permissions where permissionId = ? from the database.

Parameters:
permissionId - the permission id to search with
Throws:
SystemException - if a system exception occurred

removeAll

void removeAll()
               throws SystemException
Removes all the org group permissions from the database.

Throws:
SystemException - if a system exception occurred

countByGroupId

int countByGroupId(long groupId)
                   throws SystemException
Counts all the org group permissions where groupId = ?.

Parameters:
groupId - the group id to search with
Returns:
the number of matching org group permissions
Throws:
SystemException - if a system exception occurred

countByPermissionId

int countByPermissionId(long permissionId)
                        throws SystemException
Counts all the org group permissions where permissionId = ?.

Parameters:
permissionId - the permission id to search with
Returns:
the number of matching org group permissions
Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Counts all the org group permissions.

Returns:
the number of org group permissions
Throws:
SystemException - if a system exception occurred

Liferay 6.0.5