001    /**
002     * Copyright (c) 2000-2010 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.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.journal.model.JournalContentSearch;
020    
021    /**
022     * The persistence interface for the journal content search service.
023     *
024     * <p>
025     * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface.
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see JournalContentSearchPersistenceImpl
030     * @see JournalContentSearchUtil
031     * @generated
032     */
033    public interface JournalContentSearchPersistence extends BasePersistence<JournalContentSearch> {
034            /**
035            * Caches the journal content search in the entity cache if it is enabled.
036            *
037            * @param journalContentSearch the journal content search to cache
038            */
039            public void cacheResult(
040                    com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch);
041    
042            /**
043            * Caches the journal content searchs in the entity cache if it is enabled.
044            *
045            * @param journalContentSearchs the journal content searchs to cache
046            */
047            public void cacheResult(
048                    java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> journalContentSearchs);
049    
050            /**
051            * Creates a new journal content search with the primary key.
052            *
053            * @param contentSearchId the primary key for the new journal content search
054            * @return the new journal content search
055            */
056            public com.liferay.portlet.journal.model.JournalContentSearch create(
057                    long contentSearchId);
058    
059            /**
060            * Removes the journal content search with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param contentSearchId the primary key of the journal content search to remove
063            * @return the journal content search that was removed
064            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public com.liferay.portlet.journal.model.JournalContentSearch remove(
068                    long contentSearchId)
069                    throws com.liferay.portal.kernel.exception.SystemException,
070                            com.liferay.portlet.journal.NoSuchContentSearchException;
071    
072            public com.liferay.portlet.journal.model.JournalContentSearch updateImpl(
073                    com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
074                    boolean merge)
075                    throws com.liferay.portal.kernel.exception.SystemException;
076    
077            /**
078            * Finds the journal content search with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchContentSearchException} if it could not be found.
079            *
080            * @param contentSearchId the primary key of the journal content search to find
081            * @return the journal content search
082            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found
083            * @throws SystemException if a system exception occurred
084            */
085            public com.liferay.portlet.journal.model.JournalContentSearch findByPrimaryKey(
086                    long contentSearchId)
087                    throws com.liferay.portal.kernel.exception.SystemException,
088                            com.liferay.portlet.journal.NoSuchContentSearchException;
089    
090            /**
091            * Finds the journal content search with the primary key or returns <code>null</code> if it could not be found.
092            *
093            * @param contentSearchId the primary key of the journal content search to find
094            * @return the journal content search, or <code>null</code> if a journal content search with the primary key could not be found
095            * @throws SystemException if a system exception occurred
096            */
097            public com.liferay.portlet.journal.model.JournalContentSearch fetchByPrimaryKey(
098                    long contentSearchId)
099                    throws com.liferay.portal.kernel.exception.SystemException;
100    
101            /**
102            * Finds all the journal content searchs where articleId = &#63;.
103            *
104            * @param articleId the article id to search with
105            * @return the matching journal content searchs
106            * @throws SystemException if a system exception occurred
107            */
108            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(
109                    java.lang.String articleId)
110                    throws com.liferay.portal.kernel.exception.SystemException;
111    
112            /**
113            * Finds a range of all the journal content searchs where articleId = &#63;.
114            *
115            * <p>
116            * 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.
117            * </p>
118            *
119            * @param articleId the article id to search with
120            * @param start the lower bound of the range of journal content searchs to return
121            * @param end the upper bound of the range of journal content searchs to return (not inclusive)
122            * @return the range of matching journal content searchs
123            * @throws SystemException if a system exception occurred
124            */
125            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(
126                    java.lang.String articleId, int start, int end)
127                    throws com.liferay.portal.kernel.exception.SystemException;
128    
129            /**
130            * Finds an ordered range of all the journal content searchs where articleId = &#63;.
131            *
132            * <p>
133            * 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.
134            * </p>
135            *
136            * @param articleId the article id to search with
137            * @param start the lower bound of the range of journal content searchs to return
138            * @param end the upper bound of the range of journal content searchs to return (not inclusive)
139            * @param orderByComparator the comparator to order the results by
140            * @return the ordered range of matching journal content searchs
141            * @throws SystemException if a system exception occurred
142            */
143            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(
144                    java.lang.String articleId, int start, int end,
145                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146                    throws com.liferay.portal.kernel.exception.SystemException;
147    
148            /**
149            * Finds the first journal content search in the ordered set where articleId = &#63;.
150            *
151            * <p>
152            * 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.
153            * </p>
154            *
155            * @param articleId the article id to search with
156            * @param orderByComparator the comparator to order the set by
157            * @return the first matching journal content search
158            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.journal.model.JournalContentSearch findByArticleId_First(
162                    java.lang.String articleId,
163                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164                    throws com.liferay.portal.kernel.exception.SystemException,
165                            com.liferay.portlet.journal.NoSuchContentSearchException;
166    
167            /**
168            * Finds the last journal content search in the ordered set where articleId = &#63;.
169            *
170            * <p>
171            * 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.
172            * </p>
173            *
174            * @param articleId the article id to search with
175            * @param orderByComparator the comparator to order the set by
176            * @return the last matching journal content search
177            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
178            * @throws SystemException if a system exception occurred
179            */
180            public com.liferay.portlet.journal.model.JournalContentSearch findByArticleId_Last(
181                    java.lang.String articleId,
182                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183                    throws com.liferay.portal.kernel.exception.SystemException,
184                            com.liferay.portlet.journal.NoSuchContentSearchException;
185    
186            /**
187            * Finds the journal content searchs before and after the current journal content search in the ordered set where articleId = &#63;.
188            *
189            * <p>
190            * 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.
191            * </p>
192            *
193            * @param contentSearchId the primary key of the current journal content search
194            * @param articleId the article id to search with
195            * @param orderByComparator the comparator to order the set by
196            * @return the previous, current, and next journal content search
197            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found
198            * @throws SystemException if a system exception occurred
199            */
200            public com.liferay.portlet.journal.model.JournalContentSearch[] findByArticleId_PrevAndNext(
201                    long contentSearchId, java.lang.String articleId,
202                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203                    throws com.liferay.portal.kernel.exception.SystemException,
204                            com.liferay.portlet.journal.NoSuchContentSearchException;
205    
206            /**
207            * Finds all the journal content searchs where groupId = &#63; and privateLayout = &#63;.
208            *
209            * @param groupId the group id to search with
210            * @param privateLayout the private layout to search with
211            * @return the matching journal content searchs
212            * @throws SystemException if a system exception occurred
213            */
214            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
215                    long groupId, boolean privateLayout)
216                    throws com.liferay.portal.kernel.exception.SystemException;
217    
218            /**
219            * Finds a range of all the journal content searchs where groupId = &#63; and privateLayout = &#63;.
220            *
221            * <p>
222            * 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.
223            * </p>
224            *
225            * @param groupId the group id to search with
226            * @param privateLayout the private layout to search with
227            * @param start the lower bound of the range of journal content searchs to return
228            * @param end the upper bound of the range of journal content searchs to return (not inclusive)
229            * @return the range of matching journal content searchs
230            * @throws SystemException if a system exception occurred
231            */
232            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
233                    long groupId, boolean privateLayout, int start, int end)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            /**
237            * Finds an ordered range of all the journal content searchs where groupId = &#63; and privateLayout = &#63;.
238            *
239            * <p>
240            * 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.
241            * </p>
242            *
243            * @param groupId the group id to search with
244            * @param privateLayout the private layout to search with
245            * @param start the lower bound of the range of journal content searchs to return
246            * @param end the upper bound of the range of journal content searchs to return (not inclusive)
247            * @param orderByComparator the comparator to order the results by
248            * @return the ordered range of matching journal content searchs
249            * @throws SystemException if a system exception occurred
250            */
251            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
252                    long groupId, boolean privateLayout, int start, int end,
253                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            /**
257            * Finds the first journal content search in the ordered set where groupId = &#63; and privateLayout = &#63;.
258            *
259            * <p>
260            * 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.
261            * </p>
262            *
263            * @param groupId the group id to search with
264            * @param privateLayout the private layout to search with
265            * @param orderByComparator the comparator to order the set by
266            * @return the first matching journal content search
267            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
268            * @throws SystemException if a system exception occurred
269            */
270            public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_First(
271                    long groupId, boolean privateLayout,
272                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273                    throws com.liferay.portal.kernel.exception.SystemException,
274                            com.liferay.portlet.journal.NoSuchContentSearchException;
275    
276            /**
277            * Finds the last journal content search in the ordered set where groupId = &#63; and privateLayout = &#63;.
278            *
279            * <p>
280            * 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.
281            * </p>
282            *
283            * @param groupId the group id to search with
284            * @param privateLayout the private layout to search with
285            * @param orderByComparator the comparator to order the set by
286            * @return the last matching journal content search
287            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
288            * @throws SystemException if a system exception occurred
289            */
290            public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_Last(
291                    long groupId, boolean privateLayout,
292                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293                    throws com.liferay.portal.kernel.exception.SystemException,
294                            com.liferay.portlet.journal.NoSuchContentSearchException;
295    
296            /**
297            * Finds the journal content searchs before and after the current journal content search in the ordered set where groupId = &#63; and privateLayout = &#63;.
298            *
299            * <p>
300            * 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.
301            * </p>
302            *
303            * @param contentSearchId the primary key of the current journal content search
304            * @param groupId the group id to search with
305            * @param privateLayout the private layout to search with
306            * @param orderByComparator the comparator to order the set by
307            * @return the previous, current, and next journal content search
308            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found
309            * @throws SystemException if a system exception occurred
310            */
311            public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_PrevAndNext(
312                    long contentSearchId, long groupId, boolean privateLayout,
313                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
314                    throws com.liferay.portal.kernel.exception.SystemException,
315                            com.liferay.portlet.journal.NoSuchContentSearchException;
316    
317            /**
318            * Finds all the journal content searchs where groupId = &#63; and articleId = &#63;.
319            *
320            * @param groupId the group id to search with
321            * @param articleId the article id to search with
322            * @return the matching journal content searchs
323            * @throws SystemException if a system exception occurred
324            */
325            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
326                    long groupId, java.lang.String articleId)
327                    throws com.liferay.portal.kernel.exception.SystemException;
328    
329            /**
330            * Finds a range of all the journal content searchs where groupId = &#63; and articleId = &#63;.
331            *
332            * <p>
333            * 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.
334            * </p>
335            *
336            * @param groupId the group id to search with
337            * @param articleId the article id to search with
338            * @param start the lower bound of the range of journal content searchs to return
339            * @param end the upper bound of the range of journal content searchs to return (not inclusive)
340            * @return the range of matching journal content searchs
341            * @throws SystemException if a system exception occurred
342            */
343            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
344                    long groupId, java.lang.String articleId, int start, int end)
345                    throws com.liferay.portal.kernel.exception.SystemException;
346    
347            /**
348            * Finds an ordered range of all the journal content searchs where groupId = &#63; and articleId = &#63;.
349            *
350            * <p>
351            * 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.
352            * </p>
353            *
354            * @param groupId the group id to search with
355            * @param articleId the article id to search with
356            * @param start the lower bound of the range of journal content searchs to return
357            * @param end the upper bound of the range of journal content searchs to return (not inclusive)
358            * @param orderByComparator the comparator to order the results by
359            * @return the ordered range of matching journal content searchs
360            * @throws SystemException if a system exception occurred
361            */
362            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
363                    long groupId, java.lang.String articleId, int start, int end,
364                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
365                    throws com.liferay.portal.kernel.exception.SystemException;
366    
367            /**
368            * Finds the first journal content search in the ordered set where groupId = &#63; and articleId = &#63;.
369            *
370            * <p>
371            * 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.
372            * </p>
373            *
374            * @param groupId the group id to search with
375            * @param articleId the article id to search with
376            * @param orderByComparator the comparator to order the set by
377            * @return the first matching journal content search
378            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
379            * @throws SystemException if a system exception occurred
380            */
381            public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_First(
382                    long groupId, java.lang.String articleId,
383                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
384                    throws com.liferay.portal.kernel.exception.SystemException,
385                            com.liferay.portlet.journal.NoSuchContentSearchException;
386    
387            /**
388            * Finds the last journal content search in the ordered set where groupId = &#63; and articleId = &#63;.
389            *
390            * <p>
391            * 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.
392            * </p>
393            *
394            * @param groupId the group id to search with
395            * @param articleId the article id to search with
396            * @param orderByComparator the comparator to order the set by
397            * @return the last matching journal content search
398            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
399            * @throws SystemException if a system exception occurred
400            */
401            public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_Last(
402                    long groupId, java.lang.String articleId,
403                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
404                    throws com.liferay.portal.kernel.exception.SystemException,
405                            com.liferay.portlet.journal.NoSuchContentSearchException;
406    
407            /**
408            * Finds the journal content searchs before and after the current journal content search in the ordered set where groupId = &#63; and articleId = &#63;.
409            *
410            * <p>
411            * 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.
412            * </p>
413            *
414            * @param contentSearchId the primary key of the current journal content search
415            * @param groupId the group id to search with
416            * @param articleId the article id to search with
417            * @param orderByComparator the comparator to order the set by
418            * @return the previous, current, and next journal content search
419            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found
420            * @throws SystemException if a system exception occurred
421            */
422            public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_A_PrevAndNext(
423                    long contentSearchId, long groupId, java.lang.String articleId,
424                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
425                    throws com.liferay.portal.kernel.exception.SystemException,
426                            com.liferay.portlet.journal.NoSuchContentSearchException;
427    
428            /**
429            * Finds all the journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63;.
430            *
431            * @param groupId the group id to search with
432            * @param privateLayout the private layout to search with
433            * @param layoutId the layout id to search with
434            * @return the matching journal content searchs
435            * @throws SystemException if a system exception occurred
436            */
437            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
438                    long groupId, boolean privateLayout, long layoutId)
439                    throws com.liferay.portal.kernel.exception.SystemException;
440    
441            /**
442            * Finds a range of all the journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63;.
443            *
444            * <p>
445            * 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.
446            * </p>
447            *
448            * @param groupId the group id to search with
449            * @param privateLayout the private layout to search with
450            * @param layoutId the layout id to search with
451            * @param start the lower bound of the range of journal content searchs to return
452            * @param end the upper bound of the range of journal content searchs to return (not inclusive)
453            * @return the range of matching journal content searchs
454            * @throws SystemException if a system exception occurred
455            */
456            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
457                    long groupId, boolean privateLayout, long layoutId, int start, int end)
458                    throws com.liferay.portal.kernel.exception.SystemException;
459    
460            /**
461            * Finds an ordered range of all the journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63;.
462            *
463            * <p>
464            * 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.
465            * </p>
466            *
467            * @param groupId the group id to search with
468            * @param privateLayout the private layout to search with
469            * @param layoutId the layout id to search with
470            * @param start the lower bound of the range of journal content searchs to return
471            * @param end the upper bound of the range of journal content searchs to return (not inclusive)
472            * @param orderByComparator the comparator to order the results by
473            * @return the ordered range of matching journal content searchs
474            * @throws SystemException if a system exception occurred
475            */
476            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
477                    long groupId, boolean privateLayout, long layoutId, int start, int end,
478                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
479                    throws com.liferay.portal.kernel.exception.SystemException;
480    
481            /**
482            * Finds the first journal content search in the ordered set where groupId = &#63; and privateLayout = &#63; and layoutId = &#63;.
483            *
484            * <p>
485            * 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.
486            * </p>
487            *
488            * @param groupId the group id to search with
489            * @param privateLayout the private layout to search with
490            * @param layoutId the layout id to search with
491            * @param orderByComparator the comparator to order the set by
492            * @return the first matching journal content search
493            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
494            * @throws SystemException if a system exception occurred
495            */
496            public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_First(
497                    long groupId, boolean privateLayout, long layoutId,
498                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
499                    throws com.liferay.portal.kernel.exception.SystemException,
500                            com.liferay.portlet.journal.NoSuchContentSearchException;
501    
502            /**
503            * Finds the last journal content search in the ordered set where groupId = &#63; and privateLayout = &#63; and layoutId = &#63;.
504            *
505            * <p>
506            * 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.
507            * </p>
508            *
509            * @param groupId the group id to search with
510            * @param privateLayout the private layout to search with
511            * @param layoutId the layout id to search with
512            * @param orderByComparator the comparator to order the set by
513            * @return the last matching journal content search
514            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
515            * @throws SystemException if a system exception occurred
516            */
517            public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_Last(
518                    long groupId, boolean privateLayout, long layoutId,
519                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
520                    throws com.liferay.portal.kernel.exception.SystemException,
521                            com.liferay.portlet.journal.NoSuchContentSearchException;
522    
523            /**
524            * Finds 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;.
525            *
526            * <p>
527            * 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.
528            * </p>
529            *
530            * @param contentSearchId the primary key of the current journal content search
531            * @param groupId the group id to search with
532            * @param privateLayout the private layout to search with
533            * @param layoutId the layout id to search with
534            * @param orderByComparator the comparator to order the set by
535            * @return the previous, current, and next journal content search
536            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found
537            * @throws SystemException if a system exception occurred
538            */
539            public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_PrevAndNext(
540                    long contentSearchId, long groupId, boolean privateLayout,
541                    long layoutId,
542                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
543                    throws com.liferay.portal.kernel.exception.SystemException,
544                            com.liferay.portlet.journal.NoSuchContentSearchException;
545    
546            /**
547            * Finds all the journal content searchs where groupId = &#63; and privateLayout = &#63; and articleId = &#63;.
548            *
549            * @param groupId the group id to search with
550            * @param privateLayout the private layout to search with
551            * @param articleId the article id to search with
552            * @return the matching journal content searchs
553            * @throws SystemException if a system exception occurred
554            */
555            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
556                    long groupId, boolean privateLayout, java.lang.String articleId)
557                    throws com.liferay.portal.kernel.exception.SystemException;
558    
559            /**
560            * Finds a range of all the journal content searchs where groupId = &#63; and privateLayout = &#63; and articleId = &#63;.
561            *
562            * <p>
563            * 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.
564            * </p>
565            *
566            * @param groupId the group id to search with
567            * @param privateLayout the private layout to search with
568            * @param articleId the article id to search with
569            * @param start the lower bound of the range of journal content searchs to return
570            * @param end the upper bound of the range of journal content searchs to return (not inclusive)
571            * @return the range of matching journal content searchs
572            * @throws SystemException if a system exception occurred
573            */
574            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
575                    long groupId, boolean privateLayout, java.lang.String articleId,
576                    int start, int end)
577                    throws com.liferay.portal.kernel.exception.SystemException;
578    
579            /**
580            * Finds an ordered range of all the journal content searchs where groupId = &#63; and privateLayout = &#63; and articleId = &#63;.
581            *
582            * <p>
583            * 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.
584            * </p>
585            *
586            * @param groupId the group id to search with
587            * @param privateLayout the private layout to search with
588            * @param articleId the article id to search with
589            * @param start the lower bound of the range of journal content searchs to return
590            * @param end the upper bound of the range of journal content searchs to return (not inclusive)
591            * @param orderByComparator the comparator to order the results by
592            * @return the ordered range of matching journal content searchs
593            * @throws SystemException if a system exception occurred
594            */
595            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
596                    long groupId, boolean privateLayout, java.lang.String articleId,
597                    int start, int end,
598                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
599                    throws com.liferay.portal.kernel.exception.SystemException;
600    
601            /**
602            * Finds the first journal content search in the ordered set where groupId = &#63; and privateLayout = &#63; and articleId = &#63;.
603            *
604            * <p>
605            * 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.
606            * </p>
607            *
608            * @param groupId the group id to search with
609            * @param privateLayout the private layout to search with
610            * @param articleId the article id to search with
611            * @param orderByComparator the comparator to order the set by
612            * @return the first matching journal content search
613            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
614            * @throws SystemException if a system exception occurred
615            */
616            public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_First(
617                    long groupId, boolean privateLayout, java.lang.String articleId,
618                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
619                    throws com.liferay.portal.kernel.exception.SystemException,
620                            com.liferay.portlet.journal.NoSuchContentSearchException;
621    
622            /**
623            * Finds the last journal content search in the ordered set where groupId = &#63; and privateLayout = &#63; and articleId = &#63;.
624            *
625            * <p>
626            * 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.
627            * </p>
628            *
629            * @param groupId the group id to search with
630            * @param privateLayout the private layout to search with
631            * @param articleId the article id to search with
632            * @param orderByComparator the comparator to order the set by
633            * @return the last matching journal content search
634            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
635            * @throws SystemException if a system exception occurred
636            */
637            public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_Last(
638                    long groupId, boolean privateLayout, java.lang.String articleId,
639                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
640                    throws com.liferay.portal.kernel.exception.SystemException,
641                            com.liferay.portlet.journal.NoSuchContentSearchException;
642    
643            /**
644            * Finds 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;.
645            *
646            * <p>
647            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
648            * </p>
649            *
650            * @param contentSearchId the primary key of the current journal content search
651            * @param groupId the group id to search with
652            * @param privateLayout the private layout to search with
653            * @param articleId the article id to search with
654            * @param orderByComparator the comparator to order the set by
655            * @return the previous, current, and next journal content search
656            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found
657            * @throws SystemException if a system exception occurred
658            */
659            public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_A_PrevAndNext(
660                    long contentSearchId, long groupId, boolean privateLayout,
661                    java.lang.String articleId,
662                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
663                    throws com.liferay.portal.kernel.exception.SystemException,
664                            com.liferay.portlet.journal.NoSuchContentSearchException;
665    
666            /**
667            * Finds all the journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63;.
668            *
669            * @param groupId the group id to search with
670            * @param privateLayout the private layout to search with
671            * @param layoutId the layout id to search with
672            * @param portletId the portlet id to search with
673            * @return the matching journal content searchs
674            * @throws SystemException if a system exception occurred
675            */
676            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
677                    long groupId, boolean privateLayout, long layoutId,
678                    java.lang.String portletId)
679                    throws com.liferay.portal.kernel.exception.SystemException;
680    
681            /**
682            * Finds a range of all the journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63;.
683            *
684            * <p>
685            * 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.
686            * </p>
687            *
688            * @param groupId the group id to search with
689            * @param privateLayout the private layout to search with
690            * @param layoutId the layout id to search with
691            * @param portletId the portlet id to search with
692            * @param start the lower bound of the range of journal content searchs to return
693            * @param end the upper bound of the range of journal content searchs to return (not inclusive)
694            * @return the range of matching journal content searchs
695            * @throws SystemException if a system exception occurred
696            */
697            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
698                    long groupId, boolean privateLayout, long layoutId,
699                    java.lang.String portletId, int start, int end)
700                    throws com.liferay.portal.kernel.exception.SystemException;
701    
702            /**
703            * Finds an ordered range of all the journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63;.
704            *
705            * <p>
706            * 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.
707            * </p>
708            *
709            * @param groupId the group id to search with
710            * @param privateLayout the private layout to search with
711            * @param layoutId the layout id to search with
712            * @param portletId the portlet id to search with
713            * @param start the lower bound of the range of journal content searchs to return
714            * @param end the upper bound of the range of journal content searchs to return (not inclusive)
715            * @param orderByComparator the comparator to order the results by
716            * @return the ordered range of matching journal content searchs
717            * @throws SystemException if a system exception occurred
718            */
719            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
720                    long groupId, boolean privateLayout, long layoutId,
721                    java.lang.String portletId, int start, int end,
722                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
723                    throws com.liferay.portal.kernel.exception.SystemException;
724    
725            /**
726            * Finds the first journal content search in the ordered set where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63;.
727            *
728            * <p>
729            * 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.
730            * </p>
731            *
732            * @param groupId the group id to search with
733            * @param privateLayout the private layout to search with
734            * @param layoutId the layout id to search with
735            * @param portletId the portlet id to search with
736            * @param orderByComparator the comparator to order the set by
737            * @return the first matching journal content search
738            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
739            * @throws SystemException if a system exception occurred
740            */
741            public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_First(
742                    long groupId, boolean privateLayout, long layoutId,
743                    java.lang.String portletId,
744                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
745                    throws com.liferay.portal.kernel.exception.SystemException,
746                            com.liferay.portlet.journal.NoSuchContentSearchException;
747    
748            /**
749            * Finds the last journal content search in the ordered set where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63;.
750            *
751            * <p>
752            * 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.
753            * </p>
754            *
755            * @param groupId the group id to search with
756            * @param privateLayout the private layout to search with
757            * @param layoutId the layout id to search with
758            * @param portletId the portlet id to search with
759            * @param orderByComparator the comparator to order the set by
760            * @return the last matching journal content search
761            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
762            * @throws SystemException if a system exception occurred
763            */
764            public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_Last(
765                    long groupId, boolean privateLayout, long layoutId,
766                    java.lang.String portletId,
767                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
768                    throws com.liferay.portal.kernel.exception.SystemException,
769                            com.liferay.portlet.journal.NoSuchContentSearchException;
770    
771            /**
772            * Finds 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;.
773            *
774            * <p>
775            * 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.
776            * </p>
777            *
778            * @param contentSearchId the primary key of the current journal content search
779            * @param groupId the group id to search with
780            * @param privateLayout the private layout to search with
781            * @param layoutId the layout id to search with
782            * @param portletId the portlet id to search with
783            * @param orderByComparator the comparator to order the set by
784            * @return the previous, current, and next journal content search
785            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found
786            * @throws SystemException if a system exception occurred
787            */
788            public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_P_PrevAndNext(
789                    long contentSearchId, long groupId, boolean privateLayout,
790                    long layoutId, java.lang.String portletId,
791                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
792                    throws com.liferay.portal.kernel.exception.SystemException,
793                            com.liferay.portlet.journal.NoSuchContentSearchException;
794    
795            /**
796            * Finds 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.
797            *
798            * @param groupId the group id to search with
799            * @param privateLayout the private layout to search with
800            * @param layoutId the layout id to search with
801            * @param portletId the portlet id to search with
802            * @param articleId the article id to search with
803            * @return the matching journal content search
804            * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found
805            * @throws SystemException if a system exception occurred
806            */
807            public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_A(
808                    long groupId, boolean privateLayout, long layoutId,
809                    java.lang.String portletId, java.lang.String articleId)
810                    throws com.liferay.portal.kernel.exception.SystemException,
811                            com.liferay.portlet.journal.NoSuchContentSearchException;
812    
813            /**
814            * Finds 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.
815            *
816            * @param groupId the group id to search with
817            * @param privateLayout the private layout to search with
818            * @param layoutId the layout id to search with
819            * @param portletId the portlet id to search with
820            * @param articleId the article id to search with
821            * @return the matching journal content search, or <code>null</code> if a matching journal content search could not be found
822            * @throws SystemException if a system exception occurred
823            */
824            public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
825                    long groupId, boolean privateLayout, long layoutId,
826                    java.lang.String portletId, java.lang.String articleId)
827                    throws com.liferay.portal.kernel.exception.SystemException;
828    
829            /**
830            * Finds 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.
831            *
832            * @param groupId the group id to search with
833            * @param privateLayout the private layout to search with
834            * @param layoutId the layout id to search with
835            * @param portletId the portlet id to search with
836            * @param articleId the article id to search with
837            * @return the matching journal content search, or <code>null</code> if a matching journal content search could not be found
838            * @throws SystemException if a system exception occurred
839            */
840            public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
841                    long groupId, boolean privateLayout, long layoutId,
842                    java.lang.String portletId, java.lang.String articleId,
843                    boolean retrieveFromCache)
844                    throws com.liferay.portal.kernel.exception.SystemException;
845    
846            /**
847            * Finds all the journal content searchs.
848            *
849            * @return the journal content searchs
850            * @throws SystemException if a system exception occurred
851            */
852            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll()
853                    throws com.liferay.portal.kernel.exception.SystemException;
854    
855            /**
856            * Finds a range of all the journal content searchs.
857            *
858            * <p>
859            * 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.
860            * </p>
861            *
862            * @param start the lower bound of the range of journal content searchs to return
863            * @param end the upper bound of the range of journal content searchs to return (not inclusive)
864            * @return the range of journal content searchs
865            * @throws SystemException if a system exception occurred
866            */
867            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
868                    int start, int end)
869                    throws com.liferay.portal.kernel.exception.SystemException;
870    
871            /**
872            * Finds an ordered range of all the journal content searchs.
873            *
874            * <p>
875            * 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.
876            * </p>
877            *
878            * @param start the lower bound of the range of journal content searchs to return
879            * @param end the upper bound of the range of journal content searchs to return (not inclusive)
880            * @param orderByComparator the comparator to order the results by
881            * @return the ordered range of journal content searchs
882            * @throws SystemException if a system exception occurred
883            */
884            public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
885                    int start, int end,
886                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
887                    throws com.liferay.portal.kernel.exception.SystemException;
888    
889            /**
890            * Removes all the journal content searchs where articleId = &#63; from the database.
891            *
892            * @param articleId the article id to search with
893            * @throws SystemException if a system exception occurred
894            */
895            public void removeByArticleId(java.lang.String articleId)
896                    throws com.liferay.portal.kernel.exception.SystemException;
897    
898            /**
899            * Removes all the journal content searchs where groupId = &#63; and privateLayout = &#63; from the database.
900            *
901            * @param groupId the group id to search with
902            * @param privateLayout the private layout to search with
903            * @throws SystemException if a system exception occurred
904            */
905            public void removeByG_P(long groupId, boolean privateLayout)
906                    throws com.liferay.portal.kernel.exception.SystemException;
907    
908            /**
909            * Removes all the journal content searchs where groupId = &#63; and articleId = &#63; from the database.
910            *
911            * @param groupId the group id to search with
912            * @param articleId the article id to search with
913            * @throws SystemException if a system exception occurred
914            */
915            public void removeByG_A(long groupId, java.lang.String articleId)
916                    throws com.liferay.portal.kernel.exception.SystemException;
917    
918            /**
919            * Removes all the journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; from the database.
920            *
921            * @param groupId the group id to search with
922            * @param privateLayout the private layout to search with
923            * @param layoutId the layout id to search with
924            * @throws SystemException if a system exception occurred
925            */
926            public void removeByG_P_L(long groupId, boolean privateLayout, long layoutId)
927                    throws com.liferay.portal.kernel.exception.SystemException;
928    
929            /**
930            * Removes all the journal content searchs where groupId = &#63; and privateLayout = &#63; and articleId = &#63; from the database.
931            *
932            * @param groupId the group id to search with
933            * @param privateLayout the private layout to search with
934            * @param articleId the article id to search with
935            * @throws SystemException if a system exception occurred
936            */
937            public void removeByG_P_A(long groupId, boolean privateLayout,
938                    java.lang.String articleId)
939                    throws com.liferay.portal.kernel.exception.SystemException;
940    
941            /**
942            * Removes all the journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63; from the database.
943            *
944            * @param groupId the group id to search with
945            * @param privateLayout the private layout to search with
946            * @param layoutId the layout id to search with
947            * @param portletId the portlet id to search with
948            * @throws SystemException if a system exception occurred
949            */
950            public void removeByG_P_L_P(long groupId, boolean privateLayout,
951                    long layoutId, java.lang.String portletId)
952                    throws com.liferay.portal.kernel.exception.SystemException;
953    
954            /**
955            * Removes the journal content search where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63; and articleId = &#63; from the database.
956            *
957            * @param groupId the group id to search with
958            * @param privateLayout the private layout to search with
959            * @param layoutId the layout id to search with
960            * @param portletId the portlet id to search with
961            * @param articleId the article id to search with
962            * @throws SystemException if a system exception occurred
963            */
964            public void removeByG_P_L_P_A(long groupId, boolean privateLayout,
965                    long layoutId, java.lang.String portletId, java.lang.String articleId)
966                    throws com.liferay.portal.kernel.exception.SystemException,
967                            com.liferay.portlet.journal.NoSuchContentSearchException;
968    
969            /**
970            * Removes all the journal content searchs from the database.
971            *
972            * @throws SystemException if a system exception occurred
973            */
974            public void removeAll()
975                    throws com.liferay.portal.kernel.exception.SystemException;
976    
977            /**
978            * Counts all the journal content searchs where articleId = &#63;.
979            *
980            * @param articleId the article id to search with
981            * @return the number of matching journal content searchs
982            * @throws SystemException if a system exception occurred
983            */
984            public int countByArticleId(java.lang.String articleId)
985                    throws com.liferay.portal.kernel.exception.SystemException;
986    
987            /**
988            * Counts all the journal content searchs where groupId = &#63; and privateLayout = &#63;.
989            *
990            * @param groupId the group id to search with
991            * @param privateLayout the private layout to search with
992            * @return the number of matching journal content searchs
993            * @throws SystemException if a system exception occurred
994            */
995            public int countByG_P(long groupId, boolean privateLayout)
996                    throws com.liferay.portal.kernel.exception.SystemException;
997    
998            /**
999            * Counts all the journal content searchs where groupId = &#63; and articleId = &#63;.
1000            *
1001            * @param groupId the group id to search with
1002            * @param articleId the article id to search with
1003            * @return the number of matching journal content searchs
1004            * @throws SystemException if a system exception occurred
1005            */
1006            public int countByG_A(long groupId, java.lang.String articleId)
1007                    throws com.liferay.portal.kernel.exception.SystemException;
1008    
1009            /**
1010            * Counts all the journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63;.
1011            *
1012            * @param groupId the group id to search with
1013            * @param privateLayout the private layout to search with
1014            * @param layoutId the layout id to search with
1015            * @return the number of matching journal content searchs
1016            * @throws SystemException if a system exception occurred
1017            */
1018            public int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
1019                    throws com.liferay.portal.kernel.exception.SystemException;
1020    
1021            /**
1022            * Counts all the journal content searchs where groupId = &#63; and privateLayout = &#63; and articleId = &#63;.
1023            *
1024            * @param groupId the group id to search with
1025            * @param privateLayout the private layout to search with
1026            * @param articleId the article id to search with
1027            * @return the number of matching journal content searchs
1028            * @throws SystemException if a system exception occurred
1029            */
1030            public int countByG_P_A(long groupId, boolean privateLayout,
1031                    java.lang.String articleId)
1032                    throws com.liferay.portal.kernel.exception.SystemException;
1033    
1034            /**
1035            * Counts all the journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63;.
1036            *
1037            * @param groupId the group id to search with
1038            * @param privateLayout the private layout to search with
1039            * @param layoutId the layout id to search with
1040            * @param portletId the portlet id to search with
1041            * @return the number of matching journal content searchs
1042            * @throws SystemException if a system exception occurred
1043            */
1044            public int countByG_P_L_P(long groupId, boolean privateLayout,
1045                    long layoutId, java.lang.String portletId)
1046                    throws com.liferay.portal.kernel.exception.SystemException;
1047    
1048            /**
1049            * Counts all the journal content searchs where groupId = &#63; and privateLayout = &#63; and layoutId = &#63; and portletId = &#63; and articleId = &#63;.
1050            *
1051            * @param groupId the group id to search with
1052            * @param privateLayout the private layout to search with
1053            * @param layoutId the layout id to search with
1054            * @param portletId the portlet id to search with
1055            * @param articleId the article id to search with
1056            * @return the number of matching journal content searchs
1057            * @throws SystemException if a system exception occurred
1058            */
1059            public int countByG_P_L_P_A(long groupId, boolean privateLayout,
1060                    long layoutId, java.lang.String portletId, java.lang.String articleId)
1061                    throws com.liferay.portal.kernel.exception.SystemException;
1062    
1063            /**
1064            * Counts all the journal content searchs.
1065            *
1066            * @return the number of journal content searchs
1067            * @throws SystemException if a system exception occurred
1068            */
1069            public int countAll()
1070                    throws com.liferay.portal.kernel.exception.SystemException;
1071    }