com.liferay.portal.service.persistence
Interface ResourceActionPersistence

All Superinterfaces:
BasePersistence

public interface ResourceActionPersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 void cacheResult(java.util.List<ResourceAction> resourceActions)
           
 void cacheResult(ResourceAction resourceAction)
           
 void clearCache()
           
 int countAll()
           
 int countByN_A(java.lang.String name, java.lang.String actionId)
           
 int countByName(java.lang.String name)
           
 ResourceAction create(long resourceActionId)
           
 ResourceAction fetchByN_A(java.lang.String name, java.lang.String actionId)
           
 ResourceAction fetchByN_A(java.lang.String name, java.lang.String actionId, boolean retrieveFromCache)
           
 ResourceAction fetchByPrimaryKey(long resourceActionId)
           
 java.util.List<ResourceAction> findAll()
           
 java.util.List<ResourceAction> findAll(int start, int end)
           
 java.util.List<ResourceAction> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ResourceAction findByN_A(java.lang.String name, java.lang.String actionId)
           
 ResourceAction findByName_First(java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ResourceAction findByName_Last(java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ResourceAction[] findByName_PrevAndNext(long resourceActionId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<ResourceAction> findByName(java.lang.String name)
           
 java.util.List<ResourceAction> findByName(java.lang.String name, int start, int end)
           
 java.util.List<ResourceAction> findByName(java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ResourceAction findByPrimaryKey(long resourceActionId)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 ResourceAction remove(long resourceActionId)
           
 ResourceAction remove(ResourceAction resourceAction)
           
 void removeAll()
           
 void removeByN_A(java.lang.String name, java.lang.String actionId)
           
 void removeByName(java.lang.String name)
           
 ResourceAction update(ResourceAction resourceAction)
          Deprecated. Use update(ResourceAction resourceAction, boolean merge).
 ResourceAction update(ResourceAction resourceAction, boolean merge)
          Add, update, or merge, the entity.
 ResourceAction updateImpl(ResourceAction resourceAction, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

cacheResult

void cacheResult(ResourceAction resourceAction)

cacheResult

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

clearCache

void clearCache()
Specified by:
clearCache in interface BasePersistence

create

ResourceAction create(long resourceActionId)

remove

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

remove

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

update

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

Throws:
com.liferay.portal.SystemException

update

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

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

findByPrimaryKey

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

fetchByPrimaryKey

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

findByName

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

findByName

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

findByName

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

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

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

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

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

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

fetchByN_A

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

findWithDynamicQuery

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

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

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

findAll

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

findAll

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

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

removeByN_A

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

removeAll

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

countByName

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

countByN_A

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

countAll

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