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