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