@ProviderType public interface ResourceActionPersistence extends BasePersistence<ResourceAction>
Caching information and settings can be found in portal.properties
ResourceActionPersistenceImpl
,
ResourceActionUtil
Modifier and Type | Method and Description |
---|---|
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) |
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
List<ResourceAction> findByName(String name)
name
- the nameList<ResourceAction> findByName(String name, int start, int end)
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.
name
- the namestart
- the lower bound of the range of resource actionsend
- the upper bound of the range of resource actions (not inclusive)List<ResourceAction> findByName(String name, int start, int end, OrderByComparator<ResourceAction> orderByComparator)
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.
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 (optionally null
)List<ResourceAction> findByName(String name, int start, int end, OrderByComparator<ResourceAction> orderByComparator, boolean retrieveFromCache)
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.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheResourceAction findByName_First(String name, OrderByComparator<ResourceAction> orderByComparator) throws NoSuchResourceActionException
name
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceActionException
- if a matching resource action could not be foundResourceAction fetchByName_First(String name, OrderByComparator<ResourceAction> orderByComparator)
name
- the nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching resource action could not be foundResourceAction findByName_Last(String name, OrderByComparator<ResourceAction> orderByComparator) throws NoSuchResourceActionException
name
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceActionException
- if a matching resource action could not be foundResourceAction fetchByName_Last(String name, OrderByComparator<ResourceAction> orderByComparator)
name
- the nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching resource action could not be foundResourceAction[] findByName_PrevAndNext(long resourceActionId, String name, OrderByComparator<ResourceAction> orderByComparator) throws NoSuchResourceActionException
resourceActionId
- the primary key of the current resource actionname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchResourceActionException
- if a resource action with the primary key could not be foundvoid removeByName(String name)
name
- the nameint countByName(String name)
name
- the nameResourceAction findByN_A(String name, String actionId) throws NoSuchResourceActionException
NoSuchResourceActionException
if it could not be found.name
- the nameactionId
- the action IDNoSuchResourceActionException
- if a matching resource action could not be foundResourceAction fetchByN_A(String name, String actionId)
null
if it could not be found. Uses the finder cache.name
- the nameactionId
- the action IDnull
if a matching resource action could not be foundResourceAction fetchByN_A(String name, String actionId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.name
- the nameactionId
- the action IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching resource action could not be foundResourceAction removeByN_A(String name, String actionId) throws NoSuchResourceActionException
name
- the nameactionId
- the action IDNoSuchResourceActionException
int countByN_A(String name, String actionId)
name
- the nameactionId
- the action IDvoid cacheResult(ResourceAction resourceAction)
resourceAction
- the resource actionvoid cacheResult(List<ResourceAction> resourceActions)
resourceActions
- the resource actionsResourceAction create(long resourceActionId)
resourceActionId
- the primary key for the new resource actionResourceAction remove(long resourceActionId) throws NoSuchResourceActionException
resourceActionId
- the primary key of the resource actionNoSuchResourceActionException
- if a resource action with the primary key could not be foundResourceAction updateImpl(ResourceAction resourceAction)
ResourceAction findByPrimaryKey(long resourceActionId) throws NoSuchResourceActionException
NoSuchResourceActionException
if it could not be found.resourceActionId
- the primary key of the resource actionNoSuchResourceActionException
- if a resource action with the primary key could not be foundResourceAction fetchByPrimaryKey(long resourceActionId)
null
if it could not be found.resourceActionId
- the primary key of the resource actionnull
if a resource action with the primary key could not be foundMap<Serializable,ResourceAction> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys
in interface BasePersistence<ResourceAction>
List<ResourceAction> findAll()
List<ResourceAction> findAll(int start, int end)
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.
start
- the lower bound of the range of resource actionsend
- the upper bound of the range of resource actions (not inclusive)List<ResourceAction> findAll(int start, int end, OrderByComparator<ResourceAction> orderByComparator)
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.
start
- 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 (optionally null
)List<ResourceAction> findAll(int start, int end, OrderByComparator<ResourceAction> orderByComparator, boolean retrieveFromCache)
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.
start
- 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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()