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.portlet.journal.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.journal.model.JournalArticleResource;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the journal article resource service. This utility wraps {@link JournalArticleResourcePersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see JournalArticleResourcePersistence
037     * @see JournalArticleResourcePersistenceImpl
038     * @generated
039     */
040    public class JournalArticleResourceUtil {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
045             */
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
049             */
050            public static void clearCache() {
051                    getPersistence().clearCache();
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
056             */
057            public static void clearCache(JournalArticleResource journalArticleResource) {
058                    getPersistence().clearCache(journalArticleResource);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
063             */
064            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
065                    throws SystemException {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<JournalArticleResource> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) throws SystemException {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<JournalArticleResource> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end)
082                    throws SystemException {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<JournalArticleResource> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator orderByComparator) throws SystemException {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
099             */
100            public static JournalArticleResource update(
101                    JournalArticleResource journalArticleResource, boolean merge)
102                    throws SystemException {
103                    return getPersistence().update(journalArticleResource, merge);
104            }
105    
106            /**
107             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
108             */
109            public static JournalArticleResource update(
110                    JournalArticleResource journalArticleResource, boolean merge,
111                    ServiceContext serviceContext) throws SystemException {
112                    return getPersistence()
113                                       .update(journalArticleResource, merge, serviceContext);
114            }
115    
116            /**
117            * Caches the journal article resource in the entity cache if it is enabled.
118            *
119            * @param journalArticleResource the journal article resource
120            */
121            public static void cacheResult(
122                    com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource) {
123                    getPersistence().cacheResult(journalArticleResource);
124            }
125    
126            /**
127            * Caches the journal article resources in the entity cache if it is enabled.
128            *
129            * @param journalArticleResources the journal article resources
130            */
131            public static void cacheResult(
132                    java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> journalArticleResources) {
133                    getPersistence().cacheResult(journalArticleResources);
134            }
135    
136            /**
137            * Creates a new journal article resource with the primary key. Does not add the journal article resource to the database.
138            *
139            * @param resourcePrimKey the primary key for the new journal article resource
140            * @return the new journal article resource
141            */
142            public static com.liferay.portlet.journal.model.JournalArticleResource create(
143                    long resourcePrimKey) {
144                    return getPersistence().create(resourcePrimKey);
145            }
146    
147            /**
148            * Removes the journal article resource with the primary key from the database. Also notifies the appropriate model listeners.
149            *
150            * @param resourcePrimKey the primary key of the journal article resource
151            * @return the journal article resource that was removed
152            * @throws com.liferay.portlet.journal.NoSuchArticleResourceException if a journal article resource with the primary key could not be found
153            * @throws SystemException if a system exception occurred
154            */
155            public static com.liferay.portlet.journal.model.JournalArticleResource remove(
156                    long resourcePrimKey)
157                    throws com.liferay.portal.kernel.exception.SystemException,
158                            com.liferay.portlet.journal.NoSuchArticleResourceException {
159                    return getPersistence().remove(resourcePrimKey);
160            }
161    
162            public static com.liferay.portlet.journal.model.JournalArticleResource updateImpl(
163                    com.liferay.portlet.journal.model.JournalArticleResource journalArticleResource,
164                    boolean merge)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return getPersistence().updateImpl(journalArticleResource, merge);
167            }
168    
169            /**
170            * Returns the journal article resource with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchArticleResourceException} if it could not be found.
171            *
172            * @param resourcePrimKey the primary key of the journal article resource
173            * @return the journal article resource
174            * @throws com.liferay.portlet.journal.NoSuchArticleResourceException if a journal article resource with the primary key could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public static com.liferay.portlet.journal.model.JournalArticleResource findByPrimaryKey(
178                    long resourcePrimKey)
179                    throws com.liferay.portal.kernel.exception.SystemException,
180                            com.liferay.portlet.journal.NoSuchArticleResourceException {
181                    return getPersistence().findByPrimaryKey(resourcePrimKey);
182            }
183    
184            /**
185            * Returns the journal article resource with the primary key or returns <code>null</code> if it could not be found.
186            *
187            * @param resourcePrimKey the primary key of the journal article resource
188            * @return the journal article resource, or <code>null</code> if a journal article resource with the primary key could not be found
189            * @throws SystemException if a system exception occurred
190            */
191            public static com.liferay.portlet.journal.model.JournalArticleResource fetchByPrimaryKey(
192                    long resourcePrimKey)
193                    throws com.liferay.portal.kernel.exception.SystemException {
194                    return getPersistence().fetchByPrimaryKey(resourcePrimKey);
195            }
196    
197            /**
198            * Returns all the journal article resources where uuid = &#63;.
199            *
200            * @param uuid the uuid
201            * @return the matching journal article resources
202            * @throws SystemException if a system exception occurred
203            */
204            public static java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByUuid(
205                    java.lang.String uuid)
206                    throws com.liferay.portal.kernel.exception.SystemException {
207                    return getPersistence().findByUuid(uuid);
208            }
209    
210            /**
211            * Returns a range of all the journal article resources where uuid = &#63;.
212            *
213            * <p>
214            * 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.
215            * </p>
216            *
217            * @param uuid the uuid
218            * @param start the lower bound of the range of journal article resources
219            * @param end the upper bound of the range of journal article resources (not inclusive)
220            * @return the range of matching journal article resources
221            * @throws SystemException if a system exception occurred
222            */
223            public static java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByUuid(
224                    java.lang.String uuid, int start, int end)
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    return getPersistence().findByUuid(uuid, start, end);
227            }
228    
229            /**
230            * Returns an ordered range of all the journal article resources where uuid = &#63;.
231            *
232            * <p>
233            * 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.
234            * </p>
235            *
236            * @param uuid the uuid
237            * @param start the lower bound of the range of journal article resources
238            * @param end the upper bound of the range of journal article resources (not inclusive)
239            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
240            * @return the ordered range of matching journal article resources
241            * @throws SystemException if a system exception occurred
242            */
243            public static java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByUuid(
244                    java.lang.String uuid, int start, int end,
245                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
248            }
249    
250            /**
251            * Returns the first journal article resource in the ordered set where uuid = &#63;.
252            *
253            * @param uuid the uuid
254            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
255            * @return the first matching journal article resource
256            * @throws com.liferay.portlet.journal.NoSuchArticleResourceException if a matching journal article resource could not be found
257            * @throws SystemException if a system exception occurred
258            */
259            public static com.liferay.portlet.journal.model.JournalArticleResource findByUuid_First(
260                    java.lang.String uuid,
261                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
262                    throws com.liferay.portal.kernel.exception.SystemException,
263                            com.liferay.portlet.journal.NoSuchArticleResourceException {
264                    return getPersistence().findByUuid_First(uuid, orderByComparator);
265            }
266    
267            /**
268            * Returns the first journal article resource in the ordered set where uuid = &#63;.
269            *
270            * @param uuid the uuid
271            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
272            * @return the first matching journal article resource, or <code>null</code> if a matching journal article resource could not be found
273            * @throws SystemException if a system exception occurred
274            */
275            public static com.liferay.portlet.journal.model.JournalArticleResource fetchByUuid_First(
276                    java.lang.String uuid,
277                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
278                    throws com.liferay.portal.kernel.exception.SystemException {
279                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
280            }
281    
282            /**
283            * Returns the last journal article resource in the ordered set where uuid = &#63;.
284            *
285            * @param uuid the uuid
286            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
287            * @return the last matching journal article resource
288            * @throws com.liferay.portlet.journal.NoSuchArticleResourceException if a matching journal article resource could not be found
289            * @throws SystemException if a system exception occurred
290            */
291            public static com.liferay.portlet.journal.model.JournalArticleResource findByUuid_Last(
292                    java.lang.String uuid,
293                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
294                    throws com.liferay.portal.kernel.exception.SystemException,
295                            com.liferay.portlet.journal.NoSuchArticleResourceException {
296                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
297            }
298    
299            /**
300            * Returns the last journal article resource in the ordered set where uuid = &#63;.
301            *
302            * @param uuid the uuid
303            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
304            * @return the last matching journal article resource, or <code>null</code> if a matching journal article resource could not be found
305            * @throws SystemException if a system exception occurred
306            */
307            public static com.liferay.portlet.journal.model.JournalArticleResource fetchByUuid_Last(
308                    java.lang.String uuid,
309                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
310                    throws com.liferay.portal.kernel.exception.SystemException {
311                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
312            }
313    
314            /**
315            * Returns the journal article resources before and after the current journal article resource in the ordered set where uuid = &#63;.
316            *
317            * @param resourcePrimKey the primary key of the current journal article resource
318            * @param uuid the uuid
319            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
320            * @return the previous, current, and next journal article resource
321            * @throws com.liferay.portlet.journal.NoSuchArticleResourceException if a journal article resource with the primary key could not be found
322            * @throws SystemException if a system exception occurred
323            */
324            public static com.liferay.portlet.journal.model.JournalArticleResource[] findByUuid_PrevAndNext(
325                    long resourcePrimKey, java.lang.String uuid,
326                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
327                    throws com.liferay.portal.kernel.exception.SystemException,
328                            com.liferay.portlet.journal.NoSuchArticleResourceException {
329                    return getPersistence()
330                                       .findByUuid_PrevAndNext(resourcePrimKey, uuid,
331                            orderByComparator);
332            }
333    
334            /**
335            * 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.
336            *
337            * @param uuid the uuid
338            * @param groupId the group ID
339            * @return the matching journal article resource
340            * @throws com.liferay.portlet.journal.NoSuchArticleResourceException if a matching journal article resource could not be found
341            * @throws SystemException if a system exception occurred
342            */
343            public static com.liferay.portlet.journal.model.JournalArticleResource findByUUID_G(
344                    java.lang.String uuid, long groupId)
345                    throws com.liferay.portal.kernel.exception.SystemException,
346                            com.liferay.portlet.journal.NoSuchArticleResourceException {
347                    return getPersistence().findByUUID_G(uuid, groupId);
348            }
349    
350            /**
351            * 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.
352            *
353            * @param uuid the uuid
354            * @param groupId the group ID
355            * @return the matching journal article resource, or <code>null</code> if a matching journal article resource could not be found
356            * @throws SystemException if a system exception occurred
357            */
358            public static com.liferay.portlet.journal.model.JournalArticleResource fetchByUUID_G(
359                    java.lang.String uuid, long groupId)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    return getPersistence().fetchByUUID_G(uuid, groupId);
362            }
363    
364            /**
365            * 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.
366            *
367            * @param uuid the uuid
368            * @param groupId the group ID
369            * @param retrieveFromCache whether to use the finder cache
370            * @return the matching journal article resource, or <code>null</code> if a matching journal article resource could not be found
371            * @throws SystemException if a system exception occurred
372            */
373            public static com.liferay.portlet.journal.model.JournalArticleResource fetchByUUID_G(
374                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
377            }
378    
379            /**
380            * Returns all the journal article resources where groupId = &#63;.
381            *
382            * @param groupId the group ID
383            * @return the matching journal article resources
384            * @throws SystemException if a system exception occurred
385            */
386            public static java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId(
387                    long groupId)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return getPersistence().findByGroupId(groupId);
390            }
391    
392            /**
393            * Returns a range of all the journal article resources where groupId = &#63;.
394            *
395            * <p>
396            * 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.
397            * </p>
398            *
399            * @param groupId the group ID
400            * @param start the lower bound of the range of journal article resources
401            * @param end the upper bound of the range of journal article resources (not inclusive)
402            * @return the range of matching journal article resources
403            * @throws SystemException if a system exception occurred
404            */
405            public static java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId(
406                    long groupId, int start, int end)
407                    throws com.liferay.portal.kernel.exception.SystemException {
408                    return getPersistence().findByGroupId(groupId, start, end);
409            }
410    
411            /**
412            * Returns an ordered range of all the journal article resources where groupId = &#63;.
413            *
414            * <p>
415            * 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.
416            * </p>
417            *
418            * @param groupId the group ID
419            * @param start the lower bound of the range of journal article resources
420            * @param end the upper bound of the range of journal article resources (not inclusive)
421            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
422            * @return the ordered range of matching journal article resources
423            * @throws SystemException if a system exception occurred
424            */
425            public static java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findByGroupId(
426                    long groupId, int start, int end,
427                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
428                    throws com.liferay.portal.kernel.exception.SystemException {
429                    return getPersistence()
430                                       .findByGroupId(groupId, start, end, orderByComparator);
431            }
432    
433            /**
434            * Returns the first journal article resource in the ordered set where groupId = &#63;.
435            *
436            * @param groupId the group ID
437            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
438            * @return the first matching journal article resource
439            * @throws com.liferay.portlet.journal.NoSuchArticleResourceException if a matching journal article resource could not be found
440            * @throws SystemException if a system exception occurred
441            */
442            public static com.liferay.portlet.journal.model.JournalArticleResource findByGroupId_First(
443                    long groupId,
444                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
445                    throws com.liferay.portal.kernel.exception.SystemException,
446                            com.liferay.portlet.journal.NoSuchArticleResourceException {
447                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
448            }
449    
450            /**
451            * Returns the first journal article resource in the ordered set where groupId = &#63;.
452            *
453            * @param groupId the group ID
454            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
455            * @return the first matching journal article resource, or <code>null</code> if a matching journal article resource could not be found
456            * @throws SystemException if a system exception occurred
457            */
458            public static com.liferay.portlet.journal.model.JournalArticleResource fetchByGroupId_First(
459                    long groupId,
460                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
461                    throws com.liferay.portal.kernel.exception.SystemException {
462                    return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
463            }
464    
465            /**
466            * Returns the last journal article resource in the ordered set where groupId = &#63;.
467            *
468            * @param groupId the group ID
469            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
470            * @return the last matching journal article resource
471            * @throws com.liferay.portlet.journal.NoSuchArticleResourceException if a matching journal article resource could not be found
472            * @throws SystemException if a system exception occurred
473            */
474            public static com.liferay.portlet.journal.model.JournalArticleResource findByGroupId_Last(
475                    long groupId,
476                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
477                    throws com.liferay.portal.kernel.exception.SystemException,
478                            com.liferay.portlet.journal.NoSuchArticleResourceException {
479                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
480            }
481    
482            /**
483            * Returns the last journal article resource in the ordered set where groupId = &#63;.
484            *
485            * @param groupId the group ID
486            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
487            * @return the last matching journal article resource, or <code>null</code> if a matching journal article resource could not be found
488            * @throws SystemException if a system exception occurred
489            */
490            public static com.liferay.portlet.journal.model.JournalArticleResource fetchByGroupId_Last(
491                    long groupId,
492                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
493                    throws com.liferay.portal.kernel.exception.SystemException {
494                    return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
495            }
496    
497            /**
498            * Returns the journal article resources before and after the current journal article resource in the ordered set where groupId = &#63;.
499            *
500            * @param resourcePrimKey the primary key of the current journal article resource
501            * @param groupId the group ID
502            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
503            * @return the previous, current, and next journal article resource
504            * @throws com.liferay.portlet.journal.NoSuchArticleResourceException if a journal article resource with the primary key could not be found
505            * @throws SystemException if a system exception occurred
506            */
507            public static com.liferay.portlet.journal.model.JournalArticleResource[] findByGroupId_PrevAndNext(
508                    long resourcePrimKey, long groupId,
509                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
510                    throws com.liferay.portal.kernel.exception.SystemException,
511                            com.liferay.portlet.journal.NoSuchArticleResourceException {
512                    return getPersistence()
513                                       .findByGroupId_PrevAndNext(resourcePrimKey, groupId,
514                            orderByComparator);
515            }
516    
517            /**
518            * 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.
519            *
520            * @param groupId the group ID
521            * @param articleId the article ID
522            * @return the matching journal article resource
523            * @throws com.liferay.portlet.journal.NoSuchArticleResourceException if a matching journal article resource could not be found
524            * @throws SystemException if a system exception occurred
525            */
526            public static com.liferay.portlet.journal.model.JournalArticleResource findByG_A(
527                    long groupId, java.lang.String articleId)
528                    throws com.liferay.portal.kernel.exception.SystemException,
529                            com.liferay.portlet.journal.NoSuchArticleResourceException {
530                    return getPersistence().findByG_A(groupId, articleId);
531            }
532    
533            /**
534            * 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.
535            *
536            * @param groupId the group ID
537            * @param articleId the article ID
538            * @return the matching journal article resource, or <code>null</code> if a matching journal article resource could not be found
539            * @throws SystemException if a system exception occurred
540            */
541            public static com.liferay.portlet.journal.model.JournalArticleResource fetchByG_A(
542                    long groupId, java.lang.String articleId)
543                    throws com.liferay.portal.kernel.exception.SystemException {
544                    return getPersistence().fetchByG_A(groupId, articleId);
545            }
546    
547            /**
548            * 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.
549            *
550            * @param groupId the group ID
551            * @param articleId the article ID
552            * @param retrieveFromCache whether to use the finder cache
553            * @return the matching journal article resource, or <code>null</code> if a matching journal article resource could not be found
554            * @throws SystemException if a system exception occurred
555            */
556            public static com.liferay.portlet.journal.model.JournalArticleResource fetchByG_A(
557                    long groupId, java.lang.String articleId, boolean retrieveFromCache)
558                    throws com.liferay.portal.kernel.exception.SystemException {
559                    return getPersistence().fetchByG_A(groupId, articleId, retrieveFromCache);
560            }
561    
562            /**
563            * Returns all the journal article resources.
564            *
565            * @return the journal article resources
566            * @throws SystemException if a system exception occurred
567            */
568            public static java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll()
569                    throws com.liferay.portal.kernel.exception.SystemException {
570                    return getPersistence().findAll();
571            }
572    
573            /**
574            * Returns a range of all the journal article resources.
575            *
576            * <p>
577            * 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.
578            * </p>
579            *
580            * @param start the lower bound of the range of journal article resources
581            * @param end the upper bound of the range of journal article resources (not inclusive)
582            * @return the range of journal article resources
583            * @throws SystemException if a system exception occurred
584            */
585            public static java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll(
586                    int start, int end)
587                    throws com.liferay.portal.kernel.exception.SystemException {
588                    return getPersistence().findAll(start, end);
589            }
590    
591            /**
592            * Returns an ordered range of all the journal article resources.
593            *
594            * <p>
595            * 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.
596            * </p>
597            *
598            * @param start the lower bound of the range of journal article resources
599            * @param end the upper bound of the range of journal article resources (not inclusive)
600            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
601            * @return the ordered range of journal article resources
602            * @throws SystemException if a system exception occurred
603            */
604            public static java.util.List<com.liferay.portlet.journal.model.JournalArticleResource> findAll(
605                    int start, int end,
606                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
607                    throws com.liferay.portal.kernel.exception.SystemException {
608                    return getPersistence().findAll(start, end, orderByComparator);
609            }
610    
611            /**
612            * Removes all the journal article resources where uuid = &#63; from the database.
613            *
614            * @param uuid the uuid
615            * @throws SystemException if a system exception occurred
616            */
617            public static void removeByUuid(java.lang.String uuid)
618                    throws com.liferay.portal.kernel.exception.SystemException {
619                    getPersistence().removeByUuid(uuid);
620            }
621    
622            /**
623            * Removes the journal article resource where uuid = &#63; and groupId = &#63; from the database.
624            *
625            * @param uuid the uuid
626            * @param groupId the group ID
627            * @return the journal article resource that was removed
628            * @throws SystemException if a system exception occurred
629            */
630            public static com.liferay.portlet.journal.model.JournalArticleResource removeByUUID_G(
631                    java.lang.String uuid, long groupId)
632                    throws com.liferay.portal.kernel.exception.SystemException,
633                            com.liferay.portlet.journal.NoSuchArticleResourceException {
634                    return getPersistence().removeByUUID_G(uuid, groupId);
635            }
636    
637            /**
638            * Removes all the journal article resources where groupId = &#63; from the database.
639            *
640            * @param groupId the group ID
641            * @throws SystemException if a system exception occurred
642            */
643            public static void removeByGroupId(long groupId)
644                    throws com.liferay.portal.kernel.exception.SystemException {
645                    getPersistence().removeByGroupId(groupId);
646            }
647    
648            /**
649            * Removes the journal article resource where groupId = &#63; and articleId = &#63; from the database.
650            *
651            * @param groupId the group ID
652            * @param articleId the article ID
653            * @return the journal article resource that was removed
654            * @throws SystemException if a system exception occurred
655            */
656            public static com.liferay.portlet.journal.model.JournalArticleResource removeByG_A(
657                    long groupId, java.lang.String articleId)
658                    throws com.liferay.portal.kernel.exception.SystemException,
659                            com.liferay.portlet.journal.NoSuchArticleResourceException {
660                    return getPersistence().removeByG_A(groupId, articleId);
661            }
662    
663            /**
664            * Removes all the journal article resources from the database.
665            *
666            * @throws SystemException if a system exception occurred
667            */
668            public static void removeAll()
669                    throws com.liferay.portal.kernel.exception.SystemException {
670                    getPersistence().removeAll();
671            }
672    
673            /**
674            * Returns the number of journal article resources where uuid = &#63;.
675            *
676            * @param uuid the uuid
677            * @return the number of matching journal article resources
678            * @throws SystemException if a system exception occurred
679            */
680            public static int countByUuid(java.lang.String uuid)
681                    throws com.liferay.portal.kernel.exception.SystemException {
682                    return getPersistence().countByUuid(uuid);
683            }
684    
685            /**
686            * Returns the number of journal article resources where uuid = &#63; and groupId = &#63;.
687            *
688            * @param uuid the uuid
689            * @param groupId the group ID
690            * @return the number of matching journal article resources
691            * @throws SystemException if a system exception occurred
692            */
693            public static int countByUUID_G(java.lang.String uuid, long groupId)
694                    throws com.liferay.portal.kernel.exception.SystemException {
695                    return getPersistence().countByUUID_G(uuid, groupId);
696            }
697    
698            /**
699            * Returns the number of journal article resources where groupId = &#63;.
700            *
701            * @param groupId the group ID
702            * @return the number of matching journal article resources
703            * @throws SystemException if a system exception occurred
704            */
705            public static int countByGroupId(long groupId)
706                    throws com.liferay.portal.kernel.exception.SystemException {
707                    return getPersistence().countByGroupId(groupId);
708            }
709    
710            /**
711            * Returns the number of journal article resources where groupId = &#63; and articleId = &#63;.
712            *
713            * @param groupId the group ID
714            * @param articleId the article ID
715            * @return the number of matching journal article resources
716            * @throws SystemException if a system exception occurred
717            */
718            public static int countByG_A(long groupId, java.lang.String articleId)
719                    throws com.liferay.portal.kernel.exception.SystemException {
720                    return getPersistence().countByG_A(groupId, articleId);
721            }
722    
723            /**
724            * Returns the number of journal article resources.
725            *
726            * @return the number of journal article resources
727            * @throws SystemException if a system exception occurred
728            */
729            public static int countAll()
730                    throws com.liferay.portal.kernel.exception.SystemException {
731                    return getPersistence().countAll();
732            }
733    
734            public static JournalArticleResourcePersistence getPersistence() {
735                    if (_persistence == null) {
736                            _persistence = (JournalArticleResourcePersistence)PortalBeanLocatorUtil.locate(JournalArticleResourcePersistence.class.getName());
737    
738                            ReferenceRegistry.registerReference(JournalArticleResourceUtil.class,
739                                    "_persistence");
740                    }
741    
742                    return _persistence;
743            }
744    
745            /**
746             * @deprecated
747             */
748            public void setPersistence(JournalArticleResourcePersistence persistence) {
749            }
750    
751            private static JournalArticleResourcePersistence _persistence;
752    }