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