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