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