001    /**
002     * Copyright (c) 2000-present 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.ResourceBlock;
020    
021    /**
022     * The persistence interface for the resource block 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 com.liferay.portal.service.persistence.impl.ResourceBlockPersistenceImpl
030     * @see ResourceBlockUtil
031     * @generated
032     */
033    @ProviderType
034    public interface ResourceBlockPersistence extends BasePersistence<ResourceBlock> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify or reference this interface directly. Always use {@link ResourceBlockUtil} to access the resource block persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
039             */
040    
041            /**
042            * Returns all the resource blocks where companyId = &#63; and name = &#63;.
043            *
044            * @param companyId the company ID
045            * @param name the name
046            * @return the matching resource blocks
047            */
048            public java.util.List<ResourceBlock> findByC_N(long companyId,
049                    java.lang.String name);
050    
051            /**
052            * Returns a range of all the resource blocks where companyId = &#63; and name = &#63;.
053            *
054            * <p>
055            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ResourceBlockModelImpl}. 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.
056            * </p>
057            *
058            * @param companyId the company ID
059            * @param name the name
060            * @param start the lower bound of the range of resource blocks
061            * @param end the upper bound of the range of resource blocks (not inclusive)
062            * @return the range of matching resource blocks
063            */
064            public java.util.List<ResourceBlock> findByC_N(long companyId,
065                    java.lang.String name, int start, int end);
066    
067            /**
068            * Returns an ordered range of all the resource blocks where companyId = &#63; and name = &#63;.
069            *
070            * <p>
071            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ResourceBlockModelImpl}. 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.
072            * </p>
073            *
074            * @param companyId the company ID
075            * @param name the name
076            * @param start the lower bound of the range of resource blocks
077            * @param end the upper bound of the range of resource blocks (not inclusive)
078            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
079            * @return the ordered range of matching resource blocks
080            */
081            public java.util.List<ResourceBlock> findByC_N(long companyId,
082                    java.lang.String name, int start, int end,
083                    com.liferay.portal.kernel.util.OrderByComparator<ResourceBlock> orderByComparator);
084    
085            /**
086            * Returns an ordered range of all the resource blocks where companyId = &#63; and name = &#63;.
087            *
088            * <p>
089            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ResourceBlockModelImpl}. 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.
090            * </p>
091            *
092            * @param companyId the company ID
093            * @param name the name
094            * @param start the lower bound of the range of resource blocks
095            * @param end the upper bound of the range of resource blocks (not inclusive)
096            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
097            * @param retrieveFromCache whether to retrieve from the finder cache
098            * @return the ordered range of matching resource blocks
099            */
100            public java.util.List<ResourceBlock> findByC_N(long companyId,
101                    java.lang.String name, int start, int end,
102                    com.liferay.portal.kernel.util.OrderByComparator<ResourceBlock> orderByComparator,
103                    boolean retrieveFromCache);
104    
105            /**
106            * Returns the first resource block in the ordered set where companyId = &#63; and name = &#63;.
107            *
108            * @param companyId the company ID
109            * @param name the name
110            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
111            * @return the first matching resource block
112            * @throws NoSuchResourceBlockException if a matching resource block could not be found
113            */
114            public ResourceBlock findByC_N_First(long companyId, java.lang.String name,
115                    com.liferay.portal.kernel.util.OrderByComparator<ResourceBlock> orderByComparator)
116                    throws com.liferay.portal.exception.NoSuchResourceBlockException;
117    
118            /**
119            * Returns the first resource block in the ordered set where companyId = &#63; and name = &#63;.
120            *
121            * @param companyId the company ID
122            * @param name the name
123            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
124            * @return the first matching resource block, or <code>null</code> if a matching resource block could not be found
125            */
126            public ResourceBlock fetchByC_N_First(long companyId,
127                    java.lang.String name,
128                    com.liferay.portal.kernel.util.OrderByComparator<ResourceBlock> orderByComparator);
129    
130            /**
131            * Returns the last resource block in the ordered set where companyId = &#63; and name = &#63;.
132            *
133            * @param companyId the company ID
134            * @param name the name
135            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
136            * @return the last matching resource block
137            * @throws NoSuchResourceBlockException if a matching resource block could not be found
138            */
139            public ResourceBlock findByC_N_Last(long companyId, java.lang.String name,
140                    com.liferay.portal.kernel.util.OrderByComparator<ResourceBlock> orderByComparator)
141                    throws com.liferay.portal.exception.NoSuchResourceBlockException;
142    
143            /**
144            * Returns the last resource block in the ordered set where companyId = &#63; and name = &#63;.
145            *
146            * @param companyId the company ID
147            * @param name the name
148            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
149            * @return the last matching resource block, or <code>null</code> if a matching resource block could not be found
150            */
151            public ResourceBlock fetchByC_N_Last(long companyId, java.lang.String name,
152                    com.liferay.portal.kernel.util.OrderByComparator<ResourceBlock> orderByComparator);
153    
154            /**
155            * Returns the resource blocks before and after the current resource block in the ordered set where companyId = &#63; and name = &#63;.
156            *
157            * @param resourceBlockId the primary key of the current resource block
158            * @param companyId the company ID
159            * @param name the name
160            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
161            * @return the previous, current, and next resource block
162            * @throws NoSuchResourceBlockException if a resource block with the primary key could not be found
163            */
164            public ResourceBlock[] findByC_N_PrevAndNext(long resourceBlockId,
165                    long companyId, java.lang.String name,
166                    com.liferay.portal.kernel.util.OrderByComparator<ResourceBlock> orderByComparator)
167                    throws com.liferay.portal.exception.NoSuchResourceBlockException;
168    
169            /**
170            * Removes all the resource blocks where companyId = &#63; and name = &#63; from the database.
171            *
172            * @param companyId the company ID
173            * @param name the name
174            */
175            public void removeByC_N(long companyId, java.lang.String name);
176    
177            /**
178            * Returns the number of resource blocks where companyId = &#63; and name = &#63;.
179            *
180            * @param companyId the company ID
181            * @param name the name
182            * @return the number of matching resource blocks
183            */
184            public int countByC_N(long companyId, java.lang.String name);
185    
186            /**
187            * Returns all the resource blocks where companyId = &#63; and groupId = &#63; and name = &#63;.
188            *
189            * @param companyId the company ID
190            * @param groupId the group ID
191            * @param name the name
192            * @return the matching resource blocks
193            */
194            public java.util.List<ResourceBlock> findByC_G_N(long companyId,
195                    long groupId, java.lang.String name);
196    
197            /**
198            * Returns a range of all the resource blocks where companyId = &#63; and groupId = &#63; and name = &#63;.
199            *
200            * <p>
201            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ResourceBlockModelImpl}. 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.
202            * </p>
203            *
204            * @param companyId the company ID
205            * @param groupId the group ID
206            * @param name the name
207            * @param start the lower bound of the range of resource blocks
208            * @param end the upper bound of the range of resource blocks (not inclusive)
209            * @return the range of matching resource blocks
210            */
211            public java.util.List<ResourceBlock> findByC_G_N(long companyId,
212                    long groupId, java.lang.String name, int start, int end);
213    
214            /**
215            * Returns an ordered range of all the resource blocks where companyId = &#63; and groupId = &#63; and name = &#63;.
216            *
217            * <p>
218            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ResourceBlockModelImpl}. 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.
219            * </p>
220            *
221            * @param companyId the company ID
222            * @param groupId the group ID
223            * @param name the name
224            * @param start the lower bound of the range of resource blocks
225            * @param end the upper bound of the range of resource blocks (not inclusive)
226            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
227            * @return the ordered range of matching resource blocks
228            */
229            public java.util.List<ResourceBlock> findByC_G_N(long companyId,
230                    long groupId, java.lang.String name, int start, int end,
231                    com.liferay.portal.kernel.util.OrderByComparator<ResourceBlock> orderByComparator);
232    
233            /**
234            * Returns an ordered range of all the resource blocks where companyId = &#63; and groupId = &#63; and name = &#63;.
235            *
236            * <p>
237            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ResourceBlockModelImpl}. 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.
238            * </p>
239            *
240            * @param companyId the company ID
241            * @param groupId the group ID
242            * @param name the name
243            * @param start the lower bound of the range of resource blocks
244            * @param end the upper bound of the range of resource blocks (not inclusive)
245            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
246            * @param retrieveFromCache whether to retrieve from the finder cache
247            * @return the ordered range of matching resource blocks
248            */
249            public java.util.List<ResourceBlock> findByC_G_N(long companyId,
250                    long groupId, java.lang.String name, int start, int end,
251                    com.liferay.portal.kernel.util.OrderByComparator<ResourceBlock> orderByComparator,
252                    boolean retrieveFromCache);
253    
254            /**
255            * Returns the first resource block in the ordered set where companyId = &#63; and groupId = &#63; and name = &#63;.
256            *
257            * @param companyId the company ID
258            * @param groupId the group ID
259            * @param name the name
260            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
261            * @return the first matching resource block
262            * @throws NoSuchResourceBlockException if a matching resource block could not be found
263            */
264            public ResourceBlock findByC_G_N_First(long companyId, long groupId,
265                    java.lang.String name,
266                    com.liferay.portal.kernel.util.OrderByComparator<ResourceBlock> orderByComparator)
267                    throws com.liferay.portal.exception.NoSuchResourceBlockException;
268    
269            /**
270            * Returns the first resource block in the ordered set where companyId = &#63; and groupId = &#63; and name = &#63;.
271            *
272            * @param companyId the company ID
273            * @param groupId the group ID
274            * @param name the name
275            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
276            * @return the first matching resource block, or <code>null</code> if a matching resource block could not be found
277            */
278            public ResourceBlock fetchByC_G_N_First(long companyId, long groupId,
279                    java.lang.String name,
280                    com.liferay.portal.kernel.util.OrderByComparator<ResourceBlock> orderByComparator);
281    
282            /**
283            * Returns the last resource block in the ordered set where companyId = &#63; and groupId = &#63; and name = &#63;.
284            *
285            * @param companyId the company ID
286            * @param groupId the group ID
287            * @param name the name
288            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
289            * @return the last matching resource block
290            * @throws NoSuchResourceBlockException if a matching resource block could not be found
291            */
292            public ResourceBlock findByC_G_N_Last(long companyId, long groupId,
293                    java.lang.String name,
294                    com.liferay.portal.kernel.util.OrderByComparator<ResourceBlock> orderByComparator)
295                    throws com.liferay.portal.exception.NoSuchResourceBlockException;
296    
297            /**
298            * Returns the last resource block in the ordered set where companyId = &#63; and groupId = &#63; and name = &#63;.
299            *
300            * @param companyId the company ID
301            * @param groupId the group ID
302            * @param name the name
303            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
304            * @return the last matching resource block, or <code>null</code> if a matching resource block could not be found
305            */
306            public ResourceBlock fetchByC_G_N_Last(long companyId, long groupId,
307                    java.lang.String name,
308                    com.liferay.portal.kernel.util.OrderByComparator<ResourceBlock> orderByComparator);
309    
310            /**
311            * Returns the resource blocks before and after the current resource block in the ordered set where companyId = &#63; and groupId = &#63; and name = &#63;.
312            *
313            * @param resourceBlockId the primary key of the current resource block
314            * @param companyId the company ID
315            * @param groupId the group ID
316            * @param name the name
317            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
318            * @return the previous, current, and next resource block
319            * @throws NoSuchResourceBlockException if a resource block with the primary key could not be found
320            */
321            public ResourceBlock[] findByC_G_N_PrevAndNext(long resourceBlockId,
322                    long companyId, long groupId, java.lang.String name,
323                    com.liferay.portal.kernel.util.OrderByComparator<ResourceBlock> orderByComparator)
324                    throws com.liferay.portal.exception.NoSuchResourceBlockException;
325    
326            /**
327            * Removes all the resource blocks where companyId = &#63; and groupId = &#63; and name = &#63; from the database.
328            *
329            * @param companyId the company ID
330            * @param groupId the group ID
331            * @param name the name
332            */
333            public void removeByC_G_N(long companyId, long groupId,
334                    java.lang.String name);
335    
336            /**
337            * Returns the number of resource blocks where companyId = &#63; and groupId = &#63; and name = &#63;.
338            *
339            * @param companyId the company ID
340            * @param groupId the group ID
341            * @param name the name
342            * @return the number of matching resource blocks
343            */
344            public int countByC_G_N(long companyId, long groupId, java.lang.String name);
345    
346            /**
347            * Returns the resource block where companyId = &#63; and groupId = &#63; and name = &#63; and permissionsHash = &#63; or throws a {@link NoSuchResourceBlockException} if it could not be found.
348            *
349            * @param companyId the company ID
350            * @param groupId the group ID
351            * @param name the name
352            * @param permissionsHash the permissions hash
353            * @return the matching resource block
354            * @throws NoSuchResourceBlockException if a matching resource block could not be found
355            */
356            public ResourceBlock findByC_G_N_P(long companyId, long groupId,
357                    java.lang.String name, java.lang.String permissionsHash)
358                    throws com.liferay.portal.exception.NoSuchResourceBlockException;
359    
360            /**
361            * Returns the resource block where companyId = &#63; and groupId = &#63; and name = &#63; and permissionsHash = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
362            *
363            * @param companyId the company ID
364            * @param groupId the group ID
365            * @param name the name
366            * @param permissionsHash the permissions hash
367            * @return the matching resource block, or <code>null</code> if a matching resource block could not be found
368            */
369            public ResourceBlock fetchByC_G_N_P(long companyId, long groupId,
370                    java.lang.String name, java.lang.String permissionsHash);
371    
372            /**
373            * Returns the resource block where companyId = &#63; and groupId = &#63; and name = &#63; and permissionsHash = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
374            *
375            * @param companyId the company ID
376            * @param groupId the group ID
377            * @param name the name
378            * @param permissionsHash the permissions hash
379            * @param retrieveFromCache whether to retrieve from the finder cache
380            * @return the matching resource block, or <code>null</code> if a matching resource block could not be found
381            */
382            public ResourceBlock fetchByC_G_N_P(long companyId, long groupId,
383                    java.lang.String name, java.lang.String permissionsHash,
384                    boolean retrieveFromCache);
385    
386            /**
387            * Removes the resource block where companyId = &#63; and groupId = &#63; and name = &#63; and permissionsHash = &#63; from the database.
388            *
389            * @param companyId the company ID
390            * @param groupId the group ID
391            * @param name the name
392            * @param permissionsHash the permissions hash
393            * @return the resource block that was removed
394            */
395            public ResourceBlock removeByC_G_N_P(long companyId, long groupId,
396                    java.lang.String name, java.lang.String permissionsHash)
397                    throws com.liferay.portal.exception.NoSuchResourceBlockException;
398    
399            /**
400            * Returns the number of resource blocks where companyId = &#63; and groupId = &#63; and name = &#63; and permissionsHash = &#63;.
401            *
402            * @param companyId the company ID
403            * @param groupId the group ID
404            * @param name the name
405            * @param permissionsHash the permissions hash
406            * @return the number of matching resource blocks
407            */
408            public int countByC_G_N_P(long companyId, long groupId,
409                    java.lang.String name, java.lang.String permissionsHash);
410    
411            /**
412            * Caches the resource block in the entity cache if it is enabled.
413            *
414            * @param resourceBlock the resource block
415            */
416            public void cacheResult(ResourceBlock resourceBlock);
417    
418            /**
419            * Caches the resource blocks in the entity cache if it is enabled.
420            *
421            * @param resourceBlocks the resource blocks
422            */
423            public void cacheResult(java.util.List<ResourceBlock> resourceBlocks);
424    
425            /**
426            * Creates a new resource block with the primary key. Does not add the resource block to the database.
427            *
428            * @param resourceBlockId the primary key for the new resource block
429            * @return the new resource block
430            */
431            public ResourceBlock create(long resourceBlockId);
432    
433            /**
434            * Removes the resource block with the primary key from the database. Also notifies the appropriate model listeners.
435            *
436            * @param resourceBlockId the primary key of the resource block
437            * @return the resource block that was removed
438            * @throws NoSuchResourceBlockException if a resource block with the primary key could not be found
439            */
440            public ResourceBlock remove(long resourceBlockId)
441                    throws com.liferay.portal.exception.NoSuchResourceBlockException;
442    
443            public ResourceBlock updateImpl(ResourceBlock resourceBlock);
444    
445            /**
446            * Returns the resource block with the primary key or throws a {@link NoSuchResourceBlockException} if it could not be found.
447            *
448            * @param resourceBlockId the primary key of the resource block
449            * @return the resource block
450            * @throws NoSuchResourceBlockException if a resource block with the primary key could not be found
451            */
452            public ResourceBlock findByPrimaryKey(long resourceBlockId)
453                    throws com.liferay.portal.exception.NoSuchResourceBlockException;
454    
455            /**
456            * Returns the resource block with the primary key or returns <code>null</code> if it could not be found.
457            *
458            * @param resourceBlockId the primary key of the resource block
459            * @return the resource block, or <code>null</code> if a resource block with the primary key could not be found
460            */
461            public ResourceBlock fetchByPrimaryKey(long resourceBlockId);
462    
463            @Override
464            public java.util.Map<java.io.Serializable, ResourceBlock> fetchByPrimaryKeys(
465                    java.util.Set<java.io.Serializable> primaryKeys);
466    
467            /**
468            * Returns all the resource blocks.
469            *
470            * @return the resource blocks
471            */
472            public java.util.List<ResourceBlock> findAll();
473    
474            /**
475            * Returns a range of all the resource blocks.
476            *
477            * <p>
478            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ResourceBlockModelImpl}. 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.
479            * </p>
480            *
481            * @param start the lower bound of the range of resource blocks
482            * @param end the upper bound of the range of resource blocks (not inclusive)
483            * @return the range of resource blocks
484            */
485            public java.util.List<ResourceBlock> findAll(int start, int end);
486    
487            /**
488            * Returns an ordered range of all the resource blocks.
489            *
490            * <p>
491            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ResourceBlockModelImpl}. 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.
492            * </p>
493            *
494            * @param start the lower bound of the range of resource blocks
495            * @param end the upper bound of the range of resource blocks (not inclusive)
496            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
497            * @return the ordered range of resource blocks
498            */
499            public java.util.List<ResourceBlock> findAll(int start, int end,
500                    com.liferay.portal.kernel.util.OrderByComparator<ResourceBlock> orderByComparator);
501    
502            /**
503            * Returns an ordered range of all the resource blocks.
504            *
505            * <p>
506            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link ResourceBlockModelImpl}. 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.
507            * </p>
508            *
509            * @param start the lower bound of the range of resource blocks
510            * @param end the upper bound of the range of resource blocks (not inclusive)
511            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
512            * @param retrieveFromCache whether to retrieve from the finder cache
513            * @return the ordered range of resource blocks
514            */
515            public java.util.List<ResourceBlock> findAll(int start, int end,
516                    com.liferay.portal.kernel.util.OrderByComparator<ResourceBlock> orderByComparator,
517                    boolean retrieveFromCache);
518    
519            /**
520            * Removes all the resource blocks from the database.
521            */
522            public void removeAll();
523    
524            /**
525            * Returns the number of resource blocks.
526            *
527            * @return the number of resource blocks
528            */
529            public int countAll();
530    }