Interface ResourceActionPersistence
- All Superinterfaces:
BasePersistence<ResourceAction>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionintcountByN_A(String name, String actionId) Returns the number of resource actions where name = ? and actionId = ?.intcountByName(String name) Returns the number of resource actions where name = ?.create(long resourceActionId) Creates a new resource action with the primary key.default ResourceActionfetchByN_A(String name, String actionId) Returns the resource action where name = ? and actionId = ? or returnsnullif it could not be found.fetchByN_A(String name, String actionId, boolean useFinderCache) Returns the resource action where name = ? and actionId = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByName_First(String name, OrderByComparator<ResourceAction> orderByComparator) Returns the first resource action in the ordered set where name = ?.fetchByPrimaryKey(long resourceActionId) Returns the resource action with the primary key or returnsnullif it could not be found.Returns the resource action where name = ? and actionId = ? or throws aNoSuchResourceActionExceptionif it could not be found.default List<ResourceAction> findByName(String name) Returns all the resource actions where name = ?.default List<ResourceAction> findByName(String name, int start, int end) Returns a range of all the resource actions where name = ?.default List<ResourceAction> findByName(String name, int start, int end, OrderByComparator<ResourceAction> orderByComparator) Returns an ordered range of all the resource actions where name = ?.findByName(String name, int start, int end, OrderByComparator<ResourceAction> orderByComparator, boolean useFinderCache) Returns an ordered range of all the resource actions where name = ?.findByName_First(String name, OrderByComparator<ResourceAction> orderByComparator) Returns the first resource action in the ordered set where name = ?.findByPrimaryKey(long resourceActionId) Returns the resource action with the primary key or throws aNoSuchResourceActionExceptionif it could not be found.remove(long resourceActionId) Removes the resource action with the primary key from the database.removeByN_A(String name, String actionId) Removes the resource action where name = ? and actionId = ? from the database.voidremoveByName(String name) Removes all the resource actions where name = ? from the database.updateImpl(ResourceAction resourceAction) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByName
List<ResourceAction> findByName(String name, int start, int end, OrderByComparator<ResourceAction> orderByComparator, boolean useFinderCache) Returns an ordered range of all the resource actions where name = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.ResourceActionModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use 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 nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching resource action
- Throws:
NoSuchResourceActionException- if a matching resource action could not be found
-
fetchByName_First
Returns the first resource action in the ordered set where name = ?.- Parameters:
name- the nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching resource action, or
nullif a matching resource action could not be found
-
removeByName
Removes all the resource actions where name = ? from the database.- Parameters:
name- the name
-
countByName
Returns the number of resource actions where name = ?.- Parameters:
name- the name- Returns:
- the number of matching resource actions
-
findByN_A
Returns the resource action where name = ? and actionId = ? or throws aNoSuchResourceActionExceptionif it could not be found.- Parameters:
name- the nameactionId- the action ID- Returns:
- the matching resource action
- Throws:
NoSuchResourceActionException- if a matching resource action could not be found
-
fetchByN_A
Returns the resource action where name = ? and actionId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
name- the nameactionId- the action IDuseFinderCache- whether to use the finder cache- Returns:
- the matching resource action, or
nullif a matching resource action could not be found
-
removeByN_A
Removes the resource action where name = ? and actionId = ? from the database.- Parameters:
name- the nameactionId- the action ID- Returns:
- the resource action that was removed
- Throws:
NoSuchResourceActionException
-
countByN_A
Returns the number of resource actions where name = ? and actionId = ?.- Parameters:
name- the nameactionId- the action ID- Returns:
- the number of matching resource actions
-
create
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
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
-
findByPrimaryKey
Returns the resource action with the primary key or throws aNoSuchResourceActionExceptionif 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
Returns the resource action with the primary key or returnsnullif it could not be found.- Parameters:
resourceActionId- the primary key of the resource action- Returns:
- the resource action, or
nullif a resource action with the primary key could not be found
-
fetchByN_A
Returns the resource action where name = ? and actionId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
name- the nameactionId- the action ID- Returns:
- the matching resource action, or
nullif a matching resource action could not be found
-
findByName
Returns all the resource actions where name = ?.- Parameters:
name- the name- Returns:
- the matching resource actions
-
findByName
Returns a range of all the resource actions where name = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.ResourceActionModelImpl.- Parameters:
name- the namestart- the lower bound of the range of resource actionsend- the upper bound of the range of resource actions (not inclusive)- Returns:
- the range of matching resource actions
-
findByName
default 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.ResourceActionModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching resource actions
-