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