Liferay 7.0-ce-b4

com.liferay.portal.service.persistence
Interface ResourceActionPersistence

All Superinterfaces:
BasePersistence<ResourceAction>

@ProviderType
public interface ResourceActionPersistence
extends BasePersistence<ResourceAction>

The persistence interface for the resource action service.

Caching information and settings can be found in portal.properties

See Also:
ResourceActionPersistenceImpl, ResourceActionUtil

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()
          Returns the number of resource actions.
 int countByN_A(String name, String actionId)
          Returns the number of resource actions where name = ? and actionId = ?.
 int countByName(String name)
          Returns the number of resource actions where name = ?.
 ResourceAction create(long resourceActionId)
          Creates a new resource action with the primary key.
 ResourceAction fetchByN_A(String name, String actionId)
          Returns 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)
          Returns the resource action where name = ? and actionId = ? or returns null if it could not be found, optionally using the finder cache.
 ResourceAction fetchByName_First(String name, OrderByComparator<ResourceAction> orderByComparator)
          Returns the first resource action in the ordered set where name = ?.
 ResourceAction fetchByName_Last(String name, OrderByComparator<ResourceAction> orderByComparator)
          Returns the last resource action in the ordered set where name = ?.
 ResourceAction fetchByPrimaryKey(long resourceActionId)
          Returns the resource action with the primary key or returns null if it could not be found.
 Map<Serializable,ResourceAction> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 List<ResourceAction> findAll()
          Returns all the resource actions.
 List<ResourceAction> findAll(int start, int end)
          Returns a range of all the resource actions.
 List<ResourceAction> findAll(int start, int end, OrderByComparator<ResourceAction> orderByComparator)
          Returns an ordered range of all the resource actions.
 List<ResourceAction> findAll(int start, int end, OrderByComparator<ResourceAction> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the resource actions.
 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.
 ResourceAction findByName_First(String name, OrderByComparator<ResourceAction> orderByComparator)
          Returns the first resource action in the ordered set where name = ?.
 ResourceAction findByName_Last(String name, OrderByComparator<ResourceAction> orderByComparator)
          Returns the last resource action in the ordered set where name = ?.
 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 = ?.
 List<ResourceAction> findByName(String name)
          Returns all the resource actions where name = ?.
 List<ResourceAction> findByName(String name, int start, int end)
          Returns a range of all the resource actions where name = ?.
 List<ResourceAction> findByName(String name, int start, int end, OrderByComparator<ResourceAction> orderByComparator)
          Returns an ordered range of all the resource actions where name = ?.
 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 = ?.
 ResourceAction findByPrimaryKey(long resourceActionId)
          Returns 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.
 ResourceAction 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)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update
 

Method Detail

findByName

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

Parameters:
name - the name
Returns:
the matching resource actions

findByName

List<ResourceAction> findByName(String name,
                                int start,
                                int end)
Returns 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. 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.

Parameters:
name - the name
start - the lower bound of the range of resource actions
end - the upper bound of the range of resource actions (not inclusive)
Returns:
the range of matching resource actions

findByName

List<ResourceAction> findByName(String name,
                                int start,
                                int end,
                                OrderByComparator<ResourceAction> orderByComparator)
Returns 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. 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.

Parameters:
name - the name
start - the lower bound of the range of resource actions
end - the upper bound of the range of resource actions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching resource actions

findByName

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 = ?.

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.

Parameters:
name - the name
start - the lower bound of the range of resource actions
end - 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
Returns:
the ordered range of matching resource actions

findByName_First

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

Parameters:
name - the name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching resource action
Throws:
NoSuchResourceActionException - if a matching resource action could not be found

fetchByName_First

ResourceAction fetchByName_First(String name,
                                 OrderByComparator<ResourceAction> orderByComparator)
Returns the first resource action in the ordered set where name = ?.

Parameters:
name - the name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching resource action, or null if a matching resource action could not be found

findByName_Last

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

Parameters:
name - the name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching resource action
Throws:
NoSuchResourceActionException - if a matching resource action could not be found

fetchByName_Last

ResourceAction fetchByName_Last(String name,
                                OrderByComparator<ResourceAction> orderByComparator)
Returns the last resource action in the ordered set where name = ?.

Parameters:
name - the name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching resource action, or null if a matching resource action could not be found

findByName_PrevAndNext

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

Parameters:
resourceActionId - the primary key of the current resource action
name - the name
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next resource action
Throws:
NoSuchResourceActionException - if a resource action with the primary key could not be found

removeByName

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

Parameters:
name - the name

countByName

int countByName(String name)
Returns the number of resource actions where name = ?.

Parameters:
name - the name
Returns:
the number of matching resource actions

findByN_A

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

Parameters:
name - the name
actionId - the action ID
Returns:
the matching resource action
Throws:
NoSuchResourceActionException - if a matching resource action could not be found

fetchByN_A

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

Parameters:
name - the name
actionId - the action ID
Returns:
the matching resource action, or null if a matching resource action could not be found

fetchByN_A

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.

Parameters:
name - the name
actionId - the action ID
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching resource action, or null if a matching resource action could not be found

removeByN_A

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

Parameters:
name - the name
actionId - the action ID
Returns:
the resource action that was removed
Throws:
NoSuchResourceActionException

countByN_A

int countByN_A(String name,
               String actionId)
Returns the number of resource actions where name = ? and actionId = ?.

Parameters:
name - the name
actionId - the action ID
Returns:
the number of matching resource actions

cacheResult

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

Parameters:
resourceAction - the resource action

cacheResult

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

Parameters:
resourceActions - the resource actions

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
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
Returns:
the resource action that was removed
Throws:
NoSuchResourceActionException - if a resource action with the primary key could not be found

updateImpl

ResourceAction updateImpl(ResourceAction resourceAction)

findByPrimaryKey

ResourceAction findByPrimaryKey(long resourceActionId)
                                throws NoSuchResourceActionException
Returns 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
Returns:
the resource action
Throws:
NoSuchResourceActionException - if a resource action with the primary key could not be found

fetchByPrimaryKey

ResourceAction fetchByPrimaryKey(long resourceActionId)
Returns 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
Returns:
the resource action, or null if a resource action with the primary key could not be found

fetchByPrimaryKeys

Map<Serializable,ResourceAction> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface BasePersistence<ResourceAction>

findAll

List<ResourceAction> findAll()
Returns all the resource actions.

Returns:
the resource actions

findAll

List<ResourceAction> findAll(int start,
                             int end)
Returns 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. 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.

Parameters:
start - the lower bound of the range of resource actions
end - the upper bound of the range of resource actions (not inclusive)
Returns:
the range of resource actions

findAll

List<ResourceAction> findAll(int start,
                             int end,
                             OrderByComparator<ResourceAction> orderByComparator)
Returns 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. 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.

Parameters:
start - the lower bound of the range of resource actions
end - the upper bound of the range of resource actions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of resource actions

findAll

List<ResourceAction> findAll(int start,
                             int end,
                             OrderByComparator<ResourceAction> orderByComparator,
                             boolean retrieveFromCache)
Returns 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. 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.

Parameters:
start - the lower bound of the range of resource actions
end - 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
Returns:
the ordered range of resource actions

removeAll

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


countAll

int countAll()
Returns the number of resource actions.

Returns:
the number of resource actions

Liferay 7.0-ce-b4