@ProviderType public interface ResourceBlockPermissionPersistence extends BasePersistence<ResourceBlockPermission>
Caching information and settings can be found in portal.properties
ResourceBlockPermissionPersistenceImpl,
ResourceBlockPermissionUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(java.util.List<ResourceBlockPermission> resourceBlockPermissions)
Caches the resource block permissions in the entity cache if it is enabled.
|
void |
cacheResult(ResourceBlockPermission resourceBlockPermission)
Caches the resource block permission in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of resource block permissions.
|
int |
countByR_R(long resourceBlockId,
long roleId)
Returns the number of resource block permissions where resourceBlockId = ? and roleId = ?.
|
int |
countByResourceBlockId(long resourceBlockId)
Returns the number of resource block permissions where resourceBlockId = ?.
|
int |
countByRoleId(long roleId)
Returns the number of resource block permissions where roleId = ?.
|
ResourceBlockPermission |
create(long resourceBlockPermissionId)
Creates a new resource block permission with the primary key.
|
ResourceBlockPermission |
fetchByPrimaryKey(long resourceBlockPermissionId)
Returns the resource block permission with the primary key or returns
null if it could not be found. |
ResourceBlockPermission |
fetchByR_R(long resourceBlockId,
long roleId)
Returns the resource block permission where resourceBlockId = ? and roleId = ? or returns
null if it could not be found. |
ResourceBlockPermission |
fetchByR_R(long resourceBlockId,
long roleId,
boolean retrieveFromCache)
Returns the resource block permission where resourceBlockId = ? and roleId = ? or returns
null if it could not be found, optionally using the finder cache. |
ResourceBlockPermission |
fetchByResourceBlockId_First(long resourceBlockId,
OrderByComparator orderByComparator)
Returns the first resource block permission in the ordered set where resourceBlockId = ?.
|
ResourceBlockPermission |
fetchByResourceBlockId_Last(long resourceBlockId,
OrderByComparator orderByComparator)
Returns the last resource block permission in the ordered set where resourceBlockId = ?.
|
ResourceBlockPermission |
fetchByRoleId_First(long roleId,
OrderByComparator orderByComparator)
Returns the first resource block permission in the ordered set where roleId = ?.
|
ResourceBlockPermission |
fetchByRoleId_Last(long roleId,
OrderByComparator orderByComparator)
Returns the last resource block permission in the ordered set where roleId = ?.
|
java.util.List<ResourceBlockPermission> |
findAll()
Returns all the resource block permissions.
|
java.util.List<ResourceBlockPermission> |
findAll(int start,
int end)
Returns a range of all the resource block permissions.
|
java.util.List<ResourceBlockPermission> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the resource block permissions.
|
ResourceBlockPermission |
findByPrimaryKey(long resourceBlockPermissionId)
Returns the resource block permission with the primary key or throws a
NoSuchResourceBlockPermissionException if it could not be found. |
ResourceBlockPermission |
findByR_R(long resourceBlockId,
long roleId)
Returns the resource block permission where resourceBlockId = ? and roleId = ? or throws a
NoSuchResourceBlockPermissionException if it could not be found. |
ResourceBlockPermission |
findByResourceBlockId_First(long resourceBlockId,
OrderByComparator orderByComparator)
Returns the first resource block permission in the ordered set where resourceBlockId = ?.
|
ResourceBlockPermission |
findByResourceBlockId_Last(long resourceBlockId,
OrderByComparator orderByComparator)
Returns the last resource block permission in the ordered set where resourceBlockId = ?.
|
ResourceBlockPermission[] |
findByResourceBlockId_PrevAndNext(long resourceBlockPermissionId,
long resourceBlockId,
OrderByComparator orderByComparator)
Returns the resource block permissions before and after the current resource block permission in the ordered set where resourceBlockId = ?.
|
java.util.List<ResourceBlockPermission> |
findByResourceBlockId(long resourceBlockId)
Returns all the resource block permissions where resourceBlockId = ?.
|
java.util.List<ResourceBlockPermission> |
findByResourceBlockId(long resourceBlockId,
int start,
int end)
Returns a range of all the resource block permissions where resourceBlockId = ?.
|
java.util.List<ResourceBlockPermission> |
findByResourceBlockId(long resourceBlockId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the resource block permissions where resourceBlockId = ?.
|
ResourceBlockPermission |
findByRoleId_First(long roleId,
OrderByComparator orderByComparator)
Returns the first resource block permission in the ordered set where roleId = ?.
|
ResourceBlockPermission |
findByRoleId_Last(long roleId,
OrderByComparator orderByComparator)
Returns the last resource block permission in the ordered set where roleId = ?.
|
ResourceBlockPermission[] |
findByRoleId_PrevAndNext(long resourceBlockPermissionId,
long roleId,
OrderByComparator orderByComparator)
Returns the resource block permissions before and after the current resource block permission in the ordered set where roleId = ?.
|
java.util.List<ResourceBlockPermission> |
findByRoleId(long roleId)
Returns all the resource block permissions where roleId = ?.
|
java.util.List<ResourceBlockPermission> |
findByRoleId(long roleId,
int start,
int end)
Returns a range of all the resource block permissions where roleId = ?.
|
java.util.List<ResourceBlockPermission> |
findByRoleId(long roleId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the resource block permissions where roleId = ?.
|
ResourceBlockPermission |
remove(long resourceBlockPermissionId)
Removes the resource block permission with the primary key from the database.
|
void |
removeAll()
Removes all the resource block permissions from the database.
|
ResourceBlockPermission |
removeByR_R(long resourceBlockId,
long roleId)
Removes the resource block permission where resourceBlockId = ? and roleId = ? from the database.
|
void |
removeByResourceBlockId(long resourceBlockId)
Removes all the resource block permissions where resourceBlockId = ? from the database.
|
void |
removeByRoleId(long roleId)
Removes all the resource block permissions where roleId = ? from the database.
|
ResourceBlockPermission |
updateImpl(ResourceBlockPermission resourceBlockPermission) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, updatejava.util.List<ResourceBlockPermission> findByResourceBlockId(long resourceBlockId) throws SystemException
resourceBlockId - the resource block IDSystemException - if a system exception occurredjava.util.List<ResourceBlockPermission> findByResourceBlockId(long resourceBlockId, int start, int end) throws SystemException
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 ResourceBlockPermissionModelImpl. 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.
resourceBlockId - the resource block IDstart - the lower bound of the range of resource block permissionsend - the upper bound of the range of resource block permissions (not inclusive)SystemException - if a system exception occurredjava.util.List<ResourceBlockPermission> findByResourceBlockId(long resourceBlockId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 ResourceBlockPermissionModelImpl. 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.
resourceBlockId - the resource block IDstart - the lower bound of the range of resource block permissionsend - the upper bound of the range of resource block permissions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredResourceBlockPermission findByResourceBlockId_First(long resourceBlockId, OrderByComparator orderByComparator) throws NoSuchResourceBlockPermissionException, SystemException
resourceBlockId - the resource block IDorderByComparator - the comparator to order the set by (optionally null)NoSuchResourceBlockPermissionException - if a matching resource block permission could not be foundSystemException - if a system exception occurredResourceBlockPermission fetchByResourceBlockId_First(long resourceBlockId, OrderByComparator orderByComparator) throws SystemException
resourceBlockId - the resource block IDorderByComparator - the comparator to order the set by (optionally null)null if a matching resource block permission could not be foundSystemException - if a system exception occurredResourceBlockPermission findByResourceBlockId_Last(long resourceBlockId, OrderByComparator orderByComparator) throws NoSuchResourceBlockPermissionException, SystemException
resourceBlockId - the resource block IDorderByComparator - the comparator to order the set by (optionally null)NoSuchResourceBlockPermissionException - if a matching resource block permission could not be foundSystemException - if a system exception occurredResourceBlockPermission fetchByResourceBlockId_Last(long resourceBlockId, OrderByComparator orderByComparator) throws SystemException
resourceBlockId - the resource block IDorderByComparator - the comparator to order the set by (optionally null)null if a matching resource block permission could not be foundSystemException - if a system exception occurredResourceBlockPermission[] findByResourceBlockId_PrevAndNext(long resourceBlockPermissionId, long resourceBlockId, OrderByComparator orderByComparator) throws NoSuchResourceBlockPermissionException, SystemException
resourceBlockPermissionId - the primary key of the current resource block permissionresourceBlockId - the resource block IDorderByComparator - the comparator to order the set by (optionally null)NoSuchResourceBlockPermissionException - if a resource block permission with the primary key could not be foundSystemException - if a system exception occurredvoid removeByResourceBlockId(long resourceBlockId)
throws SystemException
resourceBlockId - the resource block IDSystemException - if a system exception occurredint countByResourceBlockId(long resourceBlockId)
throws SystemException
resourceBlockId - the resource block IDSystemException - if a system exception occurredjava.util.List<ResourceBlockPermission> findByRoleId(long roleId) throws SystemException
roleId - the role IDSystemException - if a system exception occurredjava.util.List<ResourceBlockPermission> findByRoleId(long roleId, int start, int end) throws SystemException
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 ResourceBlockPermissionModelImpl. 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.
roleId - the role IDstart - the lower bound of the range of resource block permissionsend - the upper bound of the range of resource block permissions (not inclusive)SystemException - if a system exception occurredjava.util.List<ResourceBlockPermission> findByRoleId(long roleId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 ResourceBlockPermissionModelImpl. 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.
roleId - the role IDstart - the lower bound of the range of resource block permissionsend - the upper bound of the range of resource block permissions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredResourceBlockPermission findByRoleId_First(long roleId, OrderByComparator orderByComparator) throws NoSuchResourceBlockPermissionException, SystemException
roleId - the role IDorderByComparator - the comparator to order the set by (optionally null)NoSuchResourceBlockPermissionException - if a matching resource block permission could not be foundSystemException - if a system exception occurredResourceBlockPermission fetchByRoleId_First(long roleId, OrderByComparator orderByComparator) throws SystemException
roleId - the role IDorderByComparator - the comparator to order the set by (optionally null)null if a matching resource block permission could not be foundSystemException - if a system exception occurredResourceBlockPermission findByRoleId_Last(long roleId, OrderByComparator orderByComparator) throws NoSuchResourceBlockPermissionException, SystemException
roleId - the role IDorderByComparator - the comparator to order the set by (optionally null)NoSuchResourceBlockPermissionException - if a matching resource block permission could not be foundSystemException - if a system exception occurredResourceBlockPermission fetchByRoleId_Last(long roleId, OrderByComparator orderByComparator) throws SystemException
roleId - the role IDorderByComparator - the comparator to order the set by (optionally null)null if a matching resource block permission could not be foundSystemException - if a system exception occurredResourceBlockPermission[] findByRoleId_PrevAndNext(long resourceBlockPermissionId, long roleId, OrderByComparator orderByComparator) throws NoSuchResourceBlockPermissionException, SystemException
resourceBlockPermissionId - the primary key of the current resource block permissionroleId - the role IDorderByComparator - the comparator to order the set by (optionally null)NoSuchResourceBlockPermissionException - if a resource block permission with the primary key could not be foundSystemException - if a system exception occurredvoid removeByRoleId(long roleId)
throws SystemException
roleId - the role IDSystemException - if a system exception occurredint countByRoleId(long roleId)
throws SystemException
roleId - the role IDSystemException - if a system exception occurredResourceBlockPermission findByR_R(long resourceBlockId, long roleId) throws NoSuchResourceBlockPermissionException, SystemException
NoSuchResourceBlockPermissionException if it could not be found.resourceBlockId - the resource block IDroleId - the role IDNoSuchResourceBlockPermissionException - if a matching resource block permission could not be foundSystemException - if a system exception occurredResourceBlockPermission fetchByR_R(long resourceBlockId, long roleId) throws SystemException
null if it could not be found. Uses the finder cache.resourceBlockId - the resource block IDroleId - the role IDnull if a matching resource block permission could not be foundSystemException - if a system exception occurredResourceBlockPermission fetchByR_R(long resourceBlockId, long roleId, boolean retrieveFromCache) throws SystemException
null if it could not be found, optionally using the finder cache.resourceBlockId - the resource block IDroleId - the role IDretrieveFromCache - whether to use the finder cachenull if a matching resource block permission could not be foundSystemException - if a system exception occurredResourceBlockPermission removeByR_R(long resourceBlockId, long roleId) throws NoSuchResourceBlockPermissionException, SystemException
resourceBlockId - the resource block IDroleId - the role IDSystemException - if a system exception occurredNoSuchResourceBlockPermissionExceptionint countByR_R(long resourceBlockId,
long roleId)
throws SystemException
resourceBlockId - the resource block IDroleId - the role IDSystemException - if a system exception occurredvoid cacheResult(ResourceBlockPermission resourceBlockPermission)
resourceBlockPermission - the resource block permissionvoid cacheResult(java.util.List<ResourceBlockPermission> resourceBlockPermissions)
resourceBlockPermissions - the resource block permissionsResourceBlockPermission create(long resourceBlockPermissionId)
resourceBlockPermissionId - the primary key for the new resource block permissionResourceBlockPermission remove(long resourceBlockPermissionId) throws NoSuchResourceBlockPermissionException, SystemException
resourceBlockPermissionId - the primary key of the resource block permissionNoSuchResourceBlockPermissionException - if a resource block permission with the primary key could not be foundSystemException - if a system exception occurredResourceBlockPermission updateImpl(ResourceBlockPermission resourceBlockPermission) throws SystemException
SystemExceptionResourceBlockPermission findByPrimaryKey(long resourceBlockPermissionId) throws NoSuchResourceBlockPermissionException, SystemException
NoSuchResourceBlockPermissionException if it could not be found.resourceBlockPermissionId - the primary key of the resource block permissionNoSuchResourceBlockPermissionException - if a resource block permission with the primary key could not be foundSystemException - if a system exception occurredResourceBlockPermission fetchByPrimaryKey(long resourceBlockPermissionId) throws SystemException
null if it could not be found.resourceBlockPermissionId - the primary key of the resource block permissionnull if a resource block permission with the primary key could not be foundSystemException - if a system exception occurredjava.util.List<ResourceBlockPermission> findAll() throws SystemException
SystemException - if a system exception occurredjava.util.List<ResourceBlockPermission> findAll(int start, int end) throws SystemException
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 ResourceBlockPermissionModelImpl. 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 block permissionsend - the upper bound of the range of resource block permissions (not inclusive)SystemException - if a system exception occurredjava.util.List<ResourceBlockPermission> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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 ResourceBlockPermissionModelImpl. 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 block permissionsend - the upper bound of the range of resource block permissions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredvoid removeAll()
throws SystemException
SystemException - if a system exception occurredint countAll()
throws SystemException
SystemException - if a system exception occurred