|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.ResourceActionUtil
@ProviderType public class ResourceActionUtil
The persistence utility for the resource action service. This utility wraps ResourceActionPersistenceImpl 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.
Caching information and settings can be found in portal.properties
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()
Returns the number of resource actions. |
static int |
countByN_A(String name,
String actionId)
Returns the number of resource actions where name = ? and actionId = ?. |
static int |
countByName(String name)
Returns the number of resource actions where name = ?. |
static 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)
Returns 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)
Returns the resource action where name = ? and actionId = ? or returns null if it could not be found, optionally using the finder cache. |
static ResourceAction |
fetchByName_First(String name,
OrderByComparator<ResourceAction> orderByComparator)
Returns the first resource action in the ordered set where name = ?. |
static ResourceAction |
fetchByName_Last(String name,
OrderByComparator<ResourceAction> orderByComparator)
Returns the last resource action in the ordered set where name = ?. |
static ResourceAction |
fetchByPrimaryKey(long resourceActionId)
Returns the resource action with the primary key or returns null if it could not be found. |
static Map<Serializable,ResourceAction> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
static List<ResourceAction> |
findAll()
Returns all the resource actions. |
static List<ResourceAction> |
findAll(int start,
int end)
Returns a range of all the resource actions. |
static List<ResourceAction> |
findAll(int start,
int end,
OrderByComparator<ResourceAction> orderByComparator)
Returns an ordered range of all the resource actions. |
static List<ResourceAction> |
findAll(int start,
int end,
OrderByComparator<ResourceAction> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the resource actions. |
static ResourceAction |
findByN_A(String name,
String actionId)
Returns the resource action where name = ? and actionId = ? or throws a NoSuchResourceActionException if it could not be found. |
static ResourceAction |
findByName_First(String name,
OrderByComparator<ResourceAction> orderByComparator)
Returns the first resource action in the ordered set where name = ?. |
static ResourceAction |
findByName_Last(String name,
OrderByComparator<ResourceAction> orderByComparator)
Returns the last resource action in the ordered set where name = ?. |
static ResourceAction[] |
findByName_PrevAndNext(long resourceActionId,
String name,
OrderByComparator<ResourceAction> orderByComparator)
Returns the resource actions before and after the current resource action in the ordered set where name = ?. |
static List<ResourceAction> |
findByName(String name)
Returns all the resource actions where name = ?. |
static List<ResourceAction> |
findByName(String name,
int start,
int end)
Returns a range of all the resource actions where name = ?. |
static List<ResourceAction> |
findByName(String name,
int start,
int end,
OrderByComparator<ResourceAction> orderByComparator)
Returns an ordered range of all the resource actions where name = ?. |
static List<ResourceAction> |
findByName(String name,
int start,
int end,
OrderByComparator<ResourceAction> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the resource actions where name = ?. |
static ResourceAction |
findByPrimaryKey(long resourceActionId)
Returns 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<ResourceAction> orderByComparator)
|
static ResourceActionPersistence |
getPersistence()
|
static ResourceAction |
remove(long resourceActionId)
Removes the resource action with the primary key from the database. |
static void |
removeAll()
Removes all the resource actions from the database. |
static ResourceAction |
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. |
static ResourceAction |
update(ResourceAction resourceAction)
|
static ResourceAction |
update(ResourceAction resourceAction,
ServiceContext serviceContext)
|
static ResourceAction |
updateImpl(ResourceAction resourceAction)
|
| 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 static long countWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)public static List<ResourceAction> findWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<ResourceAction> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<ResourceAction> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<ResourceAction> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static ResourceAction update(ResourceAction resourceAction)
BasePersistence.update(com.liferay.portal.model.BaseModel)
public static ResourceAction update(ResourceAction resourceAction,
ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)public static List<ResourceAction> findByName(String name)
name - the name
public static List<ResourceAction> findByName(String name,
int start,
int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from ResourceActionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
name - the namestart - the lower bound of the range of resource actionsend - the upper bound of the range of resource actions (not inclusive)
public static List<ResourceAction> findByName(String name,
int start,
int end,
OrderByComparator<ResourceAction> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from ResourceActionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
name - the namestart - the lower bound of the range of resource actionsend - the upper bound of the range of resource actions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static List<ResourceAction> findByName(String name,
int start,
int end,
OrderByComparator<ResourceAction> orderByComparator,
boolean retrieveFromCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from ResourceActionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
name - the namestart - the lower bound of the range of resource actionsend - the upper bound of the range of resource actions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public static ResourceAction findByName_First(String name,
OrderByComparator<ResourceAction> orderByComparator)
throws NoSuchResourceActionException
name - the nameorderByComparator - the comparator to order the set by (optionally null)
NoSuchResourceActionException - if a matching resource action could not be found
public static ResourceAction fetchByName_First(String name,
OrderByComparator<ResourceAction> orderByComparator)
name - the nameorderByComparator - the comparator to order the set by (optionally null)
null if a matching resource action could not be found
public static ResourceAction findByName_Last(String name,
OrderByComparator<ResourceAction> orderByComparator)
throws NoSuchResourceActionException
name - the nameorderByComparator - the comparator to order the set by (optionally null)
NoSuchResourceActionException - if a matching resource action could not be found
public static ResourceAction fetchByName_Last(String name,
OrderByComparator<ResourceAction> orderByComparator)
name - the nameorderByComparator - the comparator to order the set by (optionally null)
null if a matching resource action could not be found
public static ResourceAction[] findByName_PrevAndNext(long resourceActionId,
String name,
OrderByComparator<ResourceAction> orderByComparator)
throws NoSuchResourceActionException
resourceActionId - the primary key of the current resource actionname - the nameorderByComparator - the comparator to order the set by (optionally null)
NoSuchResourceActionException - if a resource action with the primary key could not be foundpublic static void removeByName(String name)
name - the namepublic static int countByName(String name)
name - the name
public static ResourceAction findByN_A(String name,
String actionId)
throws NoSuchResourceActionException
NoSuchResourceActionException if it could not be found.
name - the nameactionId - the action ID
NoSuchResourceActionException - if a matching resource action could not be found
public static ResourceAction fetchByN_A(String name,
String actionId)
null if it could not be found. Uses the finder cache.
name - the nameactionId - the action ID
null if a matching resource action could not be found
public static ResourceAction fetchByN_A(String name,
String actionId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
name - the nameactionId - the action IDretrieveFromCache - whether to retrieve from the finder cache
null if a matching resource action could not be found
public static ResourceAction removeByN_A(String name,
String actionId)
throws NoSuchResourceActionException
name - the nameactionId - the action ID
NoSuchResourceActionException
public static int countByN_A(String name,
String actionId)
name - the nameactionId - the action ID
public static void cacheResult(ResourceAction resourceAction)
resourceAction - the resource actionpublic static void cacheResult(List<ResourceAction> resourceActions)
resourceActions - the resource actionspublic static ResourceAction create(long resourceActionId)
resourceActionId - the primary key for the new resource action
public static ResourceAction remove(long resourceActionId)
throws NoSuchResourceActionException
resourceActionId - the primary key of the resource action
NoSuchResourceActionException - if a resource action with the primary key could not be foundpublic static ResourceAction updateImpl(ResourceAction resourceAction)
public static ResourceAction findByPrimaryKey(long resourceActionId)
throws NoSuchResourceActionException
NoSuchResourceActionException if it could not be found.
resourceActionId - the primary key of the resource action
NoSuchResourceActionException - if a resource action with the primary key could not be foundpublic static ResourceAction fetchByPrimaryKey(long resourceActionId)
null if it could not be found.
resourceActionId - the primary key of the resource action
null if a resource action with the primary key could not be foundpublic static Map<Serializable,ResourceAction> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
public static List<ResourceAction> findAll()
public static List<ResourceAction> findAll(int start,
int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from ResourceActionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of resource actionsend - the upper bound of the range of resource actions (not inclusive)
public static List<ResourceAction> findAll(int start,
int end,
OrderByComparator<ResourceAction> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from ResourceActionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of resource actionsend - the upper bound of the range of resource actions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static List<ResourceAction> findAll(int start,
int end,
OrderByComparator<ResourceAction> orderByComparator,
boolean retrieveFromCache)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from ResourceActionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of resource actionsend - the upper bound of the range of resource actions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public static void removeAll()
public static int countAll()
public static ResourceActionPersistence getPersistence()
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||