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