1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.journal.service.persistence;
24  
25  /**
26   * <a href="JournalArticleUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class JournalArticleUtil {
32      public static void cacheResult(
33          com.liferay.portlet.journal.model.JournalArticle journalArticle) {
34          getPersistence().cacheResult(journalArticle);
35      }
36  
37      public static void cacheResult(
38          java.util.List<com.liferay.portlet.journal.model.JournalArticle> journalArticles) {
39          getPersistence().cacheResult(journalArticles);
40      }
41  
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      public static com.liferay.portlet.journal.model.JournalArticle create(
47          long id) {
48          return getPersistence().create(id);
49      }
50  
51      public static com.liferay.portlet.journal.model.JournalArticle remove(
52          long id)
53          throws com.liferay.portal.SystemException,
54              com.liferay.portlet.journal.NoSuchArticleException {
55          return getPersistence().remove(id);
56      }
57  
58      public static com.liferay.portlet.journal.model.JournalArticle remove(
59          com.liferay.portlet.journal.model.JournalArticle journalArticle)
60          throws com.liferay.portal.SystemException {
61          return getPersistence().remove(journalArticle);
62      }
63  
64      /**
65       * @deprecated Use <code>update(JournalArticle journalArticle, boolean merge)</code>.
66       */
67      public static com.liferay.portlet.journal.model.JournalArticle update(
68          com.liferay.portlet.journal.model.JournalArticle journalArticle)
69          throws com.liferay.portal.SystemException {
70          return getPersistence().update(journalArticle);
71      }
72  
73      /**
74       * Add, update, or merge, the entity. This method also calls the model
75       * listeners to trigger the proper events associated with adding, deleting,
76       * or updating an entity.
77       *
78       * @param        journalArticle the entity to add, update, or merge
79       * @param        merge boolean value for whether to merge the entity. The
80       *                default value is false. Setting merge to true is more
81       *                expensive and should only be true when journalArticle is
82       *                transient. See LEP-5473 for a detailed discussion of this
83       *                method.
84       * @return        true if the portlet can be displayed via Ajax
85       */
86      public static com.liferay.portlet.journal.model.JournalArticle update(
87          com.liferay.portlet.journal.model.JournalArticle journalArticle,
88          boolean merge) throws com.liferay.portal.SystemException {
89          return getPersistence().update(journalArticle, merge);
90      }
91  
92      public static com.liferay.portlet.journal.model.JournalArticle updateImpl(
93          com.liferay.portlet.journal.model.JournalArticle journalArticle,
94          boolean merge) throws com.liferay.portal.SystemException {
95          return getPersistence().updateImpl(journalArticle, merge);
96      }
97  
98      public static com.liferay.portlet.journal.model.JournalArticle findByPrimaryKey(
99          long id)
100         throws com.liferay.portal.SystemException,
101             com.liferay.portlet.journal.NoSuchArticleException {
102         return getPersistence().findByPrimaryKey(id);
103     }
104 
105     public static com.liferay.portlet.journal.model.JournalArticle fetchByPrimaryKey(
106         long id) throws com.liferay.portal.SystemException {
107         return getPersistence().fetchByPrimaryKey(id);
108     }
109 
110     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
111         java.lang.String uuid) throws com.liferay.portal.SystemException {
112         return getPersistence().findByUuid(uuid);
113     }
114 
115     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
116         java.lang.String uuid, int start, int end)
117         throws com.liferay.portal.SystemException {
118         return getPersistence().findByUuid(uuid, start, end);
119     }
120 
121     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByUuid(
122         java.lang.String uuid, int start, int end,
123         com.liferay.portal.kernel.util.OrderByComparator obc)
124         throws com.liferay.portal.SystemException {
125         return getPersistence().findByUuid(uuid, start, end, obc);
126     }
127 
128     public static com.liferay.portlet.journal.model.JournalArticle findByUuid_First(
129         java.lang.String uuid,
130         com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException,
132             com.liferay.portlet.journal.NoSuchArticleException {
133         return getPersistence().findByUuid_First(uuid, obc);
134     }
135 
136     public static com.liferay.portlet.journal.model.JournalArticle findByUuid_Last(
137         java.lang.String uuid,
138         com.liferay.portal.kernel.util.OrderByComparator obc)
139         throws com.liferay.portal.SystemException,
140             com.liferay.portlet.journal.NoSuchArticleException {
141         return getPersistence().findByUuid_Last(uuid, obc);
142     }
143 
144     public static com.liferay.portlet.journal.model.JournalArticle[] findByUuid_PrevAndNext(
145         long id, java.lang.String uuid,
146         com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException,
148             com.liferay.portlet.journal.NoSuchArticleException {
149         return getPersistence().findByUuid_PrevAndNext(id, uuid, obc);
150     }
151 
152     public static com.liferay.portlet.journal.model.JournalArticle findByUUID_G(
153         java.lang.String uuid, long groupId)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.journal.NoSuchArticleException {
156         return getPersistence().findByUUID_G(uuid, groupId);
157     }
158 
159     public static com.liferay.portlet.journal.model.JournalArticle fetchByUUID_G(
160         java.lang.String uuid, long groupId)
161         throws com.liferay.portal.SystemException {
162         return getPersistence().fetchByUUID_G(uuid, groupId);
163     }
164 
165     public static com.liferay.portlet.journal.model.JournalArticle fetchByUUID_G(
166         java.lang.String uuid, long groupId, boolean retrieveFromCache)
167         throws com.liferay.portal.SystemException {
168         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
169     }
170 
171     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
172         long groupId) throws com.liferay.portal.SystemException {
173         return getPersistence().findByGroupId(groupId);
174     }
175 
176     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
177         long groupId, int start, int end)
178         throws com.liferay.portal.SystemException {
179         return getPersistence().findByGroupId(groupId, start, end);
180     }
181 
182     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByGroupId(
183         long groupId, int start, int end,
184         com.liferay.portal.kernel.util.OrderByComparator obc)
185         throws com.liferay.portal.SystemException {
186         return getPersistence().findByGroupId(groupId, start, end, obc);
187     }
188 
189     public static com.liferay.portlet.journal.model.JournalArticle findByGroupId_First(
190         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
191         throws com.liferay.portal.SystemException,
192             com.liferay.portlet.journal.NoSuchArticleException {
193         return getPersistence().findByGroupId_First(groupId, obc);
194     }
195 
196     public static com.liferay.portlet.journal.model.JournalArticle findByGroupId_Last(
197         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
198         throws com.liferay.portal.SystemException,
199             com.liferay.portlet.journal.NoSuchArticleException {
200         return getPersistence().findByGroupId_Last(groupId, obc);
201     }
202 
203     public static com.liferay.portlet.journal.model.JournalArticle[] findByGroupId_PrevAndNext(
204         long id, long groupId,
205         com.liferay.portal.kernel.util.OrderByComparator obc)
206         throws com.liferay.portal.SystemException,
207             com.liferay.portlet.journal.NoSuchArticleException {
208         return getPersistence().findByGroupId_PrevAndNext(id, groupId, obc);
209     }
210 
211     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
212         long companyId) throws com.liferay.portal.SystemException {
213         return getPersistence().findByCompanyId(companyId);
214     }
215 
216     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
217         long companyId, int start, int end)
218         throws com.liferay.portal.SystemException {
219         return getPersistence().findByCompanyId(companyId, start, end);
220     }
221 
222     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByCompanyId(
223         long companyId, int start, int end,
224         com.liferay.portal.kernel.util.OrderByComparator obc)
225         throws com.liferay.portal.SystemException {
226         return getPersistence().findByCompanyId(companyId, start, end, obc);
227     }
228 
229     public static com.liferay.portlet.journal.model.JournalArticle findByCompanyId_First(
230         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
231         throws com.liferay.portal.SystemException,
232             com.liferay.portlet.journal.NoSuchArticleException {
233         return getPersistence().findByCompanyId_First(companyId, obc);
234     }
235 
236     public static com.liferay.portlet.journal.model.JournalArticle findByCompanyId_Last(
237         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
238         throws com.liferay.portal.SystemException,
239             com.liferay.portlet.journal.NoSuchArticleException {
240         return getPersistence().findByCompanyId_Last(companyId, obc);
241     }
242 
243     public static com.liferay.portlet.journal.model.JournalArticle[] findByCompanyId_PrevAndNext(
244         long id, long companyId,
245         com.liferay.portal.kernel.util.OrderByComparator obc)
246         throws com.liferay.portal.SystemException,
247             com.liferay.portlet.journal.NoSuchArticleException {
248         return getPersistence().findByCompanyId_PrevAndNext(id, companyId, obc);
249     }
250 
251     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
252         long smallImageId) throws com.liferay.portal.SystemException {
253         return getPersistence().findBySmallImageId(smallImageId);
254     }
255 
256     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
257         long smallImageId, int start, int end)
258         throws com.liferay.portal.SystemException {
259         return getPersistence().findBySmallImageId(smallImageId, start, end);
260     }
261 
262     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findBySmallImageId(
263         long smallImageId, int start, int end,
264         com.liferay.portal.kernel.util.OrderByComparator obc)
265         throws com.liferay.portal.SystemException {
266         return getPersistence().findBySmallImageId(smallImageId, start, end, obc);
267     }
268 
269     public static com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_First(
270         long smallImageId, com.liferay.portal.kernel.util.OrderByComparator obc)
271         throws com.liferay.portal.SystemException,
272             com.liferay.portlet.journal.NoSuchArticleException {
273         return getPersistence().findBySmallImageId_First(smallImageId, obc);
274     }
275 
276     public static com.liferay.portlet.journal.model.JournalArticle findBySmallImageId_Last(
277         long smallImageId, com.liferay.portal.kernel.util.OrderByComparator obc)
278         throws com.liferay.portal.SystemException,
279             com.liferay.portlet.journal.NoSuchArticleException {
280         return getPersistence().findBySmallImageId_Last(smallImageId, obc);
281     }
282 
283     public static com.liferay.portlet.journal.model.JournalArticle[] findBySmallImageId_PrevAndNext(
284         long id, long smallImageId,
285         com.liferay.portal.kernel.util.OrderByComparator obc)
286         throws com.liferay.portal.SystemException,
287             com.liferay.portlet.journal.NoSuchArticleException {
288         return getPersistence()
289                    .findBySmallImageId_PrevAndNext(id, smallImageId, obc);
290     }
291 
292     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByR_A(
293         long resourcePrimKey, boolean approved)
294         throws com.liferay.portal.SystemException {
295         return getPersistence().findByR_A(resourcePrimKey, approved);
296     }
297 
298     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByR_A(
299         long resourcePrimKey, boolean approved, int start, int end)
300         throws com.liferay.portal.SystemException {
301         return getPersistence().findByR_A(resourcePrimKey, approved, start, end);
302     }
303 
304     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByR_A(
305         long resourcePrimKey, boolean approved, int start, int end,
306         com.liferay.portal.kernel.util.OrderByComparator obc)
307         throws com.liferay.portal.SystemException {
308         return getPersistence()
309                    .findByR_A(resourcePrimKey, approved, start, end, obc);
310     }
311 
312     public static com.liferay.portlet.journal.model.JournalArticle findByR_A_First(
313         long resourcePrimKey, boolean approved,
314         com.liferay.portal.kernel.util.OrderByComparator obc)
315         throws com.liferay.portal.SystemException,
316             com.liferay.portlet.journal.NoSuchArticleException {
317         return getPersistence().findByR_A_First(resourcePrimKey, approved, obc);
318     }
319 
320     public static com.liferay.portlet.journal.model.JournalArticle findByR_A_Last(
321         long resourcePrimKey, boolean approved,
322         com.liferay.portal.kernel.util.OrderByComparator obc)
323         throws com.liferay.portal.SystemException,
324             com.liferay.portlet.journal.NoSuchArticleException {
325         return getPersistence().findByR_A_Last(resourcePrimKey, approved, obc);
326     }
327 
328     public static com.liferay.portlet.journal.model.JournalArticle[] findByR_A_PrevAndNext(
329         long id, long resourcePrimKey, boolean approved,
330         com.liferay.portal.kernel.util.OrderByComparator obc)
331         throws com.liferay.portal.SystemException,
332             com.liferay.portlet.journal.NoSuchArticleException {
333         return getPersistence()
334                    .findByR_A_PrevAndNext(id, resourcePrimKey, approved, obc);
335     }
336 
337     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
338         long groupId, java.lang.String articleId)
339         throws com.liferay.portal.SystemException {
340         return getPersistence().findByG_A(groupId, articleId);
341     }
342 
343     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
344         long groupId, java.lang.String articleId, int start, int end)
345         throws com.liferay.portal.SystemException {
346         return getPersistence().findByG_A(groupId, articleId, start, end);
347     }
348 
349     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A(
350         long groupId, java.lang.String articleId, int start, int end,
351         com.liferay.portal.kernel.util.OrderByComparator obc)
352         throws com.liferay.portal.SystemException {
353         return getPersistence().findByG_A(groupId, articleId, start, end, obc);
354     }
355 
356     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_First(
357         long groupId, java.lang.String articleId,
358         com.liferay.portal.kernel.util.OrderByComparator obc)
359         throws com.liferay.portal.SystemException,
360             com.liferay.portlet.journal.NoSuchArticleException {
361         return getPersistence().findByG_A_First(groupId, articleId, obc);
362     }
363 
364     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_Last(
365         long groupId, java.lang.String articleId,
366         com.liferay.portal.kernel.util.OrderByComparator obc)
367         throws com.liferay.portal.SystemException,
368             com.liferay.portlet.journal.NoSuchArticleException {
369         return getPersistence().findByG_A_Last(groupId, articleId, obc);
370     }
371 
372     public static com.liferay.portlet.journal.model.JournalArticle[] findByG_A_PrevAndNext(
373         long id, long groupId, java.lang.String articleId,
374         com.liferay.portal.kernel.util.OrderByComparator obc)
375         throws com.liferay.portal.SystemException,
376             com.liferay.portlet.journal.NoSuchArticleException {
377         return getPersistence()
378                    .findByG_A_PrevAndNext(id, groupId, articleId, obc);
379     }
380 
381     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
382         long groupId, java.lang.String structureId)
383         throws com.liferay.portal.SystemException {
384         return getPersistence().findByG_S(groupId, structureId);
385     }
386 
387     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
388         long groupId, java.lang.String structureId, int start, int end)
389         throws com.liferay.portal.SystemException {
390         return getPersistence().findByG_S(groupId, structureId, start, end);
391     }
392 
393     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_S(
394         long groupId, java.lang.String structureId, int start, int end,
395         com.liferay.portal.kernel.util.OrderByComparator obc)
396         throws com.liferay.portal.SystemException {
397         return getPersistence().findByG_S(groupId, structureId, start, end, obc);
398     }
399 
400     public static com.liferay.portlet.journal.model.JournalArticle findByG_S_First(
401         long groupId, java.lang.String structureId,
402         com.liferay.portal.kernel.util.OrderByComparator obc)
403         throws com.liferay.portal.SystemException,
404             com.liferay.portlet.journal.NoSuchArticleException {
405         return getPersistence().findByG_S_First(groupId, structureId, obc);
406     }
407 
408     public static com.liferay.portlet.journal.model.JournalArticle findByG_S_Last(
409         long groupId, java.lang.String structureId,
410         com.liferay.portal.kernel.util.OrderByComparator obc)
411         throws com.liferay.portal.SystemException,
412             com.liferay.portlet.journal.NoSuchArticleException {
413         return getPersistence().findByG_S_Last(groupId, structureId, obc);
414     }
415 
416     public static com.liferay.portlet.journal.model.JournalArticle[] findByG_S_PrevAndNext(
417         long id, long groupId, java.lang.String structureId,
418         com.liferay.portal.kernel.util.OrderByComparator obc)
419         throws com.liferay.portal.SystemException,
420             com.liferay.portlet.journal.NoSuchArticleException {
421         return getPersistence()
422                    .findByG_S_PrevAndNext(id, groupId, structureId, obc);
423     }
424 
425     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
426         long groupId, java.lang.String templateId)
427         throws com.liferay.portal.SystemException {
428         return getPersistence().findByG_T(groupId, templateId);
429     }
430 
431     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
432         long groupId, java.lang.String templateId, int start, int end)
433         throws com.liferay.portal.SystemException {
434         return getPersistence().findByG_T(groupId, templateId, start, end);
435     }
436 
437     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_T(
438         long groupId, java.lang.String templateId, int start, int end,
439         com.liferay.portal.kernel.util.OrderByComparator obc)
440         throws com.liferay.portal.SystemException {
441         return getPersistence().findByG_T(groupId, templateId, start, end, obc);
442     }
443 
444     public static com.liferay.portlet.journal.model.JournalArticle findByG_T_First(
445         long groupId, java.lang.String templateId,
446         com.liferay.portal.kernel.util.OrderByComparator obc)
447         throws com.liferay.portal.SystemException,
448             com.liferay.portlet.journal.NoSuchArticleException {
449         return getPersistence().findByG_T_First(groupId, templateId, obc);
450     }
451 
452     public static com.liferay.portlet.journal.model.JournalArticle findByG_T_Last(
453         long groupId, java.lang.String templateId,
454         com.liferay.portal.kernel.util.OrderByComparator obc)
455         throws com.liferay.portal.SystemException,
456             com.liferay.portlet.journal.NoSuchArticleException {
457         return getPersistence().findByG_T_Last(groupId, templateId, obc);
458     }
459 
460     public static com.liferay.portlet.journal.model.JournalArticle[] findByG_T_PrevAndNext(
461         long id, long groupId, java.lang.String templateId,
462         com.liferay.portal.kernel.util.OrderByComparator obc)
463         throws com.liferay.portal.SystemException,
464             com.liferay.portlet.journal.NoSuchArticleException {
465         return getPersistence()
466                    .findByG_T_PrevAndNext(id, groupId, templateId, obc);
467     }
468 
469     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_UT(
470         long groupId, java.lang.String urlTitle)
471         throws com.liferay.portal.SystemException {
472         return getPersistence().findByG_UT(groupId, urlTitle);
473     }
474 
475     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_UT(
476         long groupId, java.lang.String urlTitle, int start, int end)
477         throws com.liferay.portal.SystemException {
478         return getPersistence().findByG_UT(groupId, urlTitle, start, end);
479     }
480 
481     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_UT(
482         long groupId, java.lang.String urlTitle, int start, int end,
483         com.liferay.portal.kernel.util.OrderByComparator obc)
484         throws com.liferay.portal.SystemException {
485         return getPersistence().findByG_UT(groupId, urlTitle, start, end, obc);
486     }
487 
488     public static com.liferay.portlet.journal.model.JournalArticle findByG_UT_First(
489         long groupId, java.lang.String urlTitle,
490         com.liferay.portal.kernel.util.OrderByComparator obc)
491         throws com.liferay.portal.SystemException,
492             com.liferay.portlet.journal.NoSuchArticleException {
493         return getPersistence().findByG_UT_First(groupId, urlTitle, obc);
494     }
495 
496     public static com.liferay.portlet.journal.model.JournalArticle findByG_UT_Last(
497         long groupId, java.lang.String urlTitle,
498         com.liferay.portal.kernel.util.OrderByComparator obc)
499         throws com.liferay.portal.SystemException,
500             com.liferay.portlet.journal.NoSuchArticleException {
501         return getPersistence().findByG_UT_Last(groupId, urlTitle, obc);
502     }
503 
504     public static com.liferay.portlet.journal.model.JournalArticle[] findByG_UT_PrevAndNext(
505         long id, long groupId, java.lang.String urlTitle,
506         com.liferay.portal.kernel.util.OrderByComparator obc)
507         throws com.liferay.portal.SystemException,
508             com.liferay.portlet.journal.NoSuchArticleException {
509         return getPersistence()
510                    .findByG_UT_PrevAndNext(id, groupId, urlTitle, obc);
511     }
512 
513     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_V(
514         long groupId, java.lang.String articleId, double version)
515         throws com.liferay.portal.SystemException,
516             com.liferay.portlet.journal.NoSuchArticleException {
517         return getPersistence().findByG_A_V(groupId, articleId, version);
518     }
519 
520     public static com.liferay.portlet.journal.model.JournalArticle fetchByG_A_V(
521         long groupId, java.lang.String articleId, double version)
522         throws com.liferay.portal.SystemException {
523         return getPersistence().fetchByG_A_V(groupId, articleId, version);
524     }
525 
526     public static com.liferay.portlet.journal.model.JournalArticle fetchByG_A_V(
527         long groupId, java.lang.String articleId, double version,
528         boolean retrieveFromCache) throws com.liferay.portal.SystemException {
529         return getPersistence()
530                    .fetchByG_A_V(groupId, articleId, version, retrieveFromCache);
531     }
532 
533     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
534         long groupId, java.lang.String articleId, boolean approved)
535         throws com.liferay.portal.SystemException {
536         return getPersistence().findByG_A_A(groupId, articleId, approved);
537     }
538 
539     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
540         long groupId, java.lang.String articleId, boolean approved, int start,
541         int end) throws com.liferay.portal.SystemException {
542         return getPersistence()
543                    .findByG_A_A(groupId, articleId, approved, start, end);
544     }
545 
546     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
547         long groupId, java.lang.String articleId, boolean approved, int start,
548         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
549         throws com.liferay.portal.SystemException {
550         return getPersistence()
551                    .findByG_A_A(groupId, articleId, approved, start, end, obc);
552     }
553 
554     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_A_First(
555         long groupId, java.lang.String articleId, boolean approved,
556         com.liferay.portal.kernel.util.OrderByComparator obc)
557         throws com.liferay.portal.SystemException,
558             com.liferay.portlet.journal.NoSuchArticleException {
559         return getPersistence()
560                    .findByG_A_A_First(groupId, articleId, approved, obc);
561     }
562 
563     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_A_Last(
564         long groupId, java.lang.String articleId, boolean approved,
565         com.liferay.portal.kernel.util.OrderByComparator obc)
566         throws com.liferay.portal.SystemException,
567             com.liferay.portlet.journal.NoSuchArticleException {
568         return getPersistence()
569                    .findByG_A_A_Last(groupId, articleId, approved, obc);
570     }
571 
572     public static com.liferay.portlet.journal.model.JournalArticle[] findByG_A_A_PrevAndNext(
573         long id, long groupId, java.lang.String articleId, boolean approved,
574         com.liferay.portal.kernel.util.OrderByComparator obc)
575         throws com.liferay.portal.SystemException,
576             com.liferay.portlet.journal.NoSuchArticleException {
577         return getPersistence()
578                    .findByG_A_A_PrevAndNext(id, groupId, articleId, approved,
579             obc);
580     }
581 
582     public static java.util.List<Object> findWithDynamicQuery(
583         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
584         throws com.liferay.portal.SystemException {
585         return getPersistence().findWithDynamicQuery(dynamicQuery);
586     }
587 
588     public static java.util.List<Object> findWithDynamicQuery(
589         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
590         int end) throws com.liferay.portal.SystemException {
591         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
592     }
593 
594     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll()
595         throws com.liferay.portal.SystemException {
596         return getPersistence().findAll();
597     }
598 
599     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll(
600         int start, int end) throws com.liferay.portal.SystemException {
601         return getPersistence().findAll(start, end);
602     }
603 
604     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll(
605         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
606         throws com.liferay.portal.SystemException {
607         return getPersistence().findAll(start, end, obc);
608     }
609 
610     public static void removeByUuid(java.lang.String uuid)
611         throws com.liferay.portal.SystemException {
612         getPersistence().removeByUuid(uuid);
613     }
614 
615     public static void removeByUUID_G(java.lang.String uuid, long groupId)
616         throws com.liferay.portal.SystemException,
617             com.liferay.portlet.journal.NoSuchArticleException {
618         getPersistence().removeByUUID_G(uuid, groupId);
619     }
620 
621     public static void removeByGroupId(long groupId)
622         throws com.liferay.portal.SystemException {
623         getPersistence().removeByGroupId(groupId);
624     }
625 
626     public static void removeByCompanyId(long companyId)
627         throws com.liferay.portal.SystemException {
628         getPersistence().removeByCompanyId(companyId);
629     }
630 
631     public static void removeBySmallImageId(long smallImageId)
632         throws com.liferay.portal.SystemException {
633         getPersistence().removeBySmallImageId(smallImageId);
634     }
635 
636     public static void removeByR_A(long resourcePrimKey, boolean approved)
637         throws com.liferay.portal.SystemException {
638         getPersistence().removeByR_A(resourcePrimKey, approved);
639     }
640 
641     public static void removeByG_A(long groupId, java.lang.String articleId)
642         throws com.liferay.portal.SystemException {
643         getPersistence().removeByG_A(groupId, articleId);
644     }
645 
646     public static void removeByG_S(long groupId, java.lang.String structureId)
647         throws com.liferay.portal.SystemException {
648         getPersistence().removeByG_S(groupId, structureId);
649     }
650 
651     public static void removeByG_T(long groupId, java.lang.String templateId)
652         throws com.liferay.portal.SystemException {
653         getPersistence().removeByG_T(groupId, templateId);
654     }
655 
656     public static void removeByG_UT(long groupId, java.lang.String urlTitle)
657         throws com.liferay.portal.SystemException {
658         getPersistence().removeByG_UT(groupId, urlTitle);
659     }
660 
661     public static void removeByG_A_V(long groupId, java.lang.String articleId,
662         double version)
663         throws com.liferay.portal.SystemException,
664             com.liferay.portlet.journal.NoSuchArticleException {
665         getPersistence().removeByG_A_V(groupId, articleId, version);
666     }
667 
668     public static void removeByG_A_A(long groupId, java.lang.String articleId,
669         boolean approved) throws com.liferay.portal.SystemException {
670         getPersistence().removeByG_A_A(groupId, articleId, approved);
671     }
672 
673     public static void removeAll() throws com.liferay.portal.SystemException {
674         getPersistence().removeAll();
675     }
676 
677     public static int countByUuid(java.lang.String uuid)
678         throws com.liferay.portal.SystemException {
679         return getPersistence().countByUuid(uuid);
680     }
681 
682     public static int countByUUID_G(java.lang.String uuid, long groupId)
683         throws com.liferay.portal.SystemException {
684         return getPersistence().countByUUID_G(uuid, groupId);
685     }
686 
687     public static int countByGroupId(long groupId)
688         throws com.liferay.portal.SystemException {
689         return getPersistence().countByGroupId(groupId);
690     }
691 
692     public static int countByCompanyId(long companyId)
693         throws com.liferay.portal.SystemException {
694         return getPersistence().countByCompanyId(companyId);
695     }
696 
697     public static int countBySmallImageId(long smallImageId)
698         throws com.liferay.portal.SystemException {
699         return getPersistence().countBySmallImageId(smallImageId);
700     }
701 
702     public static int countByR_A(long resourcePrimKey, boolean approved)
703         throws com.liferay.portal.SystemException {
704         return getPersistence().countByR_A(resourcePrimKey, approved);
705     }
706 
707     public static int countByG_A(long groupId, java.lang.String articleId)
708         throws com.liferay.portal.SystemException {
709         return getPersistence().countByG_A(groupId, articleId);
710     }
711 
712     public static int countByG_S(long groupId, java.lang.String structureId)
713         throws com.liferay.portal.SystemException {
714         return getPersistence().countByG_S(groupId, structureId);
715     }
716 
717     public static int countByG_T(long groupId, java.lang.String templateId)
718         throws com.liferay.portal.SystemException {
719         return getPersistence().countByG_T(groupId, templateId);
720     }
721 
722     public static int countByG_UT(long groupId, java.lang.String urlTitle)
723         throws com.liferay.portal.SystemException {
724         return getPersistence().countByG_UT(groupId, urlTitle);
725     }
726 
727     public static int countByG_A_V(long groupId, java.lang.String articleId,
728         double version) throws com.liferay.portal.SystemException {
729         return getPersistence().countByG_A_V(groupId, articleId, version);
730     }
731 
732     public static int countByG_A_A(long groupId, java.lang.String articleId,
733         boolean approved) throws com.liferay.portal.SystemException {
734         return getPersistence().countByG_A_A(groupId, articleId, approved);
735     }
736 
737     public static int countAll() throws com.liferay.portal.SystemException {
738         return getPersistence().countAll();
739     }
740 
741     public static JournalArticlePersistence getPersistence() {
742         return _persistence;
743     }
744 
745     public void setPersistence(JournalArticlePersistence persistence) {
746         _persistence = persistence;
747     }
748 
749     private static JournalArticlePersistence _persistence;
750 }