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