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