001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021    import com.liferay.portal.kernel.exception.SystemException;
022    import com.liferay.portal.kernel.util.OrderByComparator;
023    import com.liferay.portal.kernel.util.ReferenceRegistry;
024    import com.liferay.portal.service.ServiceContext;
025    
026    import com.liferay.portlet.documentlibrary.model.DLFolder;
027    
028    import java.util.List;
029    
030    /**
031     * The persistence utility for the document library folder service. This utility wraps {@link DLFolderPersistenceImpl} 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.
032     *
033     * <p>
034     * Caching information and settings can be found in <code>portal.properties</code>
035     * </p>
036     *
037     * @author Brian Wing Shun Chan
038     * @see DLFolderPersistence
039     * @see DLFolderPersistenceImpl
040     * @generated
041     */
042    @ProviderType
043    public class DLFolderUtil {
044            /*
045             * NOTE FOR DEVELOPERS:
046             *
047             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
048             */
049    
050            /**
051             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
052             */
053            public static void clearCache() {
054                    getPersistence().clearCache();
055            }
056    
057            /**
058             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
059             */
060            public static void clearCache(DLFolder dlFolder) {
061                    getPersistence().clearCache(dlFolder);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
066             */
067            public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
068                    throws SystemException {
069                    return getPersistence().countWithDynamicQuery(dynamicQuery);
070            }
071    
072            /**
073             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
074             */
075            public static List<DLFolder> findWithDynamicQuery(DynamicQuery dynamicQuery)
076                    throws SystemException {
077                    return getPersistence().findWithDynamicQuery(dynamicQuery);
078            }
079    
080            /**
081             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
082             */
083            public static List<DLFolder> findWithDynamicQuery(
084                    DynamicQuery dynamicQuery, int start, int end)
085                    throws SystemException {
086                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
087            }
088    
089            /**
090             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
091             */
092            public static List<DLFolder> findWithDynamicQuery(
093                    DynamicQuery dynamicQuery, int start, int end,
094                    OrderByComparator orderByComparator) throws SystemException {
095                    return getPersistence()
096                                       .findWithDynamicQuery(dynamicQuery, start, end,
097                            orderByComparator);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
102             */
103            public static DLFolder update(DLFolder dlFolder) throws SystemException {
104                    return getPersistence().update(dlFolder);
105            }
106    
107            /**
108             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
109             */
110            public static DLFolder update(DLFolder dlFolder,
111                    ServiceContext serviceContext) throws SystemException {
112                    return getPersistence().update(dlFolder, serviceContext);
113            }
114    
115            /**
116            * Returns all the document library folders where uuid = &#63;.
117            *
118            * @param uuid the uuid
119            * @return the matching document library folders
120            * @throws SystemException if a system exception occurred
121            */
122            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid(
123                    java.lang.String uuid)
124                    throws com.liferay.portal.kernel.exception.SystemException {
125                    return getPersistence().findByUuid(uuid);
126            }
127    
128            /**
129            * Returns a range of all the document library folders where uuid = &#63;.
130            *
131            * <p>
132            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
133            * </p>
134            *
135            * @param uuid the uuid
136            * @param start the lower bound of the range of document library folders
137            * @param end the upper bound of the range of document library folders (not inclusive)
138            * @return the range of matching document library folders
139            * @throws SystemException if a system exception occurred
140            */
141            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid(
142                    java.lang.String uuid, int start, int end)
143                    throws com.liferay.portal.kernel.exception.SystemException {
144                    return getPersistence().findByUuid(uuid, start, end);
145            }
146    
147            /**
148            * Returns an ordered range of all the document library folders where uuid = &#63;.
149            *
150            * <p>
151            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
152            * </p>
153            *
154            * @param uuid the uuid
155            * @param start the lower bound of the range of document library folders
156            * @param end the upper bound of the range of document library folders (not inclusive)
157            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
158            * @return the ordered range of matching document library folders
159            * @throws SystemException if a system exception occurred
160            */
161            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid(
162                    java.lang.String uuid, int start, int end,
163                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
166            }
167    
168            /**
169            * Returns the first document library folder in the ordered set where uuid = &#63;.
170            *
171            * @param uuid the uuid
172            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
173            * @return the first matching document library folder
174            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public static com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_First(
178                    java.lang.String uuid,
179                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180                    throws com.liferay.portal.kernel.exception.SystemException,
181                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
182                    return getPersistence().findByUuid_First(uuid, orderByComparator);
183            }
184    
185            /**
186            * Returns the first document library folder in the ordered set where uuid = &#63;.
187            *
188            * @param uuid the uuid
189            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
190            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
191            * @throws SystemException if a system exception occurred
192            */
193            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUuid_First(
194                    java.lang.String uuid,
195                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
196                    throws com.liferay.portal.kernel.exception.SystemException {
197                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
198            }
199    
200            /**
201            * Returns the last document library folder in the ordered set where uuid = &#63;.
202            *
203            * @param uuid the uuid
204            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
205            * @return the last matching document library folder
206            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
207            * @throws SystemException if a system exception occurred
208            */
209            public static com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_Last(
210                    java.lang.String uuid,
211                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
212                    throws com.liferay.portal.kernel.exception.SystemException,
213                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
214                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
215            }
216    
217            /**
218            * Returns the last document library folder in the ordered set where uuid = &#63;.
219            *
220            * @param uuid the uuid
221            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
222            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
223            * @throws SystemException if a system exception occurred
224            */
225            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUuid_Last(
226                    java.lang.String uuid,
227                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
230            }
231    
232            /**
233            * Returns the document library folders before and after the current document library folder in the ordered set where uuid = &#63;.
234            *
235            * @param folderId the primary key of the current document library folder
236            * @param uuid the uuid
237            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
238            * @return the previous, current, and next document library folder
239            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
240            * @throws SystemException if a system exception occurred
241            */
242            public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByUuid_PrevAndNext(
243                    long folderId, java.lang.String uuid,
244                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
245                    throws com.liferay.portal.kernel.exception.SystemException,
246                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
247                    return getPersistence()
248                                       .findByUuid_PrevAndNext(folderId, uuid, orderByComparator);
249            }
250    
251            /**
252            * Removes all the document library folders where uuid = &#63; from the database.
253            *
254            * @param uuid the uuid
255            * @throws SystemException if a system exception occurred
256            */
257            public static void removeByUuid(java.lang.String uuid)
258                    throws com.liferay.portal.kernel.exception.SystemException {
259                    getPersistence().removeByUuid(uuid);
260            }
261    
262            /**
263            * Returns the number of document library folders where uuid = &#63;.
264            *
265            * @param uuid the uuid
266            * @return the number of matching document library folders
267            * @throws SystemException if a system exception occurred
268            */
269            public static int countByUuid(java.lang.String uuid)
270                    throws com.liferay.portal.kernel.exception.SystemException {
271                    return getPersistence().countByUuid(uuid);
272            }
273    
274            /**
275            * Returns the document library folder where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found.
276            *
277            * @param uuid the uuid
278            * @param groupId the group ID
279            * @return the matching document library folder
280            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
281            * @throws SystemException if a system exception occurred
282            */
283            public static com.liferay.portlet.documentlibrary.model.DLFolder findByUUID_G(
284                    java.lang.String uuid, long groupId)
285                    throws com.liferay.portal.kernel.exception.SystemException,
286                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
287                    return getPersistence().findByUUID_G(uuid, groupId);
288            }
289    
290            /**
291            * Returns the document library folder where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
292            *
293            * @param uuid the uuid
294            * @param groupId the group ID
295            * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
296            * @throws SystemException if a system exception occurred
297            */
298            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G(
299                    java.lang.String uuid, long groupId)
300                    throws com.liferay.portal.kernel.exception.SystemException {
301                    return getPersistence().fetchByUUID_G(uuid, groupId);
302            }
303    
304            /**
305            * Returns the document library folder where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
306            *
307            * @param uuid the uuid
308            * @param groupId the group ID
309            * @param retrieveFromCache whether to use the finder cache
310            * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
311            * @throws SystemException if a system exception occurred
312            */
313            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G(
314                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
315                    throws com.liferay.portal.kernel.exception.SystemException {
316                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
317            }
318    
319            /**
320            * Removes the document library folder where uuid = &#63; and groupId = &#63; from the database.
321            *
322            * @param uuid the uuid
323            * @param groupId the group ID
324            * @return the document library folder that was removed
325            * @throws SystemException if a system exception occurred
326            */
327            public static com.liferay.portlet.documentlibrary.model.DLFolder removeByUUID_G(
328                    java.lang.String uuid, long groupId)
329                    throws com.liferay.portal.kernel.exception.SystemException,
330                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
331                    return getPersistence().removeByUUID_G(uuid, groupId);
332            }
333    
334            /**
335            * Returns the number of document library folders where uuid = &#63; and groupId = &#63;.
336            *
337            * @param uuid the uuid
338            * @param groupId the group ID
339            * @return the number of matching document library folders
340            * @throws SystemException if a system exception occurred
341            */
342            public static int countByUUID_G(java.lang.String uuid, long groupId)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return getPersistence().countByUUID_G(uuid, groupId);
345            }
346    
347            /**
348            * Returns all the document library folders where uuid = &#63; and companyId = &#63;.
349            *
350            * @param uuid the uuid
351            * @param companyId the company ID
352            * @return the matching document library folders
353            * @throws SystemException if a system exception occurred
354            */
355            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid_C(
356                    java.lang.String uuid, long companyId)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    return getPersistence().findByUuid_C(uuid, companyId);
359            }
360    
361            /**
362            * Returns a range of all the document library folders where uuid = &#63; and companyId = &#63;.
363            *
364            * <p>
365            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
366            * </p>
367            *
368            * @param uuid the uuid
369            * @param companyId the company ID
370            * @param start the lower bound of the range of document library folders
371            * @param end the upper bound of the range of document library folders (not inclusive)
372            * @return the range of matching document library folders
373            * @throws SystemException if a system exception occurred
374            */
375            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid_C(
376                    java.lang.String uuid, long companyId, int start, int end)
377                    throws com.liferay.portal.kernel.exception.SystemException {
378                    return getPersistence().findByUuid_C(uuid, companyId, start, end);
379            }
380    
381            /**
382            * Returns an ordered range of all the document library folders where uuid = &#63; and companyId = &#63;.
383            *
384            * <p>
385            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
386            * </p>
387            *
388            * @param uuid the uuid
389            * @param companyId the company ID
390            * @param start the lower bound of the range of document library folders
391            * @param end the upper bound of the range of document library folders (not inclusive)
392            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
393            * @return the ordered range of matching document library folders
394            * @throws SystemException if a system exception occurred
395            */
396            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid_C(
397                    java.lang.String uuid, long companyId, int start, int end,
398                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
399                    throws com.liferay.portal.kernel.exception.SystemException {
400                    return getPersistence()
401                                       .findByUuid_C(uuid, companyId, start, end, orderByComparator);
402            }
403    
404            /**
405            * Returns the first document library folder in the ordered set where uuid = &#63; and companyId = &#63;.
406            *
407            * @param uuid the uuid
408            * @param companyId the company ID
409            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
410            * @return the first matching document library folder
411            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
412            * @throws SystemException if a system exception occurred
413            */
414            public static com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_C_First(
415                    java.lang.String uuid, long companyId,
416                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
417                    throws com.liferay.portal.kernel.exception.SystemException,
418                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
419                    return getPersistence()
420                                       .findByUuid_C_First(uuid, companyId, orderByComparator);
421            }
422    
423            /**
424            * Returns the first document library folder in the ordered set where uuid = &#63; and companyId = &#63;.
425            *
426            * @param uuid the uuid
427            * @param companyId the company ID
428            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
429            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
430            * @throws SystemException if a system exception occurred
431            */
432            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUuid_C_First(
433                    java.lang.String uuid, long companyId,
434                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435                    throws com.liferay.portal.kernel.exception.SystemException {
436                    return getPersistence()
437                                       .fetchByUuid_C_First(uuid, companyId, orderByComparator);
438            }
439    
440            /**
441            * Returns the last document library folder in the ordered set where uuid = &#63; and companyId = &#63;.
442            *
443            * @param uuid the uuid
444            * @param companyId the company ID
445            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
446            * @return the last matching document library folder
447            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
448            * @throws SystemException if a system exception occurred
449            */
450            public static com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_C_Last(
451                    java.lang.String uuid, long companyId,
452                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
453                    throws com.liferay.portal.kernel.exception.SystemException,
454                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
455                    return getPersistence()
456                                       .findByUuid_C_Last(uuid, companyId, orderByComparator);
457            }
458    
459            /**
460            * Returns the last document library folder in the ordered set where uuid = &#63; and companyId = &#63;.
461            *
462            * @param uuid the uuid
463            * @param companyId the company ID
464            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
465            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
466            * @throws SystemException if a system exception occurred
467            */
468            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUuid_C_Last(
469                    java.lang.String uuid, long companyId,
470                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
471                    throws com.liferay.portal.kernel.exception.SystemException {
472                    return getPersistence()
473                                       .fetchByUuid_C_Last(uuid, companyId, orderByComparator);
474            }
475    
476            /**
477            * Returns the document library folders before and after the current document library folder in the ordered set where uuid = &#63; and companyId = &#63;.
478            *
479            * @param folderId the primary key of the current document library folder
480            * @param uuid the uuid
481            * @param companyId the company ID
482            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
483            * @return the previous, current, and next document library folder
484            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
485            * @throws SystemException if a system exception occurred
486            */
487            public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByUuid_C_PrevAndNext(
488                    long folderId, java.lang.String uuid, long companyId,
489                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
490                    throws com.liferay.portal.kernel.exception.SystemException,
491                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
492                    return getPersistence()
493                                       .findByUuid_C_PrevAndNext(folderId, uuid, companyId,
494                            orderByComparator);
495            }
496    
497            /**
498            * Removes all the document library folders where uuid = &#63; and companyId = &#63; from the database.
499            *
500            * @param uuid the uuid
501            * @param companyId the company ID
502            * @throws SystemException if a system exception occurred
503            */
504            public static void removeByUuid_C(java.lang.String uuid, long companyId)
505                    throws com.liferay.portal.kernel.exception.SystemException {
506                    getPersistence().removeByUuid_C(uuid, companyId);
507            }
508    
509            /**
510            * Returns the number of document library folders where uuid = &#63; and companyId = &#63;.
511            *
512            * @param uuid the uuid
513            * @param companyId the company ID
514            * @return the number of matching document library folders
515            * @throws SystemException if a system exception occurred
516            */
517            public static int countByUuid_C(java.lang.String uuid, long companyId)
518                    throws com.liferay.portal.kernel.exception.SystemException {
519                    return getPersistence().countByUuid_C(uuid, companyId);
520            }
521    
522            /**
523            * Returns all the document library folders where groupId = &#63;.
524            *
525            * @param groupId the group ID
526            * @return the matching document library folders
527            * @throws SystemException if a system exception occurred
528            */
529            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
530                    long groupId)
531                    throws com.liferay.portal.kernel.exception.SystemException {
532                    return getPersistence().findByGroupId(groupId);
533            }
534    
535            /**
536            * Returns a range of all the document library folders where groupId = &#63;.
537            *
538            * <p>
539            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
540            * </p>
541            *
542            * @param groupId the group ID
543            * @param start the lower bound of the range of document library folders
544            * @param end the upper bound of the range of document library folders (not inclusive)
545            * @return the range of matching document library folders
546            * @throws SystemException if a system exception occurred
547            */
548            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
549                    long groupId, int start, int end)
550                    throws com.liferay.portal.kernel.exception.SystemException {
551                    return getPersistence().findByGroupId(groupId, start, end);
552            }
553    
554            /**
555            * Returns an ordered range of all the document library folders where groupId = &#63;.
556            *
557            * <p>
558            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
559            * </p>
560            *
561            * @param groupId the group ID
562            * @param start the lower bound of the range of document library folders
563            * @param end the upper bound of the range of document library folders (not inclusive)
564            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
565            * @return the ordered range of matching document library folders
566            * @throws SystemException if a system exception occurred
567            */
568            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
569                    long groupId, int start, int end,
570                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
571                    throws com.liferay.portal.kernel.exception.SystemException {
572                    return getPersistence()
573                                       .findByGroupId(groupId, start, end, orderByComparator);
574            }
575    
576            /**
577            * Returns the first document library folder in the ordered set where groupId = &#63;.
578            *
579            * @param groupId the group ID
580            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
581            * @return the first matching document library folder
582            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
583            * @throws SystemException if a system exception occurred
584            */
585            public static com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_First(
586                    long groupId,
587                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
588                    throws com.liferay.portal.kernel.exception.SystemException,
589                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
590                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
591            }
592    
593            /**
594            * Returns the first document library folder in the ordered set where groupId = &#63;.
595            *
596            * @param groupId the group ID
597            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
598            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
599            * @throws SystemException if a system exception occurred
600            */
601            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByGroupId_First(
602                    long groupId,
603                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
604                    throws com.liferay.portal.kernel.exception.SystemException {
605                    return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
606            }
607    
608            /**
609            * Returns the last document library folder in the ordered set where groupId = &#63;.
610            *
611            * @param groupId the group ID
612            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
613            * @return the last matching document library folder
614            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
615            * @throws SystemException if a system exception occurred
616            */
617            public static com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_Last(
618                    long groupId,
619                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
620                    throws com.liferay.portal.kernel.exception.SystemException,
621                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
622                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
623            }
624    
625            /**
626            * Returns the last document library folder in the ordered set where groupId = &#63;.
627            *
628            * @param groupId the group ID
629            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
630            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
631            * @throws SystemException if a system exception occurred
632            */
633            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByGroupId_Last(
634                    long groupId,
635                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
636                    throws com.liferay.portal.kernel.exception.SystemException {
637                    return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
638            }
639    
640            /**
641            * Returns the document library folders before and after the current document library folder in the ordered set where groupId = &#63;.
642            *
643            * @param folderId the primary key of the current document library folder
644            * @param groupId the group ID
645            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
646            * @return the previous, current, and next document library folder
647            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
648            * @throws SystemException if a system exception occurred
649            */
650            public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByGroupId_PrevAndNext(
651                    long folderId, long groupId,
652                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
653                    throws com.liferay.portal.kernel.exception.SystemException,
654                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
655                    return getPersistence()
656                                       .findByGroupId_PrevAndNext(folderId, groupId,
657                            orderByComparator);
658            }
659    
660            /**
661            * Returns all the document library folders that the user has permission to view where groupId = &#63;.
662            *
663            * @param groupId the group ID
664            * @return the matching document library folders that the user has permission to view
665            * @throws SystemException if a system exception occurred
666            */
667            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId(
668                    long groupId)
669                    throws com.liferay.portal.kernel.exception.SystemException {
670                    return getPersistence().filterFindByGroupId(groupId);
671            }
672    
673            /**
674            * Returns a range of all the document library folders that the user has permission to view where groupId = &#63;.
675            *
676            * <p>
677            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
678            * </p>
679            *
680            * @param groupId the group ID
681            * @param start the lower bound of the range of document library folders
682            * @param end the upper bound of the range of document library folders (not inclusive)
683            * @return the range of matching document library folders that the user has permission to view
684            * @throws SystemException if a system exception occurred
685            */
686            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId(
687                    long groupId, int start, int end)
688                    throws com.liferay.portal.kernel.exception.SystemException {
689                    return getPersistence().filterFindByGroupId(groupId, start, end);
690            }
691    
692            /**
693            * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = &#63;.
694            *
695            * <p>
696            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
697            * </p>
698            *
699            * @param groupId the group ID
700            * @param start the lower bound of the range of document library folders
701            * @param end the upper bound of the range of document library folders (not inclusive)
702            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
703            * @return the ordered range of matching document library folders that the user has permission to view
704            * @throws SystemException if a system exception occurred
705            */
706            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId(
707                    long groupId, int start, int end,
708                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
709                    throws com.liferay.portal.kernel.exception.SystemException {
710                    return getPersistence()
711                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
712            }
713    
714            /**
715            * Returns the document library folders before and after the current document library folder in the ordered set of document library folders that the user has permission to view where groupId = &#63;.
716            *
717            * @param folderId the primary key of the current document library folder
718            * @param groupId the group ID
719            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
720            * @return the previous, current, and next document library folder
721            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
722            * @throws SystemException if a system exception occurred
723            */
724            public static com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByGroupId_PrevAndNext(
725                    long folderId, long groupId,
726                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
727                    throws com.liferay.portal.kernel.exception.SystemException,
728                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
729                    return getPersistence()
730                                       .filterFindByGroupId_PrevAndNext(folderId, groupId,
731                            orderByComparator);
732            }
733    
734            /**
735            * Removes all the document library folders where groupId = &#63; from the database.
736            *
737            * @param groupId the group ID
738            * @throws SystemException if a system exception occurred
739            */
740            public static void removeByGroupId(long groupId)
741                    throws com.liferay.portal.kernel.exception.SystemException {
742                    getPersistence().removeByGroupId(groupId);
743            }
744    
745            /**
746            * Returns the number of document library folders where groupId = &#63;.
747            *
748            * @param groupId the group ID
749            * @return the number of matching document library folders
750            * @throws SystemException if a system exception occurred
751            */
752            public static int countByGroupId(long groupId)
753                    throws com.liferay.portal.kernel.exception.SystemException {
754                    return getPersistence().countByGroupId(groupId);
755            }
756    
757            /**
758            * Returns the number of document library folders that the user has permission to view where groupId = &#63;.
759            *
760            * @param groupId the group ID
761            * @return the number of matching document library folders that the user has permission to view
762            * @throws SystemException if a system exception occurred
763            */
764            public static int filterCountByGroupId(long groupId)
765                    throws com.liferay.portal.kernel.exception.SystemException {
766                    return getPersistence().filterCountByGroupId(groupId);
767            }
768    
769            /**
770            * Returns all the document library folders where companyId = &#63;.
771            *
772            * @param companyId the company ID
773            * @return the matching document library folders
774            * @throws SystemException if a system exception occurred
775            */
776            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
777                    long companyId)
778                    throws com.liferay.portal.kernel.exception.SystemException {
779                    return getPersistence().findByCompanyId(companyId);
780            }
781    
782            /**
783            * Returns a range of all the document library folders where companyId = &#63;.
784            *
785            * <p>
786            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
787            * </p>
788            *
789            * @param companyId the company ID
790            * @param start the lower bound of the range of document library folders
791            * @param end the upper bound of the range of document library folders (not inclusive)
792            * @return the range of matching document library folders
793            * @throws SystemException if a system exception occurred
794            */
795            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
796                    long companyId, int start, int end)
797                    throws com.liferay.portal.kernel.exception.SystemException {
798                    return getPersistence().findByCompanyId(companyId, start, end);
799            }
800    
801            /**
802            * Returns an ordered range of all the document library folders where companyId = &#63;.
803            *
804            * <p>
805            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
806            * </p>
807            *
808            * @param companyId the company ID
809            * @param start the lower bound of the range of document library folders
810            * @param end the upper bound of the range of document library folders (not inclusive)
811            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
812            * @return the ordered range of matching document library folders
813            * @throws SystemException if a system exception occurred
814            */
815            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
816                    long companyId, int start, int end,
817                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
818                    throws com.liferay.portal.kernel.exception.SystemException {
819                    return getPersistence()
820                                       .findByCompanyId(companyId, start, end, orderByComparator);
821            }
822    
823            /**
824            * Returns the first document library folder in the ordered set where companyId = &#63;.
825            *
826            * @param companyId the company ID
827            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
828            * @return the first matching document library folder
829            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
830            * @throws SystemException if a system exception occurred
831            */
832            public static com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_First(
833                    long companyId,
834                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
835                    throws com.liferay.portal.kernel.exception.SystemException,
836                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
837                    return getPersistence()
838                                       .findByCompanyId_First(companyId, orderByComparator);
839            }
840    
841            /**
842            * Returns the first document library folder in the ordered set where companyId = &#63;.
843            *
844            * @param companyId the company ID
845            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
846            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
847            * @throws SystemException if a system exception occurred
848            */
849            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByCompanyId_First(
850                    long companyId,
851                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
852                    throws com.liferay.portal.kernel.exception.SystemException {
853                    return getPersistence()
854                                       .fetchByCompanyId_First(companyId, orderByComparator);
855            }
856    
857            /**
858            * Returns the last document library folder in the ordered set where companyId = &#63;.
859            *
860            * @param companyId the company ID
861            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
862            * @return the last matching document library folder
863            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
864            * @throws SystemException if a system exception occurred
865            */
866            public static com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_Last(
867                    long companyId,
868                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
869                    throws com.liferay.portal.kernel.exception.SystemException,
870                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
871                    return getPersistence()
872                                       .findByCompanyId_Last(companyId, orderByComparator);
873            }
874    
875            /**
876            * Returns the last document library folder in the ordered set where companyId = &#63;.
877            *
878            * @param companyId the company ID
879            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
880            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
881            * @throws SystemException if a system exception occurred
882            */
883            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByCompanyId_Last(
884                    long companyId,
885                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
886                    throws com.liferay.portal.kernel.exception.SystemException {
887                    return getPersistence()
888                                       .fetchByCompanyId_Last(companyId, orderByComparator);
889            }
890    
891            /**
892            * Returns the document library folders before and after the current document library folder in the ordered set where companyId = &#63;.
893            *
894            * @param folderId the primary key of the current document library folder
895            * @param companyId the company ID
896            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
897            * @return the previous, current, and next document library folder
898            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
899            * @throws SystemException if a system exception occurred
900            */
901            public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByCompanyId_PrevAndNext(
902                    long folderId, long companyId,
903                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
904                    throws com.liferay.portal.kernel.exception.SystemException,
905                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
906                    return getPersistence()
907                                       .findByCompanyId_PrevAndNext(folderId, companyId,
908                            orderByComparator);
909            }
910    
911            /**
912            * Removes all the document library folders where companyId = &#63; from the database.
913            *
914            * @param companyId the company ID
915            * @throws SystemException if a system exception occurred
916            */
917            public static void removeByCompanyId(long companyId)
918                    throws com.liferay.portal.kernel.exception.SystemException {
919                    getPersistence().removeByCompanyId(companyId);
920            }
921    
922            /**
923            * Returns the number of document library folders where companyId = &#63;.
924            *
925            * @param companyId the company ID
926            * @return the number of matching document library folders
927            * @throws SystemException if a system exception occurred
928            */
929            public static int countByCompanyId(long companyId)
930                    throws com.liferay.portal.kernel.exception.SystemException {
931                    return getPersistence().countByCompanyId(companyId);
932            }
933    
934            /**
935            * Returns the document library folder where repositoryId = &#63; or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found.
936            *
937            * @param repositoryId the repository ID
938            * @return the matching document library folder
939            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
940            * @throws SystemException if a system exception occurred
941            */
942            public static com.liferay.portlet.documentlibrary.model.DLFolder findByRepositoryId(
943                    long repositoryId)
944                    throws com.liferay.portal.kernel.exception.SystemException,
945                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
946                    return getPersistence().findByRepositoryId(repositoryId);
947            }
948    
949            /**
950            * Returns the document library folder where repositoryId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
951            *
952            * @param repositoryId the repository ID
953            * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
954            * @throws SystemException if a system exception occurred
955            */
956            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByRepositoryId(
957                    long repositoryId)
958                    throws com.liferay.portal.kernel.exception.SystemException {
959                    return getPersistence().fetchByRepositoryId(repositoryId);
960            }
961    
962            /**
963            * Returns the document library folder where repositoryId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
964            *
965            * @param repositoryId the repository ID
966            * @param retrieveFromCache whether to use the finder cache
967            * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
968            * @throws SystemException if a system exception occurred
969            */
970            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByRepositoryId(
971                    long repositoryId, boolean retrieveFromCache)
972                    throws com.liferay.portal.kernel.exception.SystemException {
973                    return getPersistence()
974                                       .fetchByRepositoryId(repositoryId, retrieveFromCache);
975            }
976    
977            /**
978            * Removes the document library folder where repositoryId = &#63; from the database.
979            *
980            * @param repositoryId the repository ID
981            * @return the document library folder that was removed
982            * @throws SystemException if a system exception occurred
983            */
984            public static com.liferay.portlet.documentlibrary.model.DLFolder removeByRepositoryId(
985                    long repositoryId)
986                    throws com.liferay.portal.kernel.exception.SystemException,
987                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
988                    return getPersistence().removeByRepositoryId(repositoryId);
989            }
990    
991            /**
992            * Returns the number of document library folders where repositoryId = &#63;.
993            *
994            * @param repositoryId the repository ID
995            * @return the number of matching document library folders
996            * @throws SystemException if a system exception occurred
997            */
998            public static int countByRepositoryId(long repositoryId)
999                    throws com.liferay.portal.kernel.exception.SystemException {
1000                    return getPersistence().countByRepositoryId(repositoryId);
1001            }
1002    
1003            /**
1004            * Returns all the document library folders where repositoryId = &#63;.
1005            *
1006            * @param repositoryId the repository ID
1007            * @return the matching document library folders
1008            * @throws SystemException if a system exception occurred
1009            */
1010            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByRepositoryIdList(
1011                    long repositoryId)
1012                    throws com.liferay.portal.kernel.exception.SystemException {
1013                    return getPersistence().findByRepositoryIdList(repositoryId);
1014            }
1015    
1016            /**
1017            * Returns a range of all the document library folders where repositoryId = &#63;.
1018            *
1019            * <p>
1020            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1021            * </p>
1022            *
1023            * @param repositoryId the repository ID
1024            * @param start the lower bound of the range of document library folders
1025            * @param end the upper bound of the range of document library folders (not inclusive)
1026            * @return the range of matching document library folders
1027            * @throws SystemException if a system exception occurred
1028            */
1029            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByRepositoryIdList(
1030                    long repositoryId, int start, int end)
1031                    throws com.liferay.portal.kernel.exception.SystemException {
1032                    return getPersistence().findByRepositoryIdList(repositoryId, start, end);
1033            }
1034    
1035            /**
1036            * Returns an ordered range of all the document library folders where repositoryId = &#63;.
1037            *
1038            * <p>
1039            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1040            * </p>
1041            *
1042            * @param repositoryId the repository ID
1043            * @param start the lower bound of the range of document library folders
1044            * @param end the upper bound of the range of document library folders (not inclusive)
1045            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1046            * @return the ordered range of matching document library folders
1047            * @throws SystemException if a system exception occurred
1048            */
1049            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByRepositoryIdList(
1050                    long repositoryId, int start, int end,
1051                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1052                    throws com.liferay.portal.kernel.exception.SystemException {
1053                    return getPersistence()
1054                                       .findByRepositoryIdList(repositoryId, start, end,
1055                            orderByComparator);
1056            }
1057    
1058            /**
1059            * Returns the first document library folder in the ordered set where repositoryId = &#63;.
1060            *
1061            * @param repositoryId the repository ID
1062            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1063            * @return the first matching document library folder
1064            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1065            * @throws SystemException if a system exception occurred
1066            */
1067            public static com.liferay.portlet.documentlibrary.model.DLFolder findByRepositoryIdList_First(
1068                    long repositoryId,
1069                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1070                    throws com.liferay.portal.kernel.exception.SystemException,
1071                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1072                    return getPersistence()
1073                                       .findByRepositoryIdList_First(repositoryId, orderByComparator);
1074            }
1075    
1076            /**
1077            * Returns the first document library folder in the ordered set where repositoryId = &#63;.
1078            *
1079            * @param repositoryId the repository ID
1080            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1081            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
1082            * @throws SystemException if a system exception occurred
1083            */
1084            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByRepositoryIdList_First(
1085                    long repositoryId,
1086                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1087                    throws com.liferay.portal.kernel.exception.SystemException {
1088                    return getPersistence()
1089                                       .fetchByRepositoryIdList_First(repositoryId,
1090                            orderByComparator);
1091            }
1092    
1093            /**
1094            * Returns the last document library folder in the ordered set where repositoryId = &#63;.
1095            *
1096            * @param repositoryId the repository ID
1097            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1098            * @return the last matching document library folder
1099            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1100            * @throws SystemException if a system exception occurred
1101            */
1102            public static com.liferay.portlet.documentlibrary.model.DLFolder findByRepositoryIdList_Last(
1103                    long repositoryId,
1104                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1105                    throws com.liferay.portal.kernel.exception.SystemException,
1106                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1107                    return getPersistence()
1108                                       .findByRepositoryIdList_Last(repositoryId, orderByComparator);
1109            }
1110    
1111            /**
1112            * Returns the last document library folder in the ordered set where repositoryId = &#63;.
1113            *
1114            * @param repositoryId the repository ID
1115            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1116            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
1117            * @throws SystemException if a system exception occurred
1118            */
1119            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByRepositoryIdList_Last(
1120                    long repositoryId,
1121                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1122                    throws com.liferay.portal.kernel.exception.SystemException {
1123                    return getPersistence()
1124                                       .fetchByRepositoryIdList_Last(repositoryId, orderByComparator);
1125            }
1126    
1127            /**
1128            * Returns the document library folders before and after the current document library folder in the ordered set where repositoryId = &#63;.
1129            *
1130            * @param folderId the primary key of the current document library folder
1131            * @param repositoryId the repository ID
1132            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1133            * @return the previous, current, and next document library folder
1134            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
1135            * @throws SystemException if a system exception occurred
1136            */
1137            public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByRepositoryIdList_PrevAndNext(
1138                    long folderId, long repositoryId,
1139                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1140                    throws com.liferay.portal.kernel.exception.SystemException,
1141                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1142                    return getPersistence()
1143                                       .findByRepositoryIdList_PrevAndNext(folderId, repositoryId,
1144                            orderByComparator);
1145            }
1146    
1147            /**
1148            * Removes all the document library folders where repositoryId = &#63; from the database.
1149            *
1150            * @param repositoryId the repository ID
1151            * @throws SystemException if a system exception occurred
1152            */
1153            public static void removeByRepositoryIdList(long repositoryId)
1154                    throws com.liferay.portal.kernel.exception.SystemException {
1155                    getPersistence().removeByRepositoryIdList(repositoryId);
1156            }
1157    
1158            /**
1159            * Returns the number of document library folders where repositoryId = &#63;.
1160            *
1161            * @param repositoryId the repository ID
1162            * @return the number of matching document library folders
1163            * @throws SystemException if a system exception occurred
1164            */
1165            public static int countByRepositoryIdList(long repositoryId)
1166                    throws com.liferay.portal.kernel.exception.SystemException {
1167                    return getPersistence().countByRepositoryIdList(repositoryId);
1168            }
1169    
1170            /**
1171            * Returns all the document library folders where groupId = &#63; and parentFolderId = &#63;.
1172            *
1173            * @param groupId the group ID
1174            * @param parentFolderId the parent folder ID
1175            * @return the matching document library folders
1176            * @throws SystemException if a system exception occurred
1177            */
1178            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
1179                    long groupId, long parentFolderId)
1180                    throws com.liferay.portal.kernel.exception.SystemException {
1181                    return getPersistence().findByG_P(groupId, parentFolderId);
1182            }
1183    
1184            /**
1185            * Returns a range of all the document library folders where groupId = &#63; and parentFolderId = &#63;.
1186            *
1187            * <p>
1188            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1189            * </p>
1190            *
1191            * @param groupId the group ID
1192            * @param parentFolderId the parent folder ID
1193            * @param start the lower bound of the range of document library folders
1194            * @param end the upper bound of the range of document library folders (not inclusive)
1195            * @return the range of matching document library folders
1196            * @throws SystemException if a system exception occurred
1197            */
1198            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
1199                    long groupId, long parentFolderId, int start, int end)
1200                    throws com.liferay.portal.kernel.exception.SystemException {
1201                    return getPersistence().findByG_P(groupId, parentFolderId, start, end);
1202            }
1203    
1204            /**
1205            * Returns an ordered range of all the document library folders where groupId = &#63; and parentFolderId = &#63;.
1206            *
1207            * <p>
1208            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1209            * </p>
1210            *
1211            * @param groupId the group ID
1212            * @param parentFolderId the parent folder ID
1213            * @param start the lower bound of the range of document library folders
1214            * @param end the upper bound of the range of document library folders (not inclusive)
1215            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1216            * @return the ordered range of matching document library folders
1217            * @throws SystemException if a system exception occurred
1218            */
1219            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
1220                    long groupId, long parentFolderId, int start, int end,
1221                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1222                    throws com.liferay.portal.kernel.exception.SystemException {
1223                    return getPersistence()
1224                                       .findByG_P(groupId, parentFolderId, start, end,
1225                            orderByComparator);
1226            }
1227    
1228            /**
1229            * Returns the first document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
1230            *
1231            * @param groupId the group ID
1232            * @param parentFolderId the parent folder ID
1233            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1234            * @return the first matching document library folder
1235            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1236            * @throws SystemException if a system exception occurred
1237            */
1238            public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_First(
1239                    long groupId, long parentFolderId,
1240                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1241                    throws com.liferay.portal.kernel.exception.SystemException,
1242                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1243                    return getPersistence()
1244                                       .findByG_P_First(groupId, parentFolderId, orderByComparator);
1245            }
1246    
1247            /**
1248            * Returns the first document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
1249            *
1250            * @param groupId the group ID
1251            * @param parentFolderId the parent folder ID
1252            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1253            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
1254            * @throws SystemException if a system exception occurred
1255            */
1256            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_First(
1257                    long groupId, long parentFolderId,
1258                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1259                    throws com.liferay.portal.kernel.exception.SystemException {
1260                    return getPersistence()
1261                                       .fetchByG_P_First(groupId, parentFolderId, orderByComparator);
1262            }
1263    
1264            /**
1265            * Returns the last document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
1266            *
1267            * @param groupId the group ID
1268            * @param parentFolderId the parent folder ID
1269            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1270            * @return the last matching document library folder
1271            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1272            * @throws SystemException if a system exception occurred
1273            */
1274            public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_Last(
1275                    long groupId, long parentFolderId,
1276                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1277                    throws com.liferay.portal.kernel.exception.SystemException,
1278                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1279                    return getPersistence()
1280                                       .findByG_P_Last(groupId, parentFolderId, orderByComparator);
1281            }
1282    
1283            /**
1284            * Returns the last document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
1285            *
1286            * @param groupId the group ID
1287            * @param parentFolderId the parent folder ID
1288            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1289            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
1290            * @throws SystemException if a system exception occurred
1291            */
1292            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_Last(
1293                    long groupId, long parentFolderId,
1294                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1295                    throws com.liferay.portal.kernel.exception.SystemException {
1296                    return getPersistence()
1297                                       .fetchByG_P_Last(groupId, parentFolderId, orderByComparator);
1298            }
1299    
1300            /**
1301            * Returns the document library folders before and after the current document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
1302            *
1303            * @param folderId the primary key of the current document library folder
1304            * @param groupId the group ID
1305            * @param parentFolderId the parent folder ID
1306            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1307            * @return the previous, current, and next document library folder
1308            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
1309            * @throws SystemException if a system exception occurred
1310            */
1311            public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_PrevAndNext(
1312                    long folderId, long groupId, long parentFolderId,
1313                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1314                    throws com.liferay.portal.kernel.exception.SystemException,
1315                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1316                    return getPersistence()
1317                                       .findByG_P_PrevAndNext(folderId, groupId, parentFolderId,
1318                            orderByComparator);
1319            }
1320    
1321            /**
1322            * Returns all the document library folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63;.
1323            *
1324            * @param groupId the group ID
1325            * @param parentFolderId the parent folder ID
1326            * @return the matching document library folders that the user has permission to view
1327            * @throws SystemException if a system exception occurred
1328            */
1329            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P(
1330                    long groupId, long parentFolderId)
1331                    throws com.liferay.portal.kernel.exception.SystemException {
1332                    return getPersistence().filterFindByG_P(groupId, parentFolderId);
1333            }
1334    
1335            /**
1336            * Returns a range of all the document library folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63;.
1337            *
1338            * <p>
1339            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1340            * </p>
1341            *
1342            * @param groupId the group ID
1343            * @param parentFolderId the parent folder ID
1344            * @param start the lower bound of the range of document library folders
1345            * @param end the upper bound of the range of document library folders (not inclusive)
1346            * @return the range of matching document library folders that the user has permission to view
1347            * @throws SystemException if a system exception occurred
1348            */
1349            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P(
1350                    long groupId, long parentFolderId, int start, int end)
1351                    throws com.liferay.portal.kernel.exception.SystemException {
1352                    return getPersistence()
1353                                       .filterFindByG_P(groupId, parentFolderId, start, end);
1354            }
1355    
1356            /**
1357            * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = &#63; and parentFolderId = &#63;.
1358            *
1359            * <p>
1360            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1361            * </p>
1362            *
1363            * @param groupId the group ID
1364            * @param parentFolderId the parent folder ID
1365            * @param start the lower bound of the range of document library folders
1366            * @param end the upper bound of the range of document library folders (not inclusive)
1367            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1368            * @return the ordered range of matching document library folders that the user has permission to view
1369            * @throws SystemException if a system exception occurred
1370            */
1371            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P(
1372                    long groupId, long parentFolderId, int start, int end,
1373                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1374                    throws com.liferay.portal.kernel.exception.SystemException {
1375                    return getPersistence()
1376                                       .filterFindByG_P(groupId, parentFolderId, start, end,
1377                            orderByComparator);
1378            }
1379    
1380            /**
1381            * Returns the document library folders before and after the current document library folder in the ordered set of document library folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63;.
1382            *
1383            * @param folderId the primary key of the current document library folder
1384            * @param groupId the group ID
1385            * @param parentFolderId the parent folder ID
1386            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1387            * @return the previous, current, and next document library folder
1388            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
1389            * @throws SystemException if a system exception occurred
1390            */
1391            public static com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByG_P_PrevAndNext(
1392                    long folderId, long groupId, long parentFolderId,
1393                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1394                    throws com.liferay.portal.kernel.exception.SystemException,
1395                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1396                    return getPersistence()
1397                                       .filterFindByG_P_PrevAndNext(folderId, groupId,
1398                            parentFolderId, orderByComparator);
1399            }
1400    
1401            /**
1402            * Removes all the document library folders where groupId = &#63; and parentFolderId = &#63; from the database.
1403            *
1404            * @param groupId the group ID
1405            * @param parentFolderId the parent folder ID
1406            * @throws SystemException if a system exception occurred
1407            */
1408            public static void removeByG_P(long groupId, long parentFolderId)
1409                    throws com.liferay.portal.kernel.exception.SystemException {
1410                    getPersistence().removeByG_P(groupId, parentFolderId);
1411            }
1412    
1413            /**
1414            * Returns the number of document library folders where groupId = &#63; and parentFolderId = &#63;.
1415            *
1416            * @param groupId the group ID
1417            * @param parentFolderId the parent folder ID
1418            * @return the number of matching document library folders
1419            * @throws SystemException if a system exception occurred
1420            */
1421            public static int countByG_P(long groupId, long parentFolderId)
1422                    throws com.liferay.portal.kernel.exception.SystemException {
1423                    return getPersistence().countByG_P(groupId, parentFolderId);
1424            }
1425    
1426            /**
1427            * Returns the number of document library folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63;.
1428            *
1429            * @param groupId the group ID
1430            * @param parentFolderId the parent folder ID
1431            * @return the number of matching document library folders that the user has permission to view
1432            * @throws SystemException if a system exception occurred
1433            */
1434            public static int filterCountByG_P(long groupId, long parentFolderId)
1435                    throws com.liferay.portal.kernel.exception.SystemException {
1436                    return getPersistence().filterCountByG_P(groupId, parentFolderId);
1437            }
1438    
1439            /**
1440            * Returns all the document library folders where companyId = &#63; and status &ne; &#63;.
1441            *
1442            * @param companyId the company ID
1443            * @param status the status
1444            * @return the matching document library folders
1445            * @throws SystemException if a system exception occurred
1446            */
1447            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByC_NotS(
1448                    long companyId, int status)
1449                    throws com.liferay.portal.kernel.exception.SystemException {
1450                    return getPersistence().findByC_NotS(companyId, status);
1451            }
1452    
1453            /**
1454            * Returns a range of all the document library folders where companyId = &#63; and status &ne; &#63;.
1455            *
1456            * <p>
1457            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1458            * </p>
1459            *
1460            * @param companyId the company ID
1461            * @param status the status
1462            * @param start the lower bound of the range of document library folders
1463            * @param end the upper bound of the range of document library folders (not inclusive)
1464            * @return the range of matching document library folders
1465            * @throws SystemException if a system exception occurred
1466            */
1467            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByC_NotS(
1468                    long companyId, int status, int start, int end)
1469                    throws com.liferay.portal.kernel.exception.SystemException {
1470                    return getPersistence().findByC_NotS(companyId, status, start, end);
1471            }
1472    
1473            /**
1474            * Returns an ordered range of all the document library folders where companyId = &#63; and status &ne; &#63;.
1475            *
1476            * <p>
1477            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1478            * </p>
1479            *
1480            * @param companyId the company ID
1481            * @param status the status
1482            * @param start the lower bound of the range of document library folders
1483            * @param end the upper bound of the range of document library folders (not inclusive)
1484            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1485            * @return the ordered range of matching document library folders
1486            * @throws SystemException if a system exception occurred
1487            */
1488            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByC_NotS(
1489                    long companyId, int status, int start, int end,
1490                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1491                    throws com.liferay.portal.kernel.exception.SystemException {
1492                    return getPersistence()
1493                                       .findByC_NotS(companyId, status, start, end,
1494                            orderByComparator);
1495            }
1496    
1497            /**
1498            * Returns the first document library folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1499            *
1500            * @param companyId the company ID
1501            * @param status the status
1502            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1503            * @return the first matching document library folder
1504            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1505            * @throws SystemException if a system exception occurred
1506            */
1507            public static com.liferay.portlet.documentlibrary.model.DLFolder findByC_NotS_First(
1508                    long companyId, int status,
1509                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1510                    throws com.liferay.portal.kernel.exception.SystemException,
1511                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1512                    return getPersistence()
1513                                       .findByC_NotS_First(companyId, status, orderByComparator);
1514            }
1515    
1516            /**
1517            * Returns the first document library folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1518            *
1519            * @param companyId the company ID
1520            * @param status the status
1521            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1522            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
1523            * @throws SystemException if a system exception occurred
1524            */
1525            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByC_NotS_First(
1526                    long companyId, int status,
1527                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1528                    throws com.liferay.portal.kernel.exception.SystemException {
1529                    return getPersistence()
1530                                       .fetchByC_NotS_First(companyId, status, orderByComparator);
1531            }
1532    
1533            /**
1534            * Returns the last document library folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1535            *
1536            * @param companyId the company ID
1537            * @param status the status
1538            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1539            * @return the last matching document library folder
1540            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1541            * @throws SystemException if a system exception occurred
1542            */
1543            public static com.liferay.portlet.documentlibrary.model.DLFolder findByC_NotS_Last(
1544                    long companyId, int status,
1545                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1546                    throws com.liferay.portal.kernel.exception.SystemException,
1547                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1548                    return getPersistence()
1549                                       .findByC_NotS_Last(companyId, status, orderByComparator);
1550            }
1551    
1552            /**
1553            * Returns the last document library folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1554            *
1555            * @param companyId the company ID
1556            * @param status the status
1557            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1558            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
1559            * @throws SystemException if a system exception occurred
1560            */
1561            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByC_NotS_Last(
1562                    long companyId, int status,
1563                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1564                    throws com.liferay.portal.kernel.exception.SystemException {
1565                    return getPersistence()
1566                                       .fetchByC_NotS_Last(companyId, status, orderByComparator);
1567            }
1568    
1569            /**
1570            * Returns the document library folders before and after the current document library folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1571            *
1572            * @param folderId the primary key of the current document library folder
1573            * @param companyId the company ID
1574            * @param status the status
1575            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1576            * @return the previous, current, and next document library folder
1577            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
1578            * @throws SystemException if a system exception occurred
1579            */
1580            public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByC_NotS_PrevAndNext(
1581                    long folderId, long companyId, int status,
1582                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1583                    throws com.liferay.portal.kernel.exception.SystemException,
1584                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1585                    return getPersistence()
1586                                       .findByC_NotS_PrevAndNext(folderId, companyId, status,
1587                            orderByComparator);
1588            }
1589    
1590            /**
1591            * Removes all the document library folders where companyId = &#63; and status &ne; &#63; from the database.
1592            *
1593            * @param companyId the company ID
1594            * @param status the status
1595            * @throws SystemException if a system exception occurred
1596            */
1597            public static void removeByC_NotS(long companyId, int status)
1598                    throws com.liferay.portal.kernel.exception.SystemException {
1599                    getPersistence().removeByC_NotS(companyId, status);
1600            }
1601    
1602            /**
1603            * Returns the number of document library folders where companyId = &#63; and status &ne; &#63;.
1604            *
1605            * @param companyId the company ID
1606            * @param status the status
1607            * @return the number of matching document library folders
1608            * @throws SystemException if a system exception occurred
1609            */
1610            public static int countByC_NotS(long companyId, int status)
1611                    throws com.liferay.portal.kernel.exception.SystemException {
1612                    return getPersistence().countByC_NotS(companyId, status);
1613            }
1614    
1615            /**
1616            * Returns all the document library folders where parentFolderId = &#63; and name = &#63;.
1617            *
1618            * @param parentFolderId the parent folder ID
1619            * @param name the name
1620            * @return the matching document library folders
1621            * @throws SystemException if a system exception occurred
1622            */
1623            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
1624                    long parentFolderId, java.lang.String name)
1625                    throws com.liferay.portal.kernel.exception.SystemException {
1626                    return getPersistence().findByP_N(parentFolderId, name);
1627            }
1628    
1629            /**
1630            * Returns a range of all the document library folders where parentFolderId = &#63; and name = &#63;.
1631            *
1632            * <p>
1633            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1634            * </p>
1635            *
1636            * @param parentFolderId the parent folder ID
1637            * @param name the name
1638            * @param start the lower bound of the range of document library folders
1639            * @param end the upper bound of the range of document library folders (not inclusive)
1640            * @return the range of matching document library folders
1641            * @throws SystemException if a system exception occurred
1642            */
1643            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
1644                    long parentFolderId, java.lang.String name, int start, int end)
1645                    throws com.liferay.portal.kernel.exception.SystemException {
1646                    return getPersistence().findByP_N(parentFolderId, name, start, end);
1647            }
1648    
1649            /**
1650            * Returns an ordered range of all the document library folders where parentFolderId = &#63; and name = &#63;.
1651            *
1652            * <p>
1653            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1654            * </p>
1655            *
1656            * @param parentFolderId the parent folder ID
1657            * @param name the name
1658            * @param start the lower bound of the range of document library folders
1659            * @param end the upper bound of the range of document library folders (not inclusive)
1660            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1661            * @return the ordered range of matching document library folders
1662            * @throws SystemException if a system exception occurred
1663            */
1664            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
1665                    long parentFolderId, java.lang.String name, int start, int end,
1666                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1667                    throws com.liferay.portal.kernel.exception.SystemException {
1668                    return getPersistence()
1669                                       .findByP_N(parentFolderId, name, start, end,
1670                            orderByComparator);
1671            }
1672    
1673            /**
1674            * Returns the first document library folder in the ordered set where parentFolderId = &#63; and name = &#63;.
1675            *
1676            * @param parentFolderId the parent folder ID
1677            * @param name the name
1678            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1679            * @return the first matching document library folder
1680            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1681            * @throws SystemException if a system exception occurred
1682            */
1683            public static com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_First(
1684                    long parentFolderId, java.lang.String name,
1685                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1686                    throws com.liferay.portal.kernel.exception.SystemException,
1687                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1688                    return getPersistence()
1689                                       .findByP_N_First(parentFolderId, name, orderByComparator);
1690            }
1691    
1692            /**
1693            * Returns the first document library folder in the ordered set where parentFolderId = &#63; and name = &#63;.
1694            *
1695            * @param parentFolderId the parent folder ID
1696            * @param name the name
1697            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1698            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
1699            * @throws SystemException if a system exception occurred
1700            */
1701            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByP_N_First(
1702                    long parentFolderId, java.lang.String name,
1703                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1704                    throws com.liferay.portal.kernel.exception.SystemException {
1705                    return getPersistence()
1706                                       .fetchByP_N_First(parentFolderId, name, orderByComparator);
1707            }
1708    
1709            /**
1710            * Returns the last document library folder in the ordered set where parentFolderId = &#63; and name = &#63;.
1711            *
1712            * @param parentFolderId the parent folder ID
1713            * @param name the name
1714            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1715            * @return the last matching document library folder
1716            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1717            * @throws SystemException if a system exception occurred
1718            */
1719            public static com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_Last(
1720                    long parentFolderId, java.lang.String name,
1721                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1722                    throws com.liferay.portal.kernel.exception.SystemException,
1723                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1724                    return getPersistence()
1725                                       .findByP_N_Last(parentFolderId, name, orderByComparator);
1726            }
1727    
1728            /**
1729            * Returns the last document library folder in the ordered set where parentFolderId = &#63; and name = &#63;.
1730            *
1731            * @param parentFolderId the parent folder ID
1732            * @param name the name
1733            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1734            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
1735            * @throws SystemException if a system exception occurred
1736            */
1737            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByP_N_Last(
1738                    long parentFolderId, java.lang.String name,
1739                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1740                    throws com.liferay.portal.kernel.exception.SystemException {
1741                    return getPersistence()
1742                                       .fetchByP_N_Last(parentFolderId, name, orderByComparator);
1743            }
1744    
1745            /**
1746            * Returns the document library folders before and after the current document library folder in the ordered set where parentFolderId = &#63; and name = &#63;.
1747            *
1748            * @param folderId the primary key of the current document library folder
1749            * @param parentFolderId the parent folder ID
1750            * @param name the name
1751            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1752            * @return the previous, current, and next document library folder
1753            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
1754            * @throws SystemException if a system exception occurred
1755            */
1756            public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByP_N_PrevAndNext(
1757                    long folderId, long parentFolderId, java.lang.String name,
1758                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1759                    throws com.liferay.portal.kernel.exception.SystemException,
1760                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1761                    return getPersistence()
1762                                       .findByP_N_PrevAndNext(folderId, parentFolderId, name,
1763                            orderByComparator);
1764            }
1765    
1766            /**
1767            * Removes all the document library folders where parentFolderId = &#63; and name = &#63; from the database.
1768            *
1769            * @param parentFolderId the parent folder ID
1770            * @param name the name
1771            * @throws SystemException if a system exception occurred
1772            */
1773            public static void removeByP_N(long parentFolderId, java.lang.String name)
1774                    throws com.liferay.portal.kernel.exception.SystemException {
1775                    getPersistence().removeByP_N(parentFolderId, name);
1776            }
1777    
1778            /**
1779            * Returns the number of document library folders where parentFolderId = &#63; and name = &#63;.
1780            *
1781            * @param parentFolderId the parent folder ID
1782            * @param name the name
1783            * @return the number of matching document library folders
1784            * @throws SystemException if a system exception occurred
1785            */
1786            public static int countByP_N(long parentFolderId, java.lang.String name)
1787                    throws com.liferay.portal.kernel.exception.SystemException {
1788                    return getPersistence().countByP_N(parentFolderId, name);
1789            }
1790    
1791            /**
1792            * Returns all the document library folders where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1793            *
1794            * @param folderId the folder ID
1795            * @param companyId the company ID
1796            * @param parentFolderId the parent folder ID
1797            * @param status the status
1798            * @return the matching document library folders
1799            * @throws SystemException if a system exception occurred
1800            */
1801            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByF_C_P_NotS(
1802                    long folderId, long companyId, long parentFolderId, int status)
1803                    throws com.liferay.portal.kernel.exception.SystemException {
1804                    return getPersistence()
1805                                       .findByF_C_P_NotS(folderId, companyId, parentFolderId, status);
1806            }
1807    
1808            /**
1809            * Returns a range of all the document library folders where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1810            *
1811            * <p>
1812            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1813            * </p>
1814            *
1815            * @param folderId the folder ID
1816            * @param companyId the company ID
1817            * @param parentFolderId the parent folder ID
1818            * @param status the status
1819            * @param start the lower bound of the range of document library folders
1820            * @param end the upper bound of the range of document library folders (not inclusive)
1821            * @return the range of matching document library folders
1822            * @throws SystemException if a system exception occurred
1823            */
1824            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByF_C_P_NotS(
1825                    long folderId, long companyId, long parentFolderId, int status,
1826                    int start, int end)
1827                    throws com.liferay.portal.kernel.exception.SystemException {
1828                    return getPersistence()
1829                                       .findByF_C_P_NotS(folderId, companyId, parentFolderId,
1830                            status, start, end);
1831            }
1832    
1833            /**
1834            * Returns an ordered range of all the document library folders where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1835            *
1836            * <p>
1837            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1838            * </p>
1839            *
1840            * @param folderId the folder ID
1841            * @param companyId the company ID
1842            * @param parentFolderId the parent folder ID
1843            * @param status the status
1844            * @param start the lower bound of the range of document library folders
1845            * @param end the upper bound of the range of document library folders (not inclusive)
1846            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1847            * @return the ordered range of matching document library folders
1848            * @throws SystemException if a system exception occurred
1849            */
1850            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByF_C_P_NotS(
1851                    long folderId, long companyId, long parentFolderId, int status,
1852                    int start, int end,
1853                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1854                    throws com.liferay.portal.kernel.exception.SystemException {
1855                    return getPersistence()
1856                                       .findByF_C_P_NotS(folderId, companyId, parentFolderId,
1857                            status, start, end, orderByComparator);
1858            }
1859    
1860            /**
1861            * Returns the first document library folder in the ordered set where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1862            *
1863            * @param folderId the folder ID
1864            * @param companyId the company ID
1865            * @param parentFolderId the parent folder ID
1866            * @param status the status
1867            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1868            * @return the first matching document library folder
1869            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1870            * @throws SystemException if a system exception occurred
1871            */
1872            public static com.liferay.portlet.documentlibrary.model.DLFolder findByF_C_P_NotS_First(
1873                    long folderId, long companyId, long parentFolderId, int status,
1874                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1875                    throws com.liferay.portal.kernel.exception.SystemException,
1876                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1877                    return getPersistence()
1878                                       .findByF_C_P_NotS_First(folderId, companyId, parentFolderId,
1879                            status, orderByComparator);
1880            }
1881    
1882            /**
1883            * Returns the first document library folder in the ordered set where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1884            *
1885            * @param folderId the folder ID
1886            * @param companyId the company ID
1887            * @param parentFolderId the parent folder ID
1888            * @param status the status
1889            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1890            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
1891            * @throws SystemException if a system exception occurred
1892            */
1893            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByF_C_P_NotS_First(
1894                    long folderId, long companyId, long parentFolderId, int status,
1895                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1896                    throws com.liferay.portal.kernel.exception.SystemException {
1897                    return getPersistence()
1898                                       .fetchByF_C_P_NotS_First(folderId, companyId,
1899                            parentFolderId, status, orderByComparator);
1900            }
1901    
1902            /**
1903            * Returns the last document library folder in the ordered set where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1904            *
1905            * @param folderId the folder ID
1906            * @param companyId the company ID
1907            * @param parentFolderId the parent folder ID
1908            * @param status the status
1909            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1910            * @return the last matching document library folder
1911            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1912            * @throws SystemException if a system exception occurred
1913            */
1914            public static com.liferay.portlet.documentlibrary.model.DLFolder findByF_C_P_NotS_Last(
1915                    long folderId, long companyId, long parentFolderId, int status,
1916                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1917                    throws com.liferay.portal.kernel.exception.SystemException,
1918                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1919                    return getPersistence()
1920                                       .findByF_C_P_NotS_Last(folderId, companyId, parentFolderId,
1921                            status, orderByComparator);
1922            }
1923    
1924            /**
1925            * Returns the last document library folder in the ordered set where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1926            *
1927            * @param folderId the folder ID
1928            * @param companyId the company ID
1929            * @param parentFolderId the parent folder ID
1930            * @param status the status
1931            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1932            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
1933            * @throws SystemException if a system exception occurred
1934            */
1935            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByF_C_P_NotS_Last(
1936                    long folderId, long companyId, long parentFolderId, int status,
1937                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1938                    throws com.liferay.portal.kernel.exception.SystemException {
1939                    return getPersistence()
1940                                       .fetchByF_C_P_NotS_Last(folderId, companyId, parentFolderId,
1941                            status, orderByComparator);
1942            }
1943    
1944            /**
1945            * Removes all the document library folders where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63; from the database.
1946            *
1947            * @param folderId the folder ID
1948            * @param companyId the company ID
1949            * @param parentFolderId the parent folder ID
1950            * @param status the status
1951            * @throws SystemException if a system exception occurred
1952            */
1953            public static void removeByF_C_P_NotS(long folderId, long companyId,
1954                    long parentFolderId, int status)
1955                    throws com.liferay.portal.kernel.exception.SystemException {
1956                    getPersistence()
1957                            .removeByF_C_P_NotS(folderId, companyId, parentFolderId, status);
1958            }
1959    
1960            /**
1961            * Returns the number of document library folders where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1962            *
1963            * @param folderId the folder ID
1964            * @param companyId the company ID
1965            * @param parentFolderId the parent folder ID
1966            * @param status the status
1967            * @return the number of matching document library folders
1968            * @throws SystemException if a system exception occurred
1969            */
1970            public static int countByF_C_P_NotS(long folderId, long companyId,
1971                    long parentFolderId, int status)
1972                    throws com.liferay.portal.kernel.exception.SystemException {
1973                    return getPersistence()
1974                                       .countByF_C_P_NotS(folderId, companyId, parentFolderId,
1975                            status);
1976            }
1977    
1978            /**
1979            * Returns the document library folder where groupId = &#63; and parentFolderId = &#63; and name = &#63; or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found.
1980            *
1981            * @param groupId the group ID
1982            * @param parentFolderId the parent folder ID
1983            * @param name the name
1984            * @return the matching document library folder
1985            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1986            * @throws SystemException if a system exception occurred
1987            */
1988            public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_N(
1989                    long groupId, long parentFolderId, java.lang.String name)
1990                    throws com.liferay.portal.kernel.exception.SystemException,
1991                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1992                    return getPersistence().findByG_P_N(groupId, parentFolderId, name);
1993            }
1994    
1995            /**
1996            * Returns the document library 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.
1997            *
1998            * @param groupId the group ID
1999            * @param parentFolderId the parent folder ID
2000            * @param name the name
2001            * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
2002            * @throws SystemException if a system exception occurred
2003            */
2004            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N(
2005                    long groupId, long parentFolderId, java.lang.String name)
2006                    throws com.liferay.portal.kernel.exception.SystemException {
2007                    return getPersistence().fetchByG_P_N(groupId, parentFolderId, name);
2008            }
2009    
2010            /**
2011            * Returns the document library 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.
2012            *
2013            * @param groupId the group ID
2014            * @param parentFolderId the parent folder ID
2015            * @param name the name
2016            * @param retrieveFromCache whether to use the finder cache
2017            * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
2018            * @throws SystemException if a system exception occurred
2019            */
2020            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N(
2021                    long groupId, long parentFolderId, java.lang.String name,
2022                    boolean retrieveFromCache)
2023                    throws com.liferay.portal.kernel.exception.SystemException {
2024                    return getPersistence()
2025                                       .fetchByG_P_N(groupId, parentFolderId, name,
2026                            retrieveFromCache);
2027            }
2028    
2029            /**
2030            * Removes the document library folder where groupId = &#63; and parentFolderId = &#63; and name = &#63; from the database.
2031            *
2032            * @param groupId the group ID
2033            * @param parentFolderId the parent folder ID
2034            * @param name the name
2035            * @return the document library folder that was removed
2036            * @throws SystemException if a system exception occurred
2037            */
2038            public static com.liferay.portlet.documentlibrary.model.DLFolder removeByG_P_N(
2039                    long groupId, long parentFolderId, java.lang.String name)
2040                    throws com.liferay.portal.kernel.exception.SystemException,
2041                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2042                    return getPersistence().removeByG_P_N(groupId, parentFolderId, name);
2043            }
2044    
2045            /**
2046            * Returns the number of document library folders where groupId = &#63; and parentFolderId = &#63; and name = &#63;.
2047            *
2048            * @param groupId the group ID
2049            * @param parentFolderId the parent folder ID
2050            * @param name the name
2051            * @return the number of matching document library folders
2052            * @throws SystemException if a system exception occurred
2053            */
2054            public static int countByG_P_N(long groupId, long parentFolderId,
2055                    java.lang.String name)
2056                    throws com.liferay.portal.kernel.exception.SystemException {
2057                    return getPersistence().countByG_P_N(groupId, parentFolderId, name);
2058            }
2059    
2060            /**
2061            * Returns all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
2062            *
2063            * @param groupId the group ID
2064            * @param mountPoint the mount point
2065            * @param parentFolderId the parent folder ID
2066            * @param hidden the hidden
2067            * @return the matching document library folders
2068            * @throws SystemException if a system exception occurred
2069            */
2070            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H(
2071                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden)
2072                    throws com.liferay.portal.kernel.exception.SystemException {
2073                    return getPersistence()
2074                                       .findByG_M_P_H(groupId, mountPoint, parentFolderId, hidden);
2075            }
2076    
2077            /**
2078            * Returns a range of all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
2079            *
2080            * <p>
2081            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2082            * </p>
2083            *
2084            * @param groupId the group ID
2085            * @param mountPoint the mount point
2086            * @param parentFolderId the parent folder ID
2087            * @param hidden the hidden
2088            * @param start the lower bound of the range of document library folders
2089            * @param end the upper bound of the range of document library folders (not inclusive)
2090            * @return the range of matching document library folders
2091            * @throws SystemException if a system exception occurred
2092            */
2093            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H(
2094                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2095                    int start, int end)
2096                    throws com.liferay.portal.kernel.exception.SystemException {
2097                    return getPersistence()
2098                                       .findByG_M_P_H(groupId, mountPoint, parentFolderId, hidden,
2099                            start, end);
2100            }
2101    
2102            /**
2103            * Returns an ordered range of all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
2104            *
2105            * <p>
2106            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2107            * </p>
2108            *
2109            * @param groupId the group ID
2110            * @param mountPoint the mount point
2111            * @param parentFolderId the parent folder ID
2112            * @param hidden the hidden
2113            * @param start the lower bound of the range of document library folders
2114            * @param end the upper bound of the range of document library folders (not inclusive)
2115            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2116            * @return the ordered range of matching document library folders
2117            * @throws SystemException if a system exception occurred
2118            */
2119            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H(
2120                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2121                    int start, int end,
2122                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2123                    throws com.liferay.portal.kernel.exception.SystemException {
2124                    return getPersistence()
2125                                       .findByG_M_P_H(groupId, mountPoint, parentFolderId, hidden,
2126                            start, end, orderByComparator);
2127            }
2128    
2129            /**
2130            * Returns the first document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
2131            *
2132            * @param groupId the group ID
2133            * @param mountPoint the mount point
2134            * @param parentFolderId the parent folder ID
2135            * @param hidden the hidden
2136            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2137            * @return the first matching document library folder
2138            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
2139            * @throws SystemException if a system exception occurred
2140            */
2141            public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_M_P_H_First(
2142                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2144                    throws com.liferay.portal.kernel.exception.SystemException,
2145                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2146                    return getPersistence()
2147                                       .findByG_M_P_H_First(groupId, mountPoint, parentFolderId,
2148                            hidden, orderByComparator);
2149            }
2150    
2151            /**
2152            * Returns the first document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
2153            *
2154            * @param groupId the group ID
2155            * @param mountPoint the mount point
2156            * @param parentFolderId the parent folder ID
2157            * @param hidden the hidden
2158            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2159            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
2160            * @throws SystemException if a system exception occurred
2161            */
2162            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_M_P_H_First(
2163                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2165                    throws com.liferay.portal.kernel.exception.SystemException {
2166                    return getPersistence()
2167                                       .fetchByG_M_P_H_First(groupId, mountPoint, parentFolderId,
2168                            hidden, orderByComparator);
2169            }
2170    
2171            /**
2172            * Returns the last document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
2173            *
2174            * @param groupId the group ID
2175            * @param mountPoint the mount point
2176            * @param parentFolderId the parent folder ID
2177            * @param hidden the hidden
2178            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2179            * @return the last matching document library folder
2180            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
2181            * @throws SystemException if a system exception occurred
2182            */
2183            public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_M_P_H_Last(
2184                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2185                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2186                    throws com.liferay.portal.kernel.exception.SystemException,
2187                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2188                    return getPersistence()
2189                                       .findByG_M_P_H_Last(groupId, mountPoint, parentFolderId,
2190                            hidden, orderByComparator);
2191            }
2192    
2193            /**
2194            * Returns the last document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
2195            *
2196            * @param groupId the group ID
2197            * @param mountPoint the mount point
2198            * @param parentFolderId the parent folder ID
2199            * @param hidden the hidden
2200            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2201            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
2202            * @throws SystemException if a system exception occurred
2203            */
2204            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_M_P_H_Last(
2205                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2207                    throws com.liferay.portal.kernel.exception.SystemException {
2208                    return getPersistence()
2209                                       .fetchByG_M_P_H_Last(groupId, mountPoint, parentFolderId,
2210                            hidden, orderByComparator);
2211            }
2212    
2213            /**
2214            * Returns the document library folders before and after the current document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
2215            *
2216            * @param folderId the primary key of the current document library folder
2217            * @param groupId the group ID
2218            * @param mountPoint the mount point
2219            * @param parentFolderId the parent folder ID
2220            * @param hidden the hidden
2221            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2222            * @return the previous, current, and next document library folder
2223            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
2224            * @throws SystemException if a system exception occurred
2225            */
2226            public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_M_P_H_PrevAndNext(
2227                    long folderId, long groupId, boolean mountPoint, long parentFolderId,
2228                    boolean hidden,
2229                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2230                    throws com.liferay.portal.kernel.exception.SystemException,
2231                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2232                    return getPersistence()
2233                                       .findByG_M_P_H_PrevAndNext(folderId, groupId, mountPoint,
2234                            parentFolderId, hidden, orderByComparator);
2235            }
2236    
2237            /**
2238            * Returns all the document library folders that the user has permission to view where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
2239            *
2240            * @param groupId the group ID
2241            * @param mountPoint the mount point
2242            * @param parentFolderId the parent folder ID
2243            * @param hidden the hidden
2244            * @return the matching document library folders that the user has permission to view
2245            * @throws SystemException if a system exception occurred
2246            */
2247            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H(
2248                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden)
2249                    throws com.liferay.portal.kernel.exception.SystemException {
2250                    return getPersistence()
2251                                       .filterFindByG_M_P_H(groupId, mountPoint, parentFolderId,
2252                            hidden);
2253            }
2254    
2255            /**
2256            * Returns a range of all the document library folders that the user has permission to view where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
2257            *
2258            * <p>
2259            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2260            * </p>
2261            *
2262            * @param groupId the group ID
2263            * @param mountPoint the mount point
2264            * @param parentFolderId the parent folder ID
2265            * @param hidden the hidden
2266            * @param start the lower bound of the range of document library folders
2267            * @param end the upper bound of the range of document library folders (not inclusive)
2268            * @return the range of matching document library folders that the user has permission to view
2269            * @throws SystemException if a system exception occurred
2270            */
2271            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H(
2272                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2273                    int start, int end)
2274                    throws com.liferay.portal.kernel.exception.SystemException {
2275                    return getPersistence()
2276                                       .filterFindByG_M_P_H(groupId, mountPoint, parentFolderId,
2277                            hidden, start, end);
2278            }
2279    
2280            /**
2281            * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
2282            *
2283            * <p>
2284            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2285            * </p>
2286            *
2287            * @param groupId the group ID
2288            * @param mountPoint the mount point
2289            * @param parentFolderId the parent folder ID
2290            * @param hidden the hidden
2291            * @param start the lower bound of the range of document library folders
2292            * @param end the upper bound of the range of document library folders (not inclusive)
2293            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2294            * @return the ordered range of matching document library folders that the user has permission to view
2295            * @throws SystemException if a system exception occurred
2296            */
2297            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H(
2298                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2299                    int start, int end,
2300                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2301                    throws com.liferay.portal.kernel.exception.SystemException {
2302                    return getPersistence()
2303                                       .filterFindByG_M_P_H(groupId, mountPoint, parentFolderId,
2304                            hidden, start, end, orderByComparator);
2305            }
2306    
2307            /**
2308            * Returns the document library folders before and after the current document library folder in the ordered set of document library folders that the user has permission to view where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
2309            *
2310            * @param folderId the primary key of the current document library folder
2311            * @param groupId the group ID
2312            * @param mountPoint the mount point
2313            * @param parentFolderId the parent folder ID
2314            * @param hidden the hidden
2315            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2316            * @return the previous, current, and next document library folder
2317            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
2318            * @throws SystemException if a system exception occurred
2319            */
2320            public static com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByG_M_P_H_PrevAndNext(
2321                    long folderId, long groupId, boolean mountPoint, long parentFolderId,
2322                    boolean hidden,
2323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2324                    throws com.liferay.portal.kernel.exception.SystemException,
2325                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2326                    return getPersistence()
2327                                       .filterFindByG_M_P_H_PrevAndNext(folderId, groupId,
2328                            mountPoint, parentFolderId, hidden, orderByComparator);
2329            }
2330    
2331            /**
2332            * Removes all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; from the database.
2333            *
2334            * @param groupId the group ID
2335            * @param mountPoint the mount point
2336            * @param parentFolderId the parent folder ID
2337            * @param hidden the hidden
2338            * @throws SystemException if a system exception occurred
2339            */
2340            public static void removeByG_M_P_H(long groupId, boolean mountPoint,
2341                    long parentFolderId, boolean hidden)
2342                    throws com.liferay.portal.kernel.exception.SystemException {
2343                    getPersistence()
2344                            .removeByG_M_P_H(groupId, mountPoint, parentFolderId, hidden);
2345            }
2346    
2347            /**
2348            * Returns the number of document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
2349            *
2350            * @param groupId the group ID
2351            * @param mountPoint the mount point
2352            * @param parentFolderId the parent folder ID
2353            * @param hidden the hidden
2354            * @return the number of matching document library folders
2355            * @throws SystemException if a system exception occurred
2356            */
2357            public static int countByG_M_P_H(long groupId, boolean mountPoint,
2358                    long parentFolderId, boolean hidden)
2359                    throws com.liferay.portal.kernel.exception.SystemException {
2360                    return getPersistence()
2361                                       .countByG_M_P_H(groupId, mountPoint, parentFolderId, hidden);
2362            }
2363    
2364            /**
2365            * Returns the number of document library folders that the user has permission to view where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
2366            *
2367            * @param groupId the group ID
2368            * @param mountPoint the mount point
2369            * @param parentFolderId the parent folder ID
2370            * @param hidden the hidden
2371            * @return the number of matching document library folders that the user has permission to view
2372            * @throws SystemException if a system exception occurred
2373            */
2374            public static int filterCountByG_M_P_H(long groupId, boolean mountPoint,
2375                    long parentFolderId, boolean hidden)
2376                    throws com.liferay.portal.kernel.exception.SystemException {
2377                    return getPersistence()
2378                                       .filterCountByG_M_P_H(groupId, mountPoint, parentFolderId,
2379                            hidden);
2380            }
2381    
2382            /**
2383            * Returns all the document library folders where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2384            *
2385            * @param groupId the group ID
2386            * @param parentFolderId the parent folder ID
2387            * @param hidden the hidden
2388            * @param status the status
2389            * @return the matching document library folders
2390            * @throws SystemException if a system exception occurred
2391            */
2392            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P_H_S(
2393                    long groupId, long parentFolderId, boolean hidden, int status)
2394                    throws com.liferay.portal.kernel.exception.SystemException {
2395                    return getPersistence()
2396                                       .findByG_P_H_S(groupId, parentFolderId, hidden, status);
2397            }
2398    
2399            /**
2400            * Returns a range of all the document library folders where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2401            *
2402            * <p>
2403            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2404            * </p>
2405            *
2406            * @param groupId the group ID
2407            * @param parentFolderId the parent folder ID
2408            * @param hidden the hidden
2409            * @param status the status
2410            * @param start the lower bound of the range of document library folders
2411            * @param end the upper bound of the range of document library folders (not inclusive)
2412            * @return the range of matching document library folders
2413            * @throws SystemException if a system exception occurred
2414            */
2415            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P_H_S(
2416                    long groupId, long parentFolderId, boolean hidden, int status,
2417                    int start, int end)
2418                    throws com.liferay.portal.kernel.exception.SystemException {
2419                    return getPersistence()
2420                                       .findByG_P_H_S(groupId, parentFolderId, hidden, status,
2421                            start, end);
2422            }
2423    
2424            /**
2425            * Returns an ordered range of all the document library folders where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2426            *
2427            * <p>
2428            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2429            * </p>
2430            *
2431            * @param groupId the group ID
2432            * @param parentFolderId the parent folder ID
2433            * @param hidden the hidden
2434            * @param status the status
2435            * @param start the lower bound of the range of document library folders
2436            * @param end the upper bound of the range of document library folders (not inclusive)
2437            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2438            * @return the ordered range of matching document library folders
2439            * @throws SystemException if a system exception occurred
2440            */
2441            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P_H_S(
2442                    long groupId, long parentFolderId, boolean hidden, int status,
2443                    int start, int end,
2444                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2445                    throws com.liferay.portal.kernel.exception.SystemException {
2446                    return getPersistence()
2447                                       .findByG_P_H_S(groupId, parentFolderId, hidden, status,
2448                            start, end, orderByComparator);
2449            }
2450    
2451            /**
2452            * Returns the first document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2453            *
2454            * @param groupId the group ID
2455            * @param parentFolderId the parent folder ID
2456            * @param hidden the hidden
2457            * @param status the status
2458            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2459            * @return the first matching document library folder
2460            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
2461            * @throws SystemException if a system exception occurred
2462            */
2463            public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_H_S_First(
2464                    long groupId, long parentFolderId, boolean hidden, int status,
2465                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2466                    throws com.liferay.portal.kernel.exception.SystemException,
2467                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2468                    return getPersistence()
2469                                       .findByG_P_H_S_First(groupId, parentFolderId, hidden,
2470                            status, orderByComparator);
2471            }
2472    
2473            /**
2474            * Returns the first document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2475            *
2476            * @param groupId the group ID
2477            * @param parentFolderId the parent folder ID
2478            * @param hidden the hidden
2479            * @param status the status
2480            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2481            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
2482            * @throws SystemException if a system exception occurred
2483            */
2484            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_H_S_First(
2485                    long groupId, long parentFolderId, boolean hidden, int status,
2486                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2487                    throws com.liferay.portal.kernel.exception.SystemException {
2488                    return getPersistence()
2489                                       .fetchByG_P_H_S_First(groupId, parentFolderId, hidden,
2490                            status, orderByComparator);
2491            }
2492    
2493            /**
2494            * Returns the last document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2495            *
2496            * @param groupId the group ID
2497            * @param parentFolderId the parent folder ID
2498            * @param hidden the hidden
2499            * @param status the status
2500            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2501            * @return the last matching document library folder
2502            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
2503            * @throws SystemException if a system exception occurred
2504            */
2505            public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_H_S_Last(
2506                    long groupId, long parentFolderId, boolean hidden, int status,
2507                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2508                    throws com.liferay.portal.kernel.exception.SystemException,
2509                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2510                    return getPersistence()
2511                                       .findByG_P_H_S_Last(groupId, parentFolderId, hidden, status,
2512                            orderByComparator);
2513            }
2514    
2515            /**
2516            * Returns the last document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2517            *
2518            * @param groupId the group ID
2519            * @param parentFolderId the parent folder ID
2520            * @param hidden the hidden
2521            * @param status the status
2522            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2523            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
2524            * @throws SystemException if a system exception occurred
2525            */
2526            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_H_S_Last(
2527                    long groupId, long parentFolderId, boolean hidden, int status,
2528                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2529                    throws com.liferay.portal.kernel.exception.SystemException {
2530                    return getPersistence()
2531                                       .fetchByG_P_H_S_Last(groupId, parentFolderId, hidden,
2532                            status, orderByComparator);
2533            }
2534    
2535            /**
2536            * Returns the document library folders before and after the current document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2537            *
2538            * @param folderId the primary key of the current document library folder
2539            * @param groupId the group ID
2540            * @param parentFolderId the parent folder ID
2541            * @param hidden the hidden
2542            * @param status the status
2543            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2544            * @return the previous, current, and next document library folder
2545            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
2546            * @throws SystemException if a system exception occurred
2547            */
2548            public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_H_S_PrevAndNext(
2549                    long folderId, long groupId, long parentFolderId, boolean hidden,
2550                    int status,
2551                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2552                    throws com.liferay.portal.kernel.exception.SystemException,
2553                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2554                    return getPersistence()
2555                                       .findByG_P_H_S_PrevAndNext(folderId, groupId,
2556                            parentFolderId, hidden, status, orderByComparator);
2557            }
2558    
2559            /**
2560            * Returns all the document library folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2561            *
2562            * @param groupId the group ID
2563            * @param parentFolderId the parent folder ID
2564            * @param hidden the hidden
2565            * @param status the status
2566            * @return the matching document library folders that the user has permission to view
2567            * @throws SystemException if a system exception occurred
2568            */
2569            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P_H_S(
2570                    long groupId, long parentFolderId, boolean hidden, int status)
2571                    throws com.liferay.portal.kernel.exception.SystemException {
2572                    return getPersistence()
2573                                       .filterFindByG_P_H_S(groupId, parentFolderId, hidden, status);
2574            }
2575    
2576            /**
2577            * Returns a range of all the document library folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2578            *
2579            * <p>
2580            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2581            * </p>
2582            *
2583            * @param groupId the group ID
2584            * @param parentFolderId the parent folder ID
2585            * @param hidden the hidden
2586            * @param status the status
2587            * @param start the lower bound of the range of document library folders
2588            * @param end the upper bound of the range of document library folders (not inclusive)
2589            * @return the range of matching document library folders that the user has permission to view
2590            * @throws SystemException if a system exception occurred
2591            */
2592            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P_H_S(
2593                    long groupId, long parentFolderId, boolean hidden, int status,
2594                    int start, int end)
2595                    throws com.liferay.portal.kernel.exception.SystemException {
2596                    return getPersistence()
2597                                       .filterFindByG_P_H_S(groupId, parentFolderId, hidden,
2598                            status, start, end);
2599            }
2600    
2601            /**
2602            * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2603            *
2604            * <p>
2605            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2606            * </p>
2607            *
2608            * @param groupId the group ID
2609            * @param parentFolderId the parent folder ID
2610            * @param hidden the hidden
2611            * @param status the status
2612            * @param start the lower bound of the range of document library folders
2613            * @param end the upper bound of the range of document library folders (not inclusive)
2614            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2615            * @return the ordered range of matching document library folders that the user has permission to view
2616            * @throws SystemException if a system exception occurred
2617            */
2618            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P_H_S(
2619                    long groupId, long parentFolderId, boolean hidden, int status,
2620                    int start, int end,
2621                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2622                    throws com.liferay.portal.kernel.exception.SystemException {
2623                    return getPersistence()
2624                                       .filterFindByG_P_H_S(groupId, parentFolderId, hidden,
2625                            status, start, end, orderByComparator);
2626            }
2627    
2628            /**
2629            * Returns the document library folders before and after the current document library folder in the ordered set of document library folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2630            *
2631            * @param folderId the primary key of the current document library folder
2632            * @param groupId the group ID
2633            * @param parentFolderId the parent folder ID
2634            * @param hidden the hidden
2635            * @param status the status
2636            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2637            * @return the previous, current, and next document library folder
2638            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
2639            * @throws SystemException if a system exception occurred
2640            */
2641            public static com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByG_P_H_S_PrevAndNext(
2642                    long folderId, long groupId, long parentFolderId, boolean hidden,
2643                    int status,
2644                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2645                    throws com.liferay.portal.kernel.exception.SystemException,
2646                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2647                    return getPersistence()
2648                                       .filterFindByG_P_H_S_PrevAndNext(folderId, groupId,
2649                            parentFolderId, hidden, status, orderByComparator);
2650            }
2651    
2652            /**
2653            * Removes all the document library folders where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63; from the database.
2654            *
2655            * @param groupId the group ID
2656            * @param parentFolderId the parent folder ID
2657            * @param hidden the hidden
2658            * @param status the status
2659            * @throws SystemException if a system exception occurred
2660            */
2661            public static void removeByG_P_H_S(long groupId, long parentFolderId,
2662                    boolean hidden, int status)
2663                    throws com.liferay.portal.kernel.exception.SystemException {
2664                    getPersistence().removeByG_P_H_S(groupId, parentFolderId, hidden, status);
2665            }
2666    
2667            /**
2668            * Returns the number of document library folders where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2669            *
2670            * @param groupId the group ID
2671            * @param parentFolderId the parent folder ID
2672            * @param hidden the hidden
2673            * @param status the status
2674            * @return the number of matching document library folders
2675            * @throws SystemException if a system exception occurred
2676            */
2677            public static int countByG_P_H_S(long groupId, long parentFolderId,
2678                    boolean hidden, int status)
2679                    throws com.liferay.portal.kernel.exception.SystemException {
2680                    return getPersistence()
2681                                       .countByG_P_H_S(groupId, parentFolderId, hidden, status);
2682            }
2683    
2684            /**
2685            * Returns the number of document library folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2686            *
2687            * @param groupId the group ID
2688            * @param parentFolderId the parent folder ID
2689            * @param hidden the hidden
2690            * @param status the status
2691            * @return the number of matching document library folders that the user has permission to view
2692            * @throws SystemException if a system exception occurred
2693            */
2694            public static int filterCountByG_P_H_S(long groupId, long parentFolderId,
2695                    boolean hidden, int status)
2696                    throws com.liferay.portal.kernel.exception.SystemException {
2697                    return getPersistence()
2698                                       .filterCountByG_P_H_S(groupId, parentFolderId, hidden, status);
2699            }
2700    
2701            /**
2702            * Returns all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2703            *
2704            * @param groupId the group ID
2705            * @param mountPoint the mount point
2706            * @param parentFolderId the parent folder ID
2707            * @param hidden the hidden
2708            * @param status the status
2709            * @return the matching document library folders
2710            * @throws SystemException if a system exception occurred
2711            */
2712            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H_S(
2713                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2714                    int status) throws com.liferay.portal.kernel.exception.SystemException {
2715                    return getPersistence()
2716                                       .findByG_M_P_H_S(groupId, mountPoint, parentFolderId,
2717                            hidden, status);
2718            }
2719    
2720            /**
2721            * Returns a range of all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2722            *
2723            * <p>
2724            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2725            * </p>
2726            *
2727            * @param groupId the group ID
2728            * @param mountPoint the mount point
2729            * @param parentFolderId the parent folder ID
2730            * @param hidden the hidden
2731            * @param status the status
2732            * @param start the lower bound of the range of document library folders
2733            * @param end the upper bound of the range of document library folders (not inclusive)
2734            * @return the range of matching document library folders
2735            * @throws SystemException if a system exception occurred
2736            */
2737            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H_S(
2738                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2739                    int status, int start, int end)
2740                    throws com.liferay.portal.kernel.exception.SystemException {
2741                    return getPersistence()
2742                                       .findByG_M_P_H_S(groupId, mountPoint, parentFolderId,
2743                            hidden, status, start, end);
2744            }
2745    
2746            /**
2747            * Returns an ordered range of all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2748            *
2749            * <p>
2750            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2751            * </p>
2752            *
2753            * @param groupId the group ID
2754            * @param mountPoint the mount point
2755            * @param parentFolderId the parent folder ID
2756            * @param hidden the hidden
2757            * @param status the status
2758            * @param start the lower bound of the range of document library folders
2759            * @param end the upper bound of the range of document library folders (not inclusive)
2760            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2761            * @return the ordered range of matching document library folders
2762            * @throws SystemException if a system exception occurred
2763            */
2764            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H_S(
2765                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2766                    int status, int start, int end,
2767                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2768                    throws com.liferay.portal.kernel.exception.SystemException {
2769                    return getPersistence()
2770                                       .findByG_M_P_H_S(groupId, mountPoint, parentFolderId,
2771                            hidden, status, start, end, orderByComparator);
2772            }
2773    
2774            /**
2775            * Returns the first document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2776            *
2777            * @param groupId the group ID
2778            * @param mountPoint the mount point
2779            * @param parentFolderId the parent folder ID
2780            * @param hidden the hidden
2781            * @param status the status
2782            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2783            * @return the first matching document library folder
2784            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
2785            * @throws SystemException if a system exception occurred
2786            */
2787            public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_M_P_H_S_First(
2788                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2789                    int status,
2790                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2791                    throws com.liferay.portal.kernel.exception.SystemException,
2792                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2793                    return getPersistence()
2794                                       .findByG_M_P_H_S_First(groupId, mountPoint, parentFolderId,
2795                            hidden, status, orderByComparator);
2796            }
2797    
2798            /**
2799            * Returns the first document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2800            *
2801            * @param groupId the group ID
2802            * @param mountPoint the mount point
2803            * @param parentFolderId the parent folder ID
2804            * @param hidden the hidden
2805            * @param status the status
2806            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2807            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
2808            * @throws SystemException if a system exception occurred
2809            */
2810            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_M_P_H_S_First(
2811                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2812                    int status,
2813                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2814                    throws com.liferay.portal.kernel.exception.SystemException {
2815                    return getPersistence()
2816                                       .fetchByG_M_P_H_S_First(groupId, mountPoint, parentFolderId,
2817                            hidden, status, orderByComparator);
2818            }
2819    
2820            /**
2821            * Returns the last document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2822            *
2823            * @param groupId the group ID
2824            * @param mountPoint the mount point
2825            * @param parentFolderId the parent folder ID
2826            * @param hidden the hidden
2827            * @param status the status
2828            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2829            * @return the last matching document library folder
2830            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
2831            * @throws SystemException if a system exception occurred
2832            */
2833            public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_M_P_H_S_Last(
2834                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2835                    int status,
2836                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2837                    throws com.liferay.portal.kernel.exception.SystemException,
2838                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2839                    return getPersistence()
2840                                       .findByG_M_P_H_S_Last(groupId, mountPoint, parentFolderId,
2841                            hidden, status, orderByComparator);
2842            }
2843    
2844            /**
2845            * Returns the last document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2846            *
2847            * @param groupId the group ID
2848            * @param mountPoint the mount point
2849            * @param parentFolderId the parent folder ID
2850            * @param hidden the hidden
2851            * @param status the status
2852            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2853            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
2854            * @throws SystemException if a system exception occurred
2855            */
2856            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_M_P_H_S_Last(
2857                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2858                    int status,
2859                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2860                    throws com.liferay.portal.kernel.exception.SystemException {
2861                    return getPersistence()
2862                                       .fetchByG_M_P_H_S_Last(groupId, mountPoint, parentFolderId,
2863                            hidden, status, orderByComparator);
2864            }
2865    
2866            /**
2867            * Returns the document library folders before and after the current document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2868            *
2869            * @param folderId the primary key of the current document library folder
2870            * @param groupId the group ID
2871            * @param mountPoint the mount point
2872            * @param parentFolderId the parent folder ID
2873            * @param hidden the hidden
2874            * @param status the status
2875            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2876            * @return the previous, current, and next document library folder
2877            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
2878            * @throws SystemException if a system exception occurred
2879            */
2880            public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_M_P_H_S_PrevAndNext(
2881                    long folderId, long groupId, boolean mountPoint, long parentFolderId,
2882                    boolean hidden, int status,
2883                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2884                    throws com.liferay.portal.kernel.exception.SystemException,
2885                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2886                    return getPersistence()
2887                                       .findByG_M_P_H_S_PrevAndNext(folderId, groupId, mountPoint,
2888                            parentFolderId, hidden, status, orderByComparator);
2889            }
2890    
2891            /**
2892            * Returns all the document library folders that the user has permission to view where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2893            *
2894            * @param groupId the group ID
2895            * @param mountPoint the mount point
2896            * @param parentFolderId the parent folder ID
2897            * @param hidden the hidden
2898            * @param status the status
2899            * @return the matching document library folders that the user has permission to view
2900            * @throws SystemException if a system exception occurred
2901            */
2902            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H_S(
2903                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2904                    int status) throws com.liferay.portal.kernel.exception.SystemException {
2905                    return getPersistence()
2906                                       .filterFindByG_M_P_H_S(groupId, mountPoint, parentFolderId,
2907                            hidden, status);
2908            }
2909    
2910            /**
2911            * Returns a range of all the document library folders that the user has permission to view where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2912            *
2913            * <p>
2914            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2915            * </p>
2916            *
2917            * @param groupId the group ID
2918            * @param mountPoint the mount point
2919            * @param parentFolderId the parent folder ID
2920            * @param hidden the hidden
2921            * @param status the status
2922            * @param start the lower bound of the range of document library folders
2923            * @param end the upper bound of the range of document library folders (not inclusive)
2924            * @return the range of matching document library folders that the user has permission to view
2925            * @throws SystemException if a system exception occurred
2926            */
2927            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H_S(
2928                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2929                    int status, int start, int end)
2930                    throws com.liferay.portal.kernel.exception.SystemException {
2931                    return getPersistence()
2932                                       .filterFindByG_M_P_H_S(groupId, mountPoint, parentFolderId,
2933                            hidden, status, start, end);
2934            }
2935    
2936            /**
2937            * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2938            *
2939            * <p>
2940            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2941            * </p>
2942            *
2943            * @param groupId the group ID
2944            * @param mountPoint the mount point
2945            * @param parentFolderId the parent folder ID
2946            * @param hidden the hidden
2947            * @param status the status
2948            * @param start the lower bound of the range of document library folders
2949            * @param end the upper bound of the range of document library folders (not inclusive)
2950            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2951            * @return the ordered range of matching document library folders that the user has permission to view
2952            * @throws SystemException if a system exception occurred
2953            */
2954            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H_S(
2955                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2956                    int status, int start, int end,
2957                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2958                    throws com.liferay.portal.kernel.exception.SystemException {
2959                    return getPersistence()
2960                                       .filterFindByG_M_P_H_S(groupId, mountPoint, parentFolderId,
2961                            hidden, status, start, end, orderByComparator);
2962            }
2963    
2964            /**
2965            * Returns the document library folders before and after the current document library folder in the ordered set of document library folders that the user has permission to view where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2966            *
2967            * @param folderId the primary key of the current document library folder
2968            * @param groupId the group ID
2969            * @param mountPoint the mount point
2970            * @param parentFolderId the parent folder ID
2971            * @param hidden the hidden
2972            * @param status the status
2973            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2974            * @return the previous, current, and next document library folder
2975            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
2976            * @throws SystemException if a system exception occurred
2977            */
2978            public static com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByG_M_P_H_S_PrevAndNext(
2979                    long folderId, long groupId, boolean mountPoint, long parentFolderId,
2980                    boolean hidden, int status,
2981                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2982                    throws com.liferay.portal.kernel.exception.SystemException,
2983                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2984                    return getPersistence()
2985                                       .filterFindByG_M_P_H_S_PrevAndNext(folderId, groupId,
2986                            mountPoint, parentFolderId, hidden, status, orderByComparator);
2987            }
2988    
2989            /**
2990            * Removes all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63; from the database.
2991            *
2992            * @param groupId the group ID
2993            * @param mountPoint the mount point
2994            * @param parentFolderId the parent folder ID
2995            * @param hidden the hidden
2996            * @param status the status
2997            * @throws SystemException if a system exception occurred
2998            */
2999            public static void removeByG_M_P_H_S(long groupId, boolean mountPoint,
3000                    long parentFolderId, boolean hidden, int status)
3001                    throws com.liferay.portal.kernel.exception.SystemException {
3002                    getPersistence()
3003                            .removeByG_M_P_H_S(groupId, mountPoint, parentFolderId, hidden,
3004                            status);
3005            }
3006    
3007            /**
3008            * Returns the number of document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
3009            *
3010            * @param groupId the group ID
3011            * @param mountPoint the mount point
3012            * @param parentFolderId the parent folder ID
3013            * @param hidden the hidden
3014            * @param status the status
3015            * @return the number of matching document library folders
3016            * @throws SystemException if a system exception occurred
3017            */
3018            public static int countByG_M_P_H_S(long groupId, boolean mountPoint,
3019                    long parentFolderId, boolean hidden, int status)
3020                    throws com.liferay.portal.kernel.exception.SystemException {
3021                    return getPersistence()
3022                                       .countByG_M_P_H_S(groupId, mountPoint, parentFolderId,
3023                            hidden, status);
3024            }
3025    
3026            /**
3027            * Returns the number of document library folders that the user has permission to view where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
3028            *
3029            * @param groupId the group ID
3030            * @param mountPoint the mount point
3031            * @param parentFolderId the parent folder ID
3032            * @param hidden the hidden
3033            * @param status the status
3034            * @return the number of matching document library folders that the user has permission to view
3035            * @throws SystemException if a system exception occurred
3036            */
3037            public static int filterCountByG_M_P_H_S(long groupId, boolean mountPoint,
3038                    long parentFolderId, boolean hidden, int status)
3039                    throws com.liferay.portal.kernel.exception.SystemException {
3040                    return getPersistence()
3041                                       .filterCountByG_M_P_H_S(groupId, mountPoint, parentFolderId,
3042                            hidden, status);
3043            }
3044    
3045            /**
3046            * Caches the document library folder in the entity cache if it is enabled.
3047            *
3048            * @param dlFolder the document library folder
3049            */
3050            public static void cacheResult(
3051                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) {
3052                    getPersistence().cacheResult(dlFolder);
3053            }
3054    
3055            /**
3056            * Caches the document library folders in the entity cache if it is enabled.
3057            *
3058            * @param dlFolders the document library folders
3059            */
3060            public static void cacheResult(
3061                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders) {
3062                    getPersistence().cacheResult(dlFolders);
3063            }
3064    
3065            /**
3066            * Creates a new document library folder with the primary key. Does not add the document library folder to the database.
3067            *
3068            * @param folderId the primary key for the new document library folder
3069            * @return the new document library folder
3070            */
3071            public static com.liferay.portlet.documentlibrary.model.DLFolder create(
3072                    long folderId) {
3073                    return getPersistence().create(folderId);
3074            }
3075    
3076            /**
3077            * Removes the document library folder with the primary key from the database. Also notifies the appropriate model listeners.
3078            *
3079            * @param folderId the primary key of the document library folder
3080            * @return the document library folder that was removed
3081            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
3082            * @throws SystemException if a system exception occurred
3083            */
3084            public static com.liferay.portlet.documentlibrary.model.DLFolder remove(
3085                    long folderId)
3086                    throws com.liferay.portal.kernel.exception.SystemException,
3087                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
3088                    return getPersistence().remove(folderId);
3089            }
3090    
3091            public static com.liferay.portlet.documentlibrary.model.DLFolder updateImpl(
3092                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
3093                    throws com.liferay.portal.kernel.exception.SystemException {
3094                    return getPersistence().updateImpl(dlFolder);
3095            }
3096    
3097            /**
3098            * Returns the document library folder with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found.
3099            *
3100            * @param folderId the primary key of the document library folder
3101            * @return the document library folder
3102            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
3103            * @throws SystemException if a system exception occurred
3104            */
3105            public static com.liferay.portlet.documentlibrary.model.DLFolder findByPrimaryKey(
3106                    long folderId)
3107                    throws com.liferay.portal.kernel.exception.SystemException,
3108                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
3109                    return getPersistence().findByPrimaryKey(folderId);
3110            }
3111    
3112            /**
3113            * Returns the document library folder with the primary key or returns <code>null</code> if it could not be found.
3114            *
3115            * @param folderId the primary key of the document library folder
3116            * @return the document library folder, or <code>null</code> if a document library folder with the primary key could not be found
3117            * @throws SystemException if a system exception occurred
3118            */
3119            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByPrimaryKey(
3120                    long folderId)
3121                    throws com.liferay.portal.kernel.exception.SystemException {
3122                    return getPersistence().fetchByPrimaryKey(folderId);
3123            }
3124    
3125            /**
3126            * Returns all the document library folders.
3127            *
3128            * @return the document library folders
3129            * @throws SystemException if a system exception occurred
3130            */
3131            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll()
3132                    throws com.liferay.portal.kernel.exception.SystemException {
3133                    return getPersistence().findAll();
3134            }
3135    
3136            /**
3137            * Returns a range of all the document library folders.
3138            *
3139            * <p>
3140            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
3141            * </p>
3142            *
3143            * @param start the lower bound of the range of document library folders
3144            * @param end the upper bound of the range of document library folders (not inclusive)
3145            * @return the range of document library folders
3146            * @throws SystemException if a system exception occurred
3147            */
3148            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
3149                    int start, int end)
3150                    throws com.liferay.portal.kernel.exception.SystemException {
3151                    return getPersistence().findAll(start, end);
3152            }
3153    
3154            /**
3155            * Returns an ordered range of all the document library folders.
3156            *
3157            * <p>
3158            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
3159            * </p>
3160            *
3161            * @param start the lower bound of the range of document library folders
3162            * @param end the upper bound of the range of document library folders (not inclusive)
3163            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
3164            * @return the ordered range of document library folders
3165            * @throws SystemException if a system exception occurred
3166            */
3167            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
3168                    int start, int end,
3169                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3170                    throws com.liferay.portal.kernel.exception.SystemException {
3171                    return getPersistence().findAll(start, end, orderByComparator);
3172            }
3173    
3174            /**
3175            * Removes all the document library folders from the database.
3176            *
3177            * @throws SystemException if a system exception occurred
3178            */
3179            public static void removeAll()
3180                    throws com.liferay.portal.kernel.exception.SystemException {
3181                    getPersistence().removeAll();
3182            }
3183    
3184            /**
3185            * Returns the number of document library folders.
3186            *
3187            * @return the number of document library folders
3188            * @throws SystemException if a system exception occurred
3189            */
3190            public static int countAll()
3191                    throws com.liferay.portal.kernel.exception.SystemException {
3192                    return getPersistence().countAll();
3193            }
3194    
3195            /**
3196            * Returns all the document library file entry types associated with the document library folder.
3197            *
3198            * @param pk the primary key of the document library folder
3199            * @return the document library file entry types associated with the document library folder
3200            * @throws SystemException if a system exception occurred
3201            */
3202            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
3203                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
3204                    return getPersistence().getDLFileEntryTypes(pk);
3205            }
3206    
3207            /**
3208            * Returns a range of all the document library file entry types associated with the document library folder.
3209            *
3210            * <p>
3211            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
3212            * </p>
3213            *
3214            * @param pk the primary key of the document library folder
3215            * @param start the lower bound of the range of document library folders
3216            * @param end the upper bound of the range of document library folders (not inclusive)
3217            * @return the range of document library file entry types associated with the document library folder
3218            * @throws SystemException if a system exception occurred
3219            */
3220            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
3221                    long pk, int start, int end)
3222                    throws com.liferay.portal.kernel.exception.SystemException {
3223                    return getPersistence().getDLFileEntryTypes(pk, start, end);
3224            }
3225    
3226            /**
3227            * Returns an ordered range of all the document library file entry types associated with the document library folder.
3228            *
3229            * <p>
3230            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
3231            * </p>
3232            *
3233            * @param pk the primary key of the document library folder
3234            * @param start the lower bound of the range of document library folders
3235            * @param end the upper bound of the range of document library folders (not inclusive)
3236            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
3237            * @return the ordered range of document library file entry types associated with the document library folder
3238            * @throws SystemException if a system exception occurred
3239            */
3240            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
3241                    long pk, int start, int end,
3242                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3243                    throws com.liferay.portal.kernel.exception.SystemException {
3244                    return getPersistence()
3245                                       .getDLFileEntryTypes(pk, start, end, orderByComparator);
3246            }
3247    
3248            /**
3249            * Returns the number of document library file entry types associated with the document library folder.
3250            *
3251            * @param pk the primary key of the document library folder
3252            * @return the number of document library file entry types associated with the document library folder
3253            * @throws SystemException if a system exception occurred
3254            */
3255            public static int getDLFileEntryTypesSize(long pk)
3256                    throws com.liferay.portal.kernel.exception.SystemException {
3257                    return getPersistence().getDLFileEntryTypesSize(pk);
3258            }
3259    
3260            /**
3261            * Returns <code>true</code> if the document library file entry type is associated with the document library folder.
3262            *
3263            * @param pk the primary key of the document library folder
3264            * @param dlFileEntryTypePK the primary key of the document library file entry type
3265            * @return <code>true</code> if the document library file entry type is associated with the document library folder; <code>false</code> otherwise
3266            * @throws SystemException if a system exception occurred
3267            */
3268            public static boolean containsDLFileEntryType(long pk,
3269                    long dlFileEntryTypePK)
3270                    throws com.liferay.portal.kernel.exception.SystemException {
3271                    return getPersistence().containsDLFileEntryType(pk, dlFileEntryTypePK);
3272            }
3273    
3274            /**
3275            * Returns <code>true</code> if the document library folder has any document library file entry types associated with it.
3276            *
3277            * @param pk the primary key of the document library folder to check for associations with document library file entry types
3278            * @return <code>true</code> if the document library folder has any document library file entry types associated with it; <code>false</code> otherwise
3279            * @throws SystemException if a system exception occurred
3280            */
3281            public static boolean containsDLFileEntryTypes(long pk)
3282                    throws com.liferay.portal.kernel.exception.SystemException {
3283                    return getPersistence().containsDLFileEntryTypes(pk);
3284            }
3285    
3286            /**
3287            * Adds an association between the document library folder and the document library file entry type. Also notifies the appropriate model listeners and clears the mapping table finder cache.
3288            *
3289            * @param pk the primary key of the document library folder
3290            * @param dlFileEntryTypePK the primary key of the document library file entry type
3291            * @throws SystemException if a system exception occurred
3292            */
3293            public static void addDLFileEntryType(long pk, long dlFileEntryTypePK)
3294                    throws com.liferay.portal.kernel.exception.SystemException {
3295                    getPersistence().addDLFileEntryType(pk, dlFileEntryTypePK);
3296            }
3297    
3298            /**
3299            * Adds an association between the document library folder and the document library file entry type. Also notifies the appropriate model listeners and clears the mapping table finder cache.
3300            *
3301            * @param pk the primary key of the document library folder
3302            * @param dlFileEntryType the document library file entry type
3303            * @throws SystemException if a system exception occurred
3304            */
3305            public static void addDLFileEntryType(long pk,
3306                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
3307                    throws com.liferay.portal.kernel.exception.SystemException {
3308                    getPersistence().addDLFileEntryType(pk, dlFileEntryType);
3309            }
3310    
3311            /**
3312            * Adds an association between the document library folder and the document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache.
3313            *
3314            * @param pk the primary key of the document library folder
3315            * @param dlFileEntryTypePKs the primary keys of the document library file entry types
3316            * @throws SystemException if a system exception occurred
3317            */
3318            public static void addDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs)
3319                    throws com.liferay.portal.kernel.exception.SystemException {
3320                    getPersistence().addDLFileEntryTypes(pk, dlFileEntryTypePKs);
3321            }
3322    
3323            /**
3324            * Adds an association between the document library folder and the document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache.
3325            *
3326            * @param pk the primary key of the document library folder
3327            * @param dlFileEntryTypes the document library file entry types
3328            * @throws SystemException if a system exception occurred
3329            */
3330            public static void addDLFileEntryTypes(long pk,
3331                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes)
3332                    throws com.liferay.portal.kernel.exception.SystemException {
3333                    getPersistence().addDLFileEntryTypes(pk, dlFileEntryTypes);
3334            }
3335    
3336            /**
3337            * Clears all associations between the document library folder and its document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache.
3338            *
3339            * @param pk the primary key of the document library folder to clear the associated document library file entry types from
3340            * @throws SystemException if a system exception occurred
3341            */
3342            public static void clearDLFileEntryTypes(long pk)
3343                    throws com.liferay.portal.kernel.exception.SystemException {
3344                    getPersistence().clearDLFileEntryTypes(pk);
3345            }
3346    
3347            /**
3348            * Removes the association between the document library folder and the document library file entry type. Also notifies the appropriate model listeners and clears the mapping table finder cache.
3349            *
3350            * @param pk the primary key of the document library folder
3351            * @param dlFileEntryTypePK the primary key of the document library file entry type
3352            * @throws SystemException if a system exception occurred
3353            */
3354            public static void removeDLFileEntryType(long pk, long dlFileEntryTypePK)
3355                    throws com.liferay.portal.kernel.exception.SystemException {
3356                    getPersistence().removeDLFileEntryType(pk, dlFileEntryTypePK);
3357            }
3358    
3359            /**
3360            * Removes the association between the document library folder and the document library file entry type. Also notifies the appropriate model listeners and clears the mapping table finder cache.
3361            *
3362            * @param pk the primary key of the document library folder
3363            * @param dlFileEntryType the document library file entry type
3364            * @throws SystemException if a system exception occurred
3365            */
3366            public static void removeDLFileEntryType(long pk,
3367                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
3368                    throws com.liferay.portal.kernel.exception.SystemException {
3369                    getPersistence().removeDLFileEntryType(pk, dlFileEntryType);
3370            }
3371    
3372            /**
3373            * Removes the association between the document library folder and the document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache.
3374            *
3375            * @param pk the primary key of the document library folder
3376            * @param dlFileEntryTypePKs the primary keys of the document library file entry types
3377            * @throws SystemException if a system exception occurred
3378            */
3379            public static void removeDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs)
3380                    throws com.liferay.portal.kernel.exception.SystemException {
3381                    getPersistence().removeDLFileEntryTypes(pk, dlFileEntryTypePKs);
3382            }
3383    
3384            /**
3385            * Removes the association between the document library folder and the document library file entry types. Also notifies the appropriate model listeners and clears the mapping table finder cache.
3386            *
3387            * @param pk the primary key of the document library folder
3388            * @param dlFileEntryTypes the document library file entry types
3389            * @throws SystemException if a system exception occurred
3390            */
3391            public static void removeDLFileEntryTypes(long pk,
3392                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes)
3393                    throws com.liferay.portal.kernel.exception.SystemException {
3394                    getPersistence().removeDLFileEntryTypes(pk, dlFileEntryTypes);
3395            }
3396    
3397            /**
3398            * Sets the document library file entry types associated with the document library folder, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
3399            *
3400            * @param pk the primary key of the document library folder
3401            * @param dlFileEntryTypePKs the primary keys of the document library file entry types to be associated with the document library folder
3402            * @throws SystemException if a system exception occurred
3403            */
3404            public static void setDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs)
3405                    throws com.liferay.portal.kernel.exception.SystemException {
3406                    getPersistence().setDLFileEntryTypes(pk, dlFileEntryTypePKs);
3407            }
3408    
3409            /**
3410            * Sets the document library file entry types associated with the document library folder, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
3411            *
3412            * @param pk the primary key of the document library folder
3413            * @param dlFileEntryTypes the document library file entry types to be associated with the document library folder
3414            * @throws SystemException if a system exception occurred
3415            */
3416            public static void setDLFileEntryTypes(long pk,
3417                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes)
3418                    throws com.liferay.portal.kernel.exception.SystemException {
3419                    getPersistence().setDLFileEntryTypes(pk, dlFileEntryTypes);
3420            }
3421    
3422            public static DLFolderPersistence getPersistence() {
3423                    if (_persistence == null) {
3424                            _persistence = (DLFolderPersistence)PortalBeanLocatorUtil.locate(DLFolderPersistence.class.getName());
3425    
3426                            ReferenceRegistry.registerReference(DLFolderUtil.class,
3427                                    "_persistence");
3428                    }
3429    
3430                    return _persistence;
3431            }
3432    
3433            /**
3434             * @deprecated As of 6.2.0
3435             */
3436            public void setPersistence(DLFolderPersistence persistence) {
3437            }
3438    
3439            private static DLFolderPersistence _persistence;
3440    }