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