001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.journal.model.JournalContentSearch;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the journal content search service. This utility wraps {@link JournalContentSearchPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see JournalContentSearchPersistence
037     * @see JournalContentSearchPersistenceImpl
038     * @generated
039     */
040    public class JournalContentSearchUtil {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
045             */
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
049             */
050            public static void clearCache() {
051                    getPersistence().clearCache();
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
056             */
057            public static void clearCache(JournalContentSearch journalContentSearch) {
058                    getPersistence().clearCache(journalContentSearch);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
063             */
064            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
065                    throws SystemException {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<JournalContentSearch> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) throws SystemException {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<JournalContentSearch> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end)
082                    throws SystemException {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<JournalContentSearch> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator orderByComparator) throws SystemException {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
099             */
100            public static JournalContentSearch update(
101                    JournalContentSearch journalContentSearch) throws SystemException {
102                    return getPersistence().update(journalContentSearch);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
107             */
108            public static JournalContentSearch update(
109                    JournalContentSearch journalContentSearch, ServiceContext serviceContext)
110                    throws SystemException {
111                    return getPersistence().update(journalContentSearch, serviceContext);
112            }
113    
114            /**
115            * Caches the journal content search in the entity cache if it is enabled.
116            *
117            * @param journalContentSearch the journal content search
118            */
119            public static void cacheResult(
120                    com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch) {
121                    getPersistence().cacheResult(journalContentSearch);
122            }
123    
124            /**
125            * Caches the journal content searchs in the entity cache if it is enabled.
126            *
127            * @param journalContentSearchs the journal content searchs
128            */
129            public static void cacheResult(
130                    java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> journalContentSearchs) {
131                    getPersistence().cacheResult(journalContentSearchs);
132            }
133    
134            /**
135            * Creates a new journal content search with the primary key. Does not add the journal content search to the database.
136            *
137            * @param contentSearchId the primary key for the new journal content search
138            * @return the new journal content search
139            */
140            public static com.liferay.portlet.journal.model.JournalContentSearch create(
141                    long contentSearchId) {
142                    return getPersistence().create(contentSearchId);
143            }
144    
145            /**
146            * Removes the journal content search with the primary key from the database. Also notifies the appropriate model listeners.
147            *
148            * @param contentSearchId the primary key of the journal content search
149            * @return the journal content search that was removed
150            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found
151            * @throws SystemException if a system exception occurred
152            */
153            public static com.liferay.portlet.journal.model.JournalContentSearch remove(
154                    long contentSearchId)
155                    throws com.liferay.portal.kernel.exception.SystemException,
156                            com.liferay.portlet.journal.NoSuchContentSearchException {
157                    return getPersistence().remove(contentSearchId);
158            }
159    
160            public static com.liferay.portlet.journal.model.JournalContentSearch updateImpl(
161                    com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getPersistence().updateImpl(journalContentSearch);
164            }
165    
166            /**
167            * Returns the journal content search with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchContentSearchException} if it could not be found.
168            *
169            * @param contentSearchId the primary key of the journal content search
170            * @return the journal content search
171            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public static com.liferay.portlet.journal.model.JournalContentSearch findByPrimaryKey(
175                    long contentSearchId)
176                    throws com.liferay.portal.kernel.exception.SystemException,
177                            com.liferay.portlet.journal.NoSuchContentSearchException {
178                    return getPersistence().findByPrimaryKey(contentSearchId);
179            }
180    
181            /**
182            * Returns the journal content search with the primary key or returns <code>null</code> if it could not be found.
183            *
184            * @param contentSearchId the primary key of the journal content search
185            * @return the journal content search, or <code>null</code> if a journal content search with the primary key could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            public static com.liferay.portlet.journal.model.JournalContentSearch fetchByPrimaryKey(
189                    long contentSearchId)
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return getPersistence().fetchByPrimaryKey(contentSearchId);
192            }
193    
194            /**
195            * Returns all the journal content searchs where portletId = &#63;.
196            *
197            * @param portletId the portlet ID
198            * @return the matching journal content searchs
199            * @throws SystemException if a system exception occurred
200            */
201            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByPortletId(
202                    java.lang.String portletId)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return getPersistence().findByPortletId(portletId);
205            }
206    
207            /**
208            * Returns a range of all the journal content searchs where portletId = &#63;.
209            *
210            * <p>
211            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
212            * </p>
213            *
214            * @param portletId the portlet ID
215            * @param start the lower bound of the range of journal content searchs
216            * @param end the upper bound of the range of journal content searchs (not inclusive)
217            * @return the range of matching journal content searchs
218            * @throws SystemException if a system exception occurred
219            */
220            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByPortletId(
221                    java.lang.String portletId, int start, int end)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return getPersistence().findByPortletId(portletId, start, end);
224            }
225    
226            /**
227            * Returns an ordered range of all the journal content searchs where portletId = &#63;.
228            *
229            * <p>
230            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
231            * </p>
232            *
233            * @param portletId the portlet ID
234            * @param start the lower bound of the range of journal content searchs
235            * @param end the upper bound of the range of journal content searchs (not inclusive)
236            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
237            * @return the ordered range of matching journal content searchs
238            * @throws SystemException if a system exception occurred
239            */
240            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByPortletId(
241                    java.lang.String portletId, int start, int end,
242                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return getPersistence()
245                                       .findByPortletId(portletId, start, end, orderByComparator);
246            }
247    
248            /**
249            * Returns the first journal content search in the ordered set where portletId = &#63;.
250            *
251            * @param portletId the portlet ID
252            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
253            * @return the first matching journal content search
254            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
255            * @throws SystemException if a system exception occurred
256            */
257            public static com.liferay.portlet.journal.model.JournalContentSearch findByPortletId_First(
258                    java.lang.String portletId,
259                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
260                    throws com.liferay.portal.kernel.exception.SystemException,
261                            com.liferay.portlet.journal.NoSuchContentSearchException {
262                    return getPersistence()
263                                       .findByPortletId_First(portletId, orderByComparator);
264            }
265    
266            /**
267            * Returns the first journal content search in the ordered set where portletId = &#63;.
268            *
269            * @param portletId the portlet ID
270            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
271            * @return the first matching journal content search, or <code>null</code> if a matching journal content search could not be found
272            * @throws SystemException if a system exception occurred
273            */
274            public static com.liferay.portlet.journal.model.JournalContentSearch fetchByPortletId_First(
275                    java.lang.String portletId,
276                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
277                    throws com.liferay.portal.kernel.exception.SystemException {
278                    return getPersistence()
279                                       .fetchByPortletId_First(portletId, orderByComparator);
280            }
281    
282            /**
283            * Returns the last journal content search in the ordered set where portletId = &#63;.
284            *
285            * @param portletId the portlet ID
286            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
287            * @return the last matching journal content search
288            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
289            * @throws SystemException if a system exception occurred
290            */
291            public static com.liferay.portlet.journal.model.JournalContentSearch findByPortletId_Last(
292                    java.lang.String portletId,
293                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
294                    throws com.liferay.portal.kernel.exception.SystemException,
295                            com.liferay.portlet.journal.NoSuchContentSearchException {
296                    return getPersistence()
297                                       .findByPortletId_Last(portletId, orderByComparator);
298            }
299    
300            /**
301            * Returns the last journal content search in the ordered set where portletId = &#63;.
302            *
303            * @param portletId the portlet ID
304            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
305            * @return the last matching journal content search, or <code>null</code> if a matching journal content search could not be found
306            * @throws SystemException if a system exception occurred
307            */
308            public static com.liferay.portlet.journal.model.JournalContentSearch fetchByPortletId_Last(
309                    java.lang.String portletId,
310                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    return getPersistence()
313                                       .fetchByPortletId_Last(portletId, orderByComparator);
314            }
315    
316            /**
317            * Returns the journal content searchs before and after the current journal content search in the ordered set where portletId = &#63;.
318            *
319            * @param contentSearchId the primary key of the current journal content search
320            * @param portletId the portlet ID
321            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
322            * @return the previous, current, and next journal content search
323            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found
324            * @throws SystemException if a system exception occurred
325            */
326            public static com.liferay.portlet.journal.model.JournalContentSearch[] findByPortletId_PrevAndNext(
327                    long contentSearchId, java.lang.String portletId,
328                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
329                    throws com.liferay.portal.kernel.exception.SystemException,
330                            com.liferay.portlet.journal.NoSuchContentSearchException {
331                    return getPersistence()
332                                       .findByPortletId_PrevAndNext(contentSearchId, portletId,
333                            orderByComparator);
334            }
335    
336            /**
337            * Returns all the journal content searchs where articleId = &#63;.
338            *
339            * @param articleId the article ID
340            * @return the matching journal content searchs
341            * @throws SystemException if a system exception occurred
342            */
343            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(
344                    java.lang.String articleId)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    return getPersistence().findByArticleId(articleId);
347            }
348    
349            /**
350            * Returns a range of all the journal content searchs where articleId = &#63;.
351            *
352            * <p>
353            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
354            * </p>
355            *
356            * @param articleId the article ID
357            * @param start the lower bound of the range of journal content searchs
358            * @param end the upper bound of the range of journal content searchs (not inclusive)
359            * @return the range of matching journal content searchs
360            * @throws SystemException if a system exception occurred
361            */
362            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(
363                    java.lang.String articleId, int start, int end)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return getPersistence().findByArticleId(articleId, start, end);
366            }
367    
368            /**
369            * Returns an ordered range of all the journal content searchs where articleId = &#63;.
370            *
371            * <p>
372            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
373            * </p>
374            *
375            * @param articleId the article ID
376            * @param start the lower bound of the range of journal content searchs
377            * @param end the upper bound of the range of journal content searchs (not inclusive)
378            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
379            * @return the ordered range of matching journal content searchs
380            * @throws SystemException if a system exception occurred
381            */
382            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(
383                    java.lang.String articleId, int start, int end,
384                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return getPersistence()
387                                       .findByArticleId(articleId, start, end, orderByComparator);
388            }
389    
390            /**
391            * Returns the first journal content search in the ordered set where articleId = &#63;.
392            *
393            * @param articleId the article ID
394            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
395            * @return the first matching journal content search
396            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
397            * @throws SystemException if a system exception occurred
398            */
399            public static com.liferay.portlet.journal.model.JournalContentSearch findByArticleId_First(
400                    java.lang.String articleId,
401                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
402                    throws com.liferay.portal.kernel.exception.SystemException,
403                            com.liferay.portlet.journal.NoSuchContentSearchException {
404                    return getPersistence()
405                                       .findByArticleId_First(articleId, orderByComparator);
406            }
407    
408            /**
409            * Returns the first journal content search in the ordered set where articleId = &#63;.
410            *
411            * @param articleId the article ID
412            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
413            * @return the first matching journal content search, or <code>null</code> if a matching journal content search could not be found
414            * @throws SystemException if a system exception occurred
415            */
416            public static com.liferay.portlet.journal.model.JournalContentSearch fetchByArticleId_First(
417                    java.lang.String articleId,
418                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
419                    throws com.liferay.portal.kernel.exception.SystemException {
420                    return getPersistence()
421                                       .fetchByArticleId_First(articleId, orderByComparator);
422            }
423    
424            /**
425            * Returns the last journal content search in the ordered set where articleId = &#63;.
426            *
427            * @param articleId the article ID
428            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
429            * @return the last matching journal content search
430            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
431            * @throws SystemException if a system exception occurred
432            */
433            public static com.liferay.portlet.journal.model.JournalContentSearch findByArticleId_Last(
434                    java.lang.String articleId,
435                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
436                    throws com.liferay.portal.kernel.exception.SystemException,
437                            com.liferay.portlet.journal.NoSuchContentSearchException {
438                    return getPersistence()
439                                       .findByArticleId_Last(articleId, orderByComparator);
440            }
441    
442            /**
443            * Returns the last journal content search in the ordered set where articleId = &#63;.
444            *
445            * @param articleId the article ID
446            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
447            * @return the last matching journal content search, or <code>null</code> if a matching journal content search could not be found
448            * @throws SystemException if a system exception occurred
449            */
450            public static com.liferay.portlet.journal.model.JournalContentSearch fetchByArticleId_Last(
451                    java.lang.String articleId,
452                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
453                    throws com.liferay.portal.kernel.exception.SystemException {
454                    return getPersistence()
455                                       .fetchByArticleId_Last(articleId, orderByComparator);
456            }
457    
458            /**
459            * Returns the journal content searchs before and after the current journal content search in the ordered set where articleId = &#63;.
460            *
461            * @param contentSearchId the primary key of the current journal content search
462            * @param articleId the article ID
463            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
464            * @return the previous, current, and next journal content search
465            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found
466            * @throws SystemException if a system exception occurred
467            */
468            public static com.liferay.portlet.journal.model.JournalContentSearch[] findByArticleId_PrevAndNext(
469                    long contentSearchId, java.lang.String articleId,
470                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
471                    throws com.liferay.portal.kernel.exception.SystemException,
472                            com.liferay.portlet.journal.NoSuchContentSearchException {
473                    return getPersistence()
474                                       .findByArticleId_PrevAndNext(contentSearchId, articleId,
475                            orderByComparator);
476            }
477    
478            /**
479            * Returns all the journal content searchs where groupId = &#63; and privateLayout = &#63;.
480            *
481            * @param groupId the group ID
482            * @param privateLayout the private layout
483            * @return the matching journal content searchs
484            * @throws SystemException if a system exception occurred
485            */
486            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
487                    long groupId, boolean privateLayout)
488                    throws com.liferay.portal.kernel.exception.SystemException {
489                    return getPersistence().findByG_P(groupId, privateLayout);
490            }
491    
492            /**
493            * Returns a range of all the journal content searchs where groupId = &#63; and privateLayout = &#63;.
494            *
495            * <p>
496            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
497            * </p>
498            *
499            * @param groupId the group ID
500            * @param privateLayout the private layout
501            * @param start the lower bound of the range of journal content searchs
502            * @param end the upper bound of the range of journal content searchs (not inclusive)
503            * @return the range of matching journal content searchs
504            * @throws SystemException if a system exception occurred
505            */
506            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
507                    long groupId, boolean privateLayout, int start, int end)
508                    throws com.liferay.portal.kernel.exception.SystemException {
509                    return getPersistence().findByG_P(groupId, privateLayout, start, end);
510            }
511    
512            /**
513            * Returns an ordered range of all the journal content searchs where groupId = &#63; and privateLayout = &#63;.
514            *
515            * <p>
516            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
517            * </p>
518            *
519            * @param groupId the group ID
520            * @param privateLayout the private layout
521            * @param start the lower bound of the range of journal content searchs
522            * @param end the upper bound of the range of journal content searchs (not inclusive)
523            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
524            * @return the ordered range of matching journal content searchs
525            * @throws SystemException if a system exception occurred
526            */
527            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
528                    long groupId, boolean privateLayout, int start, int end,
529                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
530                    throws com.liferay.portal.kernel.exception.SystemException {
531                    return getPersistence()
532                                       .findByG_P(groupId, privateLayout, start, end,
533                            orderByComparator);
534            }
535    
536            /**
537            * Returns the first journal content search in the ordered set where groupId = &#63; and privateLayout = &#63;.
538            *
539            * @param groupId the group ID
540            * @param privateLayout the private layout
541            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
542            * @return the first matching journal content search
543            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
544            * @throws SystemException if a system exception occurred
545            */
546            public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_First(
547                    long groupId, boolean privateLayout,
548                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
549                    throws com.liferay.portal.kernel.exception.SystemException,
550                            com.liferay.portlet.journal.NoSuchContentSearchException {
551                    return getPersistence()
552                                       .findByG_P_First(groupId, privateLayout, orderByComparator);
553            }
554    
555            /**
556            * Returns the first journal content search in the ordered set where groupId = &#63; and privateLayout = &#63;.
557            *
558            * @param groupId the group ID
559            * @param privateLayout the private layout
560            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
561            * @return the first matching journal content search, or <code>null</code> if a matching journal content search could not be found
562            * @throws SystemException if a system exception occurred
563            */
564            public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_First(
565                    long groupId, boolean privateLayout,
566                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
567                    throws com.liferay.portal.kernel.exception.SystemException {
568                    return getPersistence()
569                                       .fetchByG_P_First(groupId, privateLayout, orderByComparator);
570            }
571    
572            /**
573            * Returns the last journal content search in the ordered set where groupId = &#63; and privateLayout = &#63;.
574            *
575            * @param groupId the group ID
576            * @param privateLayout the private layout
577            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
578            * @return the last matching journal content search
579            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
580            * @throws SystemException if a system exception occurred
581            */
582            public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_Last(
583                    long groupId, boolean privateLayout,
584                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
585                    throws com.liferay.portal.kernel.exception.SystemException,
586                            com.liferay.portlet.journal.NoSuchContentSearchException {
587                    return getPersistence()
588                                       .findByG_P_Last(groupId, privateLayout, orderByComparator);
589            }
590    
591            /**
592            * Returns the last journal content search in the ordered set where groupId = &#63; and privateLayout = &#63;.
593            *
594            * @param groupId the group ID
595            * @param privateLayout the private layout
596            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
597            * @return the last matching journal content search, or <code>null</code> if a matching journal content search could not be found
598            * @throws SystemException if a system exception occurred
599            */
600            public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_Last(
601                    long groupId, boolean privateLayout,
602                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
603                    throws com.liferay.portal.kernel.exception.SystemException {
604                    return getPersistence()
605                                       .fetchByG_P_Last(groupId, privateLayout, orderByComparator);
606            }
607    
608            /**
609            * Returns the journal content searchs before and after the current journal content search in the ordered set where groupId = &#63; and privateLayout = &#63;.
610            *
611            * @param contentSearchId the primary key of the current journal content search
612            * @param groupId the group ID
613            * @param privateLayout the private layout
614            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
615            * @return the previous, current, and next journal content search
616            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found
617            * @throws SystemException if a system exception occurred
618            */
619            public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_PrevAndNext(
620                    long contentSearchId, long groupId, boolean privateLayout,
621                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
622                    throws com.liferay.portal.kernel.exception.SystemException,
623                            com.liferay.portlet.journal.NoSuchContentSearchException {
624                    return getPersistence()
625                                       .findByG_P_PrevAndNext(contentSearchId, groupId,
626                            privateLayout, orderByComparator);
627            }
628    
629            /**
630            * Returns all the journal content searchs where groupId = &#63; and articleId = &#63;.
631            *
632            * @param groupId the group ID
633            * @param articleId the article ID
634            * @return the matching journal content searchs
635            * @throws SystemException if a system exception occurred
636            */
637            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
638                    long groupId, java.lang.String articleId)
639                    throws com.liferay.portal.kernel.exception.SystemException {
640                    return getPersistence().findByG_A(groupId, articleId);
641            }
642    
643            /**
644            * Returns a range of all the journal content searchs where groupId = &#63; and articleId = &#63;.
645            *
646            * <p>
647            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
648            * </p>
649            *
650            * @param groupId the group ID
651            * @param articleId the article ID
652            * @param start the lower bound of the range of journal content searchs
653            * @param end the upper bound of the range of journal content searchs (not inclusive)
654            * @return the range of matching journal content searchs
655            * @throws SystemException if a system exception occurred
656            */
657            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
658                    long groupId, java.lang.String articleId, int start, int end)
659                    throws com.liferay.portal.kernel.exception.SystemException {
660                    return getPersistence().findByG_A(groupId, articleId, start, end);
661            }
662    
663            /**
664            * Returns an ordered range of all the journal content searchs where groupId = &#63; and articleId = &#63;.
665            *
666            * <p>
667            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
668            * </p>
669            *
670            * @param groupId the group ID
671            * @param articleId the article ID
672            * @param start the lower bound of the range of journal content searchs
673            * @param end the upper bound of the range of journal content searchs (not inclusive)
674            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
675            * @return the ordered range of matching journal content searchs
676            * @throws SystemException if a system exception occurred
677            */
678            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
679                    long groupId, java.lang.String articleId, int start, int end,
680                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
681                    throws com.liferay.portal.kernel.exception.SystemException {
682                    return getPersistence()
683                                       .findByG_A(groupId, articleId, start, end, orderByComparator);
684            }
685    
686            /**
687            * Returns the first journal content search in the ordered set where groupId = &#63; and articleId = &#63;.
688            *
689            * @param groupId the group ID
690            * @param articleId the article ID
691            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
692            * @return the first matching journal content search
693            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
694            * @throws SystemException if a system exception occurred
695            */
696            public static com.liferay.portlet.journal.model.JournalContentSearch findByG_A_First(
697                    long groupId, java.lang.String articleId,
698                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
699                    throws com.liferay.portal.kernel.exception.SystemException,
700                            com.liferay.portlet.journal.NoSuchContentSearchException {
701                    return getPersistence()
702                                       .findByG_A_First(groupId, articleId, orderByComparator);
703            }
704    
705            /**
706            * Returns the first journal content search in the ordered set where groupId = &#63; and articleId = &#63;.
707            *
708            * @param groupId the group ID
709            * @param articleId the article ID
710            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
711            * @return the first matching journal content search, or <code>null</code> if a matching journal content search could not be found
712            * @throws SystemException if a system exception occurred
713            */
714            public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_A_First(
715                    long groupId, java.lang.String articleId,
716                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
717                    throws com.liferay.portal.kernel.exception.SystemException {
718                    return getPersistence()
719                                       .fetchByG_A_First(groupId, articleId, orderByComparator);
720            }
721    
722            /**
723            * Returns the last journal content search in the ordered set where groupId = &#63; and articleId = &#63;.
724            *
725            * @param groupId the group ID
726            * @param articleId the article ID
727            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
728            * @return the last matching journal content search
729            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
730            * @throws SystemException if a system exception occurred
731            */
732            public static com.liferay.portlet.journal.model.JournalContentSearch findByG_A_Last(
733                    long groupId, java.lang.String articleId,
734                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
735                    throws com.liferay.portal.kernel.exception.SystemException,
736                            com.liferay.portlet.journal.NoSuchContentSearchException {
737                    return getPersistence()
738                                       .findByG_A_Last(groupId, articleId, orderByComparator);
739            }
740    
741            /**
742            * Returns the last journal content search in the ordered set where groupId = &#63; and articleId = &#63;.
743            *
744            * @param groupId the group ID
745            * @param articleId the article ID
746            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
747            * @return the last matching journal content search, or <code>null</code> if a matching journal content search could not be found
748            * @throws SystemException if a system exception occurred
749            */
750            public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_A_Last(
751                    long groupId, java.lang.String articleId,
752                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
753                    throws com.liferay.portal.kernel.exception.SystemException {
754                    return getPersistence()
755                                       .fetchByG_A_Last(groupId, articleId, orderByComparator);
756            }
757    
758            /**
759            * Returns the journal content searchs before and after the current journal content search in the ordered set where groupId = &#63; and articleId = &#63;.
760            *
761            * @param contentSearchId the primary key of the current journal content search
762            * @param groupId the group ID
763            * @param articleId the article ID
764            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
765            * @return the previous, current, and next journal content search
766            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found
767            * @throws SystemException if a system exception occurred
768            */
769            public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_A_PrevAndNext(
770                    long contentSearchId, long groupId, java.lang.String articleId,
771                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
772                    throws com.liferay.portal.kernel.exception.SystemException,
773                            com.liferay.portlet.journal.NoSuchContentSearchException {
774                    return getPersistence()
775                                       .findByG_A_PrevAndNext(contentSearchId, groupId, articleId,
776                            orderByComparator);
777            }
778    
779            /**
780            * Returns all the journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63;.
781            *
782            * @param groupId the group ID
783            * @param privateLayout the private layout
784            * @param layoutId the layout ID
785            * @return the matching journal content searchs
786            * @throws SystemException if a system exception occurred
787            */
788            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
789                    long groupId, boolean privateLayout, long layoutId)
790                    throws com.liferay.portal.kernel.exception.SystemException {
791                    return getPersistence().findByG_P_L(groupId, privateLayout, layoutId);
792            }
793    
794            /**
795            * Returns a range of all the journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63;.
796            *
797            * <p>
798            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
799            * </p>
800            *
801            * @param groupId the group ID
802            * @param privateLayout the private layout
803            * @param layoutId the layout ID
804            * @param start the lower bound of the range of journal content searchs
805            * @param end the upper bound of the range of journal content searchs (not inclusive)
806            * @return the range of matching journal content searchs
807            * @throws SystemException if a system exception occurred
808            */
809            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
810                    long groupId, boolean privateLayout, long layoutId, int start, int end)
811                    throws com.liferay.portal.kernel.exception.SystemException {
812                    return getPersistence()
813                                       .findByG_P_L(groupId, privateLayout, layoutId, start, end);
814            }
815    
816            /**
817            * Returns an ordered range of all the journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63;.
818            *
819            * <p>
820            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
821            * </p>
822            *
823            * @param groupId the group ID
824            * @param privateLayout the private layout
825            * @param layoutId the layout ID
826            * @param start the lower bound of the range of journal content searchs
827            * @param end the upper bound of the range of journal content searchs (not inclusive)
828            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
829            * @return the ordered range of matching journal content searchs
830            * @throws SystemException if a system exception occurred
831            */
832            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
833                    long groupId, boolean privateLayout, long layoutId, int start, int end,
834                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
835                    throws com.liferay.portal.kernel.exception.SystemException {
836                    return getPersistence()
837                                       .findByG_P_L(groupId, privateLayout, layoutId, start, end,
838                            orderByComparator);
839            }
840    
841            /**
842            * Returns the first journal content search in the ordered set where groupId = &#63; and privateLayout = &#63; and layoutId = &#63;.
843            *
844            * @param groupId the group ID
845            * @param privateLayout the private layout
846            * @param layoutId the layout ID
847            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
848            * @return the first matching journal content search
849            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
850            * @throws SystemException if a system exception occurred
851            */
852            public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_First(
853                    long groupId, boolean privateLayout, long layoutId,
854                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
855                    throws com.liferay.portal.kernel.exception.SystemException,
856                            com.liferay.portlet.journal.NoSuchContentSearchException {
857                    return getPersistence()
858                                       .findByG_P_L_First(groupId, privateLayout, layoutId,
859                            orderByComparator);
860            }
861    
862            /**
863            * Returns the first journal content search in the ordered set where groupId = &#63; and privateLayout = &#63; and layoutId = &#63;.
864            *
865            * @param groupId the group ID
866            * @param privateLayout the private layout
867            * @param layoutId the layout ID
868            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
869            * @return the first matching journal content search, or <code>null</code> if a matching journal content search could not be found
870            * @throws SystemException if a system exception occurred
871            */
872            public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_First(
873                    long groupId, boolean privateLayout, long layoutId,
874                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
875                    throws com.liferay.portal.kernel.exception.SystemException {
876                    return getPersistence()
877                                       .fetchByG_P_L_First(groupId, privateLayout, layoutId,
878                            orderByComparator);
879            }
880    
881            /**
882            * Returns the last journal content search in the ordered set where groupId = &#63; and privateLayout = &#63; and layoutId = &#63;.
883            *
884            * @param groupId the group ID
885            * @param privateLayout the private layout
886            * @param layoutId the layout ID
887            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
888            * @return the last matching journal content search
889            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
890            * @throws SystemException if a system exception occurred
891            */
892            public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_Last(
893                    long groupId, boolean privateLayout, long layoutId,
894                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
895                    throws com.liferay.portal.kernel.exception.SystemException,
896                            com.liferay.portlet.journal.NoSuchContentSearchException {
897                    return getPersistence()
898                                       .findByG_P_L_Last(groupId, privateLayout, layoutId,
899                            orderByComparator);
900            }
901    
902            /**
903            * Returns the last journal content search in the ordered set where groupId = &#63; and privateLayout = &#63; and layoutId = &#63;.
904            *
905            * @param groupId the group ID
906            * @param privateLayout the private layout
907            * @param layoutId the layout ID
908            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
909            * @return the last matching journal content search, or <code>null</code> if a matching journal content search could not be found
910            * @throws SystemException if a system exception occurred
911            */
912            public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_Last(
913                    long groupId, boolean privateLayout, long layoutId,
914                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
915                    throws com.liferay.portal.kernel.exception.SystemException {
916                    return getPersistence()
917                                       .fetchByG_P_L_Last(groupId, privateLayout, layoutId,
918                            orderByComparator);
919            }
920    
921            /**
922            * Returns the journal content searchs before and after the current journal content search in the ordered set where groupId = &#63; and privateLayout = &#63; and layoutId = &#63;.
923            *
924            * @param contentSearchId the primary key of the current journal content search
925            * @param groupId the group ID
926            * @param privateLayout the private layout
927            * @param layoutId the layout ID
928            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
929            * @return the previous, current, and next journal content search
930            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found
931            * @throws SystemException if a system exception occurred
932            */
933            public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_PrevAndNext(
934                    long contentSearchId, long groupId, boolean privateLayout,
935                    long layoutId,
936                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
937                    throws com.liferay.portal.kernel.exception.SystemException,
938                            com.liferay.portlet.journal.NoSuchContentSearchException {
939                    return getPersistence()
940                                       .findByG_P_L_PrevAndNext(contentSearchId, groupId,
941                            privateLayout, layoutId, orderByComparator);
942            }
943    
944            /**
945            * Returns all the journal content searchs where groupId = &#63; and privateLayout = &#63; and articleId = &#63;.
946            *
947            * @param groupId the group ID
948            * @param privateLayout the private layout
949            * @param articleId the article ID
950            * @return the matching journal content searchs
951            * @throws SystemException if a system exception occurred
952            */
953            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
954                    long groupId, boolean privateLayout, java.lang.String articleId)
955                    throws com.liferay.portal.kernel.exception.SystemException {
956                    return getPersistence().findByG_P_A(groupId, privateLayout, articleId);
957            }
958    
959            /**
960            * Returns a range of all the journal content searchs where groupId = &#63; and privateLayout = &#63; and articleId = &#63;.
961            *
962            * <p>
963            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
964            * </p>
965            *
966            * @param groupId the group ID
967            * @param privateLayout the private layout
968            * @param articleId the article ID
969            * @param start the lower bound of the range of journal content searchs
970            * @param end the upper bound of the range of journal content searchs (not inclusive)
971            * @return the range of matching journal content searchs
972            * @throws SystemException if a system exception occurred
973            */
974            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
975                    long groupId, boolean privateLayout, java.lang.String articleId,
976                    int start, int end)
977                    throws com.liferay.portal.kernel.exception.SystemException {
978                    return getPersistence()
979                                       .findByG_P_A(groupId, privateLayout, articleId, start, end);
980            }
981    
982            /**
983            * Returns an ordered range of all the journal content searchs where groupId = &#63; and privateLayout = &#63; and articleId = &#63;.
984            *
985            * <p>
986            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
987            * </p>
988            *
989            * @param groupId the group ID
990            * @param privateLayout the private layout
991            * @param articleId the article ID
992            * @param start the lower bound of the range of journal content searchs
993            * @param end the upper bound of the range of journal content searchs (not inclusive)
994            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
995            * @return the ordered range of matching journal content searchs
996            * @throws SystemException if a system exception occurred
997            */
998            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
999                    long groupId, boolean privateLayout, java.lang.String articleId,
1000                    int start, int end,
1001                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1002                    throws com.liferay.portal.kernel.exception.SystemException {
1003                    return getPersistence()
1004                                       .findByG_P_A(groupId, privateLayout, articleId, start, end,
1005                            orderByComparator);
1006            }
1007    
1008            /**
1009            * Returns the first journal content search in the ordered set where groupId = &#63; and privateLayout = &#63; and articleId = &#63;.
1010            *
1011            * @param groupId the group ID
1012            * @param privateLayout the private layout
1013            * @param articleId the article ID
1014            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1015            * @return the first matching journal content search
1016            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
1017            * @throws SystemException if a system exception occurred
1018            */
1019            public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_First(
1020                    long groupId, boolean privateLayout, java.lang.String articleId,
1021                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1022                    throws com.liferay.portal.kernel.exception.SystemException,
1023                            com.liferay.portlet.journal.NoSuchContentSearchException {
1024                    return getPersistence()
1025                                       .findByG_P_A_First(groupId, privateLayout, articleId,
1026                            orderByComparator);
1027            }
1028    
1029            /**
1030            * Returns the first journal content search in the ordered set where groupId = &#63; and privateLayout = &#63; and articleId = &#63;.
1031            *
1032            * @param groupId the group ID
1033            * @param privateLayout the private layout
1034            * @param articleId the article ID
1035            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1036            * @return the first matching journal content search, or <code>null</code> if a matching journal content search could not be found
1037            * @throws SystemException if a system exception occurred
1038            */
1039            public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_A_First(
1040                    long groupId, boolean privateLayout, java.lang.String articleId,
1041                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1042                    throws com.liferay.portal.kernel.exception.SystemException {
1043                    return getPersistence()
1044                                       .fetchByG_P_A_First(groupId, privateLayout, articleId,
1045                            orderByComparator);
1046            }
1047    
1048            /**
1049            * Returns the last journal content search in the ordered set where groupId = &#63; and privateLayout = &#63; and articleId = &#63;.
1050            *
1051            * @param groupId the group ID
1052            * @param privateLayout the private layout
1053            * @param articleId the article ID
1054            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1055            * @return the last matching journal content search
1056            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
1057            * @throws SystemException if a system exception occurred
1058            */
1059            public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_Last(
1060                    long groupId, boolean privateLayout, java.lang.String articleId,
1061                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1062                    throws com.liferay.portal.kernel.exception.SystemException,
1063                            com.liferay.portlet.journal.NoSuchContentSearchException {
1064                    return getPersistence()
1065                                       .findByG_P_A_Last(groupId, privateLayout, articleId,
1066                            orderByComparator);
1067            }
1068    
1069            /**
1070            * Returns the last journal content search in the ordered set where groupId = &#63; and privateLayout = &#63; and articleId = &#63;.
1071            *
1072            * @param groupId the group ID
1073            * @param privateLayout the private layout
1074            * @param articleId the article ID
1075            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1076            * @return the last matching journal content search, or <code>null</code> if a matching journal content search could not be found
1077            * @throws SystemException if a system exception occurred
1078            */
1079            public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_A_Last(
1080                    long groupId, boolean privateLayout, java.lang.String articleId,
1081                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1082                    throws com.liferay.portal.kernel.exception.SystemException {
1083                    return getPersistence()
1084                                       .fetchByG_P_A_Last(groupId, privateLayout, articleId,
1085                            orderByComparator);
1086            }
1087    
1088            /**
1089            * Returns the journal content searchs before and after the current journal content search in the ordered set where groupId = &#63; and privateLayout = &#63; and articleId = &#63;.
1090            *
1091            * @param contentSearchId the primary key of the current journal content search
1092            * @param groupId the group ID
1093            * @param privateLayout the private layout
1094            * @param articleId the article ID
1095            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1096            * @return the previous, current, and next journal content search
1097            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found
1098            * @throws SystemException if a system exception occurred
1099            */
1100            public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_A_PrevAndNext(
1101                    long contentSearchId, long groupId, boolean privateLayout,
1102                    java.lang.String articleId,
1103                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1104                    throws com.liferay.portal.kernel.exception.SystemException,
1105                            com.liferay.portlet.journal.NoSuchContentSearchException {
1106                    return getPersistence()
1107                                       .findByG_P_A_PrevAndNext(contentSearchId, groupId,
1108                            privateLayout, articleId, orderByComparator);
1109            }
1110    
1111            /**
1112            * Returns all the journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63;.
1113            *
1114            * @param groupId the group ID
1115            * @param privateLayout the private layout
1116            * @param layoutId the layout ID
1117            * @param portletId the portlet ID
1118            * @return the matching journal content searchs
1119            * @throws SystemException if a system exception occurred
1120            */
1121            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
1122                    long groupId, boolean privateLayout, long layoutId,
1123                    java.lang.String portletId)
1124                    throws com.liferay.portal.kernel.exception.SystemException {
1125                    return getPersistence()
1126                                       .findByG_P_L_P(groupId, privateLayout, layoutId, portletId);
1127            }
1128    
1129            /**
1130            * Returns a range of all the journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63;.
1131            *
1132            * <p>
1133            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1134            * </p>
1135            *
1136            * @param groupId the group ID
1137            * @param privateLayout the private layout
1138            * @param layoutId the layout ID
1139            * @param portletId the portlet ID
1140            * @param start the lower bound of the range of journal content searchs
1141            * @param end the upper bound of the range of journal content searchs (not inclusive)
1142            * @return the range of matching journal content searchs
1143            * @throws SystemException if a system exception occurred
1144            */
1145            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
1146                    long groupId, boolean privateLayout, long layoutId,
1147                    java.lang.String portletId, int start, int end)
1148                    throws com.liferay.portal.kernel.exception.SystemException {
1149                    return getPersistence()
1150                                       .findByG_P_L_P(groupId, privateLayout, layoutId, portletId,
1151                            start, end);
1152            }
1153    
1154            /**
1155            * Returns an ordered range of all the journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63;.
1156            *
1157            * <p>
1158            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1159            * </p>
1160            *
1161            * @param groupId the group ID
1162            * @param privateLayout the private layout
1163            * @param layoutId the layout ID
1164            * @param portletId the portlet ID
1165            * @param start the lower bound of the range of journal content searchs
1166            * @param end the upper bound of the range of journal content searchs (not inclusive)
1167            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1168            * @return the ordered range of matching journal content searchs
1169            * @throws SystemException if a system exception occurred
1170            */
1171            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
1172                    long groupId, boolean privateLayout, long layoutId,
1173                    java.lang.String portletId, int start, int end,
1174                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1175                    throws com.liferay.portal.kernel.exception.SystemException {
1176                    return getPersistence()
1177                                       .findByG_P_L_P(groupId, privateLayout, layoutId, portletId,
1178                            start, end, orderByComparator);
1179            }
1180    
1181            /**
1182            * Returns the first journal content search in the ordered set where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63;.
1183            *
1184            * @param groupId the group ID
1185            * @param privateLayout the private layout
1186            * @param layoutId the layout ID
1187            * @param portletId the portlet ID
1188            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1189            * @return the first matching journal content search
1190            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
1191            * @throws SystemException if a system exception occurred
1192            */
1193            public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_First(
1194                    long groupId, boolean privateLayout, long layoutId,
1195                    java.lang.String portletId,
1196                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1197                    throws com.liferay.portal.kernel.exception.SystemException,
1198                            com.liferay.portlet.journal.NoSuchContentSearchException {
1199                    return getPersistence()
1200                                       .findByG_P_L_P_First(groupId, privateLayout, layoutId,
1201                            portletId, orderByComparator);
1202            }
1203    
1204            /**
1205            * Returns the first journal content search in the ordered set where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63;.
1206            *
1207            * @param groupId the group ID
1208            * @param privateLayout the private layout
1209            * @param layoutId the layout ID
1210            * @param portletId the portlet ID
1211            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1212            * @return the first matching journal content search, or <code>null</code> if a matching journal content search could not be found
1213            * @throws SystemException if a system exception occurred
1214            */
1215            public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_First(
1216                    long groupId, boolean privateLayout, long layoutId,
1217                    java.lang.String portletId,
1218                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1219                    throws com.liferay.portal.kernel.exception.SystemException {
1220                    return getPersistence()
1221                                       .fetchByG_P_L_P_First(groupId, privateLayout, layoutId,
1222                            portletId, orderByComparator);
1223            }
1224    
1225            /**
1226            * Returns the last journal content search in the ordered set where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63;.
1227            *
1228            * @param groupId the group ID
1229            * @param privateLayout the private layout
1230            * @param layoutId the layout ID
1231            * @param portletId the portlet ID
1232            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1233            * @return the last matching journal content search
1234            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
1235            * @throws SystemException if a system exception occurred
1236            */
1237            public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_Last(
1238                    long groupId, boolean privateLayout, long layoutId,
1239                    java.lang.String portletId,
1240                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1241                    throws com.liferay.portal.kernel.exception.SystemException,
1242                            com.liferay.portlet.journal.NoSuchContentSearchException {
1243                    return getPersistence()
1244                                       .findByG_P_L_P_Last(groupId, privateLayout, layoutId,
1245                            portletId, orderByComparator);
1246            }
1247    
1248            /**
1249            * Returns the last journal content search in the ordered set where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63;.
1250            *
1251            * @param groupId the group ID
1252            * @param privateLayout the private layout
1253            * @param layoutId the layout ID
1254            * @param portletId the portlet ID
1255            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1256            * @return the last matching journal content search, or <code>null</code> if a matching journal content search could not be found
1257            * @throws SystemException if a system exception occurred
1258            */
1259            public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_Last(
1260                    long groupId, boolean privateLayout, long layoutId,
1261                    java.lang.String portletId,
1262                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1263                    throws com.liferay.portal.kernel.exception.SystemException {
1264                    return getPersistence()
1265                                       .fetchByG_P_L_P_Last(groupId, privateLayout, layoutId,
1266                            portletId, orderByComparator);
1267            }
1268    
1269            /**
1270            * Returns the journal content searchs before and after the current journal content search in the ordered set where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63;.
1271            *
1272            * @param contentSearchId the primary key of the current journal content search
1273            * @param groupId the group ID
1274            * @param privateLayout the private layout
1275            * @param layoutId the layout ID
1276            * @param portletId the portlet ID
1277            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1278            * @return the previous, current, and next journal content search
1279            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found
1280            * @throws SystemException if a system exception occurred
1281            */
1282            public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_P_PrevAndNext(
1283                    long contentSearchId, long groupId, boolean privateLayout,
1284                    long layoutId, java.lang.String portletId,
1285                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1286                    throws com.liferay.portal.kernel.exception.SystemException,
1287                            com.liferay.portlet.journal.NoSuchContentSearchException {
1288                    return getPersistence()
1289                                       .findByG_P_L_P_PrevAndNext(contentSearchId, groupId,
1290                            privateLayout, layoutId, portletId, orderByComparator);
1291            }
1292    
1293            /**
1294            * Returns the journal content search where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63; and articleId = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchContentSearchException} if it could not be found.
1295            *
1296            * @param groupId the group ID
1297            * @param privateLayout the private layout
1298            * @param layoutId the layout ID
1299            * @param portletId the portlet ID
1300            * @param articleId the article ID
1301            * @return the matching journal content search
1302            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
1303            * @throws SystemException if a system exception occurred
1304            */
1305            public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_A(
1306                    long groupId, boolean privateLayout, long layoutId,
1307                    java.lang.String portletId, java.lang.String articleId)
1308                    throws com.liferay.portal.kernel.exception.SystemException,
1309                            com.liferay.portlet.journal.NoSuchContentSearchException {
1310                    return getPersistence()
1311                                       .findByG_P_L_P_A(groupId, privateLayout, layoutId,
1312                            portletId, articleId);
1313            }
1314    
1315            /**
1316            * Returns the journal content search where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63; and articleId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
1317            *
1318            * @param groupId the group ID
1319            * @param privateLayout the private layout
1320            * @param layoutId the layout ID
1321            * @param portletId the portlet ID
1322            * @param articleId the article ID
1323            * @return the matching journal content search, or <code>null</code> if a matching journal content search could not be found
1324            * @throws SystemException if a system exception occurred
1325            */
1326            public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
1327                    long groupId, boolean privateLayout, long layoutId,
1328                    java.lang.String portletId, java.lang.String articleId)
1329                    throws com.liferay.portal.kernel.exception.SystemException {
1330                    return getPersistence()
1331                                       .fetchByG_P_L_P_A(groupId, privateLayout, layoutId,
1332                            portletId, articleId);
1333            }
1334    
1335            /**
1336            * Returns the journal content search where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63; and articleId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
1337            *
1338            * @param groupId the group ID
1339            * @param privateLayout the private layout
1340            * @param layoutId the layout ID
1341            * @param portletId the portlet ID
1342            * @param articleId the article ID
1343            * @param retrieveFromCache whether to use the finder cache
1344            * @return the matching journal content search, or <code>null</code> if a matching journal content search could not be found
1345            * @throws SystemException if a system exception occurred
1346            */
1347            public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
1348                    long groupId, boolean privateLayout, long layoutId,
1349                    java.lang.String portletId, java.lang.String articleId,
1350                    boolean retrieveFromCache)
1351                    throws com.liferay.portal.kernel.exception.SystemException {
1352                    return getPersistence()
1353                                       .fetchByG_P_L_P_A(groupId, privateLayout, layoutId,
1354                            portletId, articleId, retrieveFromCache);
1355            }
1356    
1357            /**
1358            * Returns all the journal content searchs.
1359            *
1360            * @return the journal content searchs
1361            * @throws SystemException if a system exception occurred
1362            */
1363            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll()
1364                    throws com.liferay.portal.kernel.exception.SystemException {
1365                    return getPersistence().findAll();
1366            }
1367    
1368            /**
1369            * Returns a range of all the journal content searchs.
1370            *
1371            * <p>
1372            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1373            * </p>
1374            *
1375            * @param start the lower bound of the range of journal content searchs
1376            * @param end the upper bound of the range of journal content searchs (not inclusive)
1377            * @return the range of journal content searchs
1378            * @throws SystemException if a system exception occurred
1379            */
1380            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
1381                    int start, int end)
1382                    throws com.liferay.portal.kernel.exception.SystemException {
1383                    return getPersistence().findAll(start, end);
1384            }
1385    
1386            /**
1387            * Returns an ordered range of all the journal content searchs.
1388            *
1389            * <p>
1390            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1391            * </p>
1392            *
1393            * @param start the lower bound of the range of journal content searchs
1394            * @param end the upper bound of the range of journal content searchs (not inclusive)
1395            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1396            * @return the ordered range of journal content searchs
1397            * @throws SystemException if a system exception occurred
1398            */
1399            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
1400                    int start, int end,
1401                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1402                    throws com.liferay.portal.kernel.exception.SystemException {
1403                    return getPersistence().findAll(start, end, orderByComparator);
1404            }
1405    
1406            /**
1407            * Removes all the journal content searchs where portletId = &#63; from the database.
1408            *
1409            * @param portletId the portlet ID
1410            * @throws SystemException if a system exception occurred
1411            */
1412            public static void removeByPortletId(java.lang.String portletId)
1413                    throws com.liferay.portal.kernel.exception.SystemException {
1414                    getPersistence().removeByPortletId(portletId);
1415            }
1416    
1417            /**
1418            * Removes all the journal content searchs where articleId = &#63; from the database.
1419            *
1420            * @param articleId the article ID
1421            * @throws SystemException if a system exception occurred
1422            */
1423            public static void removeByArticleId(java.lang.String articleId)
1424                    throws com.liferay.portal.kernel.exception.SystemException {
1425                    getPersistence().removeByArticleId(articleId);
1426            }
1427    
1428            /**
1429            * Removes all the journal content searchs where groupId = &#63; and privateLayout = &#63; from the database.
1430            *
1431            * @param groupId the group ID
1432            * @param privateLayout the private layout
1433            * @throws SystemException if a system exception occurred
1434            */
1435            public static void removeByG_P(long groupId, boolean privateLayout)
1436                    throws com.liferay.portal.kernel.exception.SystemException {
1437                    getPersistence().removeByG_P(groupId, privateLayout);
1438            }
1439    
1440            /**
1441            * Removes all the journal content searchs where groupId = &#63; and articleId = &#63; from the database.
1442            *
1443            * @param groupId the group ID
1444            * @param articleId the article ID
1445            * @throws SystemException if a system exception occurred
1446            */
1447            public static void removeByG_A(long groupId, java.lang.String articleId)
1448                    throws com.liferay.portal.kernel.exception.SystemException {
1449                    getPersistence().removeByG_A(groupId, articleId);
1450            }
1451    
1452            /**
1453            * Removes all the journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; from the database.
1454            *
1455            * @param groupId the group ID
1456            * @param privateLayout the private layout
1457            * @param layoutId the layout ID
1458            * @throws SystemException if a system exception occurred
1459            */
1460            public static void removeByG_P_L(long groupId, boolean privateLayout,
1461                    long layoutId)
1462                    throws com.liferay.portal.kernel.exception.SystemException {
1463                    getPersistence().removeByG_P_L(groupId, privateLayout, layoutId);
1464            }
1465    
1466            /**
1467            * Removes all the journal content searchs where groupId = &#63; and privateLayout = &#63; and articleId = &#63; from the database.
1468            *
1469            * @param groupId the group ID
1470            * @param privateLayout the private layout
1471            * @param articleId the article ID
1472            * @throws SystemException if a system exception occurred
1473            */
1474            public static void removeByG_P_A(long groupId, boolean privateLayout,
1475                    java.lang.String articleId)
1476                    throws com.liferay.portal.kernel.exception.SystemException {
1477                    getPersistence().removeByG_P_A(groupId, privateLayout, articleId);
1478            }
1479    
1480            /**
1481            * Removes all the journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63; from the database.
1482            *
1483            * @param groupId the group ID
1484            * @param privateLayout the private layout
1485            * @param layoutId the layout ID
1486            * @param portletId the portlet ID
1487            * @throws SystemException if a system exception occurred
1488            */
1489            public static void removeByG_P_L_P(long groupId, boolean privateLayout,
1490                    long layoutId, java.lang.String portletId)
1491                    throws com.liferay.portal.kernel.exception.SystemException {
1492                    getPersistence()
1493                            .removeByG_P_L_P(groupId, privateLayout, layoutId, portletId);
1494            }
1495    
1496            /**
1497            * Removes the journal content search where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63; and articleId = &#63; from the database.
1498            *
1499            * @param groupId the group ID
1500            * @param privateLayout the private layout
1501            * @param layoutId the layout ID
1502            * @param portletId the portlet ID
1503            * @param articleId the article ID
1504            * @return the journal content search that was removed
1505            * @throws SystemException if a system exception occurred
1506            */
1507            public static com.liferay.portlet.journal.model.JournalContentSearch removeByG_P_L_P_A(
1508                    long groupId, boolean privateLayout, long layoutId,
1509                    java.lang.String portletId, java.lang.String articleId)
1510                    throws com.liferay.portal.kernel.exception.SystemException,
1511                            com.liferay.portlet.journal.NoSuchContentSearchException {
1512                    return getPersistence()
1513                                       .removeByG_P_L_P_A(groupId, privateLayout, layoutId,
1514                            portletId, articleId);
1515            }
1516    
1517            /**
1518            * Removes all the journal content searchs from the database.
1519            *
1520            * @throws SystemException if a system exception occurred
1521            */
1522            public static void removeAll()
1523                    throws com.liferay.portal.kernel.exception.SystemException {
1524                    getPersistence().removeAll();
1525            }
1526    
1527            /**
1528            * Returns the number of journal content searchs where portletId = &#63;.
1529            *
1530            * @param portletId the portlet ID
1531            * @return the number of matching journal content searchs
1532            * @throws SystemException if a system exception occurred
1533            */
1534            public static int countByPortletId(java.lang.String portletId)
1535                    throws com.liferay.portal.kernel.exception.SystemException {
1536                    return getPersistence().countByPortletId(portletId);
1537            }
1538    
1539            /**
1540            * Returns the number of journal content searchs where articleId = &#63;.
1541            *
1542            * @param articleId the article ID
1543            * @return the number of matching journal content searchs
1544            * @throws SystemException if a system exception occurred
1545            */
1546            public static int countByArticleId(java.lang.String articleId)
1547                    throws com.liferay.portal.kernel.exception.SystemException {
1548                    return getPersistence().countByArticleId(articleId);
1549            }
1550    
1551            /**
1552            * Returns the number of journal content searchs where groupId = &#63; and privateLayout = &#63;.
1553            *
1554            * @param groupId the group ID
1555            * @param privateLayout the private layout
1556            * @return the number of matching journal content searchs
1557            * @throws SystemException if a system exception occurred
1558            */
1559            public static int countByG_P(long groupId, boolean privateLayout)
1560                    throws com.liferay.portal.kernel.exception.SystemException {
1561                    return getPersistence().countByG_P(groupId, privateLayout);
1562            }
1563    
1564            /**
1565            * Returns the number of journal content searchs where groupId = &#63; and articleId = &#63;.
1566            *
1567            * @param groupId the group ID
1568            * @param articleId the article ID
1569            * @return the number of matching journal content searchs
1570            * @throws SystemException if a system exception occurred
1571            */
1572            public static int countByG_A(long groupId, java.lang.String articleId)
1573                    throws com.liferay.portal.kernel.exception.SystemException {
1574                    return getPersistence().countByG_A(groupId, articleId);
1575            }
1576    
1577            /**
1578            * Returns the number of journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63;.
1579            *
1580            * @param groupId the group ID
1581            * @param privateLayout the private layout
1582            * @param layoutId the layout ID
1583            * @return the number of matching journal content searchs
1584            * @throws SystemException if a system exception occurred
1585            */
1586            public static int countByG_P_L(long groupId, boolean privateLayout,
1587                    long layoutId)
1588                    throws com.liferay.portal.kernel.exception.SystemException {
1589                    return getPersistence().countByG_P_L(groupId, privateLayout, layoutId);
1590            }
1591    
1592            /**
1593            * Returns the number of journal content searchs where groupId = &#63; and privateLayout = &#63; and articleId = &#63;.
1594            *
1595            * @param groupId the group ID
1596            * @param privateLayout the private layout
1597            * @param articleId the article ID
1598            * @return the number of matching journal content searchs
1599            * @throws SystemException if a system exception occurred
1600            */
1601            public static int countByG_P_A(long groupId, boolean privateLayout,
1602                    java.lang.String articleId)
1603                    throws com.liferay.portal.kernel.exception.SystemException {
1604                    return getPersistence().countByG_P_A(groupId, privateLayout, articleId);
1605            }
1606    
1607            /**
1608            * Returns the number of journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63;.
1609            *
1610            * @param groupId the group ID
1611            * @param privateLayout the private layout
1612            * @param layoutId the layout ID
1613            * @param portletId the portlet ID
1614            * @return the number of matching journal content searchs
1615            * @throws SystemException if a system exception occurred
1616            */
1617            public static int countByG_P_L_P(long groupId, boolean privateLayout,
1618                    long layoutId, java.lang.String portletId)
1619                    throws com.liferay.portal.kernel.exception.SystemException {
1620                    return getPersistence()
1621                                       .countByG_P_L_P(groupId, privateLayout, layoutId, portletId);
1622            }
1623    
1624            /**
1625            * Returns the number of journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63; and articleId = &#63;.
1626            *
1627            * @param groupId the group ID
1628            * @param privateLayout the private layout
1629            * @param layoutId the layout ID
1630            * @param portletId the portlet ID
1631            * @param articleId the article ID
1632            * @return the number of matching journal content searchs
1633            * @throws SystemException if a system exception occurred
1634            */
1635            public static int countByG_P_L_P_A(long groupId, boolean privateLayout,
1636                    long layoutId, java.lang.String portletId, java.lang.String articleId)
1637                    throws com.liferay.portal.kernel.exception.SystemException {
1638                    return getPersistence()
1639                                       .countByG_P_L_P_A(groupId, privateLayout, layoutId,
1640                            portletId, articleId);
1641            }
1642    
1643            /**
1644            * Returns the number of journal content searchs.
1645            *
1646            * @return the number of journal content searchs
1647            * @throws SystemException if a system exception occurred
1648            */
1649            public static int countAll()
1650                    throws com.liferay.portal.kernel.exception.SystemException {
1651                    return getPersistence().countAll();
1652            }
1653    
1654            public static JournalContentSearchPersistence getPersistence() {
1655                    if (_persistence == null) {
1656                            _persistence = (JournalContentSearchPersistence)PortalBeanLocatorUtil.locate(JournalContentSearchPersistence.class.getName());
1657    
1658                            ReferenceRegistry.registerReference(JournalContentSearchUtil.class,
1659                                    "_persistence");
1660                    }
1661    
1662                    return _persistence;
1663            }
1664    
1665            /**
1666             * @deprecated
1667             */
1668            public void setPersistence(JournalContentSearchPersistence persistence) {
1669            }
1670    
1671            private static JournalContentSearchPersistence _persistence;
1672    }