|
Liferay 6.1.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OrgGroupPermissionPersistence
The persistence interface for the org group permission service.
Caching information and settings can be found in portal.properties
OrgGroupPermissionPersistenceImpl,
OrgGroupPermissionUtil| 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()
Returns the number of org group permissions. |
int |
countByGroupId(long groupId)
Returns the number of org group permissions where groupId = ?. |
int |
countByPermissionId(long permissionId)
Returns the number of org group permissions where permissionId = ?. |
OrgGroupPermission |
create(OrgGroupPermissionPK orgGroupPermissionPK)
Creates a new org group permission with the primary key. |
OrgGroupPermission |
fetchByPrimaryKey(OrgGroupPermissionPK orgGroupPermissionPK)
Returns the org group permission with the primary key or returns null if it could not be found. |
List<OrgGroupPermission> |
findAll()
Returns all the org group permissions. |
List<OrgGroupPermission> |
findAll(int start,
int end)
Returns a range of all the org group permissions. |
List<OrgGroupPermission> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the org group permissions. |
OrgGroupPermission |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first org group permission in the ordered set where groupId = ?. |
OrgGroupPermission |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last org group permission in the ordered set where groupId = ?. |
OrgGroupPermission[] |
findByGroupId_PrevAndNext(OrgGroupPermissionPK orgGroupPermissionPK,
long groupId,
OrderByComparator orderByComparator)
Returns the org group permissions before and after the current org group permission in the ordered set where groupId = ?. |
List<OrgGroupPermission> |
findByGroupId(long groupId)
Returns all the org group permissions where groupId = ?. |
List<OrgGroupPermission> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the org group permissions where groupId = ?. |
List<OrgGroupPermission> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the org group permissions where groupId = ?. |
OrgGroupPermission |
findByPermissionId_First(long permissionId,
OrderByComparator orderByComparator)
Returns the first org group permission in the ordered set where permissionId = ?. |
OrgGroupPermission |
findByPermissionId_Last(long permissionId,
OrderByComparator orderByComparator)
Returns the last org group permission in the ordered set where permissionId = ?. |
OrgGroupPermission[] |
findByPermissionId_PrevAndNext(OrgGroupPermissionPK orgGroupPermissionPK,
long permissionId,
OrderByComparator orderByComparator)
Returns the org group permissions before and after the current org group permission in the ordered set where permissionId = ?. |
List<OrgGroupPermission> |
findByPermissionId(long permissionId)
Returns all the org group permissions where permissionId = ?. |
List<OrgGroupPermission> |
findByPermissionId(long permissionId,
int start,
int end)
Returns a range of all the org group permissions where permissionId = ?. |
List<OrgGroupPermission> |
findByPermissionId(long permissionId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the org group permissions where permissionId = ?. |
OrgGroupPermission |
findByPrimaryKey(OrgGroupPermissionPK orgGroupPermissionPK)
Returns the org group permission with the primary key or throws a NoSuchOrgGroupPermissionException if it could not be found. |
OrgGroupPermission |
remove(OrgGroupPermission orgGroupPermission)
Removes the model instance from the database. |
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, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update |
| Method Detail |
|---|
void cacheResult(OrgGroupPermission orgGroupPermission)
orgGroupPermission - the org group permissionvoid cacheResult(List<OrgGroupPermission> orgGroupPermissions)
orgGroupPermissions - the org group permissionsOrgGroupPermission create(OrgGroupPermissionPK orgGroupPermissionPK)
orgGroupPermissionPK - the primary key for the new org group permission
OrgGroupPermission remove(OrgGroupPermissionPK orgGroupPermissionPK)
throws NoSuchOrgGroupPermissionException,
SystemException
orgGroupPermissionPK - the primary key of the org group permission
NoSuchOrgGroupPermissionException - if a org group permission with the primary key could not be found
SystemException - if a system exception occurred
OrgGroupPermission updateImpl(OrgGroupPermission orgGroupPermission,
boolean merge)
throws SystemException
SystemException
OrgGroupPermission findByPrimaryKey(OrgGroupPermissionPK orgGroupPermissionPK)
throws NoSuchOrgGroupPermissionException,
SystemException
NoSuchOrgGroupPermissionException if it could not be found.
orgGroupPermissionPK - the primary key of the org group permission
NoSuchOrgGroupPermissionException - if a org group permission with the primary key could not be found
SystemException - if a system exception occurred
OrgGroupPermission fetchByPrimaryKey(OrgGroupPermissionPK orgGroupPermissionPK)
throws SystemException
null if it could not be found.
orgGroupPermissionPK - the primary key of the org group permission
null if a org group permission with the primary key could not be found
SystemException - if a system exception occurred
List<OrgGroupPermission> findByGroupId(long groupId)
throws SystemException
groupId - the group ID
SystemException - if a system exception occurred
List<OrgGroupPermission> findByGroupId(long groupId,
int start,
int end)
throws SystemException
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.
groupId - the group IDstart - the lower bound of the range of org group permissionsend - the upper bound of the range of org group permissions (not inclusive)
SystemException - if a system exception occurred
List<OrgGroupPermission> findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
groupId - the group IDstart - the lower bound of the range of org group permissionsend - the upper bound of the range of org group permissions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
OrgGroupPermission findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
throws NoSuchOrgGroupPermissionException,
SystemException
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.
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrgGroupPermissionException - if a matching org group permission could not be found
SystemException - if a system exception occurred
OrgGroupPermission findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
throws NoSuchOrgGroupPermissionException,
SystemException
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.
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrgGroupPermissionException - if a matching org group permission could not be found
SystemException - if a system exception occurred
OrgGroupPermission[] findByGroupId_PrevAndNext(OrgGroupPermissionPK orgGroupPermissionPK,
long groupId,
OrderByComparator orderByComparator)
throws NoSuchOrgGroupPermissionException,
SystemException
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.
orgGroupPermissionPK - the primary key of the current org group permissiongroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrgGroupPermissionException - if a org group permission with the primary key could not be found
SystemException - if a system exception occurred
List<OrgGroupPermission> findByPermissionId(long permissionId)
throws SystemException
permissionId - the permission ID
SystemException - if a system exception occurred
List<OrgGroupPermission> findByPermissionId(long permissionId,
int start,
int end)
throws SystemException
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.
permissionId - the permission IDstart - the lower bound of the range of org group permissionsend - the upper bound of the range of org group permissions (not inclusive)
SystemException - if a system exception occurred
List<OrgGroupPermission> findByPermissionId(long permissionId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
permissionId - the permission IDstart - the lower bound of the range of org group permissionsend - the upper bound of the range of org group permissions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
OrgGroupPermission findByPermissionId_First(long permissionId,
OrderByComparator orderByComparator)
throws NoSuchOrgGroupPermissionException,
SystemException
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.
permissionId - the permission IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrgGroupPermissionException - if a matching org group permission could not be found
SystemException - if a system exception occurred
OrgGroupPermission findByPermissionId_Last(long permissionId,
OrderByComparator orderByComparator)
throws NoSuchOrgGroupPermissionException,
SystemException
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.
permissionId - the permission IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrgGroupPermissionException - if a matching org group permission could not be found
SystemException - if a system exception occurred
OrgGroupPermission[] findByPermissionId_PrevAndNext(OrgGroupPermissionPK orgGroupPermissionPK,
long permissionId,
OrderByComparator orderByComparator)
throws NoSuchOrgGroupPermissionException,
SystemException
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.
orgGroupPermissionPK - the primary key of the current org group permissionpermissionId - the permission IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrgGroupPermissionException - if a org group permission with the primary key could not be found
SystemException - if a system exception occurred
List<OrgGroupPermission> findAll()
throws SystemException
SystemException - if a system exception occurred
List<OrgGroupPermission> findAll(int start,
int end)
throws SystemException
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.
start - the lower bound of the range of org group permissionsend - the upper bound of the range of org group permissions (not inclusive)
SystemException - if a system exception occurred
List<OrgGroupPermission> findAll(int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
start - the lower bound of the range of org group permissionsend - the upper bound of the range of org group permissions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
void removeByGroupId(long groupId)
throws SystemException
groupId - the group ID
SystemException - if a system exception occurred
void removeByPermissionId(long permissionId)
throws SystemException
permissionId - the permission ID
SystemException - if a system exception occurred
void removeAll()
throws SystemException
SystemException - if a system exception occurred
int countByGroupId(long groupId)
throws SystemException
groupId - the group ID
SystemException - if a system exception occurred
int countByPermissionId(long permissionId)
throws SystemException
permissionId - the permission ID
SystemException - if a system exception occurred
int countAll()
throws SystemException
SystemException - if a system exception occurred
OrgGroupPermission remove(OrgGroupPermission orgGroupPermission)
throws SystemException
BasePersistence
remove in interface BasePersistence<OrgGroupPermission>orgGroupPermission - the model instance to remove
SystemException - if a system exception occurred
|
Liferay 6.1.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||