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