001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.ResourceBlockPermission;
018    
019    /**
020     * The persistence interface for the resource block permission service.
021     *
022     * <p>
023     * Caching information and settings can be found in <code>portal.properties</code>
024     * </p>
025     *
026     * @author Brian Wing Shun Chan
027     * @see ResourceBlockPermissionPersistenceImpl
028     * @see ResourceBlockPermissionUtil
029     * @generated
030     */
031    public interface ResourceBlockPermissionPersistence extends BasePersistence<ResourceBlockPermission> {
032            /*
033             * NOTE FOR DEVELOPERS:
034             *
035             * Never modify or reference this interface directly. Always use {@link ResourceBlockPermissionUtil} to access the resource block permission persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
036             */
037    
038            /**
039            * Returns all the resource block permissions where resourceBlockId = &#63;.
040            *
041            * @param resourceBlockId the resource block ID
042            * @return the matching resource block permissions
043            * @throws SystemException if a system exception occurred
044            */
045            public java.util.List<com.liferay.portal.model.ResourceBlockPermission> findByResourceBlockId(
046                    long resourceBlockId)
047                    throws com.liferay.portal.kernel.exception.SystemException;
048    
049            /**
050            * Returns a range of all the resource block permissions where resourceBlockId = &#63;.
051            *
052            * <p>
053            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceBlockPermissionModelImpl}. If both <code>orderByComparator</code> 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.
054            * </p>
055            *
056            * @param resourceBlockId the resource block ID
057            * @param start the lower bound of the range of resource block permissions
058            * @param end the upper bound of the range of resource block permissions (not inclusive)
059            * @return the range of matching resource block permissions
060            * @throws SystemException if a system exception occurred
061            */
062            public java.util.List<com.liferay.portal.model.ResourceBlockPermission> findByResourceBlockId(
063                    long resourceBlockId, int start, int end)
064                    throws com.liferay.portal.kernel.exception.SystemException;
065    
066            /**
067            * Returns an ordered range of all the resource block permissions where resourceBlockId = &#63;.
068            *
069            * <p>
070            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceBlockPermissionModelImpl}. If both <code>orderByComparator</code> 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.
071            * </p>
072            *
073            * @param resourceBlockId the resource block ID
074            * @param start the lower bound of the range of resource block permissions
075            * @param end the upper bound of the range of resource block permissions (not inclusive)
076            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
077            * @return the ordered range of matching resource block permissions
078            * @throws SystemException if a system exception occurred
079            */
080            public java.util.List<com.liferay.portal.model.ResourceBlockPermission> findByResourceBlockId(
081                    long resourceBlockId, int start, int end,
082                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
083                    throws com.liferay.portal.kernel.exception.SystemException;
084    
085            /**
086            * Returns the first resource block permission in the ordered set where resourceBlockId = &#63;.
087            *
088            * @param resourceBlockId the resource block ID
089            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
090            * @return the first matching resource block permission
091            * @throws com.liferay.portal.NoSuchResourceBlockPermissionException if a matching resource block permission could not be found
092            * @throws SystemException if a system exception occurred
093            */
094            public com.liferay.portal.model.ResourceBlockPermission findByResourceBlockId_First(
095                    long resourceBlockId,
096                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
097                    throws com.liferay.portal.NoSuchResourceBlockPermissionException,
098                            com.liferay.portal.kernel.exception.SystemException;
099    
100            /**
101            * Returns the first resource block permission in the ordered set where resourceBlockId = &#63;.
102            *
103            * @param resourceBlockId the resource block ID
104            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
105            * @return the first matching resource block permission, or <code>null</code> if a matching resource block permission could not be found
106            * @throws SystemException if a system exception occurred
107            */
108            public com.liferay.portal.model.ResourceBlockPermission fetchByResourceBlockId_First(
109                    long resourceBlockId,
110                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111                    throws com.liferay.portal.kernel.exception.SystemException;
112    
113            /**
114            * Returns the last resource block permission in the ordered set where resourceBlockId = &#63;.
115            *
116            * @param resourceBlockId the resource block ID
117            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
118            * @return the last matching resource block permission
119            * @throws com.liferay.portal.NoSuchResourceBlockPermissionException if a matching resource block permission could not be found
120            * @throws SystemException if a system exception occurred
121            */
122            public com.liferay.portal.model.ResourceBlockPermission findByResourceBlockId_Last(
123                    long resourceBlockId,
124                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
125                    throws com.liferay.portal.NoSuchResourceBlockPermissionException,
126                            com.liferay.portal.kernel.exception.SystemException;
127    
128            /**
129            * Returns the last resource block permission in the ordered set where resourceBlockId = &#63;.
130            *
131            * @param resourceBlockId the resource block ID
132            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
133            * @return the last matching resource block permission, or <code>null</code> if a matching resource block permission could not be found
134            * @throws SystemException if a system exception occurred
135            */
136            public com.liferay.portal.model.ResourceBlockPermission fetchByResourceBlockId_Last(
137                    long resourceBlockId,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException;
140    
141            /**
142            * Returns the resource block permissions before and after the current resource block permission in the ordered set where resourceBlockId = &#63;.
143            *
144            * @param resourceBlockPermissionId the primary key of the current resource block permission
145            * @param resourceBlockId the resource block ID
146            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
147            * @return the previous, current, and next resource block permission
148            * @throws com.liferay.portal.NoSuchResourceBlockPermissionException if a resource block permission with the primary key could not be found
149            * @throws SystemException if a system exception occurred
150            */
151            public com.liferay.portal.model.ResourceBlockPermission[] findByResourceBlockId_PrevAndNext(
152                    long resourceBlockPermissionId, long resourceBlockId,
153                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154                    throws com.liferay.portal.NoSuchResourceBlockPermissionException,
155                            com.liferay.portal.kernel.exception.SystemException;
156    
157            /**
158            * Removes all the resource block permissions where resourceBlockId = &#63; from the database.
159            *
160            * @param resourceBlockId the resource block ID
161            * @throws SystemException if a system exception occurred
162            */
163            public void removeByResourceBlockId(long resourceBlockId)
164                    throws com.liferay.portal.kernel.exception.SystemException;
165    
166            /**
167            * Returns the number of resource block permissions where resourceBlockId = &#63;.
168            *
169            * @param resourceBlockId the resource block ID
170            * @return the number of matching resource block permissions
171            * @throws SystemException if a system exception occurred
172            */
173            public int countByResourceBlockId(long resourceBlockId)
174                    throws com.liferay.portal.kernel.exception.SystemException;
175    
176            /**
177            * Returns all the resource block permissions where roleId = &#63;.
178            *
179            * @param roleId the role ID
180            * @return the matching resource block permissions
181            * @throws SystemException if a system exception occurred
182            */
183            public java.util.List<com.liferay.portal.model.ResourceBlockPermission> findByRoleId(
184                    long roleId) throws com.liferay.portal.kernel.exception.SystemException;
185    
186            /**
187            * Returns a range of all the resource block permissions where roleId = &#63;.
188            *
189            * <p>
190            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceBlockPermissionModelImpl}. If both <code>orderByComparator</code> 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.
191            * </p>
192            *
193            * @param roleId the role ID
194            * @param start the lower bound of the range of resource block permissions
195            * @param end the upper bound of the range of resource block permissions (not inclusive)
196            * @return the range of matching resource block permissions
197            * @throws SystemException if a system exception occurred
198            */
199            public java.util.List<com.liferay.portal.model.ResourceBlockPermission> findByRoleId(
200                    long roleId, int start, int end)
201                    throws com.liferay.portal.kernel.exception.SystemException;
202    
203            /**
204            * Returns an ordered range of all the resource block permissions where roleId = &#63;.
205            *
206            * <p>
207            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceBlockPermissionModelImpl}. If both <code>orderByComparator</code> 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.
208            * </p>
209            *
210            * @param roleId the role ID
211            * @param start the lower bound of the range of resource block permissions
212            * @param end the upper bound of the range of resource block permissions (not inclusive)
213            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
214            * @return the ordered range of matching resource block permissions
215            * @throws SystemException if a system exception occurred
216            */
217            public java.util.List<com.liferay.portal.model.ResourceBlockPermission> findByRoleId(
218                    long roleId, int start, int end,
219                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220                    throws com.liferay.portal.kernel.exception.SystemException;
221    
222            /**
223            * Returns the first resource block permission in the ordered set where roleId = &#63;.
224            *
225            * @param roleId the role ID
226            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
227            * @return the first matching resource block permission
228            * @throws com.liferay.portal.NoSuchResourceBlockPermissionException if a matching resource block permission could not be found
229            * @throws SystemException if a system exception occurred
230            */
231            public com.liferay.portal.model.ResourceBlockPermission findByRoleId_First(
232                    long roleId,
233                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234                    throws com.liferay.portal.NoSuchResourceBlockPermissionException,
235                            com.liferay.portal.kernel.exception.SystemException;
236    
237            /**
238            * Returns the first resource block permission in the ordered set where roleId = &#63;.
239            *
240            * @param roleId the role ID
241            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
242            * @return the first matching resource block permission, or <code>null</code> if a matching resource block permission could not be found
243            * @throws SystemException if a system exception occurred
244            */
245            public com.liferay.portal.model.ResourceBlockPermission fetchByRoleId_First(
246                    long roleId,
247                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
248                    throws com.liferay.portal.kernel.exception.SystemException;
249    
250            /**
251            * Returns the last resource block permission in the ordered set where roleId = &#63;.
252            *
253            * @param roleId the role ID
254            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
255            * @return the last matching resource block permission
256            * @throws com.liferay.portal.NoSuchResourceBlockPermissionException if a matching resource block permission could not be found
257            * @throws SystemException if a system exception occurred
258            */
259            public com.liferay.portal.model.ResourceBlockPermission findByRoleId_Last(
260                    long roleId,
261                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
262                    throws com.liferay.portal.NoSuchResourceBlockPermissionException,
263                            com.liferay.portal.kernel.exception.SystemException;
264    
265            /**
266            * Returns the last resource block permission in the ordered set where roleId = &#63;.
267            *
268            * @param roleId the role ID
269            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
270            * @return the last matching resource block permission, or <code>null</code> if a matching resource block permission could not be found
271            * @throws SystemException if a system exception occurred
272            */
273            public com.liferay.portal.model.ResourceBlockPermission fetchByRoleId_Last(
274                    long roleId,
275                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
276                    throws com.liferay.portal.kernel.exception.SystemException;
277    
278            /**
279            * Returns the resource block permissions before and after the current resource block permission in the ordered set where roleId = &#63;.
280            *
281            * @param resourceBlockPermissionId the primary key of the current resource block permission
282            * @param roleId the role ID
283            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
284            * @return the previous, current, and next resource block permission
285            * @throws com.liferay.portal.NoSuchResourceBlockPermissionException if a resource block permission with the primary key could not be found
286            * @throws SystemException if a system exception occurred
287            */
288            public com.liferay.portal.model.ResourceBlockPermission[] findByRoleId_PrevAndNext(
289                    long resourceBlockPermissionId, long roleId,
290                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291                    throws com.liferay.portal.NoSuchResourceBlockPermissionException,
292                            com.liferay.portal.kernel.exception.SystemException;
293    
294            /**
295            * Removes all the resource block permissions where roleId = &#63; from the database.
296            *
297            * @param roleId the role ID
298            * @throws SystemException if a system exception occurred
299            */
300            public void removeByRoleId(long roleId)
301                    throws com.liferay.portal.kernel.exception.SystemException;
302    
303            /**
304            * Returns the number of resource block permissions where roleId = &#63;.
305            *
306            * @param roleId the role ID
307            * @return the number of matching resource block permissions
308            * @throws SystemException if a system exception occurred
309            */
310            public int countByRoleId(long roleId)
311                    throws com.liferay.portal.kernel.exception.SystemException;
312    
313            /**
314            * Returns the resource block permission where resourceBlockId = &#63; and roleId = &#63; or throws a {@link com.liferay.portal.NoSuchResourceBlockPermissionException} if it could not be found.
315            *
316            * @param resourceBlockId the resource block ID
317            * @param roleId the role ID
318            * @return the matching resource block permission
319            * @throws com.liferay.portal.NoSuchResourceBlockPermissionException if a matching resource block permission could not be found
320            * @throws SystemException if a system exception occurred
321            */
322            public com.liferay.portal.model.ResourceBlockPermission findByR_R(
323                    long resourceBlockId, long roleId)
324                    throws com.liferay.portal.NoSuchResourceBlockPermissionException,
325                            com.liferay.portal.kernel.exception.SystemException;
326    
327            /**
328            * Returns the resource block permission where resourceBlockId = &#63; and roleId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
329            *
330            * @param resourceBlockId the resource block ID
331            * @param roleId the role ID
332            * @return the matching resource block permission, or <code>null</code> if a matching resource block permission could not be found
333            * @throws SystemException if a system exception occurred
334            */
335            public com.liferay.portal.model.ResourceBlockPermission fetchByR_R(
336                    long resourceBlockId, long roleId)
337                    throws com.liferay.portal.kernel.exception.SystemException;
338    
339            /**
340            * Returns the resource block permission where resourceBlockId = &#63; and roleId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
341            *
342            * @param resourceBlockId the resource block ID
343            * @param roleId the role ID
344            * @param retrieveFromCache whether to use the finder cache
345            * @return the matching resource block permission, or <code>null</code> if a matching resource block permission could not be found
346            * @throws SystemException if a system exception occurred
347            */
348            public com.liferay.portal.model.ResourceBlockPermission fetchByR_R(
349                    long resourceBlockId, long roleId, boolean retrieveFromCache)
350                    throws com.liferay.portal.kernel.exception.SystemException;
351    
352            /**
353            * Removes the resource block permission where resourceBlockId = &#63; and roleId = &#63; from the database.
354            *
355            * @param resourceBlockId the resource block ID
356            * @param roleId the role ID
357            * @return the resource block permission that was removed
358            * @throws SystemException if a system exception occurred
359            */
360            public com.liferay.portal.model.ResourceBlockPermission removeByR_R(
361                    long resourceBlockId, long roleId)
362                    throws com.liferay.portal.NoSuchResourceBlockPermissionException,
363                            com.liferay.portal.kernel.exception.SystemException;
364    
365            /**
366            * Returns the number of resource block permissions where resourceBlockId = &#63; and roleId = &#63;.
367            *
368            * @param resourceBlockId the resource block ID
369            * @param roleId the role ID
370            * @return the number of matching resource block permissions
371            * @throws SystemException if a system exception occurred
372            */
373            public int countByR_R(long resourceBlockId, long roleId)
374                    throws com.liferay.portal.kernel.exception.SystemException;
375    
376            /**
377            * Caches the resource block permission in the entity cache if it is enabled.
378            *
379            * @param resourceBlockPermission the resource block permission
380            */
381            public void cacheResult(
382                    com.liferay.portal.model.ResourceBlockPermission resourceBlockPermission);
383    
384            /**
385            * Caches the resource block permissions in the entity cache if it is enabled.
386            *
387            * @param resourceBlockPermissions the resource block permissions
388            */
389            public void cacheResult(
390                    java.util.List<com.liferay.portal.model.ResourceBlockPermission> resourceBlockPermissions);
391    
392            /**
393            * Creates a new resource block permission with the primary key. Does not add the resource block permission to the database.
394            *
395            * @param resourceBlockPermissionId the primary key for the new resource block permission
396            * @return the new resource block permission
397            */
398            public com.liferay.portal.model.ResourceBlockPermission create(
399                    long resourceBlockPermissionId);
400    
401            /**
402            * Removes the resource block permission with the primary key from the database. Also notifies the appropriate model listeners.
403            *
404            * @param resourceBlockPermissionId the primary key of the resource block permission
405            * @return the resource block permission that was removed
406            * @throws com.liferay.portal.NoSuchResourceBlockPermissionException if a resource block permission with the primary key could not be found
407            * @throws SystemException if a system exception occurred
408            */
409            public com.liferay.portal.model.ResourceBlockPermission remove(
410                    long resourceBlockPermissionId)
411                    throws com.liferay.portal.NoSuchResourceBlockPermissionException,
412                            com.liferay.portal.kernel.exception.SystemException;
413    
414            public com.liferay.portal.model.ResourceBlockPermission updateImpl(
415                    com.liferay.portal.model.ResourceBlockPermission resourceBlockPermission)
416                    throws com.liferay.portal.kernel.exception.SystemException;
417    
418            /**
419            * Returns the resource block permission with the primary key or throws a {@link com.liferay.portal.NoSuchResourceBlockPermissionException} if it could not be found.
420            *
421            * @param resourceBlockPermissionId the primary key of the resource block permission
422            * @return the resource block permission
423            * @throws com.liferay.portal.NoSuchResourceBlockPermissionException if a resource block permission with the primary key could not be found
424            * @throws SystemException if a system exception occurred
425            */
426            public com.liferay.portal.model.ResourceBlockPermission findByPrimaryKey(
427                    long resourceBlockPermissionId)
428                    throws com.liferay.portal.NoSuchResourceBlockPermissionException,
429                            com.liferay.portal.kernel.exception.SystemException;
430    
431            /**
432            * Returns the resource block permission with the primary key or returns <code>null</code> if it could not be found.
433            *
434            * @param resourceBlockPermissionId the primary key of the resource block permission
435            * @return the resource block permission, or <code>null</code> if a resource block permission with the primary key could not be found
436            * @throws SystemException if a system exception occurred
437            */
438            public com.liferay.portal.model.ResourceBlockPermission fetchByPrimaryKey(
439                    long resourceBlockPermissionId)
440                    throws com.liferay.portal.kernel.exception.SystemException;
441    
442            /**
443            * Returns all the resource block permissions.
444            *
445            * @return the resource block permissions
446            * @throws SystemException if a system exception occurred
447            */
448            public java.util.List<com.liferay.portal.model.ResourceBlockPermission> findAll()
449                    throws com.liferay.portal.kernel.exception.SystemException;
450    
451            /**
452            * Returns a range of all the resource block permissions.
453            *
454            * <p>
455            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceBlockPermissionModelImpl}. If both <code>orderByComparator</code> 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.
456            * </p>
457            *
458            * @param start the lower bound of the range of resource block permissions
459            * @param end the upper bound of the range of resource block permissions (not inclusive)
460            * @return the range of resource block permissions
461            * @throws SystemException if a system exception occurred
462            */
463            public java.util.List<com.liferay.portal.model.ResourceBlockPermission> findAll(
464                    int start, int end)
465                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * Returns an ordered range of all the resource block permissions.
469            *
470            * <p>
471            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceBlockPermissionModelImpl}. If both <code>orderByComparator</code> 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.
472            * </p>
473            *
474            * @param start the lower bound of the range of resource block permissions
475            * @param end the upper bound of the range of resource block permissions (not inclusive)
476            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
477            * @return the ordered range of resource block permissions
478            * @throws SystemException if a system exception occurred
479            */
480            public java.util.List<com.liferay.portal.model.ResourceBlockPermission> findAll(
481                    int start, int end,
482                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
483                    throws com.liferay.portal.kernel.exception.SystemException;
484    
485            /**
486            * Removes all the resource block permissions from the database.
487            *
488            * @throws SystemException if a system exception occurred
489            */
490            public void removeAll()
491                    throws com.liferay.portal.kernel.exception.SystemException;
492    
493            /**
494            * Returns the number of resource block permissions.
495            *
496            * @return the number of resource block permissions
497            * @throws SystemException if a system exception occurred
498            */
499            public int countAll()
500                    throws com.liferay.portal.kernel.exception.SystemException;
501    }