001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.journal.model.JournalFolder;
022    
023    /**
024     * The persistence interface for the journal folder 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 JournalFolderPersistenceImpl
032     * @see JournalFolderUtil
033     * @generated
034     */
035    @ProviderType
036    public interface JournalFolderPersistence extends BasePersistence<JournalFolder> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * Never modify or reference this interface directly. Always use {@link JournalFolderUtil} to access the journal folder persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
041             */
042    
043            /**
044            * Returns all the journal folders where uuid = &#63;.
045            *
046            * @param uuid the uuid
047            * @return the matching journal folders
048            * @throws SystemException if a system exception occurred
049            */
050            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByUuid(
051                    java.lang.String uuid)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            /**
055            * Returns a range of all the journal folders where uuid = &#63;.
056            *
057            * <p>
058            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
059            * </p>
060            *
061            * @param uuid the uuid
062            * @param start the lower bound of the range of journal folders
063            * @param end the upper bound of the range of journal folders (not inclusive)
064            * @return the range of matching journal folders
065            * @throws SystemException if a system exception occurred
066            */
067            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByUuid(
068                    java.lang.String uuid, int start, int end)
069                    throws com.liferay.portal.kernel.exception.SystemException;
070    
071            /**
072            * Returns an ordered range of all the journal folders where uuid = &#63;.
073            *
074            * <p>
075            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
076            * </p>
077            *
078            * @param uuid the uuid
079            * @param start the lower bound of the range of journal folders
080            * @param end the upper bound of the range of journal folders (not inclusive)
081            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
082            * @return the ordered range of matching journal folders
083            * @throws SystemException if a system exception occurred
084            */
085            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByUuid(
086                    java.lang.String uuid, int start, int end,
087                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            /**
091            * Returns the first journal folder in the ordered set where uuid = &#63;.
092            *
093            * @param uuid the uuid
094            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
095            * @return the first matching journal folder
096            * @throws com.liferay.portlet.journal.NoSuchFolderException if a matching journal folder could not be found
097            * @throws SystemException if a system exception occurred
098            */
099            public com.liferay.portlet.journal.model.JournalFolder findByUuid_First(
100                    java.lang.String uuid,
101                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102                    throws com.liferay.portal.kernel.exception.SystemException,
103                            com.liferay.portlet.journal.NoSuchFolderException;
104    
105            /**
106            * Returns the first journal folder in the ordered set where uuid = &#63;.
107            *
108            * @param uuid the uuid
109            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
110            * @return the first matching journal folder, or <code>null</code> if a matching journal folder could not be found
111            * @throws SystemException if a system exception occurred
112            */
113            public com.liferay.portlet.journal.model.JournalFolder fetchByUuid_First(
114                    java.lang.String uuid,
115                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns the last journal folder in the ordered set where uuid = &#63;.
120            *
121            * @param uuid the uuid
122            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
123            * @return the last matching journal folder
124            * @throws com.liferay.portlet.journal.NoSuchFolderException if a matching journal folder could not be found
125            * @throws SystemException if a system exception occurred
126            */
127            public com.liferay.portlet.journal.model.JournalFolder findByUuid_Last(
128                    java.lang.String uuid,
129                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130                    throws com.liferay.portal.kernel.exception.SystemException,
131                            com.liferay.portlet.journal.NoSuchFolderException;
132    
133            /**
134            * Returns the last journal folder in the ordered set where uuid = &#63;.
135            *
136            * @param uuid the uuid
137            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
138            * @return the last matching journal folder, or <code>null</code> if a matching journal folder could not be found
139            * @throws SystemException if a system exception occurred
140            */
141            public com.liferay.portlet.journal.model.JournalFolder fetchByUuid_Last(
142                    java.lang.String uuid,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            /**
147            * Returns the journal folders before and after the current journal folder in the ordered set where uuid = &#63;.
148            *
149            * @param folderId the primary key of the current journal folder
150            * @param uuid the uuid
151            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
152            * @return the previous, current, and next journal folder
153            * @throws com.liferay.portlet.journal.NoSuchFolderException if a journal folder with the primary key could not be found
154            * @throws SystemException if a system exception occurred
155            */
156            public com.liferay.portlet.journal.model.JournalFolder[] findByUuid_PrevAndNext(
157                    long folderId, java.lang.String uuid,
158                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159                    throws com.liferay.portal.kernel.exception.SystemException,
160                            com.liferay.portlet.journal.NoSuchFolderException;
161    
162            /**
163            * Removes all the journal folders where uuid = &#63; from the database.
164            *
165            * @param uuid the uuid
166            * @throws SystemException if a system exception occurred
167            */
168            public void removeByUuid(java.lang.String uuid)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            /**
172            * Returns the number of journal folders where uuid = &#63;.
173            *
174            * @param uuid the uuid
175            * @return the number of matching journal folders
176            * @throws SystemException if a system exception occurred
177            */
178            public int countByUuid(java.lang.String uuid)
179                    throws com.liferay.portal.kernel.exception.SystemException;
180    
181            /**
182            * Returns the journal folder where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchFolderException} if it could not be found.
183            *
184            * @param uuid the uuid
185            * @param groupId the group ID
186            * @return the matching journal folder
187            * @throws com.liferay.portlet.journal.NoSuchFolderException if a matching journal folder could not be found
188            * @throws SystemException if a system exception occurred
189            */
190            public com.liferay.portlet.journal.model.JournalFolder findByUUID_G(
191                    java.lang.String uuid, long groupId)
192                    throws com.liferay.portal.kernel.exception.SystemException,
193                            com.liferay.portlet.journal.NoSuchFolderException;
194    
195            /**
196            * Returns the journal folder where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
197            *
198            * @param uuid the uuid
199            * @param groupId the group ID
200            * @return the matching journal folder, or <code>null</code> if a matching journal folder could not be found
201            * @throws SystemException if a system exception occurred
202            */
203            public com.liferay.portlet.journal.model.JournalFolder fetchByUUID_G(
204                    java.lang.String uuid, long groupId)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            /**
208            * Returns the journal folder where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
209            *
210            * @param uuid the uuid
211            * @param groupId the group ID
212            * @param retrieveFromCache whether to use the finder cache
213            * @return the matching journal folder, or <code>null</code> if a matching journal folder could not be found
214            * @throws SystemException if a system exception occurred
215            */
216            public com.liferay.portlet.journal.model.JournalFolder fetchByUUID_G(
217                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
218                    throws com.liferay.portal.kernel.exception.SystemException;
219    
220            /**
221            * Removes the journal folder where uuid = &#63; and groupId = &#63; from the database.
222            *
223            * @param uuid the uuid
224            * @param groupId the group ID
225            * @return the journal folder that was removed
226            * @throws SystemException if a system exception occurred
227            */
228            public com.liferay.portlet.journal.model.JournalFolder removeByUUID_G(
229                    java.lang.String uuid, long groupId)
230                    throws com.liferay.portal.kernel.exception.SystemException,
231                            com.liferay.portlet.journal.NoSuchFolderException;
232    
233            /**
234            * Returns the number of journal folders where uuid = &#63; and groupId = &#63;.
235            *
236            * @param uuid the uuid
237            * @param groupId the group ID
238            * @return the number of matching journal folders
239            * @throws SystemException if a system exception occurred
240            */
241            public int countByUUID_G(java.lang.String uuid, long groupId)
242                    throws com.liferay.portal.kernel.exception.SystemException;
243    
244            /**
245            * Returns all the journal folders where uuid = &#63; and companyId = &#63;.
246            *
247            * @param uuid the uuid
248            * @param companyId the company ID
249            * @return the matching journal folders
250            * @throws SystemException if a system exception occurred
251            */
252            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByUuid_C(
253                    java.lang.String uuid, long companyId)
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            /**
257            * Returns a range of all the journal folders where uuid = &#63; and companyId = &#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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
261            * </p>
262            *
263            * @param uuid the uuid
264            * @param companyId the company ID
265            * @param start the lower bound of the range of journal folders
266            * @param end the upper bound of the range of journal folders (not inclusive)
267            * @return the range of matching journal folders
268            * @throws SystemException if a system exception occurred
269            */
270            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByUuid_C(
271                    java.lang.String uuid, long companyId, int start, int end)
272                    throws com.liferay.portal.kernel.exception.SystemException;
273    
274            /**
275            * Returns an ordered range of all the journal folders where uuid = &#63; and companyId = &#63;.
276            *
277            * <p>
278            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
279            * </p>
280            *
281            * @param uuid the uuid
282            * @param companyId the company ID
283            * @param start the lower bound of the range of journal folders
284            * @param end the upper bound of the range of journal folders (not inclusive)
285            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
286            * @return the ordered range of matching journal folders
287            * @throws SystemException if a system exception occurred
288            */
289            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByUuid_C(
290                    java.lang.String uuid, long companyId, int start, int end,
291                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292                    throws com.liferay.portal.kernel.exception.SystemException;
293    
294            /**
295            * Returns the first journal folder in the ordered set where uuid = &#63; and companyId = &#63;.
296            *
297            * @param uuid the uuid
298            * @param companyId the company ID
299            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
300            * @return the first matching journal folder
301            * @throws com.liferay.portlet.journal.NoSuchFolderException if a matching journal folder could not be found
302            * @throws SystemException if a system exception occurred
303            */
304            public com.liferay.portlet.journal.model.JournalFolder findByUuid_C_First(
305                    java.lang.String uuid, long companyId,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException,
308                            com.liferay.portlet.journal.NoSuchFolderException;
309    
310            /**
311            * Returns the first journal folder in the ordered set where uuid = &#63; and companyId = &#63;.
312            *
313            * @param uuid the uuid
314            * @param companyId the company ID
315            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
316            * @return the first matching journal folder, or <code>null</code> if a matching journal folder could not be found
317            * @throws SystemException if a system exception occurred
318            */
319            public com.liferay.portlet.journal.model.JournalFolder fetchByUuid_C_First(
320                    java.lang.String uuid, long companyId,
321                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
322                    throws com.liferay.portal.kernel.exception.SystemException;
323    
324            /**
325            * Returns the last journal folder in the ordered set where uuid = &#63; and companyId = &#63;.
326            *
327            * @param uuid the uuid
328            * @param companyId the company ID
329            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
330            * @return the last matching journal folder
331            * @throws com.liferay.portlet.journal.NoSuchFolderException if a matching journal folder could not be found
332            * @throws SystemException if a system exception occurred
333            */
334            public com.liferay.portlet.journal.model.JournalFolder findByUuid_C_Last(
335                    java.lang.String uuid, long companyId,
336                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
337                    throws com.liferay.portal.kernel.exception.SystemException,
338                            com.liferay.portlet.journal.NoSuchFolderException;
339    
340            /**
341            * Returns the last journal folder in the ordered set where uuid = &#63; and companyId = &#63;.
342            *
343            * @param uuid the uuid
344            * @param companyId the company ID
345            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
346            * @return the last matching journal folder, or <code>null</code> if a matching journal folder could not be found
347            * @throws SystemException if a system exception occurred
348            */
349            public com.liferay.portlet.journal.model.JournalFolder fetchByUuid_C_Last(
350                    java.lang.String uuid, long companyId,
351                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
352                    throws com.liferay.portal.kernel.exception.SystemException;
353    
354            /**
355            * Returns the journal folders before and after the current journal folder in the ordered set where uuid = &#63; and companyId = &#63;.
356            *
357            * @param folderId the primary key of the current journal folder
358            * @param uuid the uuid
359            * @param companyId the company ID
360            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
361            * @return the previous, current, and next journal folder
362            * @throws com.liferay.portlet.journal.NoSuchFolderException if a journal folder with the primary key could not be found
363            * @throws SystemException if a system exception occurred
364            */
365            public com.liferay.portlet.journal.model.JournalFolder[] findByUuid_C_PrevAndNext(
366                    long folderId, java.lang.String uuid, long companyId,
367                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
368                    throws com.liferay.portal.kernel.exception.SystemException,
369                            com.liferay.portlet.journal.NoSuchFolderException;
370    
371            /**
372            * Removes all the journal folders where uuid = &#63; and companyId = &#63; from the database.
373            *
374            * @param uuid the uuid
375            * @param companyId the company ID
376            * @throws SystemException if a system exception occurred
377            */
378            public void removeByUuid_C(java.lang.String uuid, long companyId)
379                    throws com.liferay.portal.kernel.exception.SystemException;
380    
381            /**
382            * Returns the number of journal folders where uuid = &#63; and companyId = &#63;.
383            *
384            * @param uuid the uuid
385            * @param companyId the company ID
386            * @return the number of matching journal folders
387            * @throws SystemException if a system exception occurred
388            */
389            public int countByUuid_C(java.lang.String uuid, long companyId)
390                    throws com.liferay.portal.kernel.exception.SystemException;
391    
392            /**
393            * Returns all the journal folders where groupId = &#63;.
394            *
395            * @param groupId the group ID
396            * @return the matching journal folders
397            * @throws SystemException if a system exception occurred
398            */
399            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByGroupId(
400                    long groupId)
401                    throws com.liferay.portal.kernel.exception.SystemException;
402    
403            /**
404            * Returns a range of all the journal folders where groupId = &#63;.
405            *
406            * <p>
407            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
408            * </p>
409            *
410            * @param groupId the group ID
411            * @param start the lower bound of the range of journal folders
412            * @param end the upper bound of the range of journal folders (not inclusive)
413            * @return the range of matching journal folders
414            * @throws SystemException if a system exception occurred
415            */
416            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByGroupId(
417                    long groupId, int start, int end)
418                    throws com.liferay.portal.kernel.exception.SystemException;
419    
420            /**
421            * Returns an ordered range of all the journal folders where groupId = &#63;.
422            *
423            * <p>
424            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
425            * </p>
426            *
427            * @param groupId the group ID
428            * @param start the lower bound of the range of journal folders
429            * @param end the upper bound of the range of journal folders (not inclusive)
430            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
431            * @return the ordered range of matching journal folders
432            * @throws SystemException if a system exception occurred
433            */
434            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByGroupId(
435                    long groupId, int start, int end,
436                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
437                    throws com.liferay.portal.kernel.exception.SystemException;
438    
439            /**
440            * Returns the first journal folder in the ordered set where groupId = &#63;.
441            *
442            * @param groupId the group ID
443            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
444            * @return the first matching journal folder
445            * @throws com.liferay.portlet.journal.NoSuchFolderException if a matching journal folder could not be found
446            * @throws SystemException if a system exception occurred
447            */
448            public com.liferay.portlet.journal.model.JournalFolder findByGroupId_First(
449                    long groupId,
450                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
451                    throws com.liferay.portal.kernel.exception.SystemException,
452                            com.liferay.portlet.journal.NoSuchFolderException;
453    
454            /**
455            * Returns the first journal folder in the ordered set where groupId = &#63;.
456            *
457            * @param groupId the group ID
458            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
459            * @return the first matching journal folder, or <code>null</code> if a matching journal folder could not be found
460            * @throws SystemException if a system exception occurred
461            */
462            public com.liferay.portlet.journal.model.JournalFolder fetchByGroupId_First(
463                    long groupId,
464                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
465                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * Returns the last journal folder in the ordered set where groupId = &#63;.
469            *
470            * @param groupId the group ID
471            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
472            * @return the last matching journal folder
473            * @throws com.liferay.portlet.journal.NoSuchFolderException if a matching journal folder could not be found
474            * @throws SystemException if a system exception occurred
475            */
476            public com.liferay.portlet.journal.model.JournalFolder findByGroupId_Last(
477                    long groupId,
478                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
479                    throws com.liferay.portal.kernel.exception.SystemException,
480                            com.liferay.portlet.journal.NoSuchFolderException;
481    
482            /**
483            * Returns the last journal folder in the ordered set where groupId = &#63;.
484            *
485            * @param groupId the group ID
486            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
487            * @return the last matching journal folder, or <code>null</code> if a matching journal folder could not be found
488            * @throws SystemException if a system exception occurred
489            */
490            public com.liferay.portlet.journal.model.JournalFolder fetchByGroupId_Last(
491                    long groupId,
492                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
493                    throws com.liferay.portal.kernel.exception.SystemException;
494    
495            /**
496            * Returns the journal folders before and after the current journal folder in the ordered set where groupId = &#63;.
497            *
498            * @param folderId the primary key of the current journal folder
499            * @param groupId the group ID
500            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
501            * @return the previous, current, and next journal folder
502            * @throws com.liferay.portlet.journal.NoSuchFolderException if a journal folder with the primary key could not be found
503            * @throws SystemException if a system exception occurred
504            */
505            public com.liferay.portlet.journal.model.JournalFolder[] findByGroupId_PrevAndNext(
506                    long folderId, long groupId,
507                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
508                    throws com.liferay.portal.kernel.exception.SystemException,
509                            com.liferay.portlet.journal.NoSuchFolderException;
510    
511            /**
512            * Returns all the journal folders that the user has permission to view where groupId = &#63;.
513            *
514            * @param groupId the group ID
515            * @return the matching journal folders that the user has permission to view
516            * @throws SystemException if a system exception occurred
517            */
518            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> filterFindByGroupId(
519                    long groupId)
520                    throws com.liferay.portal.kernel.exception.SystemException;
521    
522            /**
523            * Returns a range of all the journal folders that the user has permission to view where groupId = &#63;.
524            *
525            * <p>
526            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
527            * </p>
528            *
529            * @param groupId the group ID
530            * @param start the lower bound of the range of journal folders
531            * @param end the upper bound of the range of journal folders (not inclusive)
532            * @return the range of matching journal folders that the user has permission to view
533            * @throws SystemException if a system exception occurred
534            */
535            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> filterFindByGroupId(
536                    long groupId, int start, int end)
537                    throws com.liferay.portal.kernel.exception.SystemException;
538    
539            /**
540            * Returns an ordered range of all the journal folders that the user has permissions to view where groupId = &#63;.
541            *
542            * <p>
543            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
544            * </p>
545            *
546            * @param groupId the group ID
547            * @param start the lower bound of the range of journal folders
548            * @param end the upper bound of the range of journal folders (not inclusive)
549            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
550            * @return the ordered range of matching journal folders that the user has permission to view
551            * @throws SystemException if a system exception occurred
552            */
553            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> filterFindByGroupId(
554                    long groupId, int start, int end,
555                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
556                    throws com.liferay.portal.kernel.exception.SystemException;
557    
558            /**
559            * Returns the journal folders before and after the current journal folder in the ordered set of journal folders that the user has permission to view where groupId = &#63;.
560            *
561            * @param folderId the primary key of the current journal folder
562            * @param groupId the group ID
563            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
564            * @return the previous, current, and next journal folder
565            * @throws com.liferay.portlet.journal.NoSuchFolderException if a journal folder with the primary key could not be found
566            * @throws SystemException if a system exception occurred
567            */
568            public com.liferay.portlet.journal.model.JournalFolder[] filterFindByGroupId_PrevAndNext(
569                    long folderId, long groupId,
570                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
571                    throws com.liferay.portal.kernel.exception.SystemException,
572                            com.liferay.portlet.journal.NoSuchFolderException;
573    
574            /**
575            * Removes all the journal folders where groupId = &#63; from the database.
576            *
577            * @param groupId the group ID
578            * @throws SystemException if a system exception occurred
579            */
580            public void removeByGroupId(long groupId)
581                    throws com.liferay.portal.kernel.exception.SystemException;
582    
583            /**
584            * Returns the number of journal folders where groupId = &#63;.
585            *
586            * @param groupId the group ID
587            * @return the number of matching journal folders
588            * @throws SystemException if a system exception occurred
589            */
590            public int countByGroupId(long groupId)
591                    throws com.liferay.portal.kernel.exception.SystemException;
592    
593            /**
594            * Returns the number of journal folders that the user has permission to view where groupId = &#63;.
595            *
596            * @param groupId the group ID
597            * @return the number of matching journal folders that the user has permission to view
598            * @throws SystemException if a system exception occurred
599            */
600            public int filterCountByGroupId(long groupId)
601                    throws com.liferay.portal.kernel.exception.SystemException;
602    
603            /**
604            * Returns all the journal folders where companyId = &#63;.
605            *
606            * @param companyId the company ID
607            * @return the matching journal folders
608            * @throws SystemException if a system exception occurred
609            */
610            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByCompanyId(
611                    long companyId)
612                    throws com.liferay.portal.kernel.exception.SystemException;
613    
614            /**
615            * Returns a range of all the journal folders where companyId = &#63;.
616            *
617            * <p>
618            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
619            * </p>
620            *
621            * @param companyId the company ID
622            * @param start the lower bound of the range of journal folders
623            * @param end the upper bound of the range of journal folders (not inclusive)
624            * @return the range of matching journal folders
625            * @throws SystemException if a system exception occurred
626            */
627            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByCompanyId(
628                    long companyId, int start, int end)
629                    throws com.liferay.portal.kernel.exception.SystemException;
630    
631            /**
632            * Returns an ordered range of all the journal folders where companyId = &#63;.
633            *
634            * <p>
635            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
636            * </p>
637            *
638            * @param companyId the company ID
639            * @param start the lower bound of the range of journal folders
640            * @param end the upper bound of the range of journal folders (not inclusive)
641            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
642            * @return the ordered range of matching journal folders
643            * @throws SystemException if a system exception occurred
644            */
645            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByCompanyId(
646                    long companyId, int start, int end,
647                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
648                    throws com.liferay.portal.kernel.exception.SystemException;
649    
650            /**
651            * Returns the first journal folder in the ordered set where companyId = &#63;.
652            *
653            * @param companyId the company ID
654            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
655            * @return the first matching journal folder
656            * @throws com.liferay.portlet.journal.NoSuchFolderException if a matching journal folder could not be found
657            * @throws SystemException if a system exception occurred
658            */
659            public com.liferay.portlet.journal.model.JournalFolder findByCompanyId_First(
660                    long companyId,
661                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
662                    throws com.liferay.portal.kernel.exception.SystemException,
663                            com.liferay.portlet.journal.NoSuchFolderException;
664    
665            /**
666            * Returns the first journal folder in the ordered set where companyId = &#63;.
667            *
668            * @param companyId the company ID
669            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
670            * @return the first matching journal folder, or <code>null</code> if a matching journal folder could not be found
671            * @throws SystemException if a system exception occurred
672            */
673            public com.liferay.portlet.journal.model.JournalFolder fetchByCompanyId_First(
674                    long companyId,
675                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
676                    throws com.liferay.portal.kernel.exception.SystemException;
677    
678            /**
679            * Returns the last journal folder in the ordered set where companyId = &#63;.
680            *
681            * @param companyId the company ID
682            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
683            * @return the last matching journal folder
684            * @throws com.liferay.portlet.journal.NoSuchFolderException if a matching journal folder could not be found
685            * @throws SystemException if a system exception occurred
686            */
687            public com.liferay.portlet.journal.model.JournalFolder findByCompanyId_Last(
688                    long companyId,
689                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
690                    throws com.liferay.portal.kernel.exception.SystemException,
691                            com.liferay.portlet.journal.NoSuchFolderException;
692    
693            /**
694            * Returns the last journal folder in the ordered set where companyId = &#63;.
695            *
696            * @param companyId the company ID
697            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
698            * @return the last matching journal folder, or <code>null</code> if a matching journal folder could not be found
699            * @throws SystemException if a system exception occurred
700            */
701            public com.liferay.portlet.journal.model.JournalFolder fetchByCompanyId_Last(
702                    long companyId,
703                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
704                    throws com.liferay.portal.kernel.exception.SystemException;
705    
706            /**
707            * Returns the journal folders before and after the current journal folder in the ordered set where companyId = &#63;.
708            *
709            * @param folderId the primary key of the current journal folder
710            * @param companyId the company ID
711            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
712            * @return the previous, current, and next journal folder
713            * @throws com.liferay.portlet.journal.NoSuchFolderException if a journal folder with the primary key could not be found
714            * @throws SystemException if a system exception occurred
715            */
716            public com.liferay.portlet.journal.model.JournalFolder[] findByCompanyId_PrevAndNext(
717                    long folderId, long companyId,
718                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
719                    throws com.liferay.portal.kernel.exception.SystemException,
720                            com.liferay.portlet.journal.NoSuchFolderException;
721    
722            /**
723            * Removes all the journal folders where companyId = &#63; from the database.
724            *
725            * @param companyId the company ID
726            * @throws SystemException if a system exception occurred
727            */
728            public void removeByCompanyId(long companyId)
729                    throws com.liferay.portal.kernel.exception.SystemException;
730    
731            /**
732            * Returns the number of journal folders where companyId = &#63;.
733            *
734            * @param companyId the company ID
735            * @return the number of matching journal folders
736            * @throws SystemException if a system exception occurred
737            */
738            public int countByCompanyId(long companyId)
739                    throws com.liferay.portal.kernel.exception.SystemException;
740    
741            /**
742            * Returns all the journal folders where groupId = &#63; and parentFolderId = &#63;.
743            *
744            * @param groupId the group ID
745            * @param parentFolderId the parent folder ID
746            * @return the matching journal folders
747            * @throws SystemException if a system exception occurred
748            */
749            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByG_P(
750                    long groupId, long parentFolderId)
751                    throws com.liferay.portal.kernel.exception.SystemException;
752    
753            /**
754            * Returns a range of all the journal folders where groupId = &#63; and parentFolderId = &#63;.
755            *
756            * <p>
757            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
758            * </p>
759            *
760            * @param groupId the group ID
761            * @param parentFolderId the parent folder ID
762            * @param start the lower bound of the range of journal folders
763            * @param end the upper bound of the range of journal folders (not inclusive)
764            * @return the range of matching journal folders
765            * @throws SystemException if a system exception occurred
766            */
767            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByG_P(
768                    long groupId, long parentFolderId, int start, int end)
769                    throws com.liferay.portal.kernel.exception.SystemException;
770    
771            /**
772            * Returns an ordered range of all the journal folders where groupId = &#63; and parentFolderId = &#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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
776            * </p>
777            *
778            * @param groupId the group ID
779            * @param parentFolderId the parent folder ID
780            * @param start the lower bound of the range of journal folders
781            * @param end the upper bound of the range of journal folders (not inclusive)
782            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
783            * @return the ordered range of matching journal folders
784            * @throws SystemException if a system exception occurred
785            */
786            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByG_P(
787                    long groupId, long parentFolderId, int start, int end,
788                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
789                    throws com.liferay.portal.kernel.exception.SystemException;
790    
791            /**
792            * Returns the first journal folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
793            *
794            * @param groupId the group ID
795            * @param parentFolderId the parent folder ID
796            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
797            * @return the first matching journal folder
798            * @throws com.liferay.portlet.journal.NoSuchFolderException if a matching journal folder could not be found
799            * @throws SystemException if a system exception occurred
800            */
801            public com.liferay.portlet.journal.model.JournalFolder findByG_P_First(
802                    long groupId, long parentFolderId,
803                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
804                    throws com.liferay.portal.kernel.exception.SystemException,
805                            com.liferay.portlet.journal.NoSuchFolderException;
806    
807            /**
808            * Returns the first journal folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
809            *
810            * @param groupId the group ID
811            * @param parentFolderId the parent folder ID
812            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
813            * @return the first matching journal folder, or <code>null</code> if a matching journal folder could not be found
814            * @throws SystemException if a system exception occurred
815            */
816            public com.liferay.portlet.journal.model.JournalFolder fetchByG_P_First(
817                    long groupId, long parentFolderId,
818                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
819                    throws com.liferay.portal.kernel.exception.SystemException;
820    
821            /**
822            * Returns the last journal folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
823            *
824            * @param groupId the group ID
825            * @param parentFolderId the parent folder ID
826            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
827            * @return the last matching journal folder
828            * @throws com.liferay.portlet.journal.NoSuchFolderException if a matching journal folder could not be found
829            * @throws SystemException if a system exception occurred
830            */
831            public com.liferay.portlet.journal.model.JournalFolder findByG_P_Last(
832                    long groupId, long parentFolderId,
833                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
834                    throws com.liferay.portal.kernel.exception.SystemException,
835                            com.liferay.portlet.journal.NoSuchFolderException;
836    
837            /**
838            * Returns the last journal folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
839            *
840            * @param groupId the group ID
841            * @param parentFolderId the parent folder ID
842            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
843            * @return the last matching journal folder, or <code>null</code> if a matching journal folder could not be found
844            * @throws SystemException if a system exception occurred
845            */
846            public com.liferay.portlet.journal.model.JournalFolder fetchByG_P_Last(
847                    long groupId, long parentFolderId,
848                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
849                    throws com.liferay.portal.kernel.exception.SystemException;
850    
851            /**
852            * Returns the journal folders before and after the current journal folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
853            *
854            * @param folderId the primary key of the current journal folder
855            * @param groupId the group ID
856            * @param parentFolderId the parent folder ID
857            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
858            * @return the previous, current, and next journal folder
859            * @throws com.liferay.portlet.journal.NoSuchFolderException if a journal folder with the primary key could not be found
860            * @throws SystemException if a system exception occurred
861            */
862            public com.liferay.portlet.journal.model.JournalFolder[] findByG_P_PrevAndNext(
863                    long folderId, long groupId, long parentFolderId,
864                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
865                    throws com.liferay.portal.kernel.exception.SystemException,
866                            com.liferay.portlet.journal.NoSuchFolderException;
867    
868            /**
869            * Returns all the journal folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63;.
870            *
871            * @param groupId the group ID
872            * @param parentFolderId the parent folder ID
873            * @return the matching journal folders that the user has permission to view
874            * @throws SystemException if a system exception occurred
875            */
876            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> filterFindByG_P(
877                    long groupId, long parentFolderId)
878                    throws com.liferay.portal.kernel.exception.SystemException;
879    
880            /**
881            * Returns a range of all the journal folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63;.
882            *
883            * <p>
884            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
885            * </p>
886            *
887            * @param groupId the group ID
888            * @param parentFolderId the parent folder ID
889            * @param start the lower bound of the range of journal folders
890            * @param end the upper bound of the range of journal folders (not inclusive)
891            * @return the range of matching journal folders that the user has permission to view
892            * @throws SystemException if a system exception occurred
893            */
894            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> filterFindByG_P(
895                    long groupId, long parentFolderId, int start, int end)
896                    throws com.liferay.portal.kernel.exception.SystemException;
897    
898            /**
899            * Returns an ordered range of all the journal folders that the user has permissions to view where groupId = &#63; and parentFolderId = &#63;.
900            *
901            * <p>
902            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
903            * </p>
904            *
905            * @param groupId the group ID
906            * @param parentFolderId the parent folder ID
907            * @param start the lower bound of the range of journal folders
908            * @param end the upper bound of the range of journal folders (not inclusive)
909            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
910            * @return the ordered range of matching journal folders that the user has permission to view
911            * @throws SystemException if a system exception occurred
912            */
913            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> filterFindByG_P(
914                    long groupId, long parentFolderId, int start, int end,
915                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
916                    throws com.liferay.portal.kernel.exception.SystemException;
917    
918            /**
919            * Returns the journal folders before and after the current journal folder in the ordered set of journal folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63;.
920            *
921            * @param folderId the primary key of the current journal folder
922            * @param groupId the group ID
923            * @param parentFolderId the parent folder ID
924            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
925            * @return the previous, current, and next journal folder
926            * @throws com.liferay.portlet.journal.NoSuchFolderException if a journal folder with the primary key could not be found
927            * @throws SystemException if a system exception occurred
928            */
929            public com.liferay.portlet.journal.model.JournalFolder[] filterFindByG_P_PrevAndNext(
930                    long folderId, long groupId, long parentFolderId,
931                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
932                    throws com.liferay.portal.kernel.exception.SystemException,
933                            com.liferay.portlet.journal.NoSuchFolderException;
934    
935            /**
936            * Removes all the journal folders where groupId = &#63; and parentFolderId = &#63; from the database.
937            *
938            * @param groupId the group ID
939            * @param parentFolderId the parent folder ID
940            * @throws SystemException if a system exception occurred
941            */
942            public void removeByG_P(long groupId, long parentFolderId)
943                    throws com.liferay.portal.kernel.exception.SystemException;
944    
945            /**
946            * Returns the number of journal folders where groupId = &#63; and parentFolderId = &#63;.
947            *
948            * @param groupId the group ID
949            * @param parentFolderId the parent folder ID
950            * @return the number of matching journal folders
951            * @throws SystemException if a system exception occurred
952            */
953            public int countByG_P(long groupId, long parentFolderId)
954                    throws com.liferay.portal.kernel.exception.SystemException;
955    
956            /**
957            * Returns the number of journal folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63;.
958            *
959            * @param groupId the group ID
960            * @param parentFolderId the parent folder ID
961            * @return the number of matching journal folders that the user has permission to view
962            * @throws SystemException if a system exception occurred
963            */
964            public int filterCountByG_P(long groupId, long parentFolderId)
965                    throws com.liferay.portal.kernel.exception.SystemException;
966    
967            /**
968            * Returns the journal folder where groupId = &#63; and name = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchFolderException} if it could not be found.
969            *
970            * @param groupId the group ID
971            * @param name the name
972            * @return the matching journal folder
973            * @throws com.liferay.portlet.journal.NoSuchFolderException if a matching journal folder could not be found
974            * @throws SystemException if a system exception occurred
975            */
976            public com.liferay.portlet.journal.model.JournalFolder findByG_N(
977                    long groupId, java.lang.String name)
978                    throws com.liferay.portal.kernel.exception.SystemException,
979                            com.liferay.portlet.journal.NoSuchFolderException;
980    
981            /**
982            * Returns the journal folder where groupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
983            *
984            * @param groupId the group ID
985            * @param name the name
986            * @return the matching journal folder, or <code>null</code> if a matching journal folder could not be found
987            * @throws SystemException if a system exception occurred
988            */
989            public com.liferay.portlet.journal.model.JournalFolder fetchByG_N(
990                    long groupId, java.lang.String name)
991                    throws com.liferay.portal.kernel.exception.SystemException;
992    
993            /**
994            * Returns the journal folder where groupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
995            *
996            * @param groupId the group ID
997            * @param name the name
998            * @param retrieveFromCache whether to use the finder cache
999            * @return the matching journal folder, or <code>null</code> if a matching journal folder could not be found
1000            * @throws SystemException if a system exception occurred
1001            */
1002            public com.liferay.portlet.journal.model.JournalFolder fetchByG_N(
1003                    long groupId, java.lang.String name, boolean retrieveFromCache)
1004                    throws com.liferay.portal.kernel.exception.SystemException;
1005    
1006            /**
1007            * Removes the journal folder where groupId = &#63; and name = &#63; from the database.
1008            *
1009            * @param groupId the group ID
1010            * @param name the name
1011            * @return the journal folder that was removed
1012            * @throws SystemException if a system exception occurred
1013            */
1014            public com.liferay.portlet.journal.model.JournalFolder removeByG_N(
1015                    long groupId, java.lang.String name)
1016                    throws com.liferay.portal.kernel.exception.SystemException,
1017                            com.liferay.portlet.journal.NoSuchFolderException;
1018    
1019            /**
1020            * Returns the number of journal folders where groupId = &#63; and name = &#63;.
1021            *
1022            * @param groupId the group ID
1023            * @param name the name
1024            * @return the number of matching journal folders
1025            * @throws SystemException if a system exception occurred
1026            */
1027            public int countByG_N(long groupId, java.lang.String name)
1028                    throws com.liferay.portal.kernel.exception.SystemException;
1029    
1030            /**
1031            * Returns all the journal folders where companyId = &#63; and status &ne; &#63;.
1032            *
1033            * @param companyId the company ID
1034            * @param status the status
1035            * @return the matching journal folders
1036            * @throws SystemException if a system exception occurred
1037            */
1038            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByC_NotS(
1039                    long companyId, int status)
1040                    throws com.liferay.portal.kernel.exception.SystemException;
1041    
1042            /**
1043            * Returns a range of all the journal folders where companyId = &#63; and status &ne; &#63;.
1044            *
1045            * <p>
1046            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
1047            * </p>
1048            *
1049            * @param companyId the company ID
1050            * @param status the status
1051            * @param start the lower bound of the range of journal folders
1052            * @param end the upper bound of the range of journal folders (not inclusive)
1053            * @return the range of matching journal folders
1054            * @throws SystemException if a system exception occurred
1055            */
1056            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByC_NotS(
1057                    long companyId, int status, int start, int end)
1058                    throws com.liferay.portal.kernel.exception.SystemException;
1059    
1060            /**
1061            * Returns an ordered range of all the journal folders where companyId = &#63; and status &ne; &#63;.
1062            *
1063            * <p>
1064            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
1065            * </p>
1066            *
1067            * @param companyId the company ID
1068            * @param status the status
1069            * @param start the lower bound of the range of journal folders
1070            * @param end the upper bound of the range of journal folders (not inclusive)
1071            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1072            * @return the ordered range of matching journal folders
1073            * @throws SystemException if a system exception occurred
1074            */
1075            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByC_NotS(
1076                    long companyId, int status, int start, int end,
1077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1078                    throws com.liferay.portal.kernel.exception.SystemException;
1079    
1080            /**
1081            * Returns the first journal folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1082            *
1083            * @param companyId the company ID
1084            * @param status the status
1085            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1086            * @return the first matching journal folder
1087            * @throws com.liferay.portlet.journal.NoSuchFolderException if a matching journal folder could not be found
1088            * @throws SystemException if a system exception occurred
1089            */
1090            public com.liferay.portlet.journal.model.JournalFolder findByC_NotS_First(
1091                    long companyId, int status,
1092                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1093                    throws com.liferay.portal.kernel.exception.SystemException,
1094                            com.liferay.portlet.journal.NoSuchFolderException;
1095    
1096            /**
1097            * Returns the first journal folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1098            *
1099            * @param companyId the company ID
1100            * @param status the status
1101            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1102            * @return the first matching journal folder, or <code>null</code> if a matching journal folder could not be found
1103            * @throws SystemException if a system exception occurred
1104            */
1105            public com.liferay.portlet.journal.model.JournalFolder fetchByC_NotS_First(
1106                    long companyId, int status,
1107                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1108                    throws com.liferay.portal.kernel.exception.SystemException;
1109    
1110            /**
1111            * Returns the last journal folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1112            *
1113            * @param companyId the company ID
1114            * @param status the status
1115            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1116            * @return the last matching journal folder
1117            * @throws com.liferay.portlet.journal.NoSuchFolderException if a matching journal folder could not be found
1118            * @throws SystemException if a system exception occurred
1119            */
1120            public com.liferay.portlet.journal.model.JournalFolder findByC_NotS_Last(
1121                    long companyId, int status,
1122                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1123                    throws com.liferay.portal.kernel.exception.SystemException,
1124                            com.liferay.portlet.journal.NoSuchFolderException;
1125    
1126            /**
1127            * Returns the last journal folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1128            *
1129            * @param companyId the company ID
1130            * @param status the status
1131            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1132            * @return the last matching journal folder, or <code>null</code> if a matching journal folder could not be found
1133            * @throws SystemException if a system exception occurred
1134            */
1135            public com.liferay.portlet.journal.model.JournalFolder fetchByC_NotS_Last(
1136                    long companyId, int status,
1137                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1138                    throws com.liferay.portal.kernel.exception.SystemException;
1139    
1140            /**
1141            * Returns the journal folders before and after the current journal folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1142            *
1143            * @param folderId the primary key of the current journal folder
1144            * @param companyId the company ID
1145            * @param status the status
1146            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1147            * @return the previous, current, and next journal folder
1148            * @throws com.liferay.portlet.journal.NoSuchFolderException if a journal folder with the primary key could not be found
1149            * @throws SystemException if a system exception occurred
1150            */
1151            public com.liferay.portlet.journal.model.JournalFolder[] findByC_NotS_PrevAndNext(
1152                    long folderId, long companyId, int status,
1153                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1154                    throws com.liferay.portal.kernel.exception.SystemException,
1155                            com.liferay.portlet.journal.NoSuchFolderException;
1156    
1157            /**
1158            * Removes all the journal folders where companyId = &#63; and status &ne; &#63; from the database.
1159            *
1160            * @param companyId the company ID
1161            * @param status the status
1162            * @throws SystemException if a system exception occurred
1163            */
1164            public void removeByC_NotS(long companyId, int status)
1165                    throws com.liferay.portal.kernel.exception.SystemException;
1166    
1167            /**
1168            * Returns the number of journal folders where companyId = &#63; and status &ne; &#63;.
1169            *
1170            * @param companyId the company ID
1171            * @param status the status
1172            * @return the number of matching journal folders
1173            * @throws SystemException if a system exception occurred
1174            */
1175            public int countByC_NotS(long companyId, int status)
1176                    throws com.liferay.portal.kernel.exception.SystemException;
1177    
1178            /**
1179            * Returns all the journal folders where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1180            *
1181            * @param folderId the folder ID
1182            * @param companyId the company ID
1183            * @param parentFolderId the parent folder ID
1184            * @param status the status
1185            * @return the matching journal folders
1186            * @throws SystemException if a system exception occurred
1187            */
1188            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByF_C_P_NotS(
1189                    long folderId, long companyId, long parentFolderId, int status)
1190                    throws com.liferay.portal.kernel.exception.SystemException;
1191    
1192            /**
1193            * Returns a range of all the journal folders where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1194            *
1195            * <p>
1196            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
1197            * </p>
1198            *
1199            * @param folderId the folder ID
1200            * @param companyId the company ID
1201            * @param parentFolderId the parent folder ID
1202            * @param status the status
1203            * @param start the lower bound of the range of journal folders
1204            * @param end the upper bound of the range of journal folders (not inclusive)
1205            * @return the range of matching journal folders
1206            * @throws SystemException if a system exception occurred
1207            */
1208            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByF_C_P_NotS(
1209                    long folderId, long companyId, long parentFolderId, int status,
1210                    int start, int end)
1211                    throws com.liferay.portal.kernel.exception.SystemException;
1212    
1213            /**
1214            * Returns an ordered range of all the journal folders where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1215            *
1216            * <p>
1217            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
1218            * </p>
1219            *
1220            * @param folderId the folder ID
1221            * @param companyId the company ID
1222            * @param parentFolderId the parent folder ID
1223            * @param status the status
1224            * @param start the lower bound of the range of journal folders
1225            * @param end the upper bound of the range of journal folders (not inclusive)
1226            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1227            * @return the ordered range of matching journal folders
1228            * @throws SystemException if a system exception occurred
1229            */
1230            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByF_C_P_NotS(
1231                    long folderId, long companyId, long parentFolderId, int status,
1232                    int start, int end,
1233                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1234                    throws com.liferay.portal.kernel.exception.SystemException;
1235    
1236            /**
1237            * Returns the first journal folder in the ordered set where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1238            *
1239            * @param folderId the folder ID
1240            * @param companyId the company ID
1241            * @param parentFolderId the parent folder ID
1242            * @param status the status
1243            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1244            * @return the first matching journal folder
1245            * @throws com.liferay.portlet.journal.NoSuchFolderException if a matching journal folder could not be found
1246            * @throws SystemException if a system exception occurred
1247            */
1248            public com.liferay.portlet.journal.model.JournalFolder findByF_C_P_NotS_First(
1249                    long folderId, long companyId, long parentFolderId, int status,
1250                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1251                    throws com.liferay.portal.kernel.exception.SystemException,
1252                            com.liferay.portlet.journal.NoSuchFolderException;
1253    
1254            /**
1255            * Returns the first journal folder in the ordered set where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1256            *
1257            * @param folderId the folder ID
1258            * @param companyId the company ID
1259            * @param parentFolderId the parent folder ID
1260            * @param status the status
1261            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1262            * @return the first matching journal folder, or <code>null</code> if a matching journal folder could not be found
1263            * @throws SystemException if a system exception occurred
1264            */
1265            public com.liferay.portlet.journal.model.JournalFolder fetchByF_C_P_NotS_First(
1266                    long folderId, long companyId, long parentFolderId, int status,
1267                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1268                    throws com.liferay.portal.kernel.exception.SystemException;
1269    
1270            /**
1271            * Returns the last journal folder in the ordered set where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1272            *
1273            * @param folderId the folder ID
1274            * @param companyId the company ID
1275            * @param parentFolderId the parent folder ID
1276            * @param status the status
1277            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1278            * @return the last matching journal folder
1279            * @throws com.liferay.portlet.journal.NoSuchFolderException if a matching journal folder could not be found
1280            * @throws SystemException if a system exception occurred
1281            */
1282            public com.liferay.portlet.journal.model.JournalFolder findByF_C_P_NotS_Last(
1283                    long folderId, long companyId, long parentFolderId, int status,
1284                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1285                    throws com.liferay.portal.kernel.exception.SystemException,
1286                            com.liferay.portlet.journal.NoSuchFolderException;
1287    
1288            /**
1289            * Returns the last journal folder in the ordered set where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1290            *
1291            * @param folderId the folder ID
1292            * @param companyId the company ID
1293            * @param parentFolderId the parent folder ID
1294            * @param status the status
1295            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1296            * @return the last matching journal folder, or <code>null</code> if a matching journal folder could not be found
1297            * @throws SystemException if a system exception occurred
1298            */
1299            public com.liferay.portlet.journal.model.JournalFolder fetchByF_C_P_NotS_Last(
1300                    long folderId, long companyId, long parentFolderId, int status,
1301                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1302                    throws com.liferay.portal.kernel.exception.SystemException;
1303    
1304            /**
1305            * Removes all the journal folders where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63; from the database.
1306            *
1307            * @param folderId the folder ID
1308            * @param companyId the company ID
1309            * @param parentFolderId the parent folder ID
1310            * @param status the status
1311            * @throws SystemException if a system exception occurred
1312            */
1313            public void removeByF_C_P_NotS(long folderId, long companyId,
1314                    long parentFolderId, int status)
1315                    throws com.liferay.portal.kernel.exception.SystemException;
1316    
1317            /**
1318            * Returns the number of journal folders where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1319            *
1320            * @param folderId the folder ID
1321            * @param companyId the company ID
1322            * @param parentFolderId the parent folder ID
1323            * @param status the status
1324            * @return the number of matching journal folders
1325            * @throws SystemException if a system exception occurred
1326            */
1327            public int countByF_C_P_NotS(long folderId, long companyId,
1328                    long parentFolderId, int status)
1329                    throws com.liferay.portal.kernel.exception.SystemException;
1330    
1331            /**
1332            * Returns the journal folder where groupId = &#63; and parentFolderId = &#63; and name = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchFolderException} if it could not be found.
1333            *
1334            * @param groupId the group ID
1335            * @param parentFolderId the parent folder ID
1336            * @param name the name
1337            * @return the matching journal folder
1338            * @throws com.liferay.portlet.journal.NoSuchFolderException if a matching journal folder could not be found
1339            * @throws SystemException if a system exception occurred
1340            */
1341            public com.liferay.portlet.journal.model.JournalFolder findByG_P_N(
1342                    long groupId, long parentFolderId, java.lang.String name)
1343                    throws com.liferay.portal.kernel.exception.SystemException,
1344                            com.liferay.portlet.journal.NoSuchFolderException;
1345    
1346            /**
1347            * Returns the journal folder where groupId = &#63; and parentFolderId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
1348            *
1349            * @param groupId the group ID
1350            * @param parentFolderId the parent folder ID
1351            * @param name the name
1352            * @return the matching journal folder, or <code>null</code> if a matching journal folder could not be found
1353            * @throws SystemException if a system exception occurred
1354            */
1355            public com.liferay.portlet.journal.model.JournalFolder fetchByG_P_N(
1356                    long groupId, long parentFolderId, java.lang.String name)
1357                    throws com.liferay.portal.kernel.exception.SystemException;
1358    
1359            /**
1360            * Returns the journal folder where groupId = &#63; and parentFolderId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
1361            *
1362            * @param groupId the group ID
1363            * @param parentFolderId the parent folder ID
1364            * @param name the name
1365            * @param retrieveFromCache whether to use the finder cache
1366            * @return the matching journal folder, or <code>null</code> if a matching journal folder could not be found
1367            * @throws SystemException if a system exception occurred
1368            */
1369            public com.liferay.portlet.journal.model.JournalFolder fetchByG_P_N(
1370                    long groupId, long parentFolderId, java.lang.String name,
1371                    boolean retrieveFromCache)
1372                    throws com.liferay.portal.kernel.exception.SystemException;
1373    
1374            /**
1375            * Removes the journal folder where groupId = &#63; and parentFolderId = &#63; and name = &#63; from the database.
1376            *
1377            * @param groupId the group ID
1378            * @param parentFolderId the parent folder ID
1379            * @param name the name
1380            * @return the journal folder that was removed
1381            * @throws SystemException if a system exception occurred
1382            */
1383            public com.liferay.portlet.journal.model.JournalFolder removeByG_P_N(
1384                    long groupId, long parentFolderId, java.lang.String name)
1385                    throws com.liferay.portal.kernel.exception.SystemException,
1386                            com.liferay.portlet.journal.NoSuchFolderException;
1387    
1388            /**
1389            * Returns the number of journal folders where groupId = &#63; and parentFolderId = &#63; and name = &#63;.
1390            *
1391            * @param groupId the group ID
1392            * @param parentFolderId the parent folder ID
1393            * @param name the name
1394            * @return the number of matching journal folders
1395            * @throws SystemException if a system exception occurred
1396            */
1397            public int countByG_P_N(long groupId, long parentFolderId,
1398                    java.lang.String name)
1399                    throws com.liferay.portal.kernel.exception.SystemException;
1400    
1401            /**
1402            * Returns all the journal folders where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1403            *
1404            * @param groupId the group ID
1405            * @param parentFolderId the parent folder ID
1406            * @param status the status
1407            * @return the matching journal folders
1408            * @throws SystemException if a system exception occurred
1409            */
1410            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByG_P_S(
1411                    long groupId, long parentFolderId, int status)
1412                    throws com.liferay.portal.kernel.exception.SystemException;
1413    
1414            /**
1415            * Returns a range of all the journal folders where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1416            *
1417            * <p>
1418            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
1419            * </p>
1420            *
1421            * @param groupId the group ID
1422            * @param parentFolderId the parent folder ID
1423            * @param status the status
1424            * @param start the lower bound of the range of journal folders
1425            * @param end the upper bound of the range of journal folders (not inclusive)
1426            * @return the range of matching journal folders
1427            * @throws SystemException if a system exception occurred
1428            */
1429            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByG_P_S(
1430                    long groupId, long parentFolderId, int status, int start, int end)
1431                    throws com.liferay.portal.kernel.exception.SystemException;
1432    
1433            /**
1434            * Returns an ordered range of all the journal folders where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1435            *
1436            * <p>
1437            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
1438            * </p>
1439            *
1440            * @param groupId the group ID
1441            * @param parentFolderId the parent folder ID
1442            * @param status the status
1443            * @param start the lower bound of the range of journal folders
1444            * @param end the upper bound of the range of journal folders (not inclusive)
1445            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1446            * @return the ordered range of matching journal folders
1447            * @throws SystemException if a system exception occurred
1448            */
1449            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByG_P_S(
1450                    long groupId, long parentFolderId, int status, int start, int end,
1451                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1452                    throws com.liferay.portal.kernel.exception.SystemException;
1453    
1454            /**
1455            * Returns the first journal folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1456            *
1457            * @param groupId the group ID
1458            * @param parentFolderId the parent folder ID
1459            * @param status the status
1460            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1461            * @return the first matching journal folder
1462            * @throws com.liferay.portlet.journal.NoSuchFolderException if a matching journal folder could not be found
1463            * @throws SystemException if a system exception occurred
1464            */
1465            public com.liferay.portlet.journal.model.JournalFolder findByG_P_S_First(
1466                    long groupId, long parentFolderId, int status,
1467                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1468                    throws com.liferay.portal.kernel.exception.SystemException,
1469                            com.liferay.portlet.journal.NoSuchFolderException;
1470    
1471            /**
1472            * Returns the first journal folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1473            *
1474            * @param groupId the group ID
1475            * @param parentFolderId the parent folder ID
1476            * @param status the status
1477            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1478            * @return the first matching journal folder, or <code>null</code> if a matching journal folder could not be found
1479            * @throws SystemException if a system exception occurred
1480            */
1481            public com.liferay.portlet.journal.model.JournalFolder fetchByG_P_S_First(
1482                    long groupId, long parentFolderId, int status,
1483                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1484                    throws com.liferay.portal.kernel.exception.SystemException;
1485    
1486            /**
1487            * Returns the last journal folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1488            *
1489            * @param groupId the group ID
1490            * @param parentFolderId the parent folder ID
1491            * @param status the status
1492            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1493            * @return the last matching journal folder
1494            * @throws com.liferay.portlet.journal.NoSuchFolderException if a matching journal folder could not be found
1495            * @throws SystemException if a system exception occurred
1496            */
1497            public com.liferay.portlet.journal.model.JournalFolder findByG_P_S_Last(
1498                    long groupId, long parentFolderId, int status,
1499                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1500                    throws com.liferay.portal.kernel.exception.SystemException,
1501                            com.liferay.portlet.journal.NoSuchFolderException;
1502    
1503            /**
1504            * Returns the last journal folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1505            *
1506            * @param groupId the group ID
1507            * @param parentFolderId the parent folder ID
1508            * @param status the status
1509            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1510            * @return the last matching journal folder, or <code>null</code> if a matching journal folder could not be found
1511            * @throws SystemException if a system exception occurred
1512            */
1513            public com.liferay.portlet.journal.model.JournalFolder fetchByG_P_S_Last(
1514                    long groupId, long parentFolderId, int status,
1515                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1516                    throws com.liferay.portal.kernel.exception.SystemException;
1517    
1518            /**
1519            * Returns the journal folders before and after the current journal folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1520            *
1521            * @param folderId the primary key of the current journal folder
1522            * @param groupId the group ID
1523            * @param parentFolderId the parent folder ID
1524            * @param status the status
1525            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1526            * @return the previous, current, and next journal folder
1527            * @throws com.liferay.portlet.journal.NoSuchFolderException if a journal folder with the primary key could not be found
1528            * @throws SystemException if a system exception occurred
1529            */
1530            public com.liferay.portlet.journal.model.JournalFolder[] findByG_P_S_PrevAndNext(
1531                    long folderId, long groupId, long parentFolderId, int status,
1532                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1533                    throws com.liferay.portal.kernel.exception.SystemException,
1534                            com.liferay.portlet.journal.NoSuchFolderException;
1535    
1536            /**
1537            * Returns all the journal folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1538            *
1539            * @param groupId the group ID
1540            * @param parentFolderId the parent folder ID
1541            * @param status the status
1542            * @return the matching journal folders that the user has permission to view
1543            * @throws SystemException if a system exception occurred
1544            */
1545            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> filterFindByG_P_S(
1546                    long groupId, long parentFolderId, int status)
1547                    throws com.liferay.portal.kernel.exception.SystemException;
1548    
1549            /**
1550            * Returns a range of all the journal folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1551            *
1552            * <p>
1553            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
1554            * </p>
1555            *
1556            * @param groupId the group ID
1557            * @param parentFolderId the parent folder ID
1558            * @param status the status
1559            * @param start the lower bound of the range of journal folders
1560            * @param end the upper bound of the range of journal folders (not inclusive)
1561            * @return the range of matching journal folders that the user has permission to view
1562            * @throws SystemException if a system exception occurred
1563            */
1564            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> filterFindByG_P_S(
1565                    long groupId, long parentFolderId, int status, int start, int end)
1566                    throws com.liferay.portal.kernel.exception.SystemException;
1567    
1568            /**
1569            * Returns an ordered range of all the journal folders that the user has permissions to view where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1570            *
1571            * <p>
1572            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
1573            * </p>
1574            *
1575            * @param groupId the group ID
1576            * @param parentFolderId the parent folder ID
1577            * @param status the status
1578            * @param start the lower bound of the range of journal folders
1579            * @param end the upper bound of the range of journal folders (not inclusive)
1580            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1581            * @return the ordered range of matching journal folders that the user has permission to view
1582            * @throws SystemException if a system exception occurred
1583            */
1584            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> filterFindByG_P_S(
1585                    long groupId, long parentFolderId, int status, int start, int end,
1586                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1587                    throws com.liferay.portal.kernel.exception.SystemException;
1588    
1589            /**
1590            * Returns the journal folders before and after the current journal folder in the ordered set of journal folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1591            *
1592            * @param folderId the primary key of the current journal folder
1593            * @param groupId the group ID
1594            * @param parentFolderId the parent folder ID
1595            * @param status the status
1596            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1597            * @return the previous, current, and next journal folder
1598            * @throws com.liferay.portlet.journal.NoSuchFolderException if a journal folder with the primary key could not be found
1599            * @throws SystemException if a system exception occurred
1600            */
1601            public com.liferay.portlet.journal.model.JournalFolder[] filterFindByG_P_S_PrevAndNext(
1602                    long folderId, long groupId, long parentFolderId, int status,
1603                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1604                    throws com.liferay.portal.kernel.exception.SystemException,
1605                            com.liferay.portlet.journal.NoSuchFolderException;
1606    
1607            /**
1608            * Removes all the journal folders where groupId = &#63; and parentFolderId = &#63; and status = &#63; from the database.
1609            *
1610            * @param groupId the group ID
1611            * @param parentFolderId the parent folder ID
1612            * @param status the status
1613            * @throws SystemException if a system exception occurred
1614            */
1615            public void removeByG_P_S(long groupId, long parentFolderId, int status)
1616                    throws com.liferay.portal.kernel.exception.SystemException;
1617    
1618            /**
1619            * Returns the number of journal folders where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1620            *
1621            * @param groupId the group ID
1622            * @param parentFolderId the parent folder ID
1623            * @param status the status
1624            * @return the number of matching journal folders
1625            * @throws SystemException if a system exception occurred
1626            */
1627            public int countByG_P_S(long groupId, long parentFolderId, int status)
1628                    throws com.liferay.portal.kernel.exception.SystemException;
1629    
1630            /**
1631            * Returns the number of journal folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1632            *
1633            * @param groupId the group ID
1634            * @param parentFolderId the parent folder ID
1635            * @param status the status
1636            * @return the number of matching journal folders that the user has permission to view
1637            * @throws SystemException if a system exception occurred
1638            */
1639            public int filterCountByG_P_S(long groupId, long parentFolderId, int status)
1640                    throws com.liferay.portal.kernel.exception.SystemException;
1641    
1642            /**
1643            * Returns all the journal folders where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1644            *
1645            * @param groupId the group ID
1646            * @param parentFolderId the parent folder ID
1647            * @param status the status
1648            * @return the matching journal folders
1649            * @throws SystemException if a system exception occurred
1650            */
1651            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByG_P_NotS(
1652                    long groupId, long parentFolderId, int status)
1653                    throws com.liferay.portal.kernel.exception.SystemException;
1654    
1655            /**
1656            * Returns a range of all the journal folders where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1657            *
1658            * <p>
1659            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
1660            * </p>
1661            *
1662            * @param groupId the group ID
1663            * @param parentFolderId the parent folder ID
1664            * @param status the status
1665            * @param start the lower bound of the range of journal folders
1666            * @param end the upper bound of the range of journal folders (not inclusive)
1667            * @return the range of matching journal folders
1668            * @throws SystemException if a system exception occurred
1669            */
1670            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByG_P_NotS(
1671                    long groupId, long parentFolderId, int status, int start, int end)
1672                    throws com.liferay.portal.kernel.exception.SystemException;
1673    
1674            /**
1675            * Returns an ordered range of all the journal folders where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1676            *
1677            * <p>
1678            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
1679            * </p>
1680            *
1681            * @param groupId the group ID
1682            * @param parentFolderId the parent folder ID
1683            * @param status the status
1684            * @param start the lower bound of the range of journal folders
1685            * @param end the upper bound of the range of journal folders (not inclusive)
1686            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1687            * @return the ordered range of matching journal folders
1688            * @throws SystemException if a system exception occurred
1689            */
1690            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findByG_P_NotS(
1691                    long groupId, long parentFolderId, int status, int start, int end,
1692                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1693                    throws com.liferay.portal.kernel.exception.SystemException;
1694    
1695            /**
1696            * Returns the first journal folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1697            *
1698            * @param groupId the group ID
1699            * @param parentFolderId the parent folder ID
1700            * @param status the status
1701            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1702            * @return the first matching journal folder
1703            * @throws com.liferay.portlet.journal.NoSuchFolderException if a matching journal folder could not be found
1704            * @throws SystemException if a system exception occurred
1705            */
1706            public com.liferay.portlet.journal.model.JournalFolder findByG_P_NotS_First(
1707                    long groupId, long parentFolderId, int status,
1708                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1709                    throws com.liferay.portal.kernel.exception.SystemException,
1710                            com.liferay.portlet.journal.NoSuchFolderException;
1711    
1712            /**
1713            * Returns the first journal folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1714            *
1715            * @param groupId the group ID
1716            * @param parentFolderId the parent folder ID
1717            * @param status the status
1718            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1719            * @return the first matching journal folder, or <code>null</code> if a matching journal folder could not be found
1720            * @throws SystemException if a system exception occurred
1721            */
1722            public com.liferay.portlet.journal.model.JournalFolder fetchByG_P_NotS_First(
1723                    long groupId, long parentFolderId, int status,
1724                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1725                    throws com.liferay.portal.kernel.exception.SystemException;
1726    
1727            /**
1728            * Returns the last journal folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1729            *
1730            * @param groupId the group ID
1731            * @param parentFolderId the parent folder ID
1732            * @param status the status
1733            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1734            * @return the last matching journal folder
1735            * @throws com.liferay.portlet.journal.NoSuchFolderException if a matching journal folder could not be found
1736            * @throws SystemException if a system exception occurred
1737            */
1738            public com.liferay.portlet.journal.model.JournalFolder findByG_P_NotS_Last(
1739                    long groupId, long parentFolderId, int status,
1740                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1741                    throws com.liferay.portal.kernel.exception.SystemException,
1742                            com.liferay.portlet.journal.NoSuchFolderException;
1743    
1744            /**
1745            * Returns the last journal folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1746            *
1747            * @param groupId the group ID
1748            * @param parentFolderId the parent folder ID
1749            * @param status the status
1750            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1751            * @return the last matching journal folder, or <code>null</code> if a matching journal folder could not be found
1752            * @throws SystemException if a system exception occurred
1753            */
1754            public com.liferay.portlet.journal.model.JournalFolder fetchByG_P_NotS_Last(
1755                    long groupId, long parentFolderId, int status,
1756                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1757                    throws com.liferay.portal.kernel.exception.SystemException;
1758    
1759            /**
1760            * Returns the journal folders before and after the current journal folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1761            *
1762            * @param folderId the primary key of the current journal folder
1763            * @param groupId the group ID
1764            * @param parentFolderId the parent folder ID
1765            * @param status the status
1766            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1767            * @return the previous, current, and next journal folder
1768            * @throws com.liferay.portlet.journal.NoSuchFolderException if a journal folder with the primary key could not be found
1769            * @throws SystemException if a system exception occurred
1770            */
1771            public com.liferay.portlet.journal.model.JournalFolder[] findByG_P_NotS_PrevAndNext(
1772                    long folderId, long groupId, long parentFolderId, int status,
1773                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1774                    throws com.liferay.portal.kernel.exception.SystemException,
1775                            com.liferay.portlet.journal.NoSuchFolderException;
1776    
1777            /**
1778            * Returns all the journal folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1779            *
1780            * @param groupId the group ID
1781            * @param parentFolderId the parent folder ID
1782            * @param status the status
1783            * @return the matching journal folders that the user has permission to view
1784            * @throws SystemException if a system exception occurred
1785            */
1786            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> filterFindByG_P_NotS(
1787                    long groupId, long parentFolderId, int status)
1788                    throws com.liferay.portal.kernel.exception.SystemException;
1789    
1790            /**
1791            * Returns a range of all the journal folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1792            *
1793            * <p>
1794            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
1795            * </p>
1796            *
1797            * @param groupId the group ID
1798            * @param parentFolderId the parent folder ID
1799            * @param status the status
1800            * @param start the lower bound of the range of journal folders
1801            * @param end the upper bound of the range of journal folders (not inclusive)
1802            * @return the range of matching journal folders that the user has permission to view
1803            * @throws SystemException if a system exception occurred
1804            */
1805            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> filterFindByG_P_NotS(
1806                    long groupId, long parentFolderId, int status, int start, int end)
1807                    throws com.liferay.portal.kernel.exception.SystemException;
1808    
1809            /**
1810            * Returns an ordered range of all the journal folders that the user has permissions to view where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1811            *
1812            * <p>
1813            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
1814            * </p>
1815            *
1816            * @param groupId the group ID
1817            * @param parentFolderId the parent folder ID
1818            * @param status the status
1819            * @param start the lower bound of the range of journal folders
1820            * @param end the upper bound of the range of journal folders (not inclusive)
1821            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1822            * @return the ordered range of matching journal folders that the user has permission to view
1823            * @throws SystemException if a system exception occurred
1824            */
1825            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> filterFindByG_P_NotS(
1826                    long groupId, long parentFolderId, int status, int start, int end,
1827                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1828                    throws com.liferay.portal.kernel.exception.SystemException;
1829    
1830            /**
1831            * Returns the journal folders before and after the current journal folder in the ordered set of journal folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1832            *
1833            * @param folderId the primary key of the current journal folder
1834            * @param groupId the group ID
1835            * @param parentFolderId the parent folder ID
1836            * @param status the status
1837            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1838            * @return the previous, current, and next journal folder
1839            * @throws com.liferay.portlet.journal.NoSuchFolderException if a journal folder with the primary key could not be found
1840            * @throws SystemException if a system exception occurred
1841            */
1842            public com.liferay.portlet.journal.model.JournalFolder[] filterFindByG_P_NotS_PrevAndNext(
1843                    long folderId, long groupId, long parentFolderId, int status,
1844                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1845                    throws com.liferay.portal.kernel.exception.SystemException,
1846                            com.liferay.portlet.journal.NoSuchFolderException;
1847    
1848            /**
1849            * Removes all the journal folders where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63; from the database.
1850            *
1851            * @param groupId the group ID
1852            * @param parentFolderId the parent folder ID
1853            * @param status the status
1854            * @throws SystemException if a system exception occurred
1855            */
1856            public void removeByG_P_NotS(long groupId, long parentFolderId, int status)
1857                    throws com.liferay.portal.kernel.exception.SystemException;
1858    
1859            /**
1860            * Returns the number of journal folders where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1861            *
1862            * @param groupId the group ID
1863            * @param parentFolderId the parent folder ID
1864            * @param status the status
1865            * @return the number of matching journal folders
1866            * @throws SystemException if a system exception occurred
1867            */
1868            public int countByG_P_NotS(long groupId, long parentFolderId, int status)
1869                    throws com.liferay.portal.kernel.exception.SystemException;
1870    
1871            /**
1872            * Returns the number of journal folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1873            *
1874            * @param groupId the group ID
1875            * @param parentFolderId the parent folder ID
1876            * @param status the status
1877            * @return the number of matching journal folders that the user has permission to view
1878            * @throws SystemException if a system exception occurred
1879            */
1880            public int filterCountByG_P_NotS(long groupId, long parentFolderId,
1881                    int status) throws com.liferay.portal.kernel.exception.SystemException;
1882    
1883            /**
1884            * Caches the journal folder in the entity cache if it is enabled.
1885            *
1886            * @param journalFolder the journal folder
1887            */
1888            public void cacheResult(
1889                    com.liferay.portlet.journal.model.JournalFolder journalFolder);
1890    
1891            /**
1892            * Caches the journal folders in the entity cache if it is enabled.
1893            *
1894            * @param journalFolders the journal folders
1895            */
1896            public void cacheResult(
1897                    java.util.List<com.liferay.portlet.journal.model.JournalFolder> journalFolders);
1898    
1899            /**
1900            * Creates a new journal folder with the primary key. Does not add the journal folder to the database.
1901            *
1902            * @param folderId the primary key for the new journal folder
1903            * @return the new journal folder
1904            */
1905            public com.liferay.portlet.journal.model.JournalFolder create(long folderId);
1906    
1907            /**
1908            * Removes the journal folder with the primary key from the database. Also notifies the appropriate model listeners.
1909            *
1910            * @param folderId the primary key of the journal folder
1911            * @return the journal folder that was removed
1912            * @throws com.liferay.portlet.journal.NoSuchFolderException if a journal folder with the primary key could not be found
1913            * @throws SystemException if a system exception occurred
1914            */
1915            public com.liferay.portlet.journal.model.JournalFolder remove(long folderId)
1916                    throws com.liferay.portal.kernel.exception.SystemException,
1917                            com.liferay.portlet.journal.NoSuchFolderException;
1918    
1919            public com.liferay.portlet.journal.model.JournalFolder updateImpl(
1920                    com.liferay.portlet.journal.model.JournalFolder journalFolder)
1921                    throws com.liferay.portal.kernel.exception.SystemException;
1922    
1923            /**
1924            * Returns the journal folder with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchFolderException} if it could not be found.
1925            *
1926            * @param folderId the primary key of the journal folder
1927            * @return the journal folder
1928            * @throws com.liferay.portlet.journal.NoSuchFolderException if a journal folder with the primary key could not be found
1929            * @throws SystemException if a system exception occurred
1930            */
1931            public com.liferay.portlet.journal.model.JournalFolder findByPrimaryKey(
1932                    long folderId)
1933                    throws com.liferay.portal.kernel.exception.SystemException,
1934                            com.liferay.portlet.journal.NoSuchFolderException;
1935    
1936            /**
1937            * Returns the journal folder with the primary key or returns <code>null</code> if it could not be found.
1938            *
1939            * @param folderId the primary key of the journal folder
1940            * @return the journal folder, or <code>null</code> if a journal folder with the primary key could not be found
1941            * @throws SystemException if a system exception occurred
1942            */
1943            public com.liferay.portlet.journal.model.JournalFolder fetchByPrimaryKey(
1944                    long folderId)
1945                    throws com.liferay.portal.kernel.exception.SystemException;
1946    
1947            /**
1948            * Returns all the journal folders.
1949            *
1950            * @return the journal folders
1951            * @throws SystemException if a system exception occurred
1952            */
1953            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findAll()
1954                    throws com.liferay.portal.kernel.exception.SystemException;
1955    
1956            /**
1957            * Returns a range of all the journal folders.
1958            *
1959            * <p>
1960            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
1961            * </p>
1962            *
1963            * @param start the lower bound of the range of journal folders
1964            * @param end the upper bound of the range of journal folders (not inclusive)
1965            * @return the range of journal folders
1966            * @throws SystemException if a system exception occurred
1967            */
1968            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findAll(
1969                    int start, int end)
1970                    throws com.liferay.portal.kernel.exception.SystemException;
1971    
1972            /**
1973            * Returns an ordered range of all the journal folders.
1974            *
1975            * <p>
1976            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFolderModelImpl}. 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.
1977            * </p>
1978            *
1979            * @param start the lower bound of the range of journal folders
1980            * @param end the upper bound of the range of journal folders (not inclusive)
1981            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1982            * @return the ordered range of journal folders
1983            * @throws SystemException if a system exception occurred
1984            */
1985            public java.util.List<com.liferay.portlet.journal.model.JournalFolder> findAll(
1986                    int start, int end,
1987                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1988                    throws com.liferay.portal.kernel.exception.SystemException;
1989    
1990            /**
1991            * Removes all the journal folders from the database.
1992            *
1993            * @throws SystemException if a system exception occurred
1994            */
1995            public void removeAll()
1996                    throws com.liferay.portal.kernel.exception.SystemException;
1997    
1998            /**
1999            * Returns the number of journal folders.
2000            *
2001            * @return the number of journal folders
2002            * @throws SystemException if a system exception occurred
2003            */
2004            public int countAll()
2005                    throws com.liferay.portal.kernel.exception.SystemException;
2006    }