|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<ResourceBlockPermission>
com.liferay.portal.service.persistence.impl.ResourceBlockPermissionPersistenceImpl
@ProviderType public class ResourceBlockPermissionPersistenceImpl
The persistence implementation for the resource block permission service.
Caching information and settings can be found in portal.properties
ResourceBlockPermissionPersistence,
ResourceBlockPermissionUtil| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
| Constructor Summary | |
|---|---|
ResourceBlockPermissionPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Initializes the resource block permission persistence. |
void |
cacheResult(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. |
protected void |
cacheUniqueFindersCache(ResourceBlockPermissionModelImpl resourceBlockPermissionModelImpl,
boolean isNew)
|
void |
clearCache()
Clears the cache for all resource block permissions. |
void |
clearCache(List<ResourceBlockPermission> resourceBlockPermissions)
Clears the cache for a List instances of this model. |
void |
clearCache(ResourceBlockPermission resourceBlockPermission)
Clears the cache for the resource block permission. |
protected void |
clearUniqueFindersCache(ResourceBlockPermissionModelImpl resourceBlockPermissionModelImpl)
|
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. |
void |
destroy()
|
ResourceBlockPermission |
fetchByPrimaryKey(long resourceBlockPermissionId)
Returns the resource block permission with the primary key or returns null if it could not be found. |
ResourceBlockPermission |
fetchByPrimaryKey(Serializable primaryKey)
Returns the resource block permission with the primary key or returns null if it could not be found. |
Map<Serializable,ResourceBlockPermission> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
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<ResourceBlockPermission> orderByComparator)
Returns the first resource block permission in the ordered set where resourceBlockId = ?. |
ResourceBlockPermission |
fetchByResourceBlockId_Last(long resourceBlockId,
OrderByComparator<ResourceBlockPermission> orderByComparator)
Returns the last resource block permission in the ordered set where resourceBlockId = ?. |
ResourceBlockPermission |
fetchByRoleId_First(long roleId,
OrderByComparator<ResourceBlockPermission> orderByComparator)
Returns the first resource block permission in the ordered set where roleId = ?. |
ResourceBlockPermission |
fetchByRoleId_Last(long roleId,
OrderByComparator<ResourceBlockPermission> orderByComparator)
Returns the last resource block permission in the ordered set where roleId = ?. |
List<ResourceBlockPermission> |
findAll()
Returns all the resource block permissions. |
List<ResourceBlockPermission> |
findAll(int start,
int end)
Returns a range of all the resource block permissions. |
List<ResourceBlockPermission> |
findAll(int start,
int end,
OrderByComparator<ResourceBlockPermission> orderByComparator)
Returns an ordered range of all the resource block permissions. |
List<ResourceBlockPermission> |
findAll(int start,
int end,
OrderByComparator<ResourceBlockPermission> orderByComparator,
boolean retrieveFromCache)
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 |
findByPrimaryKey(Serializable primaryKey)
Returns the resource block permission with the primary key or throws a NoSuchModelException 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<ResourceBlockPermission> orderByComparator)
Returns the first resource block permission in the ordered set where resourceBlockId = ?. |
ResourceBlockPermission |
findByResourceBlockId_Last(long resourceBlockId,
OrderByComparator<ResourceBlockPermission> orderByComparator)
Returns the last resource block permission in the ordered set where resourceBlockId = ?. |
ResourceBlockPermission[] |
findByResourceBlockId_PrevAndNext(long resourceBlockPermissionId,
long resourceBlockId,
OrderByComparator<ResourceBlockPermission> orderByComparator)
Returns the resource block permissions before and after the current resource block permission in the ordered set where resourceBlockId = ?. |
List<ResourceBlockPermission> |
findByResourceBlockId(long resourceBlockId)
Returns all the resource block permissions where resourceBlockId = ?. |
List<ResourceBlockPermission> |
findByResourceBlockId(long resourceBlockId,
int start,
int end)
Returns a range of all the resource block permissions where resourceBlockId = ?. |
List<ResourceBlockPermission> |
findByResourceBlockId(long resourceBlockId,
int start,
int end,
OrderByComparator<ResourceBlockPermission> orderByComparator)
Returns an ordered range of all the resource block permissions where resourceBlockId = ?. |
List<ResourceBlockPermission> |
findByResourceBlockId(long resourceBlockId,
int start,
int end,
OrderByComparator<ResourceBlockPermission> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the resource block permissions where resourceBlockId = ?. |
ResourceBlockPermission |
findByRoleId_First(long roleId,
OrderByComparator<ResourceBlockPermission> orderByComparator)
Returns the first resource block permission in the ordered set where roleId = ?. |
ResourceBlockPermission |
findByRoleId_Last(long roleId,
OrderByComparator<ResourceBlockPermission> orderByComparator)
Returns the last resource block permission in the ordered set where roleId = ?. |
ResourceBlockPermission[] |
findByRoleId_PrevAndNext(long resourceBlockPermissionId,
long roleId,
OrderByComparator<ResourceBlockPermission> orderByComparator)
Returns the resource block permissions before and after the current resource block permission in the ordered set where roleId = ?. |
List<ResourceBlockPermission> |
findByRoleId(long roleId)
Returns all the resource block permissions where roleId = ?. |
List<ResourceBlockPermission> |
findByRoleId(long roleId,
int start,
int end)
Returns a range of all the resource block permissions where roleId = ?. |
List<ResourceBlockPermission> |
findByRoleId(long roleId,
int start,
int end,
OrderByComparator<ResourceBlockPermission> orderByComparator)
Returns an ordered range of all the resource block permissions where roleId = ?. |
List<ResourceBlockPermission> |
findByRoleId(long roleId,
int start,
int end,
OrderByComparator<ResourceBlockPermission> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the resource block permissions where roleId = ?. |
protected ResourceBlockPermission |
getByResourceBlockId_PrevAndNext(Session session,
ResourceBlockPermission resourceBlockPermission,
long resourceBlockId,
OrderByComparator<ResourceBlockPermission> orderByComparator,
boolean previous)
|
protected ResourceBlockPermission |
getByRoleId_PrevAndNext(Session session,
ResourceBlockPermission resourceBlockPermission,
long roleId,
OrderByComparator<ResourceBlockPermission> orderByComparator,
boolean previous)
|
protected Map<String,Integer> |
getTableColumnsMap()
|
ResourceBlockPermission |
remove(long resourceBlockPermissionId)
Removes the resource block permission with the primary key from the database. |
ResourceBlockPermission |
remove(Serializable primaryKey)
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. |
protected ResourceBlockPermission |
removeImpl(ResourceBlockPermission resourceBlockPermission)
Removes the model instance from the database. |
protected ResourceBlockPermission |
toUnwrappedModel(ResourceBlockPermission resourceBlockPermission)
|
ResourceBlockPermission |
updateImpl(ResourceBlockPermission resourceBlockPermission)
Updates the model instance in the database or adds it if it does not yet exist. |
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_RESOURCEBLOCKID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_RESOURCEBLOCKID
public static final FinderPath FINDER_PATH_COUNT_BY_RESOURCEBLOCKID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_ROLEID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ROLEID
public static final FinderPath FINDER_PATH_COUNT_BY_ROLEID
public static final FinderPath FINDER_PATH_FETCH_BY_R_R
public static final FinderPath FINDER_PATH_COUNT_BY_R_R
@BeanReference(type=CompanyProviderWrapper.class) protected CompanyProvider companyProvider
protected EntityCache entityCache
protected FinderCache finderCache
| Constructor Detail |
|---|
public ResourceBlockPermissionPersistenceImpl()
| Method Detail |
|---|
public List<ResourceBlockPermission> findByResourceBlockId(long resourceBlockId)
findByResourceBlockId in interface ResourceBlockPermissionPersistenceresourceBlockId - the resource block ID
public List<ResourceBlockPermission> findByResourceBlockId(long resourceBlockId,
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 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.
findByResourceBlockId in interface ResourceBlockPermissionPersistenceresourceBlockId - 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)
public List<ResourceBlockPermission> findByResourceBlockId(long resourceBlockId,
int start,
int end,
OrderByComparator<ResourceBlockPermission> 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 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.
findByResourceBlockId in interface ResourceBlockPermissionPersistenceresourceBlockId - 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)
public List<ResourceBlockPermission> findByResourceBlockId(long resourceBlockId,
int start,
int end,
OrderByComparator<ResourceBlockPermission> 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 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.
findByResourceBlockId in interface ResourceBlockPermissionPersistenceresourceBlockId - 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)retrieveFromCache - whether to retrieve from the finder cache
public ResourceBlockPermission findByResourceBlockId_First(long resourceBlockId,
OrderByComparator<ResourceBlockPermission> orderByComparator)
throws NoSuchResourceBlockPermissionException
findByResourceBlockId_First in interface ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchResourceBlockPermissionException - if a matching resource block permission could not be found
public ResourceBlockPermission fetchByResourceBlockId_First(long resourceBlockId,
OrderByComparator<ResourceBlockPermission> orderByComparator)
fetchByResourceBlockId_First in interface ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching resource block permission could not be found
public ResourceBlockPermission findByResourceBlockId_Last(long resourceBlockId,
OrderByComparator<ResourceBlockPermission> orderByComparator)
throws NoSuchResourceBlockPermissionException
findByResourceBlockId_Last in interface ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchResourceBlockPermissionException - if a matching resource block permission could not be found
public ResourceBlockPermission fetchByResourceBlockId_Last(long resourceBlockId,
OrderByComparator<ResourceBlockPermission> orderByComparator)
fetchByResourceBlockId_Last in interface ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching resource block permission could not be found
public ResourceBlockPermission[] findByResourceBlockId_PrevAndNext(long resourceBlockPermissionId,
long resourceBlockId,
OrderByComparator<ResourceBlockPermission> orderByComparator)
throws NoSuchResourceBlockPermissionException
findByResourceBlockId_PrevAndNext in interface ResourceBlockPermissionPersistenceresourceBlockPermissionId - 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 found
protected ResourceBlockPermission getByResourceBlockId_PrevAndNext(Session session,
ResourceBlockPermission resourceBlockPermission,
long resourceBlockId,
OrderByComparator<ResourceBlockPermission> orderByComparator,
boolean previous)
public void removeByResourceBlockId(long resourceBlockId)
removeByResourceBlockId in interface ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDpublic int countByResourceBlockId(long resourceBlockId)
countByResourceBlockId in interface ResourceBlockPermissionPersistenceresourceBlockId - the resource block ID
public List<ResourceBlockPermission> findByRoleId(long roleId)
findByRoleId in interface ResourceBlockPermissionPersistenceroleId - the role ID
public List<ResourceBlockPermission> findByRoleId(long roleId,
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 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.
findByRoleId in interface ResourceBlockPermissionPersistenceroleId - 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)
public List<ResourceBlockPermission> findByRoleId(long roleId,
int start,
int end,
OrderByComparator<ResourceBlockPermission> 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 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.
findByRoleId in interface ResourceBlockPermissionPersistenceroleId - 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)
public List<ResourceBlockPermission> findByRoleId(long roleId,
int start,
int end,
OrderByComparator<ResourceBlockPermission> 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 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.
findByRoleId in interface ResourceBlockPermissionPersistenceroleId - 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)retrieveFromCache - whether to retrieve from the finder cache
public ResourceBlockPermission findByRoleId_First(long roleId,
OrderByComparator<ResourceBlockPermission> orderByComparator)
throws NoSuchResourceBlockPermissionException
findByRoleId_First in interface ResourceBlockPermissionPersistenceroleId - the role IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchResourceBlockPermissionException - if a matching resource block permission could not be found
public ResourceBlockPermission fetchByRoleId_First(long roleId,
OrderByComparator<ResourceBlockPermission> orderByComparator)
fetchByRoleId_First in interface ResourceBlockPermissionPersistenceroleId - the role IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching resource block permission could not be found
public ResourceBlockPermission findByRoleId_Last(long roleId,
OrderByComparator<ResourceBlockPermission> orderByComparator)
throws NoSuchResourceBlockPermissionException
findByRoleId_Last in interface ResourceBlockPermissionPersistenceroleId - the role IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchResourceBlockPermissionException - if a matching resource block permission could not be found
public ResourceBlockPermission fetchByRoleId_Last(long roleId,
OrderByComparator<ResourceBlockPermission> orderByComparator)
fetchByRoleId_Last in interface ResourceBlockPermissionPersistenceroleId - the role IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching resource block permission could not be found
public ResourceBlockPermission[] findByRoleId_PrevAndNext(long resourceBlockPermissionId,
long roleId,
OrderByComparator<ResourceBlockPermission> orderByComparator)
throws NoSuchResourceBlockPermissionException
findByRoleId_PrevAndNext in interface ResourceBlockPermissionPersistenceresourceBlockPermissionId - 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 found
protected ResourceBlockPermission getByRoleId_PrevAndNext(Session session,
ResourceBlockPermission resourceBlockPermission,
long roleId,
OrderByComparator<ResourceBlockPermission> orderByComparator,
boolean previous)
public void removeByRoleId(long roleId)
removeByRoleId in interface ResourceBlockPermissionPersistenceroleId - the role IDpublic int countByRoleId(long roleId)
countByRoleId in interface ResourceBlockPermissionPersistenceroleId - the role ID
public ResourceBlockPermission findByR_R(long resourceBlockId,
long roleId)
throws NoSuchResourceBlockPermissionException
NoSuchResourceBlockPermissionException if it could not be found.
findByR_R in interface ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDroleId - the role ID
NoSuchResourceBlockPermissionException - if a matching resource block permission could not be found
public ResourceBlockPermission fetchByR_R(long resourceBlockId,
long roleId)
null if it could not be found. Uses the finder cache.
fetchByR_R in interface ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDroleId - the role ID
null if a matching resource block permission could not be found
public ResourceBlockPermission fetchByR_R(long resourceBlockId,
long roleId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByR_R in interface ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDroleId - the role IDretrieveFromCache - whether to retrieve from the finder cache
null if a matching resource block permission could not be found
public ResourceBlockPermission removeByR_R(long resourceBlockId,
long roleId)
throws NoSuchResourceBlockPermissionException
removeByR_R in interface ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDroleId - the role ID
NoSuchResourceBlockPermissionException
public int countByR_R(long resourceBlockId,
long roleId)
countByR_R in interface ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDroleId - the role ID
public void cacheResult(ResourceBlockPermission resourceBlockPermission)
cacheResult in interface ResourceBlockPermissionPersistenceresourceBlockPermission - the resource block permissionpublic void cacheResult(List<ResourceBlockPermission> resourceBlockPermissions)
cacheResult in interface ResourceBlockPermissionPersistenceresourceBlockPermissions - the resource block permissionspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<ResourceBlockPermission>clearCache in class BasePersistenceImpl<ResourceBlockPermission>public void clearCache(ResourceBlockPermission resourceBlockPermission)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<ResourceBlockPermission>clearCache in class BasePersistenceImpl<ResourceBlockPermission>resourceBlockPermission - the instance of this model to clear the cache forpublic void clearCache(List<ResourceBlockPermission> resourceBlockPermissions)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<ResourceBlockPermission>clearCache in class BasePersistenceImpl<ResourceBlockPermission>resourceBlockPermissions - the List instances of this model to clear the cache for
protected void cacheUniqueFindersCache(ResourceBlockPermissionModelImpl resourceBlockPermissionModelImpl,
boolean isNew)
protected void clearUniqueFindersCache(ResourceBlockPermissionModelImpl resourceBlockPermissionModelImpl)
public ResourceBlockPermission create(long resourceBlockPermissionId)
create in interface ResourceBlockPermissionPersistenceresourceBlockPermissionId - the primary key for the new resource block permission
public ResourceBlockPermission remove(long resourceBlockPermissionId)
throws NoSuchResourceBlockPermissionException
remove in interface ResourceBlockPermissionPersistenceresourceBlockPermissionId - the primary key of the resource block permission
NoSuchResourceBlockPermissionException - if a resource block permission with the primary key could not be found
public ResourceBlockPermission remove(Serializable primaryKey)
throws NoSuchResourceBlockPermissionException
remove in interface BasePersistence<ResourceBlockPermission>remove in class BasePersistenceImpl<ResourceBlockPermission>primaryKey - the primary key of the resource block permission
NoSuchResourceBlockPermissionException - if a resource block permission with the primary key could not be foundprotected ResourceBlockPermission removeImpl(ResourceBlockPermission resourceBlockPermission)
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<ResourceBlockPermission>resourceBlockPermission - the model instance to remove
public ResourceBlockPermission updateImpl(ResourceBlockPermission resourceBlockPermission)
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface ResourceBlockPermissionPersistenceupdateImpl in class BasePersistenceImpl<ResourceBlockPermission>resourceBlockPermission - the model instance to update
protected ResourceBlockPermission toUnwrappedModel(ResourceBlockPermission resourceBlockPermission)
public ResourceBlockPermission findByPrimaryKey(Serializable primaryKey)
throws NoSuchResourceBlockPermissionException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<ResourceBlockPermission>findByPrimaryKey in class BasePersistenceImpl<ResourceBlockPermission>primaryKey - the primary key of the resource block permission
NoSuchResourceBlockPermissionException - if a resource block permission with the primary key could not be found
public ResourceBlockPermission findByPrimaryKey(long resourceBlockPermissionId)
throws NoSuchResourceBlockPermissionException
NoSuchResourceBlockPermissionException if it could not be found.
findByPrimaryKey in interface ResourceBlockPermissionPersistenceresourceBlockPermissionId - the primary key of the resource block permission
NoSuchResourceBlockPermissionException - if a resource block permission with the primary key could not be foundpublic ResourceBlockPermission fetchByPrimaryKey(Serializable primaryKey)
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<ResourceBlockPermission>fetchByPrimaryKey in class BasePersistenceImpl<ResourceBlockPermission>primaryKey - the primary key of the resource block permission
null if a resource block permission with the primary key could not be foundpublic ResourceBlockPermission fetchByPrimaryKey(long resourceBlockPermissionId)
null if it could not be found.
fetchByPrimaryKey in interface ResourceBlockPermissionPersistenceresourceBlockPermissionId - the primary key of the resource block permission
null if a resource block permission with the primary key could not be foundpublic Map<Serializable,ResourceBlockPermission> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<ResourceBlockPermission>fetchByPrimaryKeys in interface ResourceBlockPermissionPersistencefetchByPrimaryKeys in class BasePersistenceImpl<ResourceBlockPermission>public List<ResourceBlockPermission> findAll()
findAll in interface ResourceBlockPermissionPersistence
public List<ResourceBlockPermission> 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 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.
findAll in interface ResourceBlockPermissionPersistencestart - the lower bound of the range of resource block permissionsend - the upper bound of the range of resource block permissions (not inclusive)
public List<ResourceBlockPermission> findAll(int start,
int end,
OrderByComparator<ResourceBlockPermission> 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 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.
findAll in interface ResourceBlockPermissionPersistencestart - 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)
public List<ResourceBlockPermission> findAll(int start,
int end,
OrderByComparator<ResourceBlockPermission> 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 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.
findAll in interface ResourceBlockPermissionPersistencestart - 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)retrieveFromCache - whether to retrieve from the finder cache
public void removeAll()
removeAll in interface ResourceBlockPermissionPersistencepublic int countAll()
countAll in interface ResourceBlockPermissionPersistenceprotected Map<String,Integer> getTableColumnsMap()
getTableColumnsMap in class BasePersistenceImpl<ResourceBlockPermission>public void afterPropertiesSet()
public void destroy()
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||