1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.journal.service.persistence;
16  
17  import com.liferay.portal.SystemException;
18  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
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.SystemException,
97              com.liferay.portlet.journal.NoSuchContentSearchException {
98          return getPersistence().remove(contentSearchId);
99      }
100 
101     /**
102      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
103      */
104     public static com.liferay.portlet.journal.model.JournalContentSearch update(
105         com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
106         throws com.liferay.portal.SystemException {
107         return getPersistence().update(journalContentSearch);
108     }
109 
110     public static com.liferay.portlet.journal.model.JournalContentSearch updateImpl(
111         com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
112         boolean merge) throws com.liferay.portal.SystemException {
113         return getPersistence().updateImpl(journalContentSearch, merge);
114     }
115 
116     public static com.liferay.portlet.journal.model.JournalContentSearch findByPrimaryKey(
117         long contentSearchId)
118         throws com.liferay.portal.SystemException,
119             com.liferay.portlet.journal.NoSuchContentSearchException {
120         return getPersistence().findByPrimaryKey(contentSearchId);
121     }
122 
123     public static com.liferay.portlet.journal.model.JournalContentSearch fetchByPrimaryKey(
124         long contentSearchId) throws com.liferay.portal.SystemException {
125         return getPersistence().fetchByPrimaryKey(contentSearchId);
126     }
127 
128     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(
129         java.lang.String articleId) throws com.liferay.portal.SystemException {
130         return getPersistence().findByArticleId(articleId);
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         throws com.liferay.portal.SystemException {
136         return getPersistence().findByArticleId(articleId, start, end);
137     }
138 
139     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(
140         java.lang.String articleId, int start, int end,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.SystemException {
143         return getPersistence().findByArticleId(articleId, start, end, obc);
144     }
145 
146     public static com.liferay.portlet.journal.model.JournalContentSearch findByArticleId_First(
147         java.lang.String articleId,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portlet.journal.NoSuchContentSearchException {
151         return getPersistence().findByArticleId_First(articleId, obc);
152     }
153 
154     public static com.liferay.portlet.journal.model.JournalContentSearch findByArticleId_Last(
155         java.lang.String articleId,
156         com.liferay.portal.kernel.util.OrderByComparator obc)
157         throws com.liferay.portal.SystemException,
158             com.liferay.portlet.journal.NoSuchContentSearchException {
159         return getPersistence().findByArticleId_Last(articleId, obc);
160     }
161 
162     public static com.liferay.portlet.journal.model.JournalContentSearch[] findByArticleId_PrevAndNext(
163         long contentSearchId, java.lang.String articleId,
164         com.liferay.portal.kernel.util.OrderByComparator obc)
165         throws com.liferay.portal.SystemException,
166             com.liferay.portlet.journal.NoSuchContentSearchException {
167         return getPersistence()
168                    .findByArticleId_PrevAndNext(contentSearchId, articleId, obc);
169     }
170 
171     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
172         long groupId, boolean privateLayout)
173         throws com.liferay.portal.SystemException {
174         return getPersistence().findByG_P(groupId, privateLayout);
175     }
176 
177     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
178         long groupId, boolean privateLayout, int start, int end)
179         throws com.liferay.portal.SystemException {
180         return getPersistence().findByG_P(groupId, privateLayout, start, end);
181     }
182 
183     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
184         long groupId, boolean privateLayout, int start, int end,
185         com.liferay.portal.kernel.util.OrderByComparator obc)
186         throws com.liferay.portal.SystemException {
187         return getPersistence()
188                    .findByG_P(groupId, privateLayout, start, end, obc);
189     }
190 
191     public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_First(
192         long groupId, boolean privateLayout,
193         com.liferay.portal.kernel.util.OrderByComparator obc)
194         throws com.liferay.portal.SystemException,
195             com.liferay.portlet.journal.NoSuchContentSearchException {
196         return getPersistence().findByG_P_First(groupId, privateLayout, obc);
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 obc)
202         throws com.liferay.portal.SystemException,
203             com.liferay.portlet.journal.NoSuchContentSearchException {
204         return getPersistence().findByG_P_Last(groupId, privateLayout, obc);
205     }
206 
207     public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_PrevAndNext(
208         long contentSearchId, long groupId, boolean privateLayout,
209         com.liferay.portal.kernel.util.OrderByComparator obc)
210         throws com.liferay.portal.SystemException,
211             com.liferay.portlet.journal.NoSuchContentSearchException {
212         return getPersistence()
213                    .findByG_P_PrevAndNext(contentSearchId, groupId,
214             privateLayout, obc);
215     }
216 
217     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
218         long groupId, java.lang.String articleId)
219         throws com.liferay.portal.SystemException {
220         return getPersistence().findByG_A(groupId, articleId);
221     }
222 
223     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
224         long groupId, java.lang.String articleId, int start, int end)
225         throws com.liferay.portal.SystemException {
226         return getPersistence().findByG_A(groupId, articleId, start, end);
227     }
228 
229     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
230         long groupId, java.lang.String articleId, int start, int end,
231         com.liferay.portal.kernel.util.OrderByComparator obc)
232         throws com.liferay.portal.SystemException {
233         return getPersistence().findByG_A(groupId, articleId, start, end, obc);
234     }
235 
236     public static com.liferay.portlet.journal.model.JournalContentSearch findByG_A_First(
237         long groupId, java.lang.String articleId,
238         com.liferay.portal.kernel.util.OrderByComparator obc)
239         throws com.liferay.portal.SystemException,
240             com.liferay.portlet.journal.NoSuchContentSearchException {
241         return getPersistence().findByG_A_First(groupId, articleId, obc);
242     }
243 
244     public static com.liferay.portlet.journal.model.JournalContentSearch findByG_A_Last(
245         long groupId, java.lang.String articleId,
246         com.liferay.portal.kernel.util.OrderByComparator obc)
247         throws com.liferay.portal.SystemException,
248             com.liferay.portlet.journal.NoSuchContentSearchException {
249         return getPersistence().findByG_A_Last(groupId, articleId, obc);
250     }
251 
252     public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_A_PrevAndNext(
253         long contentSearchId, long groupId, java.lang.String articleId,
254         com.liferay.portal.kernel.util.OrderByComparator obc)
255         throws com.liferay.portal.SystemException,
256             com.liferay.portlet.journal.NoSuchContentSearchException {
257         return getPersistence()
258                    .findByG_A_PrevAndNext(contentSearchId, groupId, articleId,
259             obc);
260     }
261 
262     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
263         long groupId, boolean privateLayout, long layoutId)
264         throws com.liferay.portal.SystemException {
265         return getPersistence().findByG_P_L(groupId, privateLayout, layoutId);
266     }
267 
268     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
269         long groupId, boolean privateLayout, long layoutId, int start, int end)
270         throws com.liferay.portal.SystemException {
271         return getPersistence()
272                    .findByG_P_L(groupId, privateLayout, layoutId, start, end);
273     }
274 
275     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
276         long groupId, boolean privateLayout, long layoutId, int start, int end,
277         com.liferay.portal.kernel.util.OrderByComparator obc)
278         throws com.liferay.portal.SystemException {
279         return getPersistence()
280                    .findByG_P_L(groupId, privateLayout, layoutId, start, end,
281             obc);
282     }
283 
284     public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_First(
285         long groupId, boolean privateLayout, long layoutId,
286         com.liferay.portal.kernel.util.OrderByComparator obc)
287         throws com.liferay.portal.SystemException,
288             com.liferay.portlet.journal.NoSuchContentSearchException {
289         return getPersistence()
290                    .findByG_P_L_First(groupId, privateLayout, layoutId, obc);
291     }
292 
293     public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_Last(
294         long groupId, boolean privateLayout, long layoutId,
295         com.liferay.portal.kernel.util.OrderByComparator obc)
296         throws com.liferay.portal.SystemException,
297             com.liferay.portlet.journal.NoSuchContentSearchException {
298         return getPersistence()
299                    .findByG_P_L_Last(groupId, privateLayout, layoutId, obc);
300     }
301 
302     public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_PrevAndNext(
303         long contentSearchId, long groupId, boolean privateLayout,
304         long layoutId, com.liferay.portal.kernel.util.OrderByComparator obc)
305         throws com.liferay.portal.SystemException,
306             com.liferay.portlet.journal.NoSuchContentSearchException {
307         return getPersistence()
308                    .findByG_P_L_PrevAndNext(contentSearchId, groupId,
309             privateLayout, layoutId, obc);
310     }
311 
312     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
313         long groupId, boolean privateLayout, java.lang.String articleId)
314         throws com.liferay.portal.SystemException {
315         return getPersistence().findByG_P_A(groupId, privateLayout, articleId);
316     }
317 
318     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
319         long groupId, boolean privateLayout, java.lang.String articleId,
320         int start, int end) throws com.liferay.portal.SystemException {
321         return getPersistence()
322                    .findByG_P_A(groupId, privateLayout, articleId, start, end);
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, com.liferay.portal.kernel.util.OrderByComparator obc)
328         throws com.liferay.portal.SystemException {
329         return getPersistence()
330                    .findByG_P_A(groupId, privateLayout, articleId, start, end,
331             obc);
332     }
333 
334     public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_First(
335         long groupId, boolean privateLayout, java.lang.String articleId,
336         com.liferay.portal.kernel.util.OrderByComparator obc)
337         throws com.liferay.portal.SystemException,
338             com.liferay.portlet.journal.NoSuchContentSearchException {
339         return getPersistence()
340                    .findByG_P_A_First(groupId, privateLayout, articleId, obc);
341     }
342 
343     public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_Last(
344         long groupId, boolean privateLayout, java.lang.String articleId,
345         com.liferay.portal.kernel.util.OrderByComparator obc)
346         throws com.liferay.portal.SystemException,
347             com.liferay.portlet.journal.NoSuchContentSearchException {
348         return getPersistence()
349                    .findByG_P_A_Last(groupId, privateLayout, articleId, obc);
350     }
351 
352     public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_A_PrevAndNext(
353         long contentSearchId, long groupId, boolean privateLayout,
354         java.lang.String articleId,
355         com.liferay.portal.kernel.util.OrderByComparator obc)
356         throws com.liferay.portal.SystemException,
357             com.liferay.portlet.journal.NoSuchContentSearchException {
358         return getPersistence()
359                    .findByG_P_A_PrevAndNext(contentSearchId, groupId,
360             privateLayout, articleId, obc);
361     }
362 
363     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
364         long groupId, boolean privateLayout, long layoutId,
365         java.lang.String portletId) throws com.liferay.portal.SystemException {
366         return getPersistence()
367                    .findByG_P_L_P(groupId, privateLayout, layoutId, portletId);
368     }
369 
370     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
371         long groupId, boolean privateLayout, long layoutId,
372         java.lang.String portletId, int start, int end)
373         throws com.liferay.portal.SystemException {
374         return getPersistence()
375                    .findByG_P_L_P(groupId, privateLayout, layoutId, portletId,
376             start, end);
377     }
378 
379     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
380         long groupId, boolean privateLayout, long layoutId,
381         java.lang.String portletId, int start, int end,
382         com.liferay.portal.kernel.util.OrderByComparator obc)
383         throws com.liferay.portal.SystemException {
384         return getPersistence()
385                    .findByG_P_L_P(groupId, privateLayout, layoutId, portletId,
386             start, end, obc);
387     }
388 
389     public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_First(
390         long groupId, boolean privateLayout, long layoutId,
391         java.lang.String portletId,
392         com.liferay.portal.kernel.util.OrderByComparator obc)
393         throws com.liferay.portal.SystemException,
394             com.liferay.portlet.journal.NoSuchContentSearchException {
395         return getPersistence()
396                    .findByG_P_L_P_First(groupId, privateLayout, layoutId,
397             portletId, obc);
398     }
399 
400     public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_Last(
401         long groupId, boolean privateLayout, long layoutId,
402         java.lang.String portletId,
403         com.liferay.portal.kernel.util.OrderByComparator obc)
404         throws com.liferay.portal.SystemException,
405             com.liferay.portlet.journal.NoSuchContentSearchException {
406         return getPersistence()
407                    .findByG_P_L_P_Last(groupId, privateLayout, layoutId,
408             portletId, obc);
409     }
410 
411     public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_P_PrevAndNext(
412         long contentSearchId, long groupId, boolean privateLayout,
413         long layoutId, java.lang.String portletId,
414         com.liferay.portal.kernel.util.OrderByComparator obc)
415         throws com.liferay.portal.SystemException,
416             com.liferay.portlet.journal.NoSuchContentSearchException {
417         return getPersistence()
418                    .findByG_P_L_P_PrevAndNext(contentSearchId, groupId,
419             privateLayout, layoutId, portletId, obc);
420     }
421 
422     public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_A(
423         long groupId, boolean privateLayout, long layoutId,
424         java.lang.String portletId, java.lang.String articleId)
425         throws com.liferay.portal.SystemException,
426             com.liferay.portlet.journal.NoSuchContentSearchException {
427         return getPersistence()
428                    .findByG_P_L_P_A(groupId, privateLayout, layoutId,
429             portletId, articleId);
430     }
431 
432     public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
433         long groupId, boolean privateLayout, long layoutId,
434         java.lang.String portletId, java.lang.String articleId)
435         throws com.liferay.portal.SystemException {
436         return getPersistence()
437                    .fetchByG_P_L_P_A(groupId, privateLayout, layoutId,
438             portletId, articleId);
439     }
440 
441     public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
442         long groupId, boolean privateLayout, long layoutId,
443         java.lang.String portletId, java.lang.String articleId,
444         boolean retrieveFromCache) throws com.liferay.portal.SystemException {
445         return getPersistence()
446                    .fetchByG_P_L_P_A(groupId, privateLayout, layoutId,
447             portletId, articleId, retrieveFromCache);
448     }
449 
450     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll()
451         throws com.liferay.portal.SystemException {
452         return getPersistence().findAll();
453     }
454 
455     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
456         int start, int end) throws com.liferay.portal.SystemException {
457         return getPersistence().findAll(start, end);
458     }
459 
460     public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
461         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
462         throws com.liferay.portal.SystemException {
463         return getPersistence().findAll(start, end, obc);
464     }
465 
466     public static void removeByArticleId(java.lang.String articleId)
467         throws com.liferay.portal.SystemException {
468         getPersistence().removeByArticleId(articleId);
469     }
470 
471     public static void removeByG_P(long groupId, boolean privateLayout)
472         throws com.liferay.portal.SystemException {
473         getPersistence().removeByG_P(groupId, privateLayout);
474     }
475 
476     public static void removeByG_A(long groupId, java.lang.String articleId)
477         throws com.liferay.portal.SystemException {
478         getPersistence().removeByG_A(groupId, articleId);
479     }
480 
481     public static void removeByG_P_L(long groupId, boolean privateLayout,
482         long layoutId) throws com.liferay.portal.SystemException {
483         getPersistence().removeByG_P_L(groupId, privateLayout, layoutId);
484     }
485 
486     public static void removeByG_P_A(long groupId, boolean privateLayout,
487         java.lang.String articleId) throws com.liferay.portal.SystemException {
488         getPersistence().removeByG_P_A(groupId, privateLayout, articleId);
489     }
490 
491     public static void removeByG_P_L_P(long groupId, boolean privateLayout,
492         long layoutId, java.lang.String portletId)
493         throws com.liferay.portal.SystemException {
494         getPersistence()
495             .removeByG_P_L_P(groupId, privateLayout, layoutId, portletId);
496     }
497 
498     public static void removeByG_P_L_P_A(long groupId, boolean privateLayout,
499         long layoutId, java.lang.String portletId, java.lang.String articleId)
500         throws com.liferay.portal.SystemException,
501             com.liferay.portlet.journal.NoSuchContentSearchException {
502         getPersistence()
503             .removeByG_P_L_P_A(groupId, privateLayout, layoutId, portletId,
504             articleId);
505     }
506 
507     public static void removeAll() throws com.liferay.portal.SystemException {
508         getPersistence().removeAll();
509     }
510 
511     public static int countByArticleId(java.lang.String articleId)
512         throws com.liferay.portal.SystemException {
513         return getPersistence().countByArticleId(articleId);
514     }
515 
516     public static int countByG_P(long groupId, boolean privateLayout)
517         throws com.liferay.portal.SystemException {
518         return getPersistence().countByG_P(groupId, privateLayout);
519     }
520 
521     public static int countByG_A(long groupId, java.lang.String articleId)
522         throws com.liferay.portal.SystemException {
523         return getPersistence().countByG_A(groupId, articleId);
524     }
525 
526     public static int countByG_P_L(long groupId, boolean privateLayout,
527         long layoutId) throws com.liferay.portal.SystemException {
528         return getPersistence().countByG_P_L(groupId, privateLayout, layoutId);
529     }
530 
531     public static int countByG_P_A(long groupId, boolean privateLayout,
532         java.lang.String articleId) throws com.liferay.portal.SystemException {
533         return getPersistence().countByG_P_A(groupId, privateLayout, articleId);
534     }
535 
536     public static int countByG_P_L_P(long groupId, boolean privateLayout,
537         long layoutId, java.lang.String portletId)
538         throws com.liferay.portal.SystemException {
539         return getPersistence()
540                    .countByG_P_L_P(groupId, privateLayout, layoutId, portletId);
541     }
542 
543     public static int countByG_P_L_P_A(long groupId, boolean privateLayout,
544         long layoutId, java.lang.String portletId, java.lang.String articleId)
545         throws com.liferay.portal.SystemException {
546         return getPersistence()
547                    .countByG_P_L_P_A(groupId, privateLayout, layoutId,
548             portletId, articleId);
549     }
550 
551     public static int countAll() throws com.liferay.portal.SystemException {
552         return getPersistence().countAll();
553     }
554 
555     public static JournalContentSearchPersistence getPersistence() {
556         if (_persistence == null) {
557             _persistence = (JournalContentSearchPersistence)PortalBeanLocatorUtil.locate(JournalContentSearchPersistence.class.getName());
558         }
559 
560         return _persistence;
561     }
562 
563     public void setPersistence(JournalContentSearchPersistence persistence) {
564         _persistence = persistence;
565     }
566 
567     private static JournalContentSearchPersistence _persistence;
568 }