|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.ResourceActionUtil
public class ResourceActionUtil
The persistence utility for the resource action service.
Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regnerate this class.
ResourceActionPersistence,
ResourceActionPersistenceImpl| Constructor Summary | |
|---|---|
ResourceActionUtil()
|
|
| Method Summary | |
|---|---|
static void |
cacheResult(List<ResourceAction> resourceActions)
Caches the resource actions in the entity cache if it is enabled. |
static void |
cacheResult(ResourceAction resourceAction)
Caches the resource action in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(ResourceAction resourceAction)
|
static int |
countAll()
Counts all the resource actions. |
static int |
countByN_A(String name,
String actionId)
Counts all the resource actions where name = ? and actionId = ?. |
static int |
countByName(String name)
Counts all the resource actions where name = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static ResourceAction |
create(long resourceActionId)
Creates a new resource action with the primary key. |
static ResourceAction |
fetchByN_A(String name,
String actionId)
Finds the resource action where name = ? and actionId = ? or returns null if it could not be found. |
static ResourceAction |
fetchByN_A(String name,
String actionId,
boolean retrieveFromCache)
Finds the resource action where name = ? and actionId = ? or returns null if it could not be found, optionally using the finder cache. |
static ResourceAction |
fetchByPrimaryKey(long resourceActionId)
Finds the resource action with the primary key or returns null if it could not be found. |
static List<ResourceAction> |
findAll()
Finds all the resource actions. |
static List<ResourceAction> |
findAll(int start,
int end)
Finds a range of all the resource actions. |
static List<ResourceAction> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the resource actions. |
static ResourceAction |
findByN_A(String name,
String actionId)
Finds the resource action where name = ? and actionId = ? or throws a NoSuchResourceActionException if it could not be found. |
static ResourceAction |
findByName_First(String name,
OrderByComparator orderByComparator)
Finds the first resource action in the ordered set where name = ?. |
static ResourceAction |
findByName_Last(String name,
OrderByComparator orderByComparator)
Finds the last resource action in the ordered set where name = ?. |
static ResourceAction[] |
findByName_PrevAndNext(long resourceActionId,
String name,
OrderByComparator orderByComparator)
Finds the resource actions before and after the current resource action in the ordered set where name = ?. |
static List<ResourceAction> |
findByName(String name)
Finds all the resource actions where name = ?. |
static List<ResourceAction> |
findByName(String name,
int start,
int end)
Finds a range of all the resource actions where name = ?. |
static List<ResourceAction> |
findByName(String name,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the resource actions where name = ?. |
static ResourceAction |
findByPrimaryKey(long resourceActionId)
Finds the resource action with the primary key or throws a NoSuchResourceActionException if it could not be found. |
static List<ResourceAction> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<ResourceAction> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<ResourceAction> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static ResourceActionPersistence |
getPersistence()
|
static ResourceAction |
remove(long resourceActionId)
Removes the resource action with the primary key from the database. |
static ResourceAction |
remove(ResourceAction resourceAction)
|
static void |
removeAll()
Removes all the resource actions from the database. |
static void |
removeByN_A(String name,
String actionId)
Removes the resource action where name = ? and actionId = ? from the database. |
static void |
removeByName(String name)
Removes all the resource actions where name = ? from the database. |
void |
setPersistence(ResourceActionPersistence persistence)
|
static ResourceAction |
update(ResourceAction resourceAction,
boolean merge)
|
static ResourceAction |
update(ResourceAction resourceAction,
boolean merge,
ServiceContext serviceContext)
|
static ResourceAction |
updateImpl(ResourceAction resourceAction,
boolean merge)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceActionUtil()
| Method Detail |
|---|
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(ResourceAction resourceAction)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<ResourceAction> findWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<ResourceAction> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<ResourceAction> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ResourceAction remove(ResourceAction resourceAction)
throws SystemException
SystemExceptionBasePersistence.remove(com.liferay.portal.model.BaseModel)
public static ResourceAction update(ResourceAction resourceAction,
boolean merge)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static ResourceAction update(ResourceAction resourceAction,
boolean merge,
ServiceContext serviceContext)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)public static void cacheResult(ResourceAction resourceAction)
resourceAction - the resource action to cachepublic static void cacheResult(List<ResourceAction> resourceActions)
resourceActions - the resource actions to cachepublic static ResourceAction create(long resourceActionId)
resourceActionId - the primary key for the new resource action
public static ResourceAction remove(long resourceActionId)
throws NoSuchResourceActionException,
SystemException
resourceActionId - the primary key of the resource action to remove
NoSuchResourceActionException - if a resource action with the primary key could not be found
SystemException - if a system exception occurred
public static ResourceAction updateImpl(ResourceAction resourceAction,
boolean merge)
throws SystemException
SystemException
public static ResourceAction findByPrimaryKey(long resourceActionId)
throws NoSuchResourceActionException,
SystemException
NoSuchResourceActionException if it could not be found.
resourceActionId - the primary key of the resource action to find
NoSuchResourceActionException - if a resource action with the primary key could not be found
SystemException - if a system exception occurred
public static ResourceAction fetchByPrimaryKey(long resourceActionId)
throws SystemException
null if it could not be found.
resourceActionId - the primary key of the resource action to find
null if a resource action with the primary key could not be found
SystemException - if a system exception occurred
public static List<ResourceAction> findByName(String name)
throws SystemException
name - the name to search with
SystemException - if a system exception occurred
public static List<ResourceAction> findByName(String name,
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.
name - the name to search withstart - the lower bound of the range of resource actions to returnend - the upper bound of the range of resource actions to return (not inclusive)
SystemException - if a system exception occurred
public static List<ResourceAction> findByName(String name,
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.
name - the name to search withstart - the lower bound of the range of resource actions to returnend - the upper bound of the range of resource actions to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static ResourceAction findByName_First(String name,
OrderByComparator orderByComparator)
throws NoSuchResourceActionException,
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.
name - the name to search withorderByComparator - the comparator to order the set by
NoSuchResourceActionException - if a matching resource action could not be found
SystemException - if a system exception occurred
public static ResourceAction findByName_Last(String name,
OrderByComparator orderByComparator)
throws NoSuchResourceActionException,
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.
name - the name to search withorderByComparator - the comparator to order the set by
NoSuchResourceActionException - if a matching resource action could not be found
SystemException - if a system exception occurred
public static ResourceAction[] findByName_PrevAndNext(long resourceActionId,
String name,
OrderByComparator orderByComparator)
throws NoSuchResourceActionException,
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.
resourceActionId - the primary key of the current resource actionname - the name to search withorderByComparator - the comparator to order the set by
NoSuchResourceActionException - if a resource action with the primary key could not be found
SystemException - if a system exception occurred
public static ResourceAction findByN_A(String name,
String actionId)
throws NoSuchResourceActionException,
SystemException
NoSuchResourceActionException if it could not be found.
name - the name to search withactionId - the action id to search with
NoSuchResourceActionException - if a matching resource action could not be found
SystemException - if a system exception occurred
public static ResourceAction fetchByN_A(String name,
String actionId)
throws SystemException
null if it could not be found. Uses the finder cache.
name - the name to search withactionId - the action id to search with
null if a matching resource action could not be found
SystemException - if a system exception occurred
public static ResourceAction fetchByN_A(String name,
String actionId,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
name - the name to search withactionId - the action id to search with
null if a matching resource action could not be found
SystemException - if a system exception occurred
public static List<ResourceAction> findAll()
throws SystemException
SystemException - if a system exception occurred
public static List<ResourceAction> 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 resource actions to returnend - the upper bound of the range of resource actions to return (not inclusive)
SystemException - if a system exception occurred
public static List<ResourceAction> 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 resource actions to returnend - the upper bound of the range of resource actions to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static void removeByName(String name)
throws SystemException
name - the name to search with
SystemException - if a system exception occurred
public static void removeByN_A(String name,
String actionId)
throws NoSuchResourceActionException,
SystemException
name - the name to search withactionId - the action id to search with
SystemException - if a system exception occurred
NoSuchResourceActionException
public static void removeAll()
throws SystemException
SystemException - if a system exception occurred
public static int countByName(String name)
throws SystemException
name - the name to search with
SystemException - if a system exception occurred
public static int countByN_A(String name,
String actionId)
throws SystemException
name - the name to search withactionId - the action id to search with
SystemException - if a system exception occurred
public static int countAll()
throws SystemException
SystemException - if a system exception occurredpublic static ResourceActionPersistence getPersistence()
public void setPersistence(ResourceActionPersistence persistence)
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||