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