Liferay 6.0.5

com.liferay.portal.service.persistence
Interface ResourceActionPersistence

All Superinterfaces:
BasePersistence<ResourceAction>
All Known Implementing Classes:
ResourceActionPersistenceImpl

public interface ResourceActionPersistence
extends BasePersistence<ResourceAction>

The persistence interface for the resource action service.

Never modify or reference this interface directly. Always use ResourceActionUtil to access the resource action persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface.

Caching information and settings can be found in portal.properties

See Also:
ResourceActionPersistenceImpl, ResourceActionUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Method Summary
 void cacheResult(List<ResourceAction> resourceActions)
          Caches the resource actions in the entity cache if it is enabled.
 void cacheResult(ResourceAction resourceAction)
          Caches the resource action in the entity cache if it is enabled.
 int countAll()
          Counts all the resource actions.
 int countByN_A(String name, String actionId)
          Counts all the resource actions where name = ? and actionId = ?.
 int countByName(String name)
          Counts all the resource actions where name = ?.
 ResourceAction create(long resourceActionId)
          Creates a new resource action with the primary key.
 ResourceAction fetchByN_A(String name, String actionId)
          Finds the resource action where name = ? and actionId = ? or returns null if it could not be found.
 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.
 ResourceAction fetchByPrimaryKey(long resourceActionId)
          Finds the resource action with the primary key or returns null if it could not be found.
 List<ResourceAction> findAll()
          Finds all the resource actions.
 List<ResourceAction> findAll(int start, int end)
          Finds a range of all the resource actions.
 List<ResourceAction> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the resource actions.
 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.
 ResourceAction findByName_First(String name, OrderByComparator orderByComparator)
          Finds the first resource action in the ordered set where name = ?.
 ResourceAction findByName_Last(String name, OrderByComparator orderByComparator)
          Finds the last resource action in the ordered set where name = ?.
 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 = ?.
 List<ResourceAction> findByName(String name)
          Finds all the resource actions where name = ?.
 List<ResourceAction> findByName(String name, int start, int end)
          Finds a range of all the resource actions where name = ?.
 List<ResourceAction> findByName(String name, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the resource actions where name = ?.
 ResourceAction findByPrimaryKey(long resourceActionId)
          Finds the resource action with the primary key or throws a NoSuchResourceActionException if it could not be found.
 ResourceAction remove(long resourceActionId)
          Removes the resource action with the primary key from the database.
 void removeAll()
          Removes all the resource actions from the database.
 void removeByN_A(String name, String actionId)
          Removes the resource action where name = ? and actionId = ? from the database.
 void removeByName(String name)
          Removes all the resource actions where name = ? from the database.
 ResourceAction updateImpl(ResourceAction resourceAction, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

void cacheResult(ResourceAction resourceAction)
Caches the resource action in the entity cache if it is enabled.

Parameters:
resourceAction - the resource action to cache

cacheResult

void cacheResult(List<ResourceAction> resourceActions)
Caches the resource actions in the entity cache if it is enabled.

Parameters:
resourceActions - the resource actions to cache

create

ResourceAction create(long resourceActionId)
Creates a new resource action with the primary key. Does not add the resource action to the database.

Parameters:
resourceActionId - the primary key for the new resource action
Returns:
the new resource action

remove

ResourceAction remove(long resourceActionId)
                      throws NoSuchResourceActionException,
                             SystemException
Removes the resource action with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
resourceActionId - the primary key of the resource action to remove
Returns:
the resource action that was removed
Throws:
NoSuchResourceActionException - if a resource action with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

ResourceAction updateImpl(ResourceAction resourceAction,
                          boolean merge)
                          throws SystemException
Throws:
SystemException

findByPrimaryKey

ResourceAction findByPrimaryKey(long resourceActionId)
                                throws NoSuchResourceActionException,
                                       SystemException
Finds the resource action with the primary key or throws a NoSuchResourceActionException if it could not be found.

Parameters:
resourceActionId - the primary key of the resource action to find
Returns:
the resource action
Throws:
NoSuchResourceActionException - if a resource action with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

ResourceAction fetchByPrimaryKey(long resourceActionId)
                                 throws SystemException
Finds the resource action with the primary key or returns null if it could not be found.

Parameters:
resourceActionId - the primary key of the resource action to find
Returns:
the resource action, or null if a resource action with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByName

List<ResourceAction> findByName(String name)
                                throws SystemException
Finds all the resource actions where name = ?.

Parameters:
name - the name to search with
Returns:
the matching resource actions
Throws:
SystemException - if a system exception occurred

findByName

List<ResourceAction> findByName(String name,
                                int start,
                                int end)
                                throws SystemException
Finds a range of all the resource actions where name = ?.

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.

Parameters:
name - the name to search with
start - the lower bound of the range of resource actions to return
end - the upper bound of the range of resource actions to return (not inclusive)
Returns:
the range of matching resource actions
Throws:
SystemException - if a system exception occurred

findByName

List<ResourceAction> findByName(String name,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                                throws SystemException
Finds an ordered range of all the resource actions where name = ?.

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.

Parameters:
name - the name to search with
start - the lower bound of the range of resource actions to return
end - the upper bound of the range of resource actions to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching resource actions
Throws:
SystemException - if a system exception occurred

findByName_First

ResourceAction findByName_First(String name,
                                OrderByComparator orderByComparator)
                                throws NoSuchResourceActionException,
                                       SystemException
Finds the first resource action in the ordered set where name = ?.

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.

Parameters:
name - the name to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching resource action
Throws:
NoSuchResourceActionException - if a matching resource action could not be found
SystemException - if a system exception occurred

findByName_Last

ResourceAction findByName_Last(String name,
                               OrderByComparator orderByComparator)
                               throws NoSuchResourceActionException,
                                      SystemException
Finds the last resource action in the ordered set where name = ?.

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.

Parameters:
name - the name to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching resource action
Throws:
NoSuchResourceActionException - if a matching resource action could not be found
SystemException - if a system exception occurred

findByName_PrevAndNext

ResourceAction[] findByName_PrevAndNext(long resourceActionId,
                                        String name,
                                        OrderByComparator orderByComparator)
                                        throws NoSuchResourceActionException,
                                               SystemException
Finds the resource actions before and after the current resource action in the ordered set where name = ?.

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.

Parameters:
resourceActionId - the primary key of the current resource action
name - the name to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next resource action
Throws:
NoSuchResourceActionException - if a resource action with the primary key could not be found
SystemException - if a system exception occurred

findByN_A

ResourceAction findByN_A(String name,
                         String actionId)
                         throws NoSuchResourceActionException,
                                SystemException
Finds the resource action where name = ? and actionId = ? or throws a NoSuchResourceActionException if it could not be found.

Parameters:
name - the name to search with
actionId - the action id to search with
Returns:
the matching resource action
Throws:
NoSuchResourceActionException - if a matching resource action could not be found
SystemException - if a system exception occurred

fetchByN_A

ResourceAction fetchByN_A(String name,
                          String actionId)
                          throws SystemException
Finds the resource action where name = ? and actionId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
name - the name to search with
actionId - the action id to search with
Returns:
the matching resource action, or null if a matching resource action could not be found
Throws:
SystemException - if a system exception occurred

fetchByN_A

ResourceAction fetchByN_A(String name,
                          String actionId,
                          boolean retrieveFromCache)
                          throws SystemException
Finds the resource action where name = ? and actionId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
name - the name to search with
actionId - the action id to search with
Returns:
the matching resource action, or null if a matching resource action could not be found
Throws:
SystemException - if a system exception occurred

findAll

List<ResourceAction> findAll()
                             throws SystemException
Finds all the resource actions.

Returns:
the resource actions
Throws:
SystemException - if a system exception occurred

findAll

List<ResourceAction> findAll(int start,
                             int end)
                             throws SystemException
Finds a range of all the resource actions.

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.

Parameters:
start - the lower bound of the range of resource actions to return
end - the upper bound of the range of resource actions to return (not inclusive)
Returns:
the range of resource actions
Throws:
SystemException - if a system exception occurred

findAll

List<ResourceAction> findAll(int start,
                             int end,
                             OrderByComparator orderByComparator)
                             throws SystemException
Finds an ordered range of all the resource actions.

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.

Parameters:
start - the lower bound of the range of resource actions to return
end - the upper bound of the range of resource actions to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of resource actions
Throws:
SystemException - if a system exception occurred

removeByName

void removeByName(String name)
                  throws SystemException
Removes all the resource actions where name = ? from the database.

Parameters:
name - the name to search with
Throws:
SystemException - if a system exception occurred

removeByN_A

void removeByN_A(String name,
                 String actionId)
                 throws NoSuchResourceActionException,
                        SystemException
Removes the resource action where name = ? and actionId = ? from the database.

Parameters:
name - the name to search with
actionId - the action id to search with
Throws:
SystemException - if a system exception occurred
NoSuchResourceActionException

removeAll

void removeAll()
               throws SystemException
Removes all the resource actions from the database.

Throws:
SystemException - if a system exception occurred

countByName

int countByName(String name)
                throws SystemException
Counts all the resource actions where name = ?.

Parameters:
name - the name to search with
Returns:
the number of matching resource actions
Throws:
SystemException - if a system exception occurred

countByN_A

int countByN_A(String name,
               String actionId)
               throws SystemException
Counts all the resource actions where name = ? and actionId = ?.

Parameters:
name - the name to search with
actionId - the action id to search with
Returns:
the number of matching resource actions
Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Counts all the resource actions.

Returns:
the number of resource actions
Throws:
SystemException - if a system exception occurred

Liferay 6.0.5