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