|
Liferay 6.2.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceBlockPersistence
The persistence interface for the resource block service.
Caching information and settings can be found in portal.properties
ResourceBlockPersistenceImpl,
ResourceBlockUtil| Method Summary | |
|---|---|
void |
cacheResult(List<ResourceBlock> resourceBlocks)
Caches the resource blocks in the entity cache if it is enabled. |
void |
cacheResult(ResourceBlock resourceBlock)
Caches the resource block in the entity cache if it is enabled. |
int |
countAll()
Returns the number of resource blocks. |
int |
countByC_G_N_P(long companyId,
long groupId,
String name,
String permissionsHash)
Returns the number of resource blocks where companyId = ? and groupId = ? and name = ? and permissionsHash = ?. |
int |
countByC_G_N(long companyId,
long groupId,
String name)
Returns the number of resource blocks where companyId = ? and groupId = ? and name = ?. |
int |
countByC_N(long companyId,
String name)
Returns the number of resource blocks where companyId = ? and name = ?. |
ResourceBlock |
create(long resourceBlockId)
Creates a new resource block with the primary key. |
ResourceBlock |
fetchByC_G_N_First(long companyId,
long groupId,
String name,
OrderByComparator orderByComparator)
Returns the first resource block in the ordered set where companyId = ? and groupId = ? and name = ?. |
ResourceBlock |
fetchByC_G_N_Last(long companyId,
long groupId,
String name,
OrderByComparator orderByComparator)
Returns the last resource block in the ordered set where companyId = ? and groupId = ? and name = ?. |
ResourceBlock |
fetchByC_G_N_P(long companyId,
long groupId,
String name,
String permissionsHash)
Returns the resource block where companyId = ? and groupId = ? and name = ? and permissionsHash = ? or returns null if it could not be found. |
ResourceBlock |
fetchByC_G_N_P(long companyId,
long groupId,
String name,
String permissionsHash,
boolean retrieveFromCache)
Returns the resource block where companyId = ? and groupId = ? and name = ? and permissionsHash = ? or returns null if it could not be found, optionally using the finder cache. |
ResourceBlock |
fetchByC_N_First(long companyId,
String name,
OrderByComparator orderByComparator)
Returns the first resource block in the ordered set where companyId = ? and name = ?. |
ResourceBlock |
fetchByC_N_Last(long companyId,
String name,
OrderByComparator orderByComparator)
Returns the last resource block in the ordered set where companyId = ? and name = ?. |
ResourceBlock |
fetchByPrimaryKey(long resourceBlockId)
Returns the resource block with the primary key or returns null if it could not be found. |
List<ResourceBlock> |
findAll()
Returns all the resource blocks. |
List<ResourceBlock> |
findAll(int start,
int end)
Returns a range of all the resource blocks. |
List<ResourceBlock> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the resource blocks. |
ResourceBlock |
findByC_G_N_First(long companyId,
long groupId,
String name,
OrderByComparator orderByComparator)
Returns the first resource block in the ordered set where companyId = ? and groupId = ? and name = ?. |
ResourceBlock |
findByC_G_N_Last(long companyId,
long groupId,
String name,
OrderByComparator orderByComparator)
Returns the last resource block in the ordered set where companyId = ? and groupId = ? and name = ?. |
ResourceBlock |
findByC_G_N_P(long companyId,
long groupId,
String name,
String permissionsHash)
Returns the resource block where companyId = ? and groupId = ? and name = ? and permissionsHash = ? or throws a NoSuchResourceBlockException if it could not be found. |
ResourceBlock[] |
findByC_G_N_PrevAndNext(long resourceBlockId,
long companyId,
long groupId,
String name,
OrderByComparator orderByComparator)
Returns the resource blocks before and after the current resource block in the ordered set where companyId = ? and groupId = ? and name = ?. |
List<ResourceBlock> |
findByC_G_N(long companyId,
long groupId,
String name)
Returns all the resource blocks where companyId = ? and groupId = ? and name = ?. |
List<ResourceBlock> |
findByC_G_N(long companyId,
long groupId,
String name,
int start,
int end)
Returns a range of all the resource blocks where companyId = ? and groupId = ? and name = ?. |
List<ResourceBlock> |
findByC_G_N(long companyId,
long groupId,
String name,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the resource blocks where companyId = ? and groupId = ? and name = ?. |
ResourceBlock |
findByC_N_First(long companyId,
String name,
OrderByComparator orderByComparator)
Returns the first resource block in the ordered set where companyId = ? and name = ?. |
ResourceBlock |
findByC_N_Last(long companyId,
String name,
OrderByComparator orderByComparator)
Returns the last resource block in the ordered set where companyId = ? and name = ?. |
ResourceBlock[] |
findByC_N_PrevAndNext(long resourceBlockId,
long companyId,
String name,
OrderByComparator orderByComparator)
Returns the resource blocks before and after the current resource block in the ordered set where companyId = ? and name = ?. |
List<ResourceBlock> |
findByC_N(long companyId,
String name)
Returns all the resource blocks where companyId = ? and name = ?. |
List<ResourceBlock> |
findByC_N(long companyId,
String name,
int start,
int end)
Returns a range of all the resource blocks where companyId = ? and name = ?. |
List<ResourceBlock> |
findByC_N(long companyId,
String name,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the resource blocks where companyId = ? and name = ?. |
ResourceBlock |
findByPrimaryKey(long resourceBlockId)
Returns the resource block with the primary key or throws a NoSuchResourceBlockException if it could not be found. |
ResourceBlock |
remove(long resourceBlockId)
Removes the resource block with the primary key from the database. |
void |
removeAll()
Removes all the resource blocks from the database. |
ResourceBlock |
removeByC_G_N_P(long companyId,
long groupId,
String name,
String permissionsHash)
Removes the resource block where companyId = ? and groupId = ? and name = ? and permissionsHash = ? from the database. |
void |
removeByC_G_N(long companyId,
long groupId,
String name)
Removes all the resource blocks where companyId = ? and groupId = ? and name = ? from the database. |
void |
removeByC_N(long companyId,
String name)
Removes all the resource blocks where companyId = ? and name = ? from the database. |
ResourceBlock |
updateImpl(ResourceBlock resourceBlock)
|
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update |
| Method Detail |
|---|
List<ResourceBlock> findByC_N(long companyId,
String name)
throws SystemException
companyId - the company IDname - the name
SystemException - if a system exception occurred
List<ResourceBlock> findByC_N(long companyId,
String name,
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 ResourceBlockModelImpl. 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.
companyId - the company IDname - the namestart - the lower bound of the range of resource blocksend - the upper bound of the range of resource blocks (not inclusive)
SystemException - if a system exception occurred
List<ResourceBlock> findByC_N(long companyId,
String name,
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 ResourceBlockModelImpl. 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.
companyId - the company IDname - the namestart - the lower bound of the range of resource blocksend - the upper bound of the range of resource blocks (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
ResourceBlock findByC_N_First(long companyId,
String name,
OrderByComparator orderByComparator)
throws NoSuchResourceBlockException,
SystemException
companyId - the company IDname - the nameorderByComparator - the comparator to order the set by (optionally null)
NoSuchResourceBlockException - if a matching resource block could not be found
SystemException - if a system exception occurred
ResourceBlock fetchByC_N_First(long companyId,
String name,
OrderByComparator orderByComparator)
throws SystemException
companyId - the company IDname - the nameorderByComparator - the comparator to order the set by (optionally null)
null if a matching resource block could not be found
SystemException - if a system exception occurred
ResourceBlock findByC_N_Last(long companyId,
String name,
OrderByComparator orderByComparator)
throws NoSuchResourceBlockException,
SystemException
companyId - the company IDname - the nameorderByComparator - the comparator to order the set by (optionally null)
NoSuchResourceBlockException - if a matching resource block could not be found
SystemException - if a system exception occurred
ResourceBlock fetchByC_N_Last(long companyId,
String name,
OrderByComparator orderByComparator)
throws SystemException
companyId - the company IDname - the nameorderByComparator - the comparator to order the set by (optionally null)
null if a matching resource block could not be found
SystemException - if a system exception occurred
ResourceBlock[] findByC_N_PrevAndNext(long resourceBlockId,
long companyId,
String name,
OrderByComparator orderByComparator)
throws NoSuchResourceBlockException,
SystemException
resourceBlockId - the primary key of the current resource blockcompanyId - the company IDname - the nameorderByComparator - the comparator to order the set by (optionally null)
NoSuchResourceBlockException - if a resource block with the primary key could not be found
SystemException - if a system exception occurred
void removeByC_N(long companyId,
String name)
throws SystemException
companyId - the company IDname - the name
SystemException - if a system exception occurred
int countByC_N(long companyId,
String name)
throws SystemException
companyId - the company IDname - the name
SystemException - if a system exception occurred
List<ResourceBlock> findByC_G_N(long companyId,
long groupId,
String name)
throws SystemException
companyId - the company IDgroupId - the group IDname - the name
SystemException - if a system exception occurred
List<ResourceBlock> findByC_G_N(long companyId,
long groupId,
String name,
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 ResourceBlockModelImpl. 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.
companyId - the company IDgroupId - the group IDname - the namestart - the lower bound of the range of resource blocksend - the upper bound of the range of resource blocks (not inclusive)
SystemException - if a system exception occurred
List<ResourceBlock> findByC_G_N(long companyId,
long groupId,
String name,
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 ResourceBlockModelImpl. 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.
companyId - the company IDgroupId - the group IDname - the namestart - the lower bound of the range of resource blocksend - the upper bound of the range of resource blocks (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
ResourceBlock findByC_G_N_First(long companyId,
long groupId,
String name,
OrderByComparator orderByComparator)
throws NoSuchResourceBlockException,
SystemException
companyId - the company IDgroupId - the group IDname - the nameorderByComparator - the comparator to order the set by (optionally null)
NoSuchResourceBlockException - if a matching resource block could not be found
SystemException - if a system exception occurred
ResourceBlock fetchByC_G_N_First(long companyId,
long groupId,
String name,
OrderByComparator orderByComparator)
throws SystemException
companyId - the company IDgroupId - the group IDname - the nameorderByComparator - the comparator to order the set by (optionally null)
null if a matching resource block could not be found
SystemException - if a system exception occurred
ResourceBlock findByC_G_N_Last(long companyId,
long groupId,
String name,
OrderByComparator orderByComparator)
throws NoSuchResourceBlockException,
SystemException
companyId - the company IDgroupId - the group IDname - the nameorderByComparator - the comparator to order the set by (optionally null)
NoSuchResourceBlockException - if a matching resource block could not be found
SystemException - if a system exception occurred
ResourceBlock fetchByC_G_N_Last(long companyId,
long groupId,
String name,
OrderByComparator orderByComparator)
throws SystemException
companyId - the company IDgroupId - the group IDname - the nameorderByComparator - the comparator to order the set by (optionally null)
null if a matching resource block could not be found
SystemException - if a system exception occurred
ResourceBlock[] findByC_G_N_PrevAndNext(long resourceBlockId,
long companyId,
long groupId,
String name,
OrderByComparator orderByComparator)
throws NoSuchResourceBlockException,
SystemException
resourceBlockId - the primary key of the current resource blockcompanyId - the company IDgroupId - the group IDname - the nameorderByComparator - the comparator to order the set by (optionally null)
NoSuchResourceBlockException - if a resource block with the primary key could not be found
SystemException - if a system exception occurred
void removeByC_G_N(long companyId,
long groupId,
String name)
throws SystemException
companyId - the company IDgroupId - the group IDname - the name
SystemException - if a system exception occurred
int countByC_G_N(long companyId,
long groupId,
String name)
throws SystemException
companyId - the company IDgroupId - the group IDname - the name
SystemException - if a system exception occurred
ResourceBlock findByC_G_N_P(long companyId,
long groupId,
String name,
String permissionsHash)
throws NoSuchResourceBlockException,
SystemException
NoSuchResourceBlockException if it could not be found.
companyId - the company IDgroupId - the group IDname - the namepermissionsHash - the permissions hash
NoSuchResourceBlockException - if a matching resource block could not be found
SystemException - if a system exception occurred
ResourceBlock fetchByC_G_N_P(long companyId,
long groupId,
String name,
String permissionsHash)
throws SystemException
null if it could not be found. Uses the finder cache.
companyId - the company IDgroupId - the group IDname - the namepermissionsHash - the permissions hash
null if a matching resource block could not be found
SystemException - if a system exception occurred
ResourceBlock fetchByC_G_N_P(long companyId,
long groupId,
String name,
String permissionsHash,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
companyId - the company IDgroupId - the group IDname - the namepermissionsHash - the permissions hashretrieveFromCache - whether to use the finder cache
null if a matching resource block could not be found
SystemException - if a system exception occurred
ResourceBlock removeByC_G_N_P(long companyId,
long groupId,
String name,
String permissionsHash)
throws NoSuchResourceBlockException,
SystemException
companyId - the company IDgroupId - the group IDname - the namepermissionsHash - the permissions hash
SystemException - if a system exception occurred
NoSuchResourceBlockException
int countByC_G_N_P(long companyId,
long groupId,
String name,
String permissionsHash)
throws SystemException
companyId - the company IDgroupId - the group IDname - the namepermissionsHash - the permissions hash
SystemException - if a system exception occurredvoid cacheResult(ResourceBlock resourceBlock)
resourceBlock - the resource blockvoid cacheResult(List<ResourceBlock> resourceBlocks)
resourceBlocks - the resource blocksResourceBlock create(long resourceBlockId)
resourceBlockId - the primary key for the new resource block
ResourceBlock remove(long resourceBlockId)
throws NoSuchResourceBlockException,
SystemException
resourceBlockId - the primary key of the resource block
NoSuchResourceBlockException - if a resource block with the primary key could not be found
SystemException - if a system exception occurred
ResourceBlock updateImpl(ResourceBlock resourceBlock)
throws SystemException
SystemException
ResourceBlock findByPrimaryKey(long resourceBlockId)
throws NoSuchResourceBlockException,
SystemException
NoSuchResourceBlockException if it could not be found.
resourceBlockId - the primary key of the resource block
NoSuchResourceBlockException - if a resource block with the primary key could not be found
SystemException - if a system exception occurred
ResourceBlock fetchByPrimaryKey(long resourceBlockId)
throws SystemException
null if it could not be found.
resourceBlockId - the primary key of the resource block
null if a resource block with the primary key could not be found
SystemException - if a system exception occurred
List<ResourceBlock> findAll()
throws SystemException
SystemException - if a system exception occurred
List<ResourceBlock> 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 ResourceBlockModelImpl. 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 blocksend - the upper bound of the range of resource blocks (not inclusive)
SystemException - if a system exception occurred
List<ResourceBlock> 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 ResourceBlockModelImpl. 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 blocksend - the upper bound of the range of resource blocks (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
void removeAll()
throws SystemException
SystemException - if a system exception occurred
int countAll()
throws SystemException
SystemException - if a system exception occurred
|
Liferay 6.2.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||