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