@ProviderType
public class ResourceBlockPermissionPersistenceImpl
extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.ResourceBlockPermission>
implements com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistence
Caching information and settings can be found in portal.properties
ResourceBlockPermissionPersistence,
ResourceBlockPermissionUtil| Modifier and Type | Field and Description |
|---|---|
protected com.liferay.portal.kernel.service.persistence.CompanyProvider |
companyProvider |
protected com.liferay.portal.kernel.dao.orm.EntityCache |
entityCache |
static String |
FINDER_CLASS_NAME_ENTITY |
static String |
FINDER_CLASS_NAME_LIST_WITH_PAGINATION |
static String |
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_R_R |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_RESOURCEBLOCKID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_ROLEID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_FETCH_BY_R_R |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_RESOURCEBLOCKID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_ROLEID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_RESOURCEBLOCKID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ROLEID |
protected com.liferay.portal.kernel.dao.orm.FinderCache |
finderCache |
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, nullModel, 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 and Description |
|---|
ResourceBlockPermissionPersistenceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Initializes the resource block permission persistence.
|
void |
cacheResult(List<com.liferay.portal.kernel.model.ResourceBlockPermission> resourceBlockPermissions)
Caches the resource block permissions in the entity cache if it is enabled.
|
void |
cacheResult(com.liferay.portal.kernel.model.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<com.liferay.portal.kernel.model.ResourceBlockPermission> resourceBlockPermissions) |
void |
clearCache(com.liferay.portal.kernel.model.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 = ?.
|
com.liferay.portal.kernel.model.ResourceBlockPermission |
create(long resourceBlockPermissionId)
Creates a new resource block permission with the primary key.
|
void |
destroy() |
com.liferay.portal.kernel.model.ResourceBlockPermission |
fetchByPrimaryKey(long resourceBlockPermissionId)
Returns the resource block permission with the primary key or returns
null if it could not be found. |
com.liferay.portal.kernel.model.ResourceBlockPermission |
fetchByPrimaryKey(Serializable primaryKey)
Returns the resource block permission with the primary key or returns
null if it could not be found. |
Map<Serializable,com.liferay.portal.kernel.model.ResourceBlockPermission> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
com.liferay.portal.kernel.model.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. |
com.liferay.portal.kernel.model.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. |
com.liferay.portal.kernel.model.ResourceBlockPermission |
fetchByResourceBlockId_First(long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
Returns the first resource block permission in the ordered set where resourceBlockId = ?.
|
com.liferay.portal.kernel.model.ResourceBlockPermission |
fetchByResourceBlockId_Last(long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
Returns the last resource block permission in the ordered set where resourceBlockId = ?.
|
com.liferay.portal.kernel.model.ResourceBlockPermission |
fetchByRoleId_First(long roleId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
Returns the first resource block permission in the ordered set where roleId = ?.
|
com.liferay.portal.kernel.model.ResourceBlockPermission |
fetchByRoleId_Last(long roleId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
Returns the last resource block permission in the ordered set where roleId = ?.
|
List<com.liferay.portal.kernel.model.ResourceBlockPermission> |
findAll()
Returns all the resource block permissions.
|
List<com.liferay.portal.kernel.model.ResourceBlockPermission> |
findAll(int start,
int end)
Returns a range of all the resource block permissions.
|
List<com.liferay.portal.kernel.model.ResourceBlockPermission> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
Returns an ordered range of all the resource block permissions.
|
List<com.liferay.portal.kernel.model.ResourceBlockPermission> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the resource block permissions.
|
com.liferay.portal.kernel.model.ResourceBlockPermission |
findByPrimaryKey(long resourceBlockPermissionId)
Returns the resource block permission with the primary key or throws a
NoSuchResourceBlockPermissionException if it could not be found. |
com.liferay.portal.kernel.model.ResourceBlockPermission |
findByPrimaryKey(Serializable primaryKey)
Returns the resource block permission with the primary key or throws a
NoSuchModelException if it could not be found. |
com.liferay.portal.kernel.model.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. |
com.liferay.portal.kernel.model.ResourceBlockPermission |
findByResourceBlockId_First(long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
Returns the first resource block permission in the ordered set where resourceBlockId = ?.
|
com.liferay.portal.kernel.model.ResourceBlockPermission |
findByResourceBlockId_Last(long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
Returns the last resource block permission in the ordered set where resourceBlockId = ?.
|
com.liferay.portal.kernel.model.ResourceBlockPermission[] |
findByResourceBlockId_PrevAndNext(long resourceBlockPermissionId,
long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
Returns the resource block permissions before and after the current resource block permission in the ordered set where resourceBlockId = ?.
|
List<com.liferay.portal.kernel.model.ResourceBlockPermission> |
findByResourceBlockId(long resourceBlockId)
Returns all the resource block permissions where resourceBlockId = ?.
|
List<com.liferay.portal.kernel.model.ResourceBlockPermission> |
findByResourceBlockId(long resourceBlockId,
int start,
int end)
Returns a range of all the resource block permissions where resourceBlockId = ?.
|
List<com.liferay.portal.kernel.model.ResourceBlockPermission> |
findByResourceBlockId(long resourceBlockId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
Returns an ordered range of all the resource block permissions where resourceBlockId = ?.
|
List<com.liferay.portal.kernel.model.ResourceBlockPermission> |
findByResourceBlockId(long resourceBlockId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the resource block permissions where resourceBlockId = ?.
|
com.liferay.portal.kernel.model.ResourceBlockPermission |
findByRoleId_First(long roleId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
Returns the first resource block permission in the ordered set where roleId = ?.
|
com.liferay.portal.kernel.model.ResourceBlockPermission |
findByRoleId_Last(long roleId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
Returns the last resource block permission in the ordered set where roleId = ?.
|
com.liferay.portal.kernel.model.ResourceBlockPermission[] |
findByRoleId_PrevAndNext(long resourceBlockPermissionId,
long roleId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
Returns the resource block permissions before and after the current resource block permission in the ordered set where roleId = ?.
|
List<com.liferay.portal.kernel.model.ResourceBlockPermission> |
findByRoleId(long roleId)
Returns all the resource block permissions where roleId = ?.
|
List<com.liferay.portal.kernel.model.ResourceBlockPermission> |
findByRoleId(long roleId,
int start,
int end)
Returns a range of all the resource block permissions where roleId = ?.
|
List<com.liferay.portal.kernel.model.ResourceBlockPermission> |
findByRoleId(long roleId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
Returns an ordered range of all the resource block permissions where roleId = ?.
|
List<com.liferay.portal.kernel.model.ResourceBlockPermission> |
findByRoleId(long roleId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the resource block permissions where roleId = ?.
|
protected com.liferay.portal.kernel.model.ResourceBlockPermission |
getByResourceBlockId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.kernel.model.ResourceBlockPermission resourceBlockPermission,
long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator,
boolean previous) |
protected com.liferay.portal.kernel.model.ResourceBlockPermission |
getByRoleId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.kernel.model.ResourceBlockPermission resourceBlockPermission,
long roleId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator,
boolean previous) |
protected Map<String,Integer> |
getTableColumnsMap() |
com.liferay.portal.kernel.model.ResourceBlockPermission |
remove(long resourceBlockPermissionId)
Removes the resource block permission with the primary key from the database.
|
com.liferay.portal.kernel.model.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.
|
com.liferay.portal.kernel.model.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 com.liferay.portal.kernel.model.ResourceBlockPermission |
removeImpl(com.liferay.portal.kernel.model.ResourceBlockPermission resourceBlockPermission) |
protected com.liferay.portal.kernel.model.ResourceBlockPermission |
toUnwrappedModel(com.liferay.portal.kernel.model.ResourceBlockPermission resourceBlockPermission) |
com.liferay.portal.kernel.model.ResourceBlockPermission |
updateImpl(com.liferay.portal.kernel.model.ResourceBlockPermission resourceBlockPermission) |
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, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, updatepublic 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 com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_RESOURCEBLOCKID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_RESOURCEBLOCKID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_RESOURCEBLOCKID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_ROLEID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ROLEID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_ROLEID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_R_R
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_R_R
@BeanReference(type=com.liferay.portal.kernel.service.persistence.CompanyProviderWrapper.class) protected com.liferay.portal.kernel.service.persistence.CompanyProvider companyProvider
protected com.liferay.portal.kernel.dao.orm.EntityCache entityCache
protected com.liferay.portal.kernel.dao.orm.FinderCache finderCache
public ResourceBlockPermissionPersistenceImpl()
public List<com.liferay.portal.kernel.model.ResourceBlockPermission> findByResourceBlockId(long resourceBlockId)
findByResourceBlockId in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDpublic List<com.liferay.portal.kernel.model.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 com.liferay.portal.kernel.service.persistence.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<com.liferay.portal.kernel.model.ResourceBlockPermission> findByResourceBlockId(long resourceBlockId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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 com.liferay.portal.kernel.service.persistence.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<com.liferay.portal.kernel.model.ResourceBlockPermission> findByResourceBlockId(long resourceBlockId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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 com.liferay.portal.kernel.service.persistence.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 cachepublic com.liferay.portal.kernel.model.ResourceBlockPermission findByResourceBlockId_First(long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
throws com.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException
findByResourceBlockId_First in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException - if a matching resource block permission could not be foundpublic com.liferay.portal.kernel.model.ResourceBlockPermission fetchByResourceBlockId_First(long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
fetchByResourceBlockId_First in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDorderByComparator - the comparator to order the set by (optionally null)null if a matching resource block permission could not be foundpublic com.liferay.portal.kernel.model.ResourceBlockPermission findByResourceBlockId_Last(long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
throws com.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException
findByResourceBlockId_Last in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException - if a matching resource block permission could not be foundpublic com.liferay.portal.kernel.model.ResourceBlockPermission fetchByResourceBlockId_Last(long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
fetchByResourceBlockId_Last in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDorderByComparator - the comparator to order the set by (optionally null)null if a matching resource block permission could not be foundpublic com.liferay.portal.kernel.model.ResourceBlockPermission[] findByResourceBlockId_PrevAndNext(long resourceBlockPermissionId,
long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
throws com.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException
findByResourceBlockId_PrevAndNext in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceresourceBlockPermissionId - the primary key of the current resource block permissionresourceBlockId - the resource block IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException - if a resource block permission with the primary key could not be foundprotected com.liferay.portal.kernel.model.ResourceBlockPermission getByResourceBlockId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.kernel.model.ResourceBlockPermission resourceBlockPermission,
long resourceBlockId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator,
boolean previous)
public void removeByResourceBlockId(long resourceBlockId)
removeByResourceBlockId in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDpublic int countByResourceBlockId(long resourceBlockId)
countByResourceBlockId in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDpublic List<com.liferay.portal.kernel.model.ResourceBlockPermission> findByRoleId(long roleId)
findByRoleId in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceroleId - the role IDpublic List<com.liferay.portal.kernel.model.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 com.liferay.portal.kernel.service.persistence.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<com.liferay.portal.kernel.model.ResourceBlockPermission> findByRoleId(long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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 com.liferay.portal.kernel.service.persistence.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<com.liferay.portal.kernel.model.ResourceBlockPermission> findByRoleId(long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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 com.liferay.portal.kernel.service.persistence.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 cachepublic com.liferay.portal.kernel.model.ResourceBlockPermission findByRoleId_First(long roleId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
throws com.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException
findByRoleId_First in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceroleId - the role IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException - if a matching resource block permission could not be foundpublic com.liferay.portal.kernel.model.ResourceBlockPermission fetchByRoleId_First(long roleId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
fetchByRoleId_First in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceroleId - the role IDorderByComparator - the comparator to order the set by (optionally null)null if a matching resource block permission could not be foundpublic com.liferay.portal.kernel.model.ResourceBlockPermission findByRoleId_Last(long roleId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
throws com.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException
findByRoleId_Last in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceroleId - the role IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException - if a matching resource block permission could not be foundpublic com.liferay.portal.kernel.model.ResourceBlockPermission fetchByRoleId_Last(long roleId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
fetchByRoleId_Last in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceroleId - the role IDorderByComparator - the comparator to order the set by (optionally null)null if a matching resource block permission could not be foundpublic com.liferay.portal.kernel.model.ResourceBlockPermission[] findByRoleId_PrevAndNext(long resourceBlockPermissionId,
long roleId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator)
throws com.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException
findByRoleId_PrevAndNext in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceresourceBlockPermissionId - the primary key of the current resource block permissionroleId - the role IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException - if a resource block permission with the primary key could not be foundprotected com.liferay.portal.kernel.model.ResourceBlockPermission getByRoleId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.kernel.model.ResourceBlockPermission resourceBlockPermission,
long roleId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.ResourceBlockPermission> orderByComparator,
boolean previous)
public void removeByRoleId(long roleId)
removeByRoleId in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceroleId - the role IDpublic int countByRoleId(long roleId)
countByRoleId in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceroleId - the role IDpublic com.liferay.portal.kernel.model.ResourceBlockPermission findByR_R(long resourceBlockId,
long roleId)
throws com.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException
NoSuchResourceBlockPermissionException if it could not be found.findByR_R in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDroleId - the role IDcom.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException - if a matching resource block permission could not be foundpublic com.liferay.portal.kernel.model.ResourceBlockPermission fetchByR_R(long resourceBlockId,
long roleId)
null if it could not be found. Uses the finder cache.fetchByR_R in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDroleId - the role IDnull if a matching resource block permission could not be foundpublic com.liferay.portal.kernel.model.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 com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDroleId - the role IDretrieveFromCache - whether to retrieve from the finder cachenull if a matching resource block permission could not be foundpublic com.liferay.portal.kernel.model.ResourceBlockPermission removeByR_R(long resourceBlockId,
long roleId)
throws com.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException
removeByR_R in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDroleId - the role IDcom.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionExceptionpublic int countByR_R(long resourceBlockId,
long roleId)
countByR_R in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceresourceBlockId - the resource block IDroleId - the role IDpublic void cacheResult(com.liferay.portal.kernel.model.ResourceBlockPermission resourceBlockPermission)
cacheResult in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceresourceBlockPermission - the resource block permissionpublic void cacheResult(List<com.liferay.portal.kernel.model.ResourceBlockPermission> resourceBlockPermissions)
cacheResult in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceresourceBlockPermissions - the resource block permissionspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.ResourceBlockPermission>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.ResourceBlockPermission>public void clearCache(com.liferay.portal.kernel.model.ResourceBlockPermission resourceBlockPermission)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.ResourceBlockPermission>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.ResourceBlockPermission>public void clearCache(List<com.liferay.portal.kernel.model.ResourceBlockPermission> resourceBlockPermissions)
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.ResourceBlockPermission>clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.ResourceBlockPermission>protected void cacheUniqueFindersCache(ResourceBlockPermissionModelImpl resourceBlockPermissionModelImpl, boolean isNew)
protected void clearUniqueFindersCache(ResourceBlockPermissionModelImpl resourceBlockPermissionModelImpl)
public com.liferay.portal.kernel.model.ResourceBlockPermission create(long resourceBlockPermissionId)
create in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceresourceBlockPermissionId - the primary key for the new resource block permissionpublic com.liferay.portal.kernel.model.ResourceBlockPermission remove(long resourceBlockPermissionId)
throws com.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException
remove in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceresourceBlockPermissionId - the primary key of the resource block permissioncom.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException - if a resource block permission with the primary key could not be foundpublic com.liferay.portal.kernel.model.ResourceBlockPermission remove(Serializable primaryKey) throws com.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException
remove in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.ResourceBlockPermission>remove in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.ResourceBlockPermission>primaryKey - the primary key of the resource block permissioncom.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException - if a resource block permission with the primary key could not be foundprotected com.liferay.portal.kernel.model.ResourceBlockPermission removeImpl(com.liferay.portal.kernel.model.ResourceBlockPermission resourceBlockPermission)
removeImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.ResourceBlockPermission>public com.liferay.portal.kernel.model.ResourceBlockPermission updateImpl(com.liferay.portal.kernel.model.ResourceBlockPermission resourceBlockPermission)
updateImpl in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceupdateImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.ResourceBlockPermission>protected com.liferay.portal.kernel.model.ResourceBlockPermission toUnwrappedModel(com.liferay.portal.kernel.model.ResourceBlockPermission resourceBlockPermission)
public com.liferay.portal.kernel.model.ResourceBlockPermission findByPrimaryKey(Serializable primaryKey) throws com.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException
NoSuchModelException if it could not be found.findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.ResourceBlockPermission>findByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.ResourceBlockPermission>primaryKey - the primary key of the resource block permissioncom.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException - if a resource block permission with the primary key could not be foundpublic com.liferay.portal.kernel.model.ResourceBlockPermission findByPrimaryKey(long resourceBlockPermissionId)
throws com.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException
NoSuchResourceBlockPermissionException if it could not be found.findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceresourceBlockPermissionId - the primary key of the resource block permissioncom.liferay.portal.kernel.exception.NoSuchResourceBlockPermissionException - if a resource block permission with the primary key could not be foundpublic com.liferay.portal.kernel.model.ResourceBlockPermission fetchByPrimaryKey(Serializable primaryKey)
null if it could not be found.fetchByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.ResourceBlockPermission>fetchByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.ResourceBlockPermission>primaryKey - the primary key of the resource block permissionnull if a resource block permission with the primary key could not be foundpublic com.liferay.portal.kernel.model.ResourceBlockPermission fetchByPrimaryKey(long resourceBlockPermissionId)
null if it could not be found.fetchByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceresourceBlockPermissionId - the primary key of the resource block permissionnull if a resource block permission with the primary key could not be foundpublic Map<Serializable,com.liferay.portal.kernel.model.ResourceBlockPermission> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.ResourceBlockPermission>fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistencefetchByPrimaryKeys in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.ResourceBlockPermission>public List<com.liferay.portal.kernel.model.ResourceBlockPermission> findAll()
findAll in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistencepublic List<com.liferay.portal.kernel.model.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 com.liferay.portal.kernel.service.persistence.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<com.liferay.portal.kernel.model.ResourceBlockPermission> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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 com.liferay.portal.kernel.service.persistence.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<com.liferay.portal.kernel.model.ResourceBlockPermission> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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 com.liferay.portal.kernel.service.persistence.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 cachepublic void removeAll()
removeAll in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistencepublic int countAll()
countAll in interface com.liferay.portal.kernel.service.persistence.ResourceBlockPermissionPersistenceprotected Map<String,Integer> getTableColumnsMap()
getTableColumnsMap in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.ResourceBlockPermission>public void afterPropertiesSet()
public void destroy()