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