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 com.liferay.portlet.journal.model.JournalArticle findByG_A_V(
470         long groupId, java.lang.String articleId, double version)
471         throws com.liferay.portal.SystemException,
472             com.liferay.portlet.journal.NoSuchArticleException {
473         return getPersistence().findByG_A_V(groupId, articleId, version);
474     }
475 
476     public static com.liferay.portlet.journal.model.JournalArticle fetchByG_A_V(
477         long groupId, java.lang.String articleId, double version)
478         throws com.liferay.portal.SystemException {
479         return getPersistence().fetchByG_A_V(groupId, articleId, version);
480     }
481 
482     public static com.liferay.portlet.journal.model.JournalArticle fetchByG_A_V(
483         long groupId, java.lang.String articleId, double version,
484         boolean retrieveFromCache) throws com.liferay.portal.SystemException {
485         return getPersistence()
486                    .fetchByG_A_V(groupId, articleId, version, retrieveFromCache);
487     }
488 
489     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
490         long groupId, java.lang.String articleId, boolean approved)
491         throws com.liferay.portal.SystemException {
492         return getPersistence().findByG_A_A(groupId, articleId, approved);
493     }
494 
495     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
496         long groupId, java.lang.String articleId, boolean approved, int start,
497         int end) throws com.liferay.portal.SystemException {
498         return getPersistence()
499                    .findByG_A_A(groupId, articleId, approved, start, end);
500     }
501 
502     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findByG_A_A(
503         long groupId, java.lang.String articleId, boolean approved, int start,
504         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
505         throws com.liferay.portal.SystemException {
506         return getPersistence()
507                    .findByG_A_A(groupId, articleId, approved, start, end, obc);
508     }
509 
510     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_A_First(
511         long groupId, java.lang.String articleId, boolean approved,
512         com.liferay.portal.kernel.util.OrderByComparator obc)
513         throws com.liferay.portal.SystemException,
514             com.liferay.portlet.journal.NoSuchArticleException {
515         return getPersistence()
516                    .findByG_A_A_First(groupId, articleId, approved, obc);
517     }
518 
519     public static com.liferay.portlet.journal.model.JournalArticle findByG_A_A_Last(
520         long groupId, java.lang.String articleId, boolean approved,
521         com.liferay.portal.kernel.util.OrderByComparator obc)
522         throws com.liferay.portal.SystemException,
523             com.liferay.portlet.journal.NoSuchArticleException {
524         return getPersistence()
525                    .findByG_A_A_Last(groupId, articleId, approved, obc);
526     }
527 
528     public static com.liferay.portlet.journal.model.JournalArticle[] findByG_A_A_PrevAndNext(
529         long id, long groupId, java.lang.String articleId, boolean approved,
530         com.liferay.portal.kernel.util.OrderByComparator obc)
531         throws com.liferay.portal.SystemException,
532             com.liferay.portlet.journal.NoSuchArticleException {
533         return getPersistence()
534                    .findByG_A_A_PrevAndNext(id, groupId, articleId, approved,
535             obc);
536     }
537 
538     public static java.util.List<Object> findWithDynamicQuery(
539         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
540         throws com.liferay.portal.SystemException {
541         return getPersistence().findWithDynamicQuery(dynamicQuery);
542     }
543 
544     public static java.util.List<Object> findWithDynamicQuery(
545         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
546         int end) throws com.liferay.portal.SystemException {
547         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
548     }
549 
550     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll()
551         throws com.liferay.portal.SystemException {
552         return getPersistence().findAll();
553     }
554 
555     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll(
556         int start, int end) throws com.liferay.portal.SystemException {
557         return getPersistence().findAll(start, end);
558     }
559 
560     public static java.util.List<com.liferay.portlet.journal.model.JournalArticle> findAll(
561         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
562         throws com.liferay.portal.SystemException {
563         return getPersistence().findAll(start, end, obc);
564     }
565 
566     public static void removeByUuid(java.lang.String uuid)
567         throws com.liferay.portal.SystemException {
568         getPersistence().removeByUuid(uuid);
569     }
570 
571     public static void removeByUUID_G(java.lang.String uuid, long groupId)
572         throws com.liferay.portal.SystemException,
573             com.liferay.portlet.journal.NoSuchArticleException {
574         getPersistence().removeByUUID_G(uuid, groupId);
575     }
576 
577     public static void removeByGroupId(long groupId)
578         throws com.liferay.portal.SystemException {
579         getPersistence().removeByGroupId(groupId);
580     }
581 
582     public static void removeByCompanyId(long companyId)
583         throws com.liferay.portal.SystemException {
584         getPersistence().removeByCompanyId(companyId);
585     }
586 
587     public static void removeBySmallImageId(long smallImageId)
588         throws com.liferay.portal.SystemException {
589         getPersistence().removeBySmallImageId(smallImageId);
590     }
591 
592     public static void removeByR_A(long resourcePrimKey, boolean approved)
593         throws com.liferay.portal.SystemException {
594         getPersistence().removeByR_A(resourcePrimKey, approved);
595     }
596 
597     public static void removeByG_A(long groupId, java.lang.String articleId)
598         throws com.liferay.portal.SystemException {
599         getPersistence().removeByG_A(groupId, articleId);
600     }
601 
602     public static void removeByG_S(long groupId, java.lang.String structureId)
603         throws com.liferay.portal.SystemException {
604         getPersistence().removeByG_S(groupId, structureId);
605     }
606 
607     public static void removeByG_T(long groupId, java.lang.String templateId)
608         throws com.liferay.portal.SystemException {
609         getPersistence().removeByG_T(groupId, templateId);
610     }
611 
612     public static void removeByG_A_V(long groupId, java.lang.String articleId,
613         double version)
614         throws com.liferay.portal.SystemException,
615             com.liferay.portlet.journal.NoSuchArticleException {
616         getPersistence().removeByG_A_V(groupId, articleId, version);
617     }
618 
619     public static void removeByG_A_A(long groupId, java.lang.String articleId,
620         boolean approved) throws com.liferay.portal.SystemException {
621         getPersistence().removeByG_A_A(groupId, articleId, approved);
622     }
623 
624     public static void removeAll() throws com.liferay.portal.SystemException {
625         getPersistence().removeAll();
626     }
627 
628     public static int countByUuid(java.lang.String uuid)
629         throws com.liferay.portal.SystemException {
630         return getPersistence().countByUuid(uuid);
631     }
632 
633     public static int countByUUID_G(java.lang.String uuid, long groupId)
634         throws com.liferay.portal.SystemException {
635         return getPersistence().countByUUID_G(uuid, groupId);
636     }
637 
638     public static int countByGroupId(long groupId)
639         throws com.liferay.portal.SystemException {
640         return getPersistence().countByGroupId(groupId);
641     }
642 
643     public static int countByCompanyId(long companyId)
644         throws com.liferay.portal.SystemException {
645         return getPersistence().countByCompanyId(companyId);
646     }
647 
648     public static int countBySmallImageId(long smallImageId)
649         throws com.liferay.portal.SystemException {
650         return getPersistence().countBySmallImageId(smallImageId);
651     }
652 
653     public static int countByR_A(long resourcePrimKey, boolean approved)
654         throws com.liferay.portal.SystemException {
655         return getPersistence().countByR_A(resourcePrimKey, approved);
656     }
657 
658     public static int countByG_A(long groupId, java.lang.String articleId)
659         throws com.liferay.portal.SystemException {
660         return getPersistence().countByG_A(groupId, articleId);
661     }
662 
663     public static int countByG_S(long groupId, java.lang.String structureId)
664         throws com.liferay.portal.SystemException {
665         return getPersistence().countByG_S(groupId, structureId);
666     }
667 
668     public static int countByG_T(long groupId, java.lang.String templateId)
669         throws com.liferay.portal.SystemException {
670         return getPersistence().countByG_T(groupId, templateId);
671     }
672 
673     public static int countByG_A_V(long groupId, java.lang.String articleId,
674         double version) throws com.liferay.portal.SystemException {
675         return getPersistence().countByG_A_V(groupId, articleId, version);
676     }
677 
678     public static int countByG_A_A(long groupId, java.lang.String articleId,
679         boolean approved) throws com.liferay.portal.SystemException {
680         return getPersistence().countByG_A_A(groupId, articleId, approved);
681     }
682 
683     public static int countAll() throws com.liferay.portal.SystemException {
684         return getPersistence().countAll();
685     }
686 
687     public static JournalArticlePersistence getPersistence() {
688         return _persistence;
689     }
690 
691     public void setPersistence(JournalArticlePersistence persistence) {
692         _persistence = persistence;
693     }
694 
695     private static JournalArticlePersistence _persistence;
696 }