1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.journal.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  
21  import com.liferay.portlet.journal.model.JournalContentSearch;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="JournalContentSearchUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       JournalContentSearchPersistence
35   * @see       JournalContentSearchPersistenceImpl
36   * @generated
37   */
38  public class JournalContentSearchUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
48       */
49      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50          throws SystemException {
51          return getPersistence().findWithDynamicQuery(dynamicQuery);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58          int start, int end) throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
64       */
65      public static JournalContentSearch remove(
66          JournalContentSearch journalContentSearch) throws SystemException {
67          return getPersistence().remove(journalContentSearch);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static JournalContentSearch update(
74          JournalContentSearch journalContentSearch, boolean merge)
75          throws SystemException {
76          return getPersistence().update(journalContentSearch, merge);
77      }
78  
79      public static void cacheResult(
80          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch) {
81          getPersistence().cacheResult(journalContentSearch);
82      }
83  
84      public static void cacheResult(
85          java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> journalContentSearchs) {
86          getPersistence().cacheResult(journalContentSearchs);
87      }
88  
89      public static com.liferay.portlet.journal.model.JournalContentSearch create(
90          long contentSearchId) {
91          return getPersistence().create(contentSearchId);
92      }
93  
94      public static com.liferay.portlet.journal.model.JournalContentSearch remove(
95          long contentSearchId)
96          throws com.liferay.portal.kernel.exception.SystemException,
97              com.liferay.portlet.journal.NoSuchContentSearchException {
98          return getPersistence().remove(contentSearchId);
99      }
100 
101     public static com.liferay.portlet.journal.model.JournalContentSearch updateImpl(
102         com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
103         boolean merge)
104         throws com.liferay.portal.kernel.exception.SystemException {
105         return getPersistence().updateImpl(journalContentSearch, merge);
106     }
107 
108     public static com.liferay.portlet.journal.model.JournalContentSearch findByPrimaryKey(
109         long contentSearchId)
110         throws com.liferay.portal.kernel.exception.SystemException,
111             com.liferay.portlet.journal.NoSuchContentSearchException {
112         return getPersistence().findByPrimaryKey(contentSearchId);
113     }
114 
115     public static com.liferay.portlet.journal.model.JournalContentSearch fetchByPrimaryKey(
116         long contentSearchId)
117         throws com.liferay.portal.kernel.exception.SystemException {
118         return getPersistence().fetchByPrimaryKey(contentSearchId);
119     }
120 
121     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(
122         java.lang.String articleId)
123         throws com.liferay.portal.kernel.exception.SystemException {
124         return getPersistence().findByArticleId(articleId);
125     }
126 
127     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(
128         java.lang.String articleId, int start, int end)
129         throws com.liferay.portal.kernel.exception.SystemException {
130         return getPersistence().findByArticleId(articleId, start, end);
131     }
132 
133     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(
134         java.lang.String articleId, int start, int end,
135         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136         throws com.liferay.portal.kernel.exception.SystemException {
137         return getPersistence()
138                    .findByArticleId(articleId, start, end, orderByComparator);
139     }
140 
141     public static com.liferay.portlet.journal.model.JournalContentSearch findByArticleId_First(
142         java.lang.String articleId,
143         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144         throws com.liferay.portal.kernel.exception.SystemException,
145             com.liferay.portlet.journal.NoSuchContentSearchException {
146         return getPersistence()
147                    .findByArticleId_First(articleId, orderByComparator);
148     }
149 
150     public static com.liferay.portlet.journal.model.JournalContentSearch findByArticleId_Last(
151         java.lang.String articleId,
152         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153         throws com.liferay.portal.kernel.exception.SystemException,
154             com.liferay.portlet.journal.NoSuchContentSearchException {
155         return getPersistence()
156                    .findByArticleId_Last(articleId, orderByComparator);
157     }
158 
159     public static com.liferay.portlet.journal.model.JournalContentSearch[] findByArticleId_PrevAndNext(
160         long contentSearchId, java.lang.String articleId,
161         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162         throws com.liferay.portal.kernel.exception.SystemException,
163             com.liferay.portlet.journal.NoSuchContentSearchException {
164         return getPersistence()
165                    .findByArticleId_PrevAndNext(contentSearchId, articleId,
166             orderByComparator);
167     }
168 
169     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
170         long groupId, boolean privateLayout)
171         throws com.liferay.portal.kernel.exception.SystemException {
172         return getPersistence().findByG_P(groupId, privateLayout);
173     }
174 
175     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
176         long groupId, boolean privateLayout, int start, int end)
177         throws com.liferay.portal.kernel.exception.SystemException {
178         return getPersistence().findByG_P(groupId, privateLayout, start, end);
179     }
180 
181     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
182         long groupId, boolean privateLayout, int start, int end,
183         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
184         throws com.liferay.portal.kernel.exception.SystemException {
185         return getPersistence()
186                    .findByG_P(groupId, privateLayout, start, end,
187             orderByComparator);
188     }
189 
190     public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_First(
191         long groupId, boolean privateLayout,
192         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
193         throws com.liferay.portal.kernel.exception.SystemException,
194             com.liferay.portlet.journal.NoSuchContentSearchException {
195         return getPersistence()
196                    .findByG_P_First(groupId, privateLayout, orderByComparator);
197     }
198 
199     public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_Last(
200         long groupId, boolean privateLayout,
201         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202         throws com.liferay.portal.kernel.exception.SystemException,
203             com.liferay.portlet.journal.NoSuchContentSearchException {
204         return getPersistence()
205                    .findByG_P_Last(groupId, privateLayout, orderByComparator);
206     }
207 
208     public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_PrevAndNext(
209         long contentSearchId, long groupId, boolean privateLayout,
210         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211         throws com.liferay.portal.kernel.exception.SystemException,
212             com.liferay.portlet.journal.NoSuchContentSearchException {
213         return getPersistence()
214                    .findByG_P_PrevAndNext(contentSearchId, groupId,
215             privateLayout, orderByComparator);
216     }
217 
218     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
219         long groupId, java.lang.String articleId)
220         throws com.liferay.portal.kernel.exception.SystemException {
221         return getPersistence().findByG_A(groupId, articleId);
222     }
223 
224     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
225         long groupId, java.lang.String articleId, int start, int end)
226         throws com.liferay.portal.kernel.exception.SystemException {
227         return getPersistence().findByG_A(groupId, articleId, start, end);
228     }
229 
230     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
231         long groupId, java.lang.String articleId, int start, int end,
232         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
233         throws com.liferay.portal.kernel.exception.SystemException {
234         return getPersistence()
235                    .findByG_A(groupId, articleId, start, end, orderByComparator);
236     }
237 
238     public static com.liferay.portlet.journal.model.JournalContentSearch findByG_A_First(
239         long groupId, java.lang.String articleId,
240         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
241         throws com.liferay.portal.kernel.exception.SystemException,
242             com.liferay.portlet.journal.NoSuchContentSearchException {
243         return getPersistence()
244                    .findByG_A_First(groupId, articleId, orderByComparator);
245     }
246 
247     public static com.liferay.portlet.journal.model.JournalContentSearch findByG_A_Last(
248         long groupId, java.lang.String articleId,
249         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
250         throws com.liferay.portal.kernel.exception.SystemException,
251             com.liferay.portlet.journal.NoSuchContentSearchException {
252         return getPersistence()
253                    .findByG_A_Last(groupId, articleId, orderByComparator);
254     }
255 
256     public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_A_PrevAndNext(
257         long contentSearchId, long groupId, java.lang.String articleId,
258         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259         throws com.liferay.portal.kernel.exception.SystemException,
260             com.liferay.portlet.journal.NoSuchContentSearchException {
261         return getPersistence()
262                    .findByG_A_PrevAndNext(contentSearchId, groupId, articleId,
263             orderByComparator);
264     }
265 
266     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
267         long groupId, boolean privateLayout, long layoutId)
268         throws com.liferay.portal.kernel.exception.SystemException {
269         return getPersistence().findByG_P_L(groupId, privateLayout, layoutId);
270     }
271 
272     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
273         long groupId, boolean privateLayout, long layoutId, int start, int end)
274         throws com.liferay.portal.kernel.exception.SystemException {
275         return getPersistence()
276                    .findByG_P_L(groupId, privateLayout, layoutId, start, end);
277     }
278 
279     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
280         long groupId, boolean privateLayout, long layoutId, int start, int end,
281         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
282         throws com.liferay.portal.kernel.exception.SystemException {
283         return getPersistence()
284                    .findByG_P_L(groupId, privateLayout, layoutId, start, end,
285             orderByComparator);
286     }
287 
288     public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_First(
289         long groupId, boolean privateLayout, long layoutId,
290         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291         throws com.liferay.portal.kernel.exception.SystemException,
292             com.liferay.portlet.journal.NoSuchContentSearchException {
293         return getPersistence()
294                    .findByG_P_L_First(groupId, privateLayout, layoutId,
295             orderByComparator);
296     }
297 
298     public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_Last(
299         long groupId, boolean privateLayout, long layoutId,
300         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
301         throws com.liferay.portal.kernel.exception.SystemException,
302             com.liferay.portlet.journal.NoSuchContentSearchException {
303         return getPersistence()
304                    .findByG_P_L_Last(groupId, privateLayout, layoutId,
305             orderByComparator);
306     }
307 
308     public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_PrevAndNext(
309         long contentSearchId, long groupId, boolean privateLayout,
310         long layoutId,
311         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
312         throws com.liferay.portal.kernel.exception.SystemException,
313             com.liferay.portlet.journal.NoSuchContentSearchException {
314         return getPersistence()
315                    .findByG_P_L_PrevAndNext(contentSearchId, groupId,
316             privateLayout, layoutId, orderByComparator);
317     }
318 
319     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
320         long groupId, boolean privateLayout, java.lang.String articleId)
321         throws com.liferay.portal.kernel.exception.SystemException {
322         return getPersistence().findByG_P_A(groupId, privateLayout, articleId);
323     }
324 
325     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
326         long groupId, boolean privateLayout, java.lang.String articleId,
327         int start, int end)
328         throws com.liferay.portal.kernel.exception.SystemException {
329         return getPersistence()
330                    .findByG_P_A(groupId, privateLayout, articleId, start, end);
331     }
332 
333     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
334         long groupId, boolean privateLayout, java.lang.String articleId,
335         int start, int end,
336         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
337         throws com.liferay.portal.kernel.exception.SystemException {
338         return getPersistence()
339                    .findByG_P_A(groupId, privateLayout, articleId, start, end,
340             orderByComparator);
341     }
342 
343     public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_First(
344         long groupId, boolean privateLayout, java.lang.String articleId,
345         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
346         throws com.liferay.portal.kernel.exception.SystemException,
347             com.liferay.portlet.journal.NoSuchContentSearchException {
348         return getPersistence()
349                    .findByG_P_A_First(groupId, privateLayout, articleId,
350             orderByComparator);
351     }
352 
353     public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_Last(
354         long groupId, boolean privateLayout, java.lang.String articleId,
355         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
356         throws com.liferay.portal.kernel.exception.SystemException,
357             com.liferay.portlet.journal.NoSuchContentSearchException {
358         return getPersistence()
359                    .findByG_P_A_Last(groupId, privateLayout, articleId,
360             orderByComparator);
361     }
362 
363     public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_A_PrevAndNext(
364         long contentSearchId, long groupId, boolean privateLayout,
365         java.lang.String articleId,
366         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
367         throws com.liferay.portal.kernel.exception.SystemException,
368             com.liferay.portlet.journal.NoSuchContentSearchException {
369         return getPersistence()
370                    .findByG_P_A_PrevAndNext(contentSearchId, groupId,
371             privateLayout, articleId, orderByComparator);
372     }
373 
374     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
375         long groupId, boolean privateLayout, long layoutId,
376         java.lang.String portletId)
377         throws com.liferay.portal.kernel.exception.SystemException {
378         return getPersistence()
379                    .findByG_P_L_P(groupId, privateLayout, layoutId, portletId);
380     }
381 
382     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
383         long groupId, boolean privateLayout, long layoutId,
384         java.lang.String portletId, int start, int end)
385         throws com.liferay.portal.kernel.exception.SystemException {
386         return getPersistence()
387                    .findByG_P_L_P(groupId, privateLayout, layoutId, portletId,
388             start, end);
389     }
390 
391     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
392         long groupId, boolean privateLayout, long layoutId,
393         java.lang.String portletId, int start, int end,
394         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
395         throws com.liferay.portal.kernel.exception.SystemException {
396         return getPersistence()
397                    .findByG_P_L_P(groupId, privateLayout, layoutId, portletId,
398             start, end, orderByComparator);
399     }
400 
401     public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_First(
402         long groupId, boolean privateLayout, long layoutId,
403         java.lang.String portletId,
404         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
405         throws com.liferay.portal.kernel.exception.SystemException,
406             com.liferay.portlet.journal.NoSuchContentSearchException {
407         return getPersistence()
408                    .findByG_P_L_P_First(groupId, privateLayout, layoutId,
409             portletId, orderByComparator);
410     }
411 
412     public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_Last(
413         long groupId, boolean privateLayout, long layoutId,
414         java.lang.String portletId,
415         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
416         throws com.liferay.portal.kernel.exception.SystemException,
417             com.liferay.portlet.journal.NoSuchContentSearchException {
418         return getPersistence()
419                    .findByG_P_L_P_Last(groupId, privateLayout, layoutId,
420             portletId, orderByComparator);
421     }
422 
423     public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_P_PrevAndNext(
424         long contentSearchId, long groupId, boolean privateLayout,
425         long layoutId, java.lang.String portletId,
426         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
427         throws com.liferay.portal.kernel.exception.SystemException,
428             com.liferay.portlet.journal.NoSuchContentSearchException {
429         return getPersistence()
430                    .findByG_P_L_P_PrevAndNext(contentSearchId, groupId,
431             privateLayout, layoutId, portletId, orderByComparator);
432     }
433 
434     public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_A(
435         long groupId, boolean privateLayout, long layoutId,
436         java.lang.String portletId, java.lang.String articleId)
437         throws com.liferay.portal.kernel.exception.SystemException,
438             com.liferay.portlet.journal.NoSuchContentSearchException {
439         return getPersistence()
440                    .findByG_P_L_P_A(groupId, privateLayout, layoutId,
441             portletId, articleId);
442     }
443 
444     public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
445         long groupId, boolean privateLayout, long layoutId,
446         java.lang.String portletId, java.lang.String articleId)
447         throws com.liferay.portal.kernel.exception.SystemException {
448         return getPersistence()
449                    .fetchByG_P_L_P_A(groupId, privateLayout, layoutId,
450             portletId, articleId);
451     }
452 
453     public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
454         long groupId, boolean privateLayout, long layoutId,
455         java.lang.String portletId, java.lang.String articleId,
456         boolean retrieveFromCache)
457         throws com.liferay.portal.kernel.exception.SystemException {
458         return getPersistence()
459                    .fetchByG_P_L_P_A(groupId, privateLayout, layoutId,
460             portletId, articleId, retrieveFromCache);
461     }
462 
463     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll()
464         throws com.liferay.portal.kernel.exception.SystemException {
465         return getPersistence().findAll();
466     }
467 
468     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
469         int start, int end)
470         throws com.liferay.portal.kernel.exception.SystemException {
471         return getPersistence().findAll(start, end);
472     }
473 
474     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
475         int start, int end,
476         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
477         throws com.liferay.portal.kernel.exception.SystemException {
478         return getPersistence().findAll(start, end, orderByComparator);
479     }
480 
481     public static void removeByArticleId(java.lang.String articleId)
482         throws com.liferay.portal.kernel.exception.SystemException {
483         getPersistence().removeByArticleId(articleId);
484     }
485 
486     public static void removeByG_P(long groupId, boolean privateLayout)
487         throws com.liferay.portal.kernel.exception.SystemException {
488         getPersistence().removeByG_P(groupId, privateLayout);
489     }
490 
491     public static void removeByG_A(long groupId, java.lang.String articleId)
492         throws com.liferay.portal.kernel.exception.SystemException {
493         getPersistence().removeByG_A(groupId, articleId);
494     }
495 
496     public static void removeByG_P_L(long groupId, boolean privateLayout,
497         long layoutId)
498         throws com.liferay.portal.kernel.exception.SystemException {
499         getPersistence().removeByG_P_L(groupId, privateLayout, layoutId);
500     }
501 
502     public static void removeByG_P_A(long groupId, boolean privateLayout,
503         java.lang.String articleId)
504         throws com.liferay.portal.kernel.exception.SystemException {
505         getPersistence().removeByG_P_A(groupId, privateLayout, articleId);
506     }
507 
508     public static void removeByG_P_L_P(long groupId, boolean privateLayout,
509         long layoutId, java.lang.String portletId)
510         throws com.liferay.portal.kernel.exception.SystemException {
511         getPersistence()
512             .removeByG_P_L_P(groupId, privateLayout, layoutId, portletId);
513     }
514 
515     public static void removeByG_P_L_P_A(long groupId, boolean privateLayout,
516         long layoutId, java.lang.String portletId, java.lang.String articleId)
517         throws com.liferay.portal.kernel.exception.SystemException,
518             com.liferay.portlet.journal.NoSuchContentSearchException {
519         getPersistence()
520             .removeByG_P_L_P_A(groupId, privateLayout, layoutId, portletId,
521             articleId);
522     }
523 
524     public static void removeAll()
525         throws com.liferay.portal.kernel.exception.SystemException {
526         getPersistence().removeAll();
527     }
528 
529     public static int countByArticleId(java.lang.String articleId)
530         throws com.liferay.portal.kernel.exception.SystemException {
531         return getPersistence().countByArticleId(articleId);
532     }
533 
534     public static int countByG_P(long groupId, boolean privateLayout)
535         throws com.liferay.portal.kernel.exception.SystemException {
536         return getPersistence().countByG_P(groupId, privateLayout);
537     }
538 
539     public static int countByG_A(long groupId, java.lang.String articleId)
540         throws com.liferay.portal.kernel.exception.SystemException {
541         return getPersistence().countByG_A(groupId, articleId);
542     }
543 
544     public static int countByG_P_L(long groupId, boolean privateLayout,
545         long layoutId)
546         throws com.liferay.portal.kernel.exception.SystemException {
547         return getPersistence().countByG_P_L(groupId, privateLayout, layoutId);
548     }
549 
550     public static int countByG_P_A(long groupId, boolean privateLayout,
551         java.lang.String articleId)
552         throws com.liferay.portal.kernel.exception.SystemException {
553         return getPersistence().countByG_P_A(groupId, privateLayout, articleId);
554     }
555 
556     public static int countByG_P_L_P(long groupId, boolean privateLayout,
557         long layoutId, java.lang.String portletId)
558         throws com.liferay.portal.kernel.exception.SystemException {
559         return getPersistence()
560                    .countByG_P_L_P(groupId, privateLayout, layoutId, portletId);
561     }
562 
563     public static int countByG_P_L_P_A(long groupId, boolean privateLayout,
564         long layoutId, java.lang.String portletId, java.lang.String articleId)
565         throws com.liferay.portal.kernel.exception.SystemException {
566         return getPersistence()
567                    .countByG_P_L_P_A(groupId, privateLayout, layoutId,
568             portletId, articleId);
569     }
570 
571     public static int countAll()
572         throws com.liferay.portal.kernel.exception.SystemException {
573         return getPersistence().countAll();
574     }
575 
576     public static JournalContentSearchPersistence getPersistence() {
577         if (_persistence == null) {
578             _persistence = (JournalContentSearchPersistence)PortalBeanLocatorUtil.locate(JournalContentSearchPersistence.class.getName());
579         }
580 
581         return _persistence;
582     }
583 
584     public void setPersistence(JournalContentSearchPersistence persistence) {
585         _persistence = persistence;
586     }
587 
588     private static JournalContentSearchPersistence _persistence;
589 }