com.liferay.portal.service.persistence
Class ResourceActionUtil

java.lang.Object
  extended by com.liferay.portal.service.persistence.ResourceActionUtil

public class ResourceActionUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
ResourceActionUtil()
           
 
Method Summary
static void cacheResult(java.util.List<ResourceAction> resourceActions)
           
static void cacheResult(ResourceAction resourceAction)
           
static void clearCache()
           
static int countAll()
           
static int countByN_A(java.lang.String name, java.lang.String actionId)
           
static int countByName(java.lang.String name)
           
static ResourceAction create(long resourceActionId)
           
static ResourceAction fetchByN_A(java.lang.String name, java.lang.String actionId)
           
static ResourceAction fetchByN_A(java.lang.String name, java.lang.String actionId, boolean retrieveFromCache)
           
static ResourceAction fetchByPrimaryKey(long resourceActionId)
           
static java.util.List<ResourceAction> findAll()
           
static java.util.List<ResourceAction> findAll(int start, int end)
           
static java.util.List<ResourceAction> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static ResourceAction findByN_A(java.lang.String name, java.lang.String actionId)
           
static ResourceAction findByName_First(java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static ResourceAction findByName_Last(java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static ResourceAction[] findByName_PrevAndNext(long resourceActionId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<ResourceAction> findByName(java.lang.String name)
           
static java.util.List<ResourceAction> findByName(java.lang.String name, int start, int end)
           
static java.util.List<ResourceAction> findByName(java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static ResourceAction findByPrimaryKey(long resourceActionId)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static ResourceActionPersistence getPersistence()
           
static ResourceAction remove(long resourceActionId)
           
static ResourceAction remove(ResourceAction resourceAction)
           
static void removeAll()
           
static void removeByN_A(java.lang.String name, java.lang.String actionId)
           
static void removeByName(java.lang.String name)
           
 void setPersistence(ResourceActionPersistence persistence)
           
static ResourceAction update(ResourceAction resourceAction)
          Deprecated. Use update(ResourceAction resourceAction, boolean merge).
static ResourceAction update(ResourceAction resourceAction, boolean merge)
          Add, update, or merge, the entity.
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

ResourceActionUtil

public ResourceActionUtil()
Method Detail

cacheResult

public static void cacheResult(ResourceAction resourceAction)

cacheResult

public static void cacheResult(java.util.List<ResourceAction> resourceActions)

clearCache

public static void clearCache()

create

public static ResourceAction create(long resourceActionId)

remove

public static ResourceAction remove(long resourceActionId)
                             throws NoSuchResourceActionException,
                                    com.liferay.portal.SystemException
Throws:
NoSuchResourceActionException
com.liferay.portal.SystemException

remove

public static ResourceAction remove(ResourceAction resourceAction)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static ResourceAction update(ResourceAction resourceAction)
                             throws com.liferay.portal.SystemException
Deprecated. Use update(ResourceAction resourceAction, boolean merge).

Throws:
com.liferay.portal.SystemException

update

public static ResourceAction update(ResourceAction resourceAction,
                                    boolean merge)
                             throws com.liferay.portal.SystemException
Add, update, or merge, the entity. This method also calls the model listeners to trigger the proper events associated with adding, deleting, or updating an entity.

Parameters:
resourceAction - the entity to add, update, or merge
merge - boolean value for whether to merge the entity. The default value is false. Setting merge to true is more expensive and should only be true when resourceAction is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

public static ResourceAction updateImpl(ResourceAction resourceAction,
                                        boolean merge)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static ResourceAction findByPrimaryKey(long resourceActionId)
                                       throws NoSuchResourceActionException,
                                              com.liferay.portal.SystemException
Throws:
NoSuchResourceActionException
com.liferay.portal.SystemException

fetchByPrimaryKey

public static ResourceAction fetchByPrimaryKey(long resourceActionId)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByName

public static java.util.List<ResourceAction> findByName(java.lang.String name)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByName

public static java.util.List<ResourceAction> findByName(java.lang.String name,
                                                        int start,
                                                        int end)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByName

public static java.util.List<ResourceAction> findByName(java.lang.String name,
                                                        int start,
                                                        int end,
                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByName_First

public static ResourceAction findByName_First(java.lang.String name,
                                              com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws NoSuchResourceActionException,
                                              com.liferay.portal.SystemException
Throws:
NoSuchResourceActionException
com.liferay.portal.SystemException

findByName_Last

public static ResourceAction findByName_Last(java.lang.String name,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws NoSuchResourceActionException,
                                             com.liferay.portal.SystemException
Throws:
NoSuchResourceActionException
com.liferay.portal.SystemException

findByName_PrevAndNext

public static ResourceAction[] findByName_PrevAndNext(long resourceActionId,
                                                      java.lang.String name,
                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                               throws NoSuchResourceActionException,
                                                      com.liferay.portal.SystemException
Throws:
NoSuchResourceActionException
com.liferay.portal.SystemException

findByN_A

public static ResourceAction findByN_A(java.lang.String name,
                                       java.lang.String actionId)
                                throws NoSuchResourceActionException,
                                       com.liferay.portal.SystemException
Throws:
NoSuchResourceActionException
com.liferay.portal.SystemException

fetchByN_A

public static ResourceAction fetchByN_A(java.lang.String name,
                                        java.lang.String actionId)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

fetchByN_A

public static ResourceAction fetchByN_A(java.lang.String name,
                                        java.lang.String actionId,
                                        boolean retrieveFromCache)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                                    int start,
                                                                    int end)
                                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<ResourceAction> findAll()
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<ResourceAction> findAll(int start,
                                                     int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<ResourceAction> findAll(int start,
                                                     int end,
                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByName

public static void removeByName(java.lang.String name)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByN_A

public static void removeByN_A(java.lang.String name,
                               java.lang.String actionId)
                        throws NoSuchResourceActionException,
                               com.liferay.portal.SystemException
Throws:
NoSuchResourceActionException
com.liferay.portal.SystemException

removeAll

public static void removeAll()
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByName

public static int countByName(java.lang.String name)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByN_A

public static int countByN_A(java.lang.String name,
                             java.lang.String actionId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

public static int countAll()
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPersistence

public static ResourceActionPersistence getPersistence()

setPersistence

public void setPersistence(ResourceActionPersistence persistence)