|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.OrgGroupPermissionUtil
public class OrgGroupPermissionUtil
The persistence utility for the org group permission service. This utility wraps OrgGroupPermissionPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Never modify this class directly. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
Caching information and settings can be found in portal.properties
OrgGroupPermissionPersistence
,
OrgGroupPermissionPersistenceImpl
Constructor Summary | |
---|---|
OrgGroupPermissionUtil()
|
Method Summary | |
---|---|
static void |
cacheResult(List<OrgGroupPermission> orgGroupPermissions)
Caches the org group permissions in the entity cache if it is enabled. |
static void |
cacheResult(OrgGroupPermission orgGroupPermission)
Caches the org group permission in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(OrgGroupPermission orgGroupPermission)
|
static int |
countAll()
Counts all the org group permissions. |
static int |
countByGroupId(long groupId)
Counts all the org group permissions where groupId = ?. |
static int |
countByPermissionId(long permissionId)
Counts all the org group permissions where permissionId = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static OrgGroupPermission |
create(OrgGroupPermissionPK orgGroupPermissionPK)
Creates a new org group permission with the primary key. |
static OrgGroupPermission |
fetchByPrimaryKey(OrgGroupPermissionPK orgGroupPermissionPK)
Finds the org group permission with the primary key or returns null if it could not be found. |
static List<OrgGroupPermission> |
findAll()
Finds all the org group permissions. |
static List<OrgGroupPermission> |
findAll(int start,
int end)
Finds a range of all the org group permissions. |
static List<OrgGroupPermission> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the org group permissions. |
static OrgGroupPermission |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Finds the first org group permission in the ordered set where groupId = ?. |
static OrgGroupPermission |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Finds the last org group permission in the ordered set where groupId = ?. |
static 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 = ?. |
static List<OrgGroupPermission> |
findByGroupId(long groupId)
Finds all the org group permissions where groupId = ?. |
static List<OrgGroupPermission> |
findByGroupId(long groupId,
int start,
int end)
Finds a range of all the org group permissions where groupId = ?. |
static List<OrgGroupPermission> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the org group permissions where groupId = ?. |
static OrgGroupPermission |
findByPermissionId_First(long permissionId,
OrderByComparator orderByComparator)
Finds the first org group permission in the ordered set where permissionId = ?. |
static OrgGroupPermission |
findByPermissionId_Last(long permissionId,
OrderByComparator orderByComparator)
Finds the last org group permission in the ordered set where permissionId = ?. |
static 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 = ?. |
static List<OrgGroupPermission> |
findByPermissionId(long permissionId)
Finds all the org group permissions where permissionId = ?. |
static List<OrgGroupPermission> |
findByPermissionId(long permissionId,
int start,
int end)
Finds a range of all the org group permissions where permissionId = ?. |
static List<OrgGroupPermission> |
findByPermissionId(long permissionId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the org group permissions where permissionId = ?. |
static OrgGroupPermission |
findByPrimaryKey(OrgGroupPermissionPK orgGroupPermissionPK)
Finds the org group permission with the primary key or throws a NoSuchOrgGroupPermissionException if it could not be found. |
static List<OrgGroupPermission> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<OrgGroupPermission> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<OrgGroupPermission> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static OrgGroupPermissionPersistence |
getPersistence()
|
static OrgGroupPermission |
remove(OrgGroupPermission orgGroupPermission)
|
static OrgGroupPermission |
remove(OrgGroupPermissionPK orgGroupPermissionPK)
Removes the org group permission with the primary key from the database. |
static void |
removeAll()
Removes all the org group permissions from the database. |
static void |
removeByGroupId(long groupId)
Removes all the org group permissions where groupId = ? from the database. |
static void |
removeByPermissionId(long permissionId)
Removes all the org group permissions where permissionId = ? from the database. |
void |
setPersistence(OrgGroupPermissionPersistence persistence)
|
static OrgGroupPermission |
update(OrgGroupPermission orgGroupPermission,
boolean merge)
|
static OrgGroupPermission |
update(OrgGroupPermission orgGroupPermission,
boolean merge,
ServiceContext serviceContext)
|
static OrgGroupPermission |
updateImpl(OrgGroupPermission orgGroupPermission,
boolean merge)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrgGroupPermissionUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(OrgGroupPermission orgGroupPermission)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<OrgGroupPermission> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<OrgGroupPermission> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<OrgGroupPermission> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static OrgGroupPermission remove(OrgGroupPermission orgGroupPermission) throws SystemException
SystemException
BasePersistence.remove(com.liferay.portal.model.BaseModel)
public static OrgGroupPermission update(OrgGroupPermission orgGroupPermission, boolean merge) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static OrgGroupPermission update(OrgGroupPermission orgGroupPermission, boolean merge, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
public static void cacheResult(OrgGroupPermission orgGroupPermission)
orgGroupPermission
- the org group permission to cachepublic static void cacheResult(List<OrgGroupPermission> orgGroupPermissions)
orgGroupPermissions
- the org group permissions to cachepublic static OrgGroupPermission create(OrgGroupPermissionPK orgGroupPermissionPK)
orgGroupPermissionPK
- the primary key for the new org group permission
public static OrgGroupPermission remove(OrgGroupPermissionPK orgGroupPermissionPK) throws NoSuchOrgGroupPermissionException, SystemException
orgGroupPermissionPK
- the primary key of the org group permission to remove
NoSuchOrgGroupPermissionException
- if a org group permission with the primary key could not be found
SystemException
- if a system exception occurredpublic static OrgGroupPermission updateImpl(OrgGroupPermission orgGroupPermission, boolean merge) throws SystemException
SystemException
public static OrgGroupPermission findByPrimaryKey(OrgGroupPermissionPK orgGroupPermissionPK) throws NoSuchOrgGroupPermissionException, SystemException
NoSuchOrgGroupPermissionException
if it could not be found.
orgGroupPermissionPK
- the primary key of the org group permission to find
NoSuchOrgGroupPermissionException
- if a org group permission with the primary key could not be found
SystemException
- if a system exception occurredpublic static OrgGroupPermission fetchByPrimaryKey(OrgGroupPermissionPK orgGroupPermissionPK) throws SystemException
null
if it could not be found.
orgGroupPermissionPK
- the primary key of the org group permission to find
null
if a org group permission with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<OrgGroupPermission> findByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic static 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 id to search withstart
- the lower bound of the range of org group permissions to returnend
- the upper bound of the range of org group permissions to return (not inclusive)
SystemException
- if a system exception occurredpublic static 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 id to search withstart
- the lower bound of the range of org group permissions to returnend
- the upper bound of the range of org group permissions to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static 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 id to search withorderByComparator
- the comparator to order the set by
NoSuchOrgGroupPermissionException
- if a matching org group permission could not be found
SystemException
- if a system exception occurredpublic static 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 id to search withorderByComparator
- the comparator to order the set by
NoSuchOrgGroupPermissionException
- if a matching org group permission could not be found
SystemException
- if a system exception occurredpublic static 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 id to search withorderByComparator
- the comparator to order the set by
NoSuchOrgGroupPermissionException
- if a org group permission with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<OrgGroupPermission> findByPermissionId(long permissionId) throws SystemException
permissionId
- the permission id to search with
SystemException
- if a system exception occurredpublic static 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 id to search withstart
- the lower bound of the range of org group permissions to returnend
- the upper bound of the range of org group permissions to return (not inclusive)
SystemException
- if a system exception occurredpublic static 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 id to search withstart
- the lower bound of the range of org group permissions to returnend
- the upper bound of the range of org group permissions to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static 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 id to search withorderByComparator
- the comparator to order the set by
NoSuchOrgGroupPermissionException
- if a matching org group permission could not be found
SystemException
- if a system exception occurredpublic static 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 id to search withorderByComparator
- the comparator to order the set by
NoSuchOrgGroupPermissionException
- if a matching org group permission could not be found
SystemException
- if a system exception occurredpublic static 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 id to search withorderByComparator
- the comparator to order the set by
NoSuchOrgGroupPermissionException
- if a org group permission with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<OrgGroupPermission> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static 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 permissions to returnend
- the upper bound of the range of org group permissions to return (not inclusive)
SystemException
- if a system exception occurredpublic static 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 permissions to returnend
- the upper bound of the range of org group permissions to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static void removeByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic static void removeByPermissionId(long permissionId) throws SystemException
permissionId
- the permission id to search with
SystemException
- if a system exception occurredpublic static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic static int countByPermissionId(long permissionId) throws SystemException
permissionId
- the permission id to search with
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static OrgGroupPermissionPersistence getPersistence()
public void setPersistence(OrgGroupPermissionPersistence persistence)
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |