1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.journal.service.persistence;
16  
17  import com.liferay.portal.SystemException;
18  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20  
21  import com.liferay.portlet.journal.model.JournalArticle;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="JournalArticleUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       JournalArticlePersistence
35   * @see       JournalArticlePersistenceImpl
36   * @generated
37   */
38  public class JournalArticleUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
48       */
49      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50          throws SystemException {
51          return getPersistence().findWithDynamicQuery(dynamicQuery);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58          int start, int end) throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
64       */
65      public static JournalArticle remove(JournalArticle journalArticle)
66          throws SystemException {
67          return getPersistence().remove(journalArticle);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static JournalArticle update(JournalArticle journalArticle,
74          boolean merge) throws SystemException {
75          return getPersistence().update(journalArticle, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.journal.model.JournalArticle journalArticle) {
80          getPersistence().cacheResult(journalArticle);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.journal.model.JournalArticle> journalArticles) {
85          getPersistence().cacheResult(journalArticles);
86      }
87  
88      public static com.liferay.portlet.journal.model.JournalArticle create(
89          long id) {
90          return getPersistence().create(id);
91      }
92  
93      public static com.liferay.portlet.journal.model.JournalArticle remove(
94          long id)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.journal.NoSuchArticleException {
97          return getPersistence().remove(id);
98      }
99  
100     /**
101      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
102      */
103     public static com.liferay.portlet.journal.model.JournalArticle update(
104         com.liferay.portlet.journal.model.JournalArticle journalArticle)
105         throws com.liferay.portal.SystemException {
106         return getPersistence().update(journalArticle);
107     }
108 
109     public static com.liferay.portlet.journal.model.JournalArticle updateImpl(
110         com.liferay.portlet.journal.model.JournalArticle journalArticle,
111         boolean merge) throws com.liferay.portal.SystemException {
112         return getPersistence().updateImpl(journalArticle, merge);
113     }
114 
115     public static com.liferay.portlet.journal.model.JournalArticle findByPrimaryKey(
116         long id)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.journal.NoSuchArticleException {
119         return getPersistence().findByPrimaryKey(id);
120     }
121 
122     public static com.liferay.portlet.journal.model.JournalArticle fetchByPrimaryKey(
123         long id) throws com.liferay.portal.SystemException {
124         return getPersistence().fetchByPrimaryKey(id);
125     }
126 
127     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
128         java.lang.String uuid) throws com.liferay.portal.SystemException {
129         return getPersistence().findByUuid(uuid);
130     }
131 
132     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
133         java.lang.String uuid, int start, int end)
134         throws com.liferay.portal.SystemException {
135         return getPersistence().findByUuid(uuid, start, end);
136     }
137 
138     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
139         java.lang.String uuid, int start, int end,
140         com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.SystemException {
142         return getPersistence().findByUuid(uuid, start, end, obc);
143     }
144 
145     public static com.liferay.portlet.journal.model.JournalArticle findByUuid_First(
146         java.lang.String uuid,
147         com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.SystemException,
149             com.liferay.portlet.journal.NoSuchArticleException {
150         return getPersistence().findByUuid_First(uuid, obc);
151     }
152 
153     public static com.liferay.portlet.journal.model.JournalArticle findByUuid_Last(
154         java.lang.String uuid,
155         com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.journal.NoSuchArticleException {
158         return getPersistence().findByUuid_Last(uuid, obc);
159     }
160 
161     public static com.liferay.portlet.journal.model.JournalArticle[] findByUuid_PrevAndNext(
162         long id, java.lang.String uuid,
163         com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.journal.NoSuchArticleException {
166         return getPersistence().findByUuid_PrevAndNext(id, uuid, obc);
167     }
168 
169     public static com.liferay.portlet.journal.model.JournalArticle findByUUID_G(
170         java.lang.String uuid, long groupId)
171         throws com.liferay.portal.SystemException,
172             com.liferay.portlet.journal.NoSuchArticleException {
173         return getPersistence().findByUUID_G(uuid, groupId);
174     }
175 
176     public static com.liferay.portlet.journal.model.JournalArticle fetchByUUID_G(
177         java.lang.String uuid, long groupId)
178         throws com.liferay.portal.SystemException {
179         return getPersistence().fetchByUUID_G(uuid, groupId);
180     }
181 
182     public static com.liferay.portlet.journal.model.JournalArticle fetchByUUID_G(
183         java.lang.String uuid, long groupId, boolean retrieveFromCache)
184         throws com.liferay.portal.SystemException {
185         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
186     }
187 
188     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
189         long groupId) throws com.liferay.portal.SystemException {
190         return getPersistence().findByGroupId(groupId);
191     }
192 
193     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
194         long groupId, int start, int end)
195         throws com.liferay.portal.SystemException {
196         return getPersistence().findByGroupId(groupId, start, end);
197     }
198 
199     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
200         long groupId, int start, int end,
201         com.liferay.portal.kernel.util.OrderByComparator obc)
202         throws com.liferay.portal.SystemException {
203         return getPersistence().findByGroupId(groupId, start, end, obc);
204     }
205 
206     public static com.liferay.portlet.journal.model.JournalArticle findByGroupId_First(
207         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
208         throws com.liferay.portal.SystemException,
209             com.liferay.portlet.journal.NoSuchArticleException {
210         return getPersistence().findByGroupId_First(groupId, obc);
211     }
212 
213     public static com.liferay.portlet.journal.model.JournalArticle findByGroupId_Last(
214         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
215         throws com.liferay.portal.SystemException,
216             com.liferay.portlet.journal.NoSuchArticleException {
217         return getPersistence().findByGroupId_Last(groupId, obc);
218     }
219 
220     public static com.liferay.portlet.journal.model.JournalArticle[] findByGroupId_PrevAndNext(
221         long id, long groupId,
222         com.liferay.portal.kernel.util.OrderByComparator obc)
223         throws com.liferay.portal.SystemException,
224             com.liferay.portlet.journal.NoSuchArticleException {
225         return getPersistence().findByGroupId_PrevAndNext(id, groupId, obc);
226     }
227 
228     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
229         long companyId) throws com.liferay.portal.SystemException {
230         return getPersistence().findByCompanyId(companyId);
231     }
232 
233     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
234         long companyId, int start, int end)
235         throws com.liferay.portal.SystemException {
236         return getPersistence().findByCompanyId(companyId, start, end);
237     }
238 
239     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
240         long companyId, int start, int end,
241         com.liferay.portal.kernel.util.OrderByComparator obc)
242         throws com.liferay.portal.SystemException {
243         return getPersistence().findByCompanyId(companyId, start, end, obc);
244     }
245 
246     public static com.liferay.portlet.journal.model.JournalArticle findByCompanyId_First(
247         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
248         throws com.liferay.portal.SystemException,
249             com.liferay.portlet.journal.NoSuchArticleException {
250         return getPersistence().findByCompanyId_First(companyId, obc);
251     }
252 
253     public static com.liferay.portlet.journal.model.JournalArticle findByCompanyId_Last(
254         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
255         throws com.liferay.portal.SystemException,
256             com.liferay.portlet.journal.NoSuchArticleException {
257         return getPersistence().findByCompanyId_Last(companyId, obc);
258     }
259 
260     public static com.liferay.portlet.journal.model.JournalArticle[] findByCompanyId_PrevAndNext(
261         long id, long companyId,
262         com.liferay.portal.kernel.util.OrderByComparator obc)
263         throws com.liferay.portal.SystemException,
264             com.liferay.portlet.journal.NoSuchArticleException {
265         return getPersistence().findByCompanyId_PrevAndNext(id, companyId, obc);
266     }
267 
268     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
269         long smallImageId) throws com.liferay.portal.SystemException {
270         return getPersistence().findBySmallImageId(smallImageId);
271     }
272 
273     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
274         long smallImageId, int start, int end)
275         throws com.liferay.portal.SystemException {
276         return getPersistence().findBySmallImageId(smallImageId, start, end);
277     }
278 
279     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
280         long smallImageId, int start, int end,
281         com.liferay.portal.kernel.util.OrderByComparator obc)
282         throws com.liferay.portal.SystemException {
283         return getPersistence().findBySmallImageId(smallImageId, start, end, obc);
284     }
285 
286     public static com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_First(
287         long smallImageId, com.liferay.portal.kernel.util.OrderByComparator obc)
288         throws com.liferay.portal.SystemException,
289             com.liferay.portlet.journal.NoSuchArticleException {
290         return getPersistence().findBySmallImageId_First(smallImageId, obc);
291     }
292 
293     public static com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_Last(
294         long smallImageId, com.liferay.portal.kernel.util.OrderByComparator obc)
295         throws com.liferay.portal.SystemException,
296             com.liferay.portlet.journal.NoSuchArticleException {
297         return getPersistence().findBySmallImageId_Last(smallImageId, obc);
298     }
299 
300     public static com.liferay.portlet.journal.model.JournalArticle[] findBySmallImageId_PrevAndNext(
301         long id, long smallImageId,
302         com.liferay.portal.kernel.util.OrderByComparator obc)
303         throws com.liferay.portal.SystemException,
304             com.liferay.portlet.journal.NoSuchArticleException {
305         return getPersistence()
306                    .findBySmallImageId_PrevAndNext(id, smallImageId, obc);
307     }
308 
309     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByR_A(
310         long resourcePrimKey, boolean approved)
311         throws com.liferay.portal.SystemException {
312         return getPersistence().findByR_A(resourcePrimKey, approved);
313     }
314 
315     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByR_A(
316         long resourcePrimKey, boolean approved, int start, int end)
317         throws com.liferay.portal.SystemException {
318         return getPersistence().findByR_A(resourcePrimKey, approved, start, end);
319     }
320 
321     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByR_A(
322         long resourcePrimKey, boolean approved, int start, int end,
323         com.liferay.portal.kernel.util.OrderByComparator obc)
324         throws com.liferay.portal.SystemException {
325         return getPersistence()
326                    .findByR_A(resourcePrimKey, approved, start, end, obc);
327     }
328 
329     public static com.liferay.portlet.journal.model.JournalArticle findByR_A_First(
330         long resourcePrimKey, boolean approved,
331         com.liferay.portal.kernel.util.OrderByComparator obc)
332         throws com.liferay.portal.SystemException,
333             com.liferay.portlet.journal.NoSuchArticleException {
334         return getPersistence().findByR_A_First(resourcePrimKey, approved, obc);
335     }
336 
337     public static com.liferay.portlet.journal.model.JournalArticle findByR_A_Last(
338         long resourcePrimKey, boolean approved,
339         com.liferay.portal.kernel.util.OrderByComparator obc)
340         throws com.liferay.portal.SystemException,
341             com.liferay.portlet.journal.NoSuchArticleException {
342         return getPersistence().findByR_A_Last(resourcePrimKey, approved, obc);
343     }
344 
345     public static com.liferay.portlet.journal.model.JournalArticle[] findByR_A_PrevAndNext(
346         long id, long resourcePrimKey, boolean approved,
347         com.liferay.portal.kernel.util.OrderByComparator obc)
348         throws com.liferay.portal.SystemException,
349             com.liferay.portlet.journal.NoSuchArticleException {
350         return getPersistence()
351                    .findByR_A_PrevAndNext(id, resourcePrimKey, approved, obc);
352     }
353 
354     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
355         long groupId, java.lang.String articleId)
356         throws com.liferay.portal.SystemException {
357         return getPersistence().findByG_A(groupId, articleId);
358     }
359 
360     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
361         long groupId, java.lang.String articleId, int start, int end)
362         throws com.liferay.portal.SystemException {
363         return getPersistence().findByG_A(groupId, articleId, start, end);
364     }
365 
366     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
367         long groupId, java.lang.String articleId, int start, int end,
368         com.liferay.portal.kernel.util.OrderByComparator obc)
369         throws com.liferay.portal.SystemException {
370         return getPersistence().findByG_A(groupId, articleId, start, end, obc);
371     }
372 
373     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_First(
374         long groupId, java.lang.String articleId,
375         com.liferay.portal.kernel.util.OrderByComparator obc)
376         throws com.liferay.portal.SystemException,
377             com.liferay.portlet.journal.NoSuchArticleException {
378         return getPersistence().findByG_A_First(groupId, articleId, obc);
379     }
380 
381     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_Last(
382         long groupId, java.lang.String articleId,
383         com.liferay.portal.kernel.util.OrderByComparator obc)
384         throws com.liferay.portal.SystemException,
385             com.liferay.portlet.journal.NoSuchArticleException {
386         return getPersistence().findByG_A_Last(groupId, articleId, obc);
387     }
388 
389     public static com.liferay.portlet.journal.model.JournalArticle[] findByG_A_PrevAndNext(
390         long id, long groupId, java.lang.String articleId,
391         com.liferay.portal.kernel.util.OrderByComparator obc)
392         throws com.liferay.portal.SystemException,
393             com.liferay.portlet.journal.NoSuchArticleException {
394         return getPersistence()
395                    .findByG_A_PrevAndNext(id, groupId, articleId, obc);
396     }
397 
398     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
399         long groupId, java.lang.String structureId)
400         throws com.liferay.portal.SystemException {
401         return getPersistence().findByG_S(groupId, structureId);
402     }
403 
404     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
405         long groupId, java.lang.String structureId, int start, int end)
406         throws com.liferay.portal.SystemException {
407         return getPersistence().findByG_S(groupId, structureId, start, end);
408     }
409 
410     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
411         long groupId, java.lang.String structureId, int start, int end,
412         com.liferay.portal.kernel.util.OrderByComparator obc)
413         throws com.liferay.portal.SystemException {
414         return getPersistence().findByG_S(groupId, structureId, start, end, obc);
415     }
416 
417     public static com.liferay.portlet.journal.model.JournalArticle findByG_S_First(
418         long groupId, java.lang.String structureId,
419         com.liferay.portal.kernel.util.OrderByComparator obc)
420         throws com.liferay.portal.SystemException,
421             com.liferay.portlet.journal.NoSuchArticleException {
422         return getPersistence().findByG_S_First(groupId, structureId, obc);
423     }
424 
425     public static com.liferay.portlet.journal.model.JournalArticle findByG_S_Last(
426         long groupId, java.lang.String structureId,
427         com.liferay.portal.kernel.util.OrderByComparator obc)
428         throws com.liferay.portal.SystemException,
429             com.liferay.portlet.journal.NoSuchArticleException {
430         return getPersistence().findByG_S_Last(groupId, structureId, obc);
431     }
432 
433     public static com.liferay.portlet.journal.model.JournalArticle[] findByG_S_PrevAndNext(
434         long id, long groupId, java.lang.String structureId,
435         com.liferay.portal.kernel.util.OrderByComparator obc)
436         throws com.liferay.portal.SystemException,
437             com.liferay.portlet.journal.NoSuchArticleException {
438         return getPersistence()
439                    .findByG_S_PrevAndNext(id, groupId, structureId, obc);
440     }
441 
442     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
443         long groupId, java.lang.String templateId)
444         throws com.liferay.portal.SystemException {
445         return getPersistence().findByG_T(groupId, templateId);
446     }
447 
448     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
449         long groupId, java.lang.String templateId, int start, int end)
450         throws com.liferay.portal.SystemException {
451         return getPersistence().findByG_T(groupId, templateId, start, end);
452     }
453 
454     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
455         long groupId, java.lang.String templateId, int start, int end,
456         com.liferay.portal.kernel.util.OrderByComparator obc)
457         throws com.liferay.portal.SystemException {
458         return getPersistence().findByG_T(groupId, templateId, start, end, obc);
459     }
460 
461     public static com.liferay.portlet.journal.model.JournalArticle findByG_T_First(
462         long groupId, java.lang.String templateId,
463         com.liferay.portal.kernel.util.OrderByComparator obc)
464         throws com.liferay.portal.SystemException,
465             com.liferay.portlet.journal.NoSuchArticleException {
466         return getPersistence().findByG_T_First(groupId, templateId, obc);
467     }
468 
469     public static com.liferay.portlet.journal.model.JournalArticle findByG_T_Last(
470         long groupId, java.lang.String templateId,
471         com.liferay.portal.kernel.util.OrderByComparator obc)
472         throws com.liferay.portal.SystemException,
473             com.liferay.portlet.journal.NoSuchArticleException {
474         return getPersistence().findByG_T_Last(groupId, templateId, obc);
475     }
476 
477     public static com.liferay.portlet.journal.model.JournalArticle[] findByG_T_PrevAndNext(
478         long id, long groupId, java.lang.String templateId,
479         com.liferay.portal.kernel.util.OrderByComparator obc)
480         throws com.liferay.portal.SystemException,
481             com.liferay.portlet.journal.NoSuchArticleException {
482         return getPersistence()
483                    .findByG_T_PrevAndNext(id, groupId, templateId, obc);
484     }
485 
486     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_V(
487         long groupId, java.lang.String articleId, double version)
488         throws com.liferay.portal.SystemException,
489             com.liferay.portlet.journal.NoSuchArticleException {
490         return getPersistence().findByG_A_V(groupId, articleId, version);
491     }
492 
493     public static com.liferay.portlet.journal.model.JournalArticle fetchByG_A_V(
494         long groupId, java.lang.String articleId, double version)
495         throws com.liferay.portal.SystemException {
496         return getPersistence().fetchByG_A_V(groupId, articleId, version);
497     }
498 
499     public static com.liferay.portlet.journal.model.JournalArticle fetchByG_A_V(
500         long groupId, java.lang.String articleId, double version,
501         boolean retrieveFromCache) throws com.liferay.portal.SystemException {
502         return getPersistence()
503                    .fetchByG_A_V(groupId, articleId, version, retrieveFromCache);
504     }
505 
506     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
507         long groupId, java.lang.String articleId, boolean approved)
508         throws com.liferay.portal.SystemException {
509         return getPersistence().findByG_A_A(groupId, articleId, approved);
510     }
511 
512     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
513         long groupId, java.lang.String articleId, boolean approved, int start,
514         int end) throws com.liferay.portal.SystemException {
515         return getPersistence()
516                    .findByG_A_A(groupId, articleId, approved, start, end);
517     }
518 
519     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
520         long groupId, java.lang.String articleId, boolean approved, int start,
521         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
522         throws com.liferay.portal.SystemException {
523         return getPersistence()
524                    .findByG_A_A(groupId, articleId, approved, start, end, obc);
525     }
526 
527     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_A_First(
528         long groupId, java.lang.String articleId, boolean approved,
529         com.liferay.portal.kernel.util.OrderByComparator obc)
530         throws com.liferay.portal.SystemException,
531             com.liferay.portlet.journal.NoSuchArticleException {
532         return getPersistence()
533                    .findByG_A_A_First(groupId, articleId, approved, obc);
534     }
535 
536     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_A_Last(
537         long groupId, java.lang.String articleId, boolean approved,
538         com.liferay.portal.kernel.util.OrderByComparator obc)
539         throws com.liferay.portal.SystemException,
540             com.liferay.portlet.journal.NoSuchArticleException {
541         return getPersistence()
542                    .findByG_A_A_Last(groupId, articleId, approved, obc);
543     }
544 
545     public static com.liferay.portlet.journal.model.JournalArticle[] findByG_A_A_PrevAndNext(
546         long id, long groupId, java.lang.String articleId, boolean approved,
547         com.liferay.portal.kernel.util.OrderByComparator obc)
548         throws com.liferay.portal.SystemException,
549             com.liferay.portlet.journal.NoSuchArticleException {
550         return getPersistence()
551                    .findByG_A_A_PrevAndNext(id, groupId, articleId, approved,
552             obc);
553     }
554 
555     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll()
556         throws com.liferay.portal.SystemException {
557         return getPersistence().findAll();
558     }
559 
560     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll(
561         int start, int end) throws com.liferay.portal.SystemException {
562         return getPersistence().findAll(start, end);
563     }
564 
565     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll(
566         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
567         throws com.liferay.portal.SystemException {
568         return getPersistence().findAll(start, end, obc);
569     }
570 
571     public static void removeByUuid(java.lang.String uuid)
572         throws com.liferay.portal.SystemException {
573         getPersistence().removeByUuid(uuid);
574     }
575 
576     public static void removeByUUID_G(java.lang.String uuid, long groupId)
577         throws com.liferay.portal.SystemException,
578             com.liferay.portlet.journal.NoSuchArticleException {
579         getPersistence().removeByUUID_G(uuid, groupId);
580     }
581 
582     public static void removeByGroupId(long groupId)
583         throws com.liferay.portal.SystemException {
584         getPersistence().removeByGroupId(groupId);
585     }
586 
587     public static void removeByCompanyId(long companyId)
588         throws com.liferay.portal.SystemException {
589         getPersistence().removeByCompanyId(companyId);
590     }
591 
592     public static void removeBySmallImageId(long smallImageId)
593         throws com.liferay.portal.SystemException {
594         getPersistence().removeBySmallImageId(smallImageId);
595     }
596 
597     public static void removeByR_A(long resourcePrimKey, boolean approved)
598         throws com.liferay.portal.SystemException {
599         getPersistence().removeByR_A(resourcePrimKey, approved);
600     }
601 
602     public static void removeByG_A(long groupId, java.lang.String articleId)
603         throws com.liferay.portal.SystemException {
604         getPersistence().removeByG_A(groupId, articleId);
605     }
606 
607     public static void removeByG_S(long groupId, java.lang.String structureId)
608         throws com.liferay.portal.SystemException {
609         getPersistence().removeByG_S(groupId, structureId);
610     }
611 
612     public static void removeByG_T(long groupId, java.lang.String templateId)
613         throws com.liferay.portal.SystemException {
614         getPersistence().removeByG_T(groupId, templateId);
615     }
616 
617     public static void removeByG_A_V(long groupId, java.lang.String articleId,
618         double version)
619         throws com.liferay.portal.SystemException,
620             com.liferay.portlet.journal.NoSuchArticleException {
621         getPersistence().removeByG_A_V(groupId, articleId, version);
622     }
623 
624     public static void removeByG_A_A(long groupId, java.lang.String articleId,
625         boolean approved) throws com.liferay.portal.SystemException {
626         getPersistence().removeByG_A_A(groupId, articleId, approved);
627     }
628 
629     public static void removeAll() throws com.liferay.portal.SystemException {
630         getPersistence().removeAll();
631     }
632 
633     public static int countByUuid(java.lang.String uuid)
634         throws com.liferay.portal.SystemException {
635         return getPersistence().countByUuid(uuid);
636     }
637 
638     public static int countByUUID_G(java.lang.String uuid, long groupId)
639         throws com.liferay.portal.SystemException {
640         return getPersistence().countByUUID_G(uuid, groupId);
641     }
642 
643     public static int countByGroupId(long groupId)
644         throws com.liferay.portal.SystemException {
645         return getPersistence().countByGroupId(groupId);
646     }
647 
648     public static int countByCompanyId(long companyId)
649         throws com.liferay.portal.SystemException {
650         return getPersistence().countByCompanyId(companyId);
651     }
652 
653     public static int countBySmallImageId(long smallImageId)
654         throws com.liferay.portal.SystemException {
655         return getPersistence().countBySmallImageId(smallImageId);
656     }
657 
658     public static int countByR_A(long resourcePrimKey, boolean approved)
659         throws com.liferay.portal.SystemException {
660         return getPersistence().countByR_A(resourcePrimKey, approved);
661     }
662 
663     public static int countByG_A(long groupId, java.lang.String articleId)
664         throws com.liferay.portal.SystemException {
665         return getPersistence().countByG_A(groupId, articleId);
666     }
667 
668     public static int countByG_S(long groupId, java.lang.String structureId)
669         throws com.liferay.portal.SystemException {
670         return getPersistence().countByG_S(groupId, structureId);
671     }
672 
673     public static int countByG_T(long groupId, java.lang.String templateId)
674         throws com.liferay.portal.SystemException {
675         return getPersistence().countByG_T(groupId, templateId);
676     }
677 
678     public static int countByG_A_V(long groupId, java.lang.String articleId,
679         double version) throws com.liferay.portal.SystemException {
680         return getPersistence().countByG_A_V(groupId, articleId, version);
681     }
682 
683     public static int countByG_A_A(long groupId, java.lang.String articleId,
684         boolean approved) throws com.liferay.portal.SystemException {
685         return getPersistence().countByG_A_A(groupId, articleId, approved);
686     }
687 
688     public static int countAll() throws com.liferay.portal.SystemException {
689         return getPersistence().countAll();
690     }
691 
692     public static JournalArticlePersistence getPersistence() {
693         if (_persistence == null) {
694             _persistence = (JournalArticlePersistence)PortalBeanLocatorUtil.locate(JournalArticlePersistence.class.getName());
695         }
696 
697         return _persistence;
698     }
699 
700     public void setPersistence(JournalArticlePersistence persistence) {
701         _persistence = persistence;
702     }
703 
704     private static JournalArticlePersistence _persistence;
705 }