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 groupId = &#63; and parentFolderId = &#63;.
1005            *
1006            * @param groupId the group ID
1007            * @param parentFolderId the parent folder ID
1008            * @return the matching document library folders
1009            * @throws SystemException if a system exception occurred
1010            */
1011            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
1012                    long groupId, long parentFolderId)
1013                    throws com.liferay.portal.kernel.exception.SystemException {
1014                    return getPersistence().findByG_P(groupId, parentFolderId);
1015            }
1016    
1017            /**
1018            * Returns a range of all the document library folders where groupId = &#63; and parentFolderId = &#63;.
1019            *
1020            * <p>
1021            * 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.
1022            * </p>
1023            *
1024            * @param groupId the group ID
1025            * @param parentFolderId the parent folder ID
1026            * @param start the lower bound of the range of document library folders
1027            * @param end the upper bound of the range of document library folders (not inclusive)
1028            * @return the range of matching document library folders
1029            * @throws SystemException if a system exception occurred
1030            */
1031            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
1032                    long groupId, long parentFolderId, int start, int end)
1033                    throws com.liferay.portal.kernel.exception.SystemException {
1034                    return getPersistence().findByG_P(groupId, parentFolderId, start, end);
1035            }
1036    
1037            /**
1038            * Returns an ordered range of all the document library folders where groupId = &#63; and parentFolderId = &#63;.
1039            *
1040            * <p>
1041            * 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.
1042            * </p>
1043            *
1044            * @param groupId the group ID
1045            * @param parentFolderId the parent folder ID
1046            * @param start the lower bound of the range of document library folders
1047            * @param end the upper bound of the range of document library folders (not inclusive)
1048            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1049            * @return the ordered range of matching document library folders
1050            * @throws SystemException if a system exception occurred
1051            */
1052            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
1053                    long groupId, long parentFolderId, int start, int end,
1054                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1055                    throws com.liferay.portal.kernel.exception.SystemException {
1056                    return getPersistence()
1057                                       .findByG_P(groupId, parentFolderId, start, end,
1058                            orderByComparator);
1059            }
1060    
1061            /**
1062            * Returns the first document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
1063            *
1064            * @param groupId the group ID
1065            * @param parentFolderId the parent folder ID
1066            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1067            * @return the first matching document library folder
1068            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1069            * @throws SystemException if a system exception occurred
1070            */
1071            public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_First(
1072                    long groupId, long parentFolderId,
1073                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1074                    throws com.liferay.portal.kernel.exception.SystemException,
1075                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1076                    return getPersistence()
1077                                       .findByG_P_First(groupId, parentFolderId, orderByComparator);
1078            }
1079    
1080            /**
1081            * Returns the first document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
1082            *
1083            * @param groupId the group ID
1084            * @param parentFolderId the parent folder ID
1085            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1086            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
1087            * @throws SystemException if a system exception occurred
1088            */
1089            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_First(
1090                    long groupId, long parentFolderId,
1091                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1092                    throws com.liferay.portal.kernel.exception.SystemException {
1093                    return getPersistence()
1094                                       .fetchByG_P_First(groupId, parentFolderId, orderByComparator);
1095            }
1096    
1097            /**
1098            * Returns the last document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
1099            *
1100            * @param groupId the group ID
1101            * @param parentFolderId the parent folder ID
1102            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1103            * @return the last matching document library folder
1104            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1105            * @throws SystemException if a system exception occurred
1106            */
1107            public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_Last(
1108                    long groupId, long parentFolderId,
1109                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1110                    throws com.liferay.portal.kernel.exception.SystemException,
1111                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1112                    return getPersistence()
1113                                       .findByG_P_Last(groupId, parentFolderId, orderByComparator);
1114            }
1115    
1116            /**
1117            * Returns the last document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
1118            *
1119            * @param groupId the group ID
1120            * @param parentFolderId the parent folder ID
1121            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1122            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
1123            * @throws SystemException if a system exception occurred
1124            */
1125            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_Last(
1126                    long groupId, long parentFolderId,
1127                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1128                    throws com.liferay.portal.kernel.exception.SystemException {
1129                    return getPersistence()
1130                                       .fetchByG_P_Last(groupId, parentFolderId, orderByComparator);
1131            }
1132    
1133            /**
1134            * Returns the document library folders before and after the current document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
1135            *
1136            * @param folderId the primary key of the current document library folder
1137            * @param groupId the group ID
1138            * @param parentFolderId the parent folder ID
1139            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1140            * @return the previous, current, and next document library folder
1141            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
1142            * @throws SystemException if a system exception occurred
1143            */
1144            public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_PrevAndNext(
1145                    long folderId, long groupId, long parentFolderId,
1146                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1147                    throws com.liferay.portal.kernel.exception.SystemException,
1148                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1149                    return getPersistence()
1150                                       .findByG_P_PrevAndNext(folderId, groupId, parentFolderId,
1151                            orderByComparator);
1152            }
1153    
1154            /**
1155            * Returns all the document library folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63;.
1156            *
1157            * @param groupId the group ID
1158            * @param parentFolderId the parent folder ID
1159            * @return the matching document library folders that the user has permission to view
1160            * @throws SystemException if a system exception occurred
1161            */
1162            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P(
1163                    long groupId, long parentFolderId)
1164                    throws com.liferay.portal.kernel.exception.SystemException {
1165                    return getPersistence().filterFindByG_P(groupId, parentFolderId);
1166            }
1167    
1168            /**
1169            * Returns a range of all the document library folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63;.
1170            *
1171            * <p>
1172            * 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.
1173            * </p>
1174            *
1175            * @param groupId the group ID
1176            * @param parentFolderId the parent folder ID
1177            * @param start the lower bound of the range of document library folders
1178            * @param end the upper bound of the range of document library folders (not inclusive)
1179            * @return the range of matching document library folders that the user has permission to view
1180            * @throws SystemException if a system exception occurred
1181            */
1182            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P(
1183                    long groupId, long parentFolderId, int start, int end)
1184                    throws com.liferay.portal.kernel.exception.SystemException {
1185                    return getPersistence()
1186                                       .filterFindByG_P(groupId, parentFolderId, start, end);
1187            }
1188    
1189            /**
1190            * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = &#63; and parentFolderId = &#63;.
1191            *
1192            * <p>
1193            * 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.
1194            * </p>
1195            *
1196            * @param groupId the group ID
1197            * @param parentFolderId the parent folder ID
1198            * @param start the lower bound of the range of document library folders
1199            * @param end the upper bound of the range of document library folders (not inclusive)
1200            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1201            * @return the ordered range of matching document library folders that the user has permission to view
1202            * @throws SystemException if a system exception occurred
1203            */
1204            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P(
1205                    long groupId, long parentFolderId, int start, int end,
1206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1207                    throws com.liferay.portal.kernel.exception.SystemException {
1208                    return getPersistence()
1209                                       .filterFindByG_P(groupId, parentFolderId, start, end,
1210                            orderByComparator);
1211            }
1212    
1213            /**
1214            * 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;.
1215            *
1216            * @param folderId the primary key of the current document library folder
1217            * @param groupId the group ID
1218            * @param parentFolderId the parent folder ID
1219            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1220            * @return the previous, current, and next document library folder
1221            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
1222            * @throws SystemException if a system exception occurred
1223            */
1224            public static com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByG_P_PrevAndNext(
1225                    long folderId, long groupId, long parentFolderId,
1226                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1227                    throws com.liferay.portal.kernel.exception.SystemException,
1228                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1229                    return getPersistence()
1230                                       .filterFindByG_P_PrevAndNext(folderId, groupId,
1231                            parentFolderId, orderByComparator);
1232            }
1233    
1234            /**
1235            * Removes all the document library folders where groupId = &#63; and parentFolderId = &#63; from the database.
1236            *
1237            * @param groupId the group ID
1238            * @param parentFolderId the parent folder ID
1239            * @throws SystemException if a system exception occurred
1240            */
1241            public static void removeByG_P(long groupId, long parentFolderId)
1242                    throws com.liferay.portal.kernel.exception.SystemException {
1243                    getPersistence().removeByG_P(groupId, parentFolderId);
1244            }
1245    
1246            /**
1247            * Returns the number of document library folders where groupId = &#63; and parentFolderId = &#63;.
1248            *
1249            * @param groupId the group ID
1250            * @param parentFolderId the parent folder ID
1251            * @return the number of matching document library folders
1252            * @throws SystemException if a system exception occurred
1253            */
1254            public static int countByG_P(long groupId, long parentFolderId)
1255                    throws com.liferay.portal.kernel.exception.SystemException {
1256                    return getPersistence().countByG_P(groupId, parentFolderId);
1257            }
1258    
1259            /**
1260            * Returns the number of document library folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63;.
1261            *
1262            * @param groupId the group ID
1263            * @param parentFolderId the parent folder ID
1264            * @return the number of matching document library folders that the user has permission to view
1265            * @throws SystemException if a system exception occurred
1266            */
1267            public static int filterCountByG_P(long groupId, long parentFolderId)
1268                    throws com.liferay.portal.kernel.exception.SystemException {
1269                    return getPersistence().filterCountByG_P(groupId, parentFolderId);
1270            }
1271    
1272            /**
1273            * Returns all the document library folders where companyId = &#63; and status &ne; &#63;.
1274            *
1275            * @param companyId the company ID
1276            * @param status the status
1277            * @return the matching document library folders
1278            * @throws SystemException if a system exception occurred
1279            */
1280            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByC_NotS(
1281                    long companyId, int status)
1282                    throws com.liferay.portal.kernel.exception.SystemException {
1283                    return getPersistence().findByC_NotS(companyId, status);
1284            }
1285    
1286            /**
1287            * Returns a range of all the document library folders where companyId = &#63; and status &ne; &#63;.
1288            *
1289            * <p>
1290            * 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.
1291            * </p>
1292            *
1293            * @param companyId the company ID
1294            * @param status the status
1295            * @param start the lower bound of the range of document library folders
1296            * @param end the upper bound of the range of document library folders (not inclusive)
1297            * @return the range of matching document library folders
1298            * @throws SystemException if a system exception occurred
1299            */
1300            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByC_NotS(
1301                    long companyId, int status, int start, int end)
1302                    throws com.liferay.portal.kernel.exception.SystemException {
1303                    return getPersistence().findByC_NotS(companyId, status, start, end);
1304            }
1305    
1306            /**
1307            * Returns an ordered range of all the document library folders where companyId = &#63; and status &ne; &#63;.
1308            *
1309            * <p>
1310            * 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.
1311            * </p>
1312            *
1313            * @param companyId the company ID
1314            * @param status the status
1315            * @param start the lower bound of the range of document library folders
1316            * @param end the upper bound of the range of document library folders (not inclusive)
1317            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1318            * @return the ordered range of matching document library folders
1319            * @throws SystemException if a system exception occurred
1320            */
1321            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByC_NotS(
1322                    long companyId, int status, int start, int end,
1323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1324                    throws com.liferay.portal.kernel.exception.SystemException {
1325                    return getPersistence()
1326                                       .findByC_NotS(companyId, status, start, end,
1327                            orderByComparator);
1328            }
1329    
1330            /**
1331            * Returns the first document library folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1332            *
1333            * @param companyId the company ID
1334            * @param status the status
1335            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1336            * @return the first matching document library folder
1337            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1338            * @throws SystemException if a system exception occurred
1339            */
1340            public static com.liferay.portlet.documentlibrary.model.DLFolder findByC_NotS_First(
1341                    long companyId, int status,
1342                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1343                    throws com.liferay.portal.kernel.exception.SystemException,
1344                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1345                    return getPersistence()
1346                                       .findByC_NotS_First(companyId, status, orderByComparator);
1347            }
1348    
1349            /**
1350            * Returns the first document library folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1351            *
1352            * @param companyId the company ID
1353            * @param status the status
1354            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1355            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
1356            * @throws SystemException if a system exception occurred
1357            */
1358            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByC_NotS_First(
1359                    long companyId, int status,
1360                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1361                    throws com.liferay.portal.kernel.exception.SystemException {
1362                    return getPersistence()
1363                                       .fetchByC_NotS_First(companyId, status, orderByComparator);
1364            }
1365    
1366            /**
1367            * Returns the last document library folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1368            *
1369            * @param companyId the company ID
1370            * @param status the status
1371            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1372            * @return the last matching document library folder
1373            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1374            * @throws SystemException if a system exception occurred
1375            */
1376            public static com.liferay.portlet.documentlibrary.model.DLFolder findByC_NotS_Last(
1377                    long companyId, int status,
1378                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1379                    throws com.liferay.portal.kernel.exception.SystemException,
1380                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1381                    return getPersistence()
1382                                       .findByC_NotS_Last(companyId, status, orderByComparator);
1383            }
1384    
1385            /**
1386            * Returns the last document library folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1387            *
1388            * @param companyId the company ID
1389            * @param status the status
1390            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1391            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
1392            * @throws SystemException if a system exception occurred
1393            */
1394            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByC_NotS_Last(
1395                    long companyId, int status,
1396                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1397                    throws com.liferay.portal.kernel.exception.SystemException {
1398                    return getPersistence()
1399                                       .fetchByC_NotS_Last(companyId, status, orderByComparator);
1400            }
1401    
1402            /**
1403            * Returns the document library folders before and after the current document library folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1404            *
1405            * @param folderId the primary key of the current document library folder
1406            * @param companyId the company ID
1407            * @param status the status
1408            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1409            * @return the previous, current, and next document library folder
1410            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
1411            * @throws SystemException if a system exception occurred
1412            */
1413            public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByC_NotS_PrevAndNext(
1414                    long folderId, long companyId, int status,
1415                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1416                    throws com.liferay.portal.kernel.exception.SystemException,
1417                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1418                    return getPersistence()
1419                                       .findByC_NotS_PrevAndNext(folderId, companyId, status,
1420                            orderByComparator);
1421            }
1422    
1423            /**
1424            * Removes all the document library folders where companyId = &#63; and status &ne; &#63; from the database.
1425            *
1426            * @param companyId the company ID
1427            * @param status the status
1428            * @throws SystemException if a system exception occurred
1429            */
1430            public static void removeByC_NotS(long companyId, int status)
1431                    throws com.liferay.portal.kernel.exception.SystemException {
1432                    getPersistence().removeByC_NotS(companyId, status);
1433            }
1434    
1435            /**
1436            * Returns the number of document library folders where companyId = &#63; and status &ne; &#63;.
1437            *
1438            * @param companyId the company ID
1439            * @param status the status
1440            * @return the number of matching document library folders
1441            * @throws SystemException if a system exception occurred
1442            */
1443            public static int countByC_NotS(long companyId, int status)
1444                    throws com.liferay.portal.kernel.exception.SystemException {
1445                    return getPersistence().countByC_NotS(companyId, status);
1446            }
1447    
1448            /**
1449            * Returns all the document library folders where parentFolderId = &#63; and name = &#63;.
1450            *
1451            * @param parentFolderId the parent folder ID
1452            * @param name the name
1453            * @return the matching document library folders
1454            * @throws SystemException if a system exception occurred
1455            */
1456            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
1457                    long parentFolderId, java.lang.String name)
1458                    throws com.liferay.portal.kernel.exception.SystemException {
1459                    return getPersistence().findByP_N(parentFolderId, name);
1460            }
1461    
1462            /**
1463            * Returns a range of all the document library folders where parentFolderId = &#63; and name = &#63;.
1464            *
1465            * <p>
1466            * 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.
1467            * </p>
1468            *
1469            * @param parentFolderId the parent folder ID
1470            * @param name the name
1471            * @param start the lower bound of the range of document library folders
1472            * @param end the upper bound of the range of document library folders (not inclusive)
1473            * @return the range of matching document library folders
1474            * @throws SystemException if a system exception occurred
1475            */
1476            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
1477                    long parentFolderId, java.lang.String name, int start, int end)
1478                    throws com.liferay.portal.kernel.exception.SystemException {
1479                    return getPersistence().findByP_N(parentFolderId, name, start, end);
1480            }
1481    
1482            /**
1483            * Returns an ordered range of all the document library folders where parentFolderId = &#63; and name = &#63;.
1484            *
1485            * <p>
1486            * 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.
1487            * </p>
1488            *
1489            * @param parentFolderId the parent folder ID
1490            * @param name the name
1491            * @param start the lower bound of the range of document library folders
1492            * @param end the upper bound of the range of document library folders (not inclusive)
1493            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1494            * @return the ordered range of matching document library folders
1495            * @throws SystemException if a system exception occurred
1496            */
1497            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
1498                    long parentFolderId, java.lang.String name, int start, int end,
1499                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1500                    throws com.liferay.portal.kernel.exception.SystemException {
1501                    return getPersistence()
1502                                       .findByP_N(parentFolderId, name, start, end,
1503                            orderByComparator);
1504            }
1505    
1506            /**
1507            * Returns the first document library folder in the ordered set where parentFolderId = &#63; and name = &#63;.
1508            *
1509            * @param parentFolderId the parent folder ID
1510            * @param name the name
1511            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1512            * @return the first matching document library folder
1513            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1514            * @throws SystemException if a system exception occurred
1515            */
1516            public static com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_First(
1517                    long parentFolderId, java.lang.String name,
1518                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1519                    throws com.liferay.portal.kernel.exception.SystemException,
1520                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1521                    return getPersistence()
1522                                       .findByP_N_First(parentFolderId, name, orderByComparator);
1523            }
1524    
1525            /**
1526            * Returns the first document library folder in the ordered set where parentFolderId = &#63; and name = &#63;.
1527            *
1528            * @param parentFolderId the parent folder ID
1529            * @param name the name
1530            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1531            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
1532            * @throws SystemException if a system exception occurred
1533            */
1534            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByP_N_First(
1535                    long parentFolderId, java.lang.String name,
1536                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1537                    throws com.liferay.portal.kernel.exception.SystemException {
1538                    return getPersistence()
1539                                       .fetchByP_N_First(parentFolderId, name, orderByComparator);
1540            }
1541    
1542            /**
1543            * Returns the last document library folder in the ordered set where parentFolderId = &#63; and name = &#63;.
1544            *
1545            * @param parentFolderId the parent folder ID
1546            * @param name the name
1547            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1548            * @return the last matching document library folder
1549            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1550            * @throws SystemException if a system exception occurred
1551            */
1552            public static com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_Last(
1553                    long parentFolderId, java.lang.String name,
1554                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1555                    throws com.liferay.portal.kernel.exception.SystemException,
1556                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1557                    return getPersistence()
1558                                       .findByP_N_Last(parentFolderId, name, orderByComparator);
1559            }
1560    
1561            /**
1562            * Returns the last document library folder in the ordered set where parentFolderId = &#63; and name = &#63;.
1563            *
1564            * @param parentFolderId the parent folder ID
1565            * @param name the name
1566            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1567            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
1568            * @throws SystemException if a system exception occurred
1569            */
1570            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByP_N_Last(
1571                    long parentFolderId, java.lang.String name,
1572                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1573                    throws com.liferay.portal.kernel.exception.SystemException {
1574                    return getPersistence()
1575                                       .fetchByP_N_Last(parentFolderId, name, orderByComparator);
1576            }
1577    
1578            /**
1579            * Returns the document library folders before and after the current document library folder in the ordered set where parentFolderId = &#63; and name = &#63;.
1580            *
1581            * @param folderId the primary key of the current document library folder
1582            * @param parentFolderId the parent folder ID
1583            * @param name the name
1584            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1585            * @return the previous, current, and next document library folder
1586            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
1587            * @throws SystemException if a system exception occurred
1588            */
1589            public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByP_N_PrevAndNext(
1590                    long folderId, long parentFolderId, java.lang.String name,
1591                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1592                    throws com.liferay.portal.kernel.exception.SystemException,
1593                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1594                    return getPersistence()
1595                                       .findByP_N_PrevAndNext(folderId, parentFolderId, name,
1596                            orderByComparator);
1597            }
1598    
1599            /**
1600            * Removes all the document library folders where parentFolderId = &#63; and name = &#63; from the database.
1601            *
1602            * @param parentFolderId the parent folder ID
1603            * @param name the name
1604            * @throws SystemException if a system exception occurred
1605            */
1606            public static void removeByP_N(long parentFolderId, java.lang.String name)
1607                    throws com.liferay.portal.kernel.exception.SystemException {
1608                    getPersistence().removeByP_N(parentFolderId, name);
1609            }
1610    
1611            /**
1612            * Returns the number of document library folders where parentFolderId = &#63; and name = &#63;.
1613            *
1614            * @param parentFolderId the parent folder ID
1615            * @param name the name
1616            * @return the number of matching document library folders
1617            * @throws SystemException if a system exception occurred
1618            */
1619            public static int countByP_N(long parentFolderId, java.lang.String name)
1620                    throws com.liferay.portal.kernel.exception.SystemException {
1621                    return getPersistence().countByP_N(parentFolderId, name);
1622            }
1623    
1624            /**
1625            * Returns all the document library folders where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1626            *
1627            * @param folderId the folder ID
1628            * @param companyId the company ID
1629            * @param parentFolderId the parent folder ID
1630            * @param status the status
1631            * @return the matching document library folders
1632            * @throws SystemException if a system exception occurred
1633            */
1634            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByF_C_P_NotS(
1635                    long folderId, long companyId, long parentFolderId, int status)
1636                    throws com.liferay.portal.kernel.exception.SystemException {
1637                    return getPersistence()
1638                                       .findByF_C_P_NotS(folderId, companyId, parentFolderId, status);
1639            }
1640    
1641            /**
1642            * Returns a range of all the document library folders where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1643            *
1644            * <p>
1645            * 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.
1646            * </p>
1647            *
1648            * @param folderId the folder ID
1649            * @param companyId the company ID
1650            * @param parentFolderId the parent folder ID
1651            * @param status the status
1652            * @param start the lower bound of the range of document library folders
1653            * @param end the upper bound of the range of document library folders (not inclusive)
1654            * @return the range of matching document library folders
1655            * @throws SystemException if a system exception occurred
1656            */
1657            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByF_C_P_NotS(
1658                    long folderId, long companyId, long parentFolderId, int status,
1659                    int start, int end)
1660                    throws com.liferay.portal.kernel.exception.SystemException {
1661                    return getPersistence()
1662                                       .findByF_C_P_NotS(folderId, companyId, parentFolderId,
1663                            status, start, end);
1664            }
1665    
1666            /**
1667            * Returns an ordered range of all the document library folders where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1668            *
1669            * <p>
1670            * 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.
1671            * </p>
1672            *
1673            * @param folderId the folder ID
1674            * @param companyId the company ID
1675            * @param parentFolderId the parent folder ID
1676            * @param status the status
1677            * @param start the lower bound of the range of document library folders
1678            * @param end the upper bound of the range of document library folders (not inclusive)
1679            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1680            * @return the ordered range of matching document library folders
1681            * @throws SystemException if a system exception occurred
1682            */
1683            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByF_C_P_NotS(
1684                    long folderId, long companyId, long parentFolderId, int status,
1685                    int start, int end,
1686                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1687                    throws com.liferay.portal.kernel.exception.SystemException {
1688                    return getPersistence()
1689                                       .findByF_C_P_NotS(folderId, companyId, parentFolderId,
1690                            status, start, end, orderByComparator);
1691            }
1692    
1693            /**
1694            * Returns the first document library folder in the ordered set where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1695            *
1696            * @param folderId the folder ID
1697            * @param companyId the company ID
1698            * @param parentFolderId the parent folder ID
1699            * @param status the status
1700            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1701            * @return the first matching document library folder
1702            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1703            * @throws SystemException if a system exception occurred
1704            */
1705            public static com.liferay.portlet.documentlibrary.model.DLFolder findByF_C_P_NotS_First(
1706                    long folderId, long companyId, long parentFolderId, int status,
1707                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1708                    throws com.liferay.portal.kernel.exception.SystemException,
1709                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1710                    return getPersistence()
1711                                       .findByF_C_P_NotS_First(folderId, companyId, parentFolderId,
1712                            status, orderByComparator);
1713            }
1714    
1715            /**
1716            * Returns the first document library folder in the ordered set where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1717            *
1718            * @param folderId the folder ID
1719            * @param companyId the company ID
1720            * @param parentFolderId the parent folder ID
1721            * @param status the status
1722            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1723            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
1724            * @throws SystemException if a system exception occurred
1725            */
1726            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByF_C_P_NotS_First(
1727                    long folderId, long companyId, long parentFolderId, int status,
1728                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1729                    throws com.liferay.portal.kernel.exception.SystemException {
1730                    return getPersistence()
1731                                       .fetchByF_C_P_NotS_First(folderId, companyId,
1732                            parentFolderId, status, orderByComparator);
1733            }
1734    
1735            /**
1736            * Returns the last document library folder in the ordered set where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1737            *
1738            * @param folderId the folder ID
1739            * @param companyId the company ID
1740            * @param parentFolderId the parent folder ID
1741            * @param status the status
1742            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1743            * @return the last matching document library folder
1744            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1745            * @throws SystemException if a system exception occurred
1746            */
1747            public static com.liferay.portlet.documentlibrary.model.DLFolder findByF_C_P_NotS_Last(
1748                    long folderId, long companyId, long parentFolderId, int status,
1749                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1750                    throws com.liferay.portal.kernel.exception.SystemException,
1751                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1752                    return getPersistence()
1753                                       .findByF_C_P_NotS_Last(folderId, companyId, parentFolderId,
1754                            status, orderByComparator);
1755            }
1756    
1757            /**
1758            * Returns the last document library folder in the ordered set where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1759            *
1760            * @param folderId the folder ID
1761            * @param companyId the company ID
1762            * @param parentFolderId the parent folder ID
1763            * @param status the status
1764            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1765            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
1766            * @throws SystemException if a system exception occurred
1767            */
1768            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByF_C_P_NotS_Last(
1769                    long folderId, long companyId, long parentFolderId, int status,
1770                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1771                    throws com.liferay.portal.kernel.exception.SystemException {
1772                    return getPersistence()
1773                                       .fetchByF_C_P_NotS_Last(folderId, companyId, parentFolderId,
1774                            status, orderByComparator);
1775            }
1776    
1777            /**
1778            * Removes all the document library folders where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63; from the database.
1779            *
1780            * @param folderId the folder ID
1781            * @param companyId the company ID
1782            * @param parentFolderId the parent folder ID
1783            * @param status the status
1784            * @throws SystemException if a system exception occurred
1785            */
1786            public static void removeByF_C_P_NotS(long folderId, long companyId,
1787                    long parentFolderId, int status)
1788                    throws com.liferay.portal.kernel.exception.SystemException {
1789                    getPersistence()
1790                            .removeByF_C_P_NotS(folderId, companyId, parentFolderId, status);
1791            }
1792    
1793            /**
1794            * Returns the number of document library folders where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1795            *
1796            * @param folderId the folder ID
1797            * @param companyId the company ID
1798            * @param parentFolderId the parent folder ID
1799            * @param status the status
1800            * @return the number of matching document library folders
1801            * @throws SystemException if a system exception occurred
1802            */
1803            public static int countByF_C_P_NotS(long folderId, long companyId,
1804                    long parentFolderId, int status)
1805                    throws com.liferay.portal.kernel.exception.SystemException {
1806                    return getPersistence()
1807                                       .countByF_C_P_NotS(folderId, companyId, parentFolderId,
1808                            status);
1809            }
1810    
1811            /**
1812            * 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.
1813            *
1814            * @param groupId the group ID
1815            * @param parentFolderId the parent folder ID
1816            * @param name the name
1817            * @return the matching document library folder
1818            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1819            * @throws SystemException if a system exception occurred
1820            */
1821            public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_N(
1822                    long groupId, long parentFolderId, java.lang.String name)
1823                    throws com.liferay.portal.kernel.exception.SystemException,
1824                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1825                    return getPersistence().findByG_P_N(groupId, parentFolderId, name);
1826            }
1827    
1828            /**
1829            * 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.
1830            *
1831            * @param groupId the group ID
1832            * @param parentFolderId the parent folder ID
1833            * @param name the name
1834            * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
1835            * @throws SystemException if a system exception occurred
1836            */
1837            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N(
1838                    long groupId, long parentFolderId, java.lang.String name)
1839                    throws com.liferay.portal.kernel.exception.SystemException {
1840                    return getPersistence().fetchByG_P_N(groupId, parentFolderId, name);
1841            }
1842    
1843            /**
1844            * 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.
1845            *
1846            * @param groupId the group ID
1847            * @param parentFolderId the parent folder ID
1848            * @param name the name
1849            * @param retrieveFromCache whether to use the finder cache
1850            * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
1851            * @throws SystemException if a system exception occurred
1852            */
1853            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N(
1854                    long groupId, long parentFolderId, java.lang.String name,
1855                    boolean retrieveFromCache)
1856                    throws com.liferay.portal.kernel.exception.SystemException {
1857                    return getPersistence()
1858                                       .fetchByG_P_N(groupId, parentFolderId, name,
1859                            retrieveFromCache);
1860            }
1861    
1862            /**
1863            * Removes the document library folder where groupId = &#63; and parentFolderId = &#63; and name = &#63; from the database.
1864            *
1865            * @param groupId the group ID
1866            * @param parentFolderId the parent folder ID
1867            * @param name the name
1868            * @return the document library folder that was removed
1869            * @throws SystemException if a system exception occurred
1870            */
1871            public static com.liferay.portlet.documentlibrary.model.DLFolder removeByG_P_N(
1872                    long groupId, long parentFolderId, java.lang.String name)
1873                    throws com.liferay.portal.kernel.exception.SystemException,
1874                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1875                    return getPersistence().removeByG_P_N(groupId, parentFolderId, name);
1876            }
1877    
1878            /**
1879            * Returns the number of document library folders where groupId = &#63; and parentFolderId = &#63; and name = &#63;.
1880            *
1881            * @param groupId the group ID
1882            * @param parentFolderId the parent folder ID
1883            * @param name the name
1884            * @return the number of matching document library folders
1885            * @throws SystemException if a system exception occurred
1886            */
1887            public static int countByG_P_N(long groupId, long parentFolderId,
1888                    java.lang.String name)
1889                    throws com.liferay.portal.kernel.exception.SystemException {
1890                    return getPersistence().countByG_P_N(groupId, parentFolderId, name);
1891            }
1892    
1893            /**
1894            * Returns all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
1895            *
1896            * @param groupId the group ID
1897            * @param mountPoint the mount point
1898            * @param parentFolderId the parent folder ID
1899            * @param hidden the hidden
1900            * @return the matching document library folders
1901            * @throws SystemException if a system exception occurred
1902            */
1903            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H(
1904                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden)
1905                    throws com.liferay.portal.kernel.exception.SystemException {
1906                    return getPersistence()
1907                                       .findByG_M_P_H(groupId, mountPoint, parentFolderId, hidden);
1908            }
1909    
1910            /**
1911            * Returns a range of all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
1912            *
1913            * <p>
1914            * 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.
1915            * </p>
1916            *
1917            * @param groupId the group ID
1918            * @param mountPoint the mount point
1919            * @param parentFolderId the parent folder ID
1920            * @param hidden the hidden
1921            * @param start the lower bound of the range of document library folders
1922            * @param end the upper bound of the range of document library folders (not inclusive)
1923            * @return the range of matching document library folders
1924            * @throws SystemException if a system exception occurred
1925            */
1926            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H(
1927                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
1928                    int start, int end)
1929                    throws com.liferay.portal.kernel.exception.SystemException {
1930                    return getPersistence()
1931                                       .findByG_M_P_H(groupId, mountPoint, parentFolderId, hidden,
1932                            start, end);
1933            }
1934    
1935            /**
1936            * Returns an ordered range of all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
1937            *
1938            * <p>
1939            * 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.
1940            * </p>
1941            *
1942            * @param groupId the group ID
1943            * @param mountPoint the mount point
1944            * @param parentFolderId the parent folder ID
1945            * @param hidden the hidden
1946            * @param start the lower bound of the range of document library folders
1947            * @param end the upper bound of the range of document library folders (not inclusive)
1948            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1949            * @return the ordered range of matching document library folders
1950            * @throws SystemException if a system exception occurred
1951            */
1952            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H(
1953                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
1954                    int start, int end,
1955                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1956                    throws com.liferay.portal.kernel.exception.SystemException {
1957                    return getPersistence()
1958                                       .findByG_M_P_H(groupId, mountPoint, parentFolderId, hidden,
1959                            start, end, orderByComparator);
1960            }
1961    
1962            /**
1963            * Returns the first document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
1964            *
1965            * @param groupId the group ID
1966            * @param mountPoint the mount point
1967            * @param parentFolderId the parent folder ID
1968            * @param hidden the hidden
1969            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1970            * @return the first matching document library folder
1971            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1972            * @throws SystemException if a system exception occurred
1973            */
1974            public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_M_P_H_First(
1975                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
1976                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1977                    throws com.liferay.portal.kernel.exception.SystemException,
1978                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1979                    return getPersistence()
1980                                       .findByG_M_P_H_First(groupId, mountPoint, parentFolderId,
1981                            hidden, orderByComparator);
1982            }
1983    
1984            /**
1985            * Returns the first document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
1986            *
1987            * @param groupId the group ID
1988            * @param mountPoint the mount point
1989            * @param parentFolderId the parent folder ID
1990            * @param hidden the hidden
1991            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1992            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
1993            * @throws SystemException if a system exception occurred
1994            */
1995            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_M_P_H_First(
1996                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
1997                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1998                    throws com.liferay.portal.kernel.exception.SystemException {
1999                    return getPersistence()
2000                                       .fetchByG_M_P_H_First(groupId, mountPoint, parentFolderId,
2001                            hidden, orderByComparator);
2002            }
2003    
2004            /**
2005            * Returns the last document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
2006            *
2007            * @param groupId the group ID
2008            * @param mountPoint the mount point
2009            * @param parentFolderId the parent folder ID
2010            * @param hidden the hidden
2011            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2012            * @return the last matching document library folder
2013            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
2014            * @throws SystemException if a system exception occurred
2015            */
2016            public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_M_P_H_Last(
2017                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2018                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2019                    throws com.liferay.portal.kernel.exception.SystemException,
2020                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2021                    return getPersistence()
2022                                       .findByG_M_P_H_Last(groupId, mountPoint, parentFolderId,
2023                            hidden, orderByComparator);
2024            }
2025    
2026            /**
2027            * Returns the last document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
2028            *
2029            * @param groupId the group ID
2030            * @param mountPoint the mount point
2031            * @param parentFolderId the parent folder ID
2032            * @param hidden the hidden
2033            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2034            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
2035            * @throws SystemException if a system exception occurred
2036            */
2037            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_M_P_H_Last(
2038                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2039                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2040                    throws com.liferay.portal.kernel.exception.SystemException {
2041                    return getPersistence()
2042                                       .fetchByG_M_P_H_Last(groupId, mountPoint, parentFolderId,
2043                            hidden, orderByComparator);
2044            }
2045    
2046            /**
2047            * 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;.
2048            *
2049            * @param folderId the primary key of the current document library folder
2050            * @param groupId the group ID
2051            * @param mountPoint the mount point
2052            * @param parentFolderId the parent folder ID
2053            * @param hidden the hidden
2054            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2055            * @return the previous, current, and next document library folder
2056            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
2057            * @throws SystemException if a system exception occurred
2058            */
2059            public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_M_P_H_PrevAndNext(
2060                    long folderId, long groupId, boolean mountPoint, long parentFolderId,
2061                    boolean hidden,
2062                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2063                    throws com.liferay.portal.kernel.exception.SystemException,
2064                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2065                    return getPersistence()
2066                                       .findByG_M_P_H_PrevAndNext(folderId, groupId, mountPoint,
2067                            parentFolderId, hidden, orderByComparator);
2068            }
2069    
2070            /**
2071            * 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;.
2072            *
2073            * @param groupId the group ID
2074            * @param mountPoint the mount point
2075            * @param parentFolderId the parent folder ID
2076            * @param hidden the hidden
2077            * @return the matching document library folders that the user has permission to view
2078            * @throws SystemException if a system exception occurred
2079            */
2080            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H(
2081                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden)
2082                    throws com.liferay.portal.kernel.exception.SystemException {
2083                    return getPersistence()
2084                                       .filterFindByG_M_P_H(groupId, mountPoint, parentFolderId,
2085                            hidden);
2086            }
2087    
2088            /**
2089            * 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;.
2090            *
2091            * <p>
2092            * 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.
2093            * </p>
2094            *
2095            * @param groupId the group ID
2096            * @param mountPoint the mount point
2097            * @param parentFolderId the parent folder ID
2098            * @param hidden the hidden
2099            * @param start the lower bound of the range of document library folders
2100            * @param end the upper bound of the range of document library folders (not inclusive)
2101            * @return the range of matching document library folders that the user has permission to view
2102            * @throws SystemException if a system exception occurred
2103            */
2104            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H(
2105                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2106                    int start, int end)
2107                    throws com.liferay.portal.kernel.exception.SystemException {
2108                    return getPersistence()
2109                                       .filterFindByG_M_P_H(groupId, mountPoint, parentFolderId,
2110                            hidden, start, end);
2111            }
2112    
2113            /**
2114            * 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;.
2115            *
2116            * <p>
2117            * 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.
2118            * </p>
2119            *
2120            * @param groupId the group ID
2121            * @param mountPoint the mount point
2122            * @param parentFolderId the parent folder ID
2123            * @param hidden the hidden
2124            * @param start the lower bound of the range of document library folders
2125            * @param end the upper bound of the range of document library folders (not inclusive)
2126            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2127            * @return the ordered range of matching document library folders that the user has permission to view
2128            * @throws SystemException if a system exception occurred
2129            */
2130            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H(
2131                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2132                    int start, int end,
2133                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2134                    throws com.liferay.portal.kernel.exception.SystemException {
2135                    return getPersistence()
2136                                       .filterFindByG_M_P_H(groupId, mountPoint, parentFolderId,
2137                            hidden, start, end, orderByComparator);
2138            }
2139    
2140            /**
2141            * 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;.
2142            *
2143            * @param folderId the primary key of the current document library folder
2144            * @param groupId the group ID
2145            * @param mountPoint the mount point
2146            * @param parentFolderId the parent folder ID
2147            * @param hidden the hidden
2148            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2149            * @return the previous, current, and next document library folder
2150            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
2151            * @throws SystemException if a system exception occurred
2152            */
2153            public static com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByG_M_P_H_PrevAndNext(
2154                    long folderId, long groupId, boolean mountPoint, long parentFolderId,
2155                    boolean hidden,
2156                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2157                    throws com.liferay.portal.kernel.exception.SystemException,
2158                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2159                    return getPersistence()
2160                                       .filterFindByG_M_P_H_PrevAndNext(folderId, groupId,
2161                            mountPoint, parentFolderId, hidden, orderByComparator);
2162            }
2163    
2164            /**
2165            * Removes all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; from the database.
2166            *
2167            * @param groupId the group ID
2168            * @param mountPoint the mount point
2169            * @param parentFolderId the parent folder ID
2170            * @param hidden the hidden
2171            * @throws SystemException if a system exception occurred
2172            */
2173            public static void removeByG_M_P_H(long groupId, boolean mountPoint,
2174                    long parentFolderId, boolean hidden)
2175                    throws com.liferay.portal.kernel.exception.SystemException {
2176                    getPersistence()
2177                            .removeByG_M_P_H(groupId, mountPoint, parentFolderId, hidden);
2178            }
2179    
2180            /**
2181            * Returns the number of document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
2182            *
2183            * @param groupId the group ID
2184            * @param mountPoint the mount point
2185            * @param parentFolderId the parent folder ID
2186            * @param hidden the hidden
2187            * @return the number of matching document library folders
2188            * @throws SystemException if a system exception occurred
2189            */
2190            public static int countByG_M_P_H(long groupId, boolean mountPoint,
2191                    long parentFolderId, boolean hidden)
2192                    throws com.liferay.portal.kernel.exception.SystemException {
2193                    return getPersistence()
2194                                       .countByG_M_P_H(groupId, mountPoint, parentFolderId, hidden);
2195            }
2196    
2197            /**
2198            * 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;.
2199            *
2200            * @param groupId the group ID
2201            * @param mountPoint the mount point
2202            * @param parentFolderId the parent folder ID
2203            * @param hidden the hidden
2204            * @return the number of matching document library folders that the user has permission to view
2205            * @throws SystemException if a system exception occurred
2206            */
2207            public static int filterCountByG_M_P_H(long groupId, boolean mountPoint,
2208                    long parentFolderId, boolean hidden)
2209                    throws com.liferay.portal.kernel.exception.SystemException {
2210                    return getPersistence()
2211                                       .filterCountByG_M_P_H(groupId, mountPoint, parentFolderId,
2212                            hidden);
2213            }
2214    
2215            /**
2216            * Returns all the document library folders where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2217            *
2218            * @param groupId the group ID
2219            * @param parentFolderId the parent folder ID
2220            * @param hidden the hidden
2221            * @param status the status
2222            * @return the matching document library folders
2223            * @throws SystemException if a system exception occurred
2224            */
2225            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P_H_S(
2226                    long groupId, long parentFolderId, boolean hidden, int status)
2227                    throws com.liferay.portal.kernel.exception.SystemException {
2228                    return getPersistence()
2229                                       .findByG_P_H_S(groupId, parentFolderId, hidden, status);
2230            }
2231    
2232            /**
2233            * Returns a range of all the document library folders where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2234            *
2235            * <p>
2236            * 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.
2237            * </p>
2238            *
2239            * @param groupId the group ID
2240            * @param parentFolderId the parent folder ID
2241            * @param hidden the hidden
2242            * @param status the status
2243            * @param start the lower bound of the range of document library folders
2244            * @param end the upper bound of the range of document library folders (not inclusive)
2245            * @return the range of matching document library folders
2246            * @throws SystemException if a system exception occurred
2247            */
2248            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P_H_S(
2249                    long groupId, long parentFolderId, boolean hidden, int status,
2250                    int start, int end)
2251                    throws com.liferay.portal.kernel.exception.SystemException {
2252                    return getPersistence()
2253                                       .findByG_P_H_S(groupId, parentFolderId, hidden, status,
2254                            start, end);
2255            }
2256    
2257            /**
2258            * Returns an ordered range of all the document library folders where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2259            *
2260            * <p>
2261            * 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.
2262            * </p>
2263            *
2264            * @param groupId the group ID
2265            * @param parentFolderId the parent folder ID
2266            * @param hidden the hidden
2267            * @param status the status
2268            * @param start the lower bound of the range of document library folders
2269            * @param end the upper bound of the range of document library folders (not inclusive)
2270            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2271            * @return the ordered range of matching document library folders
2272            * @throws SystemException if a system exception occurred
2273            */
2274            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P_H_S(
2275                    long groupId, long parentFolderId, boolean hidden, int status,
2276                    int start, int end,
2277                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2278                    throws com.liferay.portal.kernel.exception.SystemException {
2279                    return getPersistence()
2280                                       .findByG_P_H_S(groupId, parentFolderId, hidden, status,
2281                            start, end, orderByComparator);
2282            }
2283    
2284            /**
2285            * Returns the first document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2286            *
2287            * @param groupId the group ID
2288            * @param parentFolderId the parent folder ID
2289            * @param hidden the hidden
2290            * @param status the status
2291            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2292            * @return the first matching document library folder
2293            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
2294            * @throws SystemException if a system exception occurred
2295            */
2296            public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_H_S_First(
2297                    long groupId, long parentFolderId, boolean hidden, int status,
2298                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2299                    throws com.liferay.portal.kernel.exception.SystemException,
2300                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2301                    return getPersistence()
2302                                       .findByG_P_H_S_First(groupId, parentFolderId, hidden,
2303                            status, orderByComparator);
2304            }
2305    
2306            /**
2307            * Returns the first document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2308            *
2309            * @param groupId the group ID
2310            * @param parentFolderId the parent folder ID
2311            * @param hidden the hidden
2312            * @param status the status
2313            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2314            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
2315            * @throws SystemException if a system exception occurred
2316            */
2317            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_H_S_First(
2318                    long groupId, long parentFolderId, boolean hidden, int status,
2319                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2320                    throws com.liferay.portal.kernel.exception.SystemException {
2321                    return getPersistence()
2322                                       .fetchByG_P_H_S_First(groupId, parentFolderId, hidden,
2323                            status, orderByComparator);
2324            }
2325    
2326            /**
2327            * Returns the last document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2328            *
2329            * @param groupId the group ID
2330            * @param parentFolderId the parent folder ID
2331            * @param hidden the hidden
2332            * @param status the status
2333            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2334            * @return the last matching document library folder
2335            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
2336            * @throws SystemException if a system exception occurred
2337            */
2338            public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_H_S_Last(
2339                    long groupId, long parentFolderId, boolean hidden, int status,
2340                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2341                    throws com.liferay.portal.kernel.exception.SystemException,
2342                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2343                    return getPersistence()
2344                                       .findByG_P_H_S_Last(groupId, parentFolderId, hidden, status,
2345                            orderByComparator);
2346            }
2347    
2348            /**
2349            * Returns the last document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2350            *
2351            * @param groupId the group ID
2352            * @param parentFolderId the parent folder ID
2353            * @param hidden the hidden
2354            * @param status the status
2355            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2356            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
2357            * @throws SystemException if a system exception occurred
2358            */
2359            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_H_S_Last(
2360                    long groupId, long parentFolderId, boolean hidden, int status,
2361                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2362                    throws com.liferay.portal.kernel.exception.SystemException {
2363                    return getPersistence()
2364                                       .fetchByG_P_H_S_Last(groupId, parentFolderId, hidden,
2365                            status, orderByComparator);
2366            }
2367    
2368            /**
2369            * 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;.
2370            *
2371            * @param folderId the primary key of the current document library folder
2372            * @param groupId the group ID
2373            * @param parentFolderId the parent folder ID
2374            * @param hidden the hidden
2375            * @param status the status
2376            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2377            * @return the previous, current, and next document library folder
2378            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
2379            * @throws SystemException if a system exception occurred
2380            */
2381            public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_H_S_PrevAndNext(
2382                    long folderId, long groupId, long parentFolderId, boolean hidden,
2383                    int status,
2384                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2385                    throws com.liferay.portal.kernel.exception.SystemException,
2386                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2387                    return getPersistence()
2388                                       .findByG_P_H_S_PrevAndNext(folderId, groupId,
2389                            parentFolderId, hidden, status, orderByComparator);
2390            }
2391    
2392            /**
2393            * 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;.
2394            *
2395            * @param groupId the group ID
2396            * @param parentFolderId the parent folder ID
2397            * @param hidden the hidden
2398            * @param status the status
2399            * @return the matching document library folders that the user has permission to view
2400            * @throws SystemException if a system exception occurred
2401            */
2402            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P_H_S(
2403                    long groupId, long parentFolderId, boolean hidden, int status)
2404                    throws com.liferay.portal.kernel.exception.SystemException {
2405                    return getPersistence()
2406                                       .filterFindByG_P_H_S(groupId, parentFolderId, hidden, status);
2407            }
2408    
2409            /**
2410            * 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;.
2411            *
2412            * <p>
2413            * 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.
2414            * </p>
2415            *
2416            * @param groupId the group ID
2417            * @param parentFolderId the parent folder ID
2418            * @param hidden the hidden
2419            * @param status the status
2420            * @param start the lower bound of the range of document library folders
2421            * @param end the upper bound of the range of document library folders (not inclusive)
2422            * @return the range of matching document library folders that the user has permission to view
2423            * @throws SystemException if a system exception occurred
2424            */
2425            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P_H_S(
2426                    long groupId, long parentFolderId, boolean hidden, int status,
2427                    int start, int end)
2428                    throws com.liferay.portal.kernel.exception.SystemException {
2429                    return getPersistence()
2430                                       .filterFindByG_P_H_S(groupId, parentFolderId, hidden,
2431                            status, start, end);
2432            }
2433    
2434            /**
2435            * 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;.
2436            *
2437            * <p>
2438            * 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.
2439            * </p>
2440            *
2441            * @param groupId the group ID
2442            * @param parentFolderId the parent folder ID
2443            * @param hidden the hidden
2444            * @param status the status
2445            * @param start the lower bound of the range of document library folders
2446            * @param end the upper bound of the range of document library folders (not inclusive)
2447            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2448            * @return the ordered range of matching document library folders that the user has permission to view
2449            * @throws SystemException if a system exception occurred
2450            */
2451            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P_H_S(
2452                    long groupId, long parentFolderId, boolean hidden, int status,
2453                    int start, int end,
2454                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2455                    throws com.liferay.portal.kernel.exception.SystemException {
2456                    return getPersistence()
2457                                       .filterFindByG_P_H_S(groupId, parentFolderId, hidden,
2458                            status, start, end, orderByComparator);
2459            }
2460    
2461            /**
2462            * 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;.
2463            *
2464            * @param folderId the primary key of the current document library folder
2465            * @param groupId the group ID
2466            * @param parentFolderId the parent folder ID
2467            * @param hidden the hidden
2468            * @param status the status
2469            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2470            * @return the previous, current, and next document library folder
2471            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
2472            * @throws SystemException if a system exception occurred
2473            */
2474            public static com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByG_P_H_S_PrevAndNext(
2475                    long folderId, long groupId, long parentFolderId, boolean hidden,
2476                    int status,
2477                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2478                    throws com.liferay.portal.kernel.exception.SystemException,
2479                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2480                    return getPersistence()
2481                                       .filterFindByG_P_H_S_PrevAndNext(folderId, groupId,
2482                            parentFolderId, hidden, status, orderByComparator);
2483            }
2484    
2485            /**
2486            * Removes all the document library folders where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63; from the database.
2487            *
2488            * @param groupId the group ID
2489            * @param parentFolderId the parent folder ID
2490            * @param hidden the hidden
2491            * @param status the status
2492            * @throws SystemException if a system exception occurred
2493            */
2494            public static void removeByG_P_H_S(long groupId, long parentFolderId,
2495                    boolean hidden, int status)
2496                    throws com.liferay.portal.kernel.exception.SystemException {
2497                    getPersistence().removeByG_P_H_S(groupId, parentFolderId, hidden, status);
2498            }
2499    
2500            /**
2501            * Returns the number of document library folders where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2502            *
2503            * @param groupId the group ID
2504            * @param parentFolderId the parent folder ID
2505            * @param hidden the hidden
2506            * @param status the status
2507            * @return the number of matching document library folders
2508            * @throws SystemException if a system exception occurred
2509            */
2510            public static int countByG_P_H_S(long groupId, long parentFolderId,
2511                    boolean hidden, int status)
2512                    throws com.liferay.portal.kernel.exception.SystemException {
2513                    return getPersistence()
2514                                       .countByG_P_H_S(groupId, parentFolderId, hidden, status);
2515            }
2516    
2517            /**
2518            * 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;.
2519            *
2520            * @param groupId the group ID
2521            * @param parentFolderId the parent folder ID
2522            * @param hidden the hidden
2523            * @param status the status
2524            * @return the number of matching document library folders that the user has permission to view
2525            * @throws SystemException if a system exception occurred
2526            */
2527            public static int filterCountByG_P_H_S(long groupId, long parentFolderId,
2528                    boolean hidden, int status)
2529                    throws com.liferay.portal.kernel.exception.SystemException {
2530                    return getPersistence()
2531                                       .filterCountByG_P_H_S(groupId, parentFolderId, hidden, status);
2532            }
2533    
2534            /**
2535            * Returns all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2536            *
2537            * @param groupId the group ID
2538            * @param mountPoint the mount point
2539            * @param parentFolderId the parent folder ID
2540            * @param hidden the hidden
2541            * @param status the status
2542            * @return the matching document library folders
2543            * @throws SystemException if a system exception occurred
2544            */
2545            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H_S(
2546                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2547                    int status) throws com.liferay.portal.kernel.exception.SystemException {
2548                    return getPersistence()
2549                                       .findByG_M_P_H_S(groupId, mountPoint, parentFolderId,
2550                            hidden, status);
2551            }
2552    
2553            /**
2554            * Returns a range of all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2555            *
2556            * <p>
2557            * 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.
2558            * </p>
2559            *
2560            * @param groupId the group ID
2561            * @param mountPoint the mount point
2562            * @param parentFolderId the parent folder ID
2563            * @param hidden the hidden
2564            * @param status the status
2565            * @param start the lower bound of the range of document library folders
2566            * @param end the upper bound of the range of document library folders (not inclusive)
2567            * @return the range of matching document library folders
2568            * @throws SystemException if a system exception occurred
2569            */
2570            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H_S(
2571                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2572                    int status, int start, int end)
2573                    throws com.liferay.portal.kernel.exception.SystemException {
2574                    return getPersistence()
2575                                       .findByG_M_P_H_S(groupId, mountPoint, parentFolderId,
2576                            hidden, status, start, end);
2577            }
2578    
2579            /**
2580            * 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;.
2581            *
2582            * <p>
2583            * 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.
2584            * </p>
2585            *
2586            * @param groupId the group ID
2587            * @param mountPoint the mount point
2588            * @param parentFolderId the parent folder ID
2589            * @param hidden the hidden
2590            * @param status the status
2591            * @param start the lower bound of the range of document library folders
2592            * @param end the upper bound of the range of document library folders (not inclusive)
2593            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2594            * @return the ordered range of matching document library folders
2595            * @throws SystemException if a system exception occurred
2596            */
2597            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H_S(
2598                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2599                    int status, int start, int end,
2600                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2601                    throws com.liferay.portal.kernel.exception.SystemException {
2602                    return getPersistence()
2603                                       .findByG_M_P_H_S(groupId, mountPoint, parentFolderId,
2604                            hidden, status, start, end, orderByComparator);
2605            }
2606    
2607            /**
2608            * 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;.
2609            *
2610            * @param groupId the group ID
2611            * @param mountPoint the mount point
2612            * @param parentFolderId the parent folder ID
2613            * @param hidden the hidden
2614            * @param status the status
2615            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2616            * @return the first matching document library folder
2617            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
2618            * @throws SystemException if a system exception occurred
2619            */
2620            public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_M_P_H_S_First(
2621                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2622                    int status,
2623                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2624                    throws com.liferay.portal.kernel.exception.SystemException,
2625                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2626                    return getPersistence()
2627                                       .findByG_M_P_H_S_First(groupId, mountPoint, parentFolderId,
2628                            hidden, status, orderByComparator);
2629            }
2630    
2631            /**
2632            * 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;.
2633            *
2634            * @param groupId the group ID
2635            * @param mountPoint the mount point
2636            * @param parentFolderId the parent folder ID
2637            * @param hidden the hidden
2638            * @param status the status
2639            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2640            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
2641            * @throws SystemException if a system exception occurred
2642            */
2643            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_M_P_H_S_First(
2644                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2645                    int status,
2646                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2647                    throws com.liferay.portal.kernel.exception.SystemException {
2648                    return getPersistence()
2649                                       .fetchByG_M_P_H_S_First(groupId, mountPoint, parentFolderId,
2650                            hidden, status, orderByComparator);
2651            }
2652    
2653            /**
2654            * 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;.
2655            *
2656            * @param groupId the group ID
2657            * @param mountPoint the mount point
2658            * @param parentFolderId the parent folder ID
2659            * @param hidden the hidden
2660            * @param status the status
2661            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2662            * @return the last matching document library folder
2663            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
2664            * @throws SystemException if a system exception occurred
2665            */
2666            public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_M_P_H_S_Last(
2667                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2668                    int status,
2669                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2670                    throws com.liferay.portal.kernel.exception.SystemException,
2671                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2672                    return getPersistence()
2673                                       .findByG_M_P_H_S_Last(groupId, mountPoint, parentFolderId,
2674                            hidden, status, orderByComparator);
2675            }
2676    
2677            /**
2678            * 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;.
2679            *
2680            * @param groupId the group ID
2681            * @param mountPoint the mount point
2682            * @param parentFolderId the parent folder ID
2683            * @param hidden the hidden
2684            * @param status the status
2685            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2686            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
2687            * @throws SystemException if a system exception occurred
2688            */
2689            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_M_P_H_S_Last(
2690                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2691                    int status,
2692                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2693                    throws com.liferay.portal.kernel.exception.SystemException {
2694                    return getPersistence()
2695                                       .fetchByG_M_P_H_S_Last(groupId, mountPoint, parentFolderId,
2696                            hidden, status, orderByComparator);
2697            }
2698    
2699            /**
2700            * 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;.
2701            *
2702            * @param folderId the primary key of the current document library folder
2703            * @param groupId the group ID
2704            * @param mountPoint the mount point
2705            * @param parentFolderId the parent folder ID
2706            * @param hidden the hidden
2707            * @param status the status
2708            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2709            * @return the previous, current, and next document library folder
2710            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
2711            * @throws SystemException if a system exception occurred
2712            */
2713            public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_M_P_H_S_PrevAndNext(
2714                    long folderId, long groupId, boolean mountPoint, long parentFolderId,
2715                    boolean hidden, int status,
2716                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2717                    throws com.liferay.portal.kernel.exception.SystemException,
2718                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2719                    return getPersistence()
2720                                       .findByG_M_P_H_S_PrevAndNext(folderId, groupId, mountPoint,
2721                            parentFolderId, hidden, status, orderByComparator);
2722            }
2723    
2724            /**
2725            * 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;.
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            * @return the matching document library folders that the user has permission to view
2733            * @throws SystemException if a system exception occurred
2734            */
2735            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H_S(
2736                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2737                    int status) throws com.liferay.portal.kernel.exception.SystemException {
2738                    return getPersistence()
2739                                       .filterFindByG_M_P_H_S(groupId, mountPoint, parentFolderId,
2740                            hidden, status);
2741            }
2742    
2743            /**
2744            * 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;.
2745            *
2746            * <p>
2747            * 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.
2748            * </p>
2749            *
2750            * @param groupId the group ID
2751            * @param mountPoint the mount point
2752            * @param parentFolderId the parent folder ID
2753            * @param hidden the hidden
2754            * @param status the status
2755            * @param start the lower bound of the range of document library folders
2756            * @param end the upper bound of the range of document library folders (not inclusive)
2757            * @return the range of matching document library folders that the user has permission to view
2758            * @throws SystemException if a system exception occurred
2759            */
2760            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H_S(
2761                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2762                    int status, int start, int end)
2763                    throws com.liferay.portal.kernel.exception.SystemException {
2764                    return getPersistence()
2765                                       .filterFindByG_M_P_H_S(groupId, mountPoint, parentFolderId,
2766                            hidden, status, start, end);
2767            }
2768    
2769            /**
2770            * 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;.
2771            *
2772            * <p>
2773            * 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.
2774            * </p>
2775            *
2776            * @param groupId the group ID
2777            * @param mountPoint the mount point
2778            * @param parentFolderId the parent folder ID
2779            * @param hidden the hidden
2780            * @param status the status
2781            * @param start the lower bound of the range of document library folders
2782            * @param end the upper bound of the range of document library folders (not inclusive)
2783            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2784            * @return the ordered range of matching document library folders that the user has permission to view
2785            * @throws SystemException if a system exception occurred
2786            */
2787            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H_S(
2788                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2789                    int status, int start, int end,
2790                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2791                    throws com.liferay.portal.kernel.exception.SystemException {
2792                    return getPersistence()
2793                                       .filterFindByG_M_P_H_S(groupId, mountPoint, parentFolderId,
2794                            hidden, status, start, end, orderByComparator);
2795            }
2796    
2797            /**
2798            * 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;.
2799            *
2800            * @param folderId the primary key of the current document library folder
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 previous, current, and next document library folder
2808            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
2809            * @throws SystemException if a system exception occurred
2810            */
2811            public static com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByG_M_P_H_S_PrevAndNext(
2812                    long folderId, long groupId, boolean mountPoint, long parentFolderId,
2813                    boolean hidden, int status,
2814                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2815                    throws com.liferay.portal.kernel.exception.SystemException,
2816                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2817                    return getPersistence()
2818                                       .filterFindByG_M_P_H_S_PrevAndNext(folderId, groupId,
2819                            mountPoint, parentFolderId, hidden, status, orderByComparator);
2820            }
2821    
2822            /**
2823            * Removes all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63; from the database.
2824            *
2825            * @param groupId the group ID
2826            * @param mountPoint the mount point
2827            * @param parentFolderId the parent folder ID
2828            * @param hidden the hidden
2829            * @param status the status
2830            * @throws SystemException if a system exception occurred
2831            */
2832            public static void removeByG_M_P_H_S(long groupId, boolean mountPoint,
2833                    long parentFolderId, boolean hidden, int status)
2834                    throws com.liferay.portal.kernel.exception.SystemException {
2835                    getPersistence()
2836                            .removeByG_M_P_H_S(groupId, mountPoint, parentFolderId, hidden,
2837                            status);
2838            }
2839    
2840            /**
2841            * Returns the number of document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2842            *
2843            * @param groupId the group ID
2844            * @param mountPoint the mount point
2845            * @param parentFolderId the parent folder ID
2846            * @param hidden the hidden
2847            * @param status the status
2848            * @return the number of matching document library folders
2849            * @throws SystemException if a system exception occurred
2850            */
2851            public static int countByG_M_P_H_S(long groupId, boolean mountPoint,
2852                    long parentFolderId, boolean hidden, int status)
2853                    throws com.liferay.portal.kernel.exception.SystemException {
2854                    return getPersistence()
2855                                       .countByG_M_P_H_S(groupId, mountPoint, parentFolderId,
2856                            hidden, status);
2857            }
2858    
2859            /**
2860            * 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;.
2861            *
2862            * @param groupId the group ID
2863            * @param mountPoint the mount point
2864            * @param parentFolderId the parent folder ID
2865            * @param hidden the hidden
2866            * @param status the status
2867            * @return the number of matching document library folders that the user has permission to view
2868            * @throws SystemException if a system exception occurred
2869            */
2870            public static int filterCountByG_M_P_H_S(long groupId, boolean mountPoint,
2871                    long parentFolderId, boolean hidden, int status)
2872                    throws com.liferay.portal.kernel.exception.SystemException {
2873                    return getPersistence()
2874                                       .filterCountByG_M_P_H_S(groupId, mountPoint, parentFolderId,
2875                            hidden, status);
2876            }
2877    
2878            /**
2879            * Caches the document library folder in the entity cache if it is enabled.
2880            *
2881            * @param dlFolder the document library folder
2882            */
2883            public static void cacheResult(
2884                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) {
2885                    getPersistence().cacheResult(dlFolder);
2886            }
2887    
2888            /**
2889            * Caches the document library folders in the entity cache if it is enabled.
2890            *
2891            * @param dlFolders the document library folders
2892            */
2893            public static void cacheResult(
2894                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders) {
2895                    getPersistence().cacheResult(dlFolders);
2896            }
2897    
2898            /**
2899            * Creates a new document library folder with the primary key. Does not add the document library folder to the database.
2900            *
2901            * @param folderId the primary key for the new document library folder
2902            * @return the new document library folder
2903            */
2904            public static com.liferay.portlet.documentlibrary.model.DLFolder create(
2905                    long folderId) {
2906                    return getPersistence().create(folderId);
2907            }
2908    
2909            /**
2910            * Removes the document library folder with the primary key from the database. Also notifies the appropriate model listeners.
2911            *
2912            * @param folderId the primary key of the document library folder
2913            * @return the document library folder that was removed
2914            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
2915            * @throws SystemException if a system exception occurred
2916            */
2917            public static com.liferay.portlet.documentlibrary.model.DLFolder remove(
2918                    long folderId)
2919                    throws com.liferay.portal.kernel.exception.SystemException,
2920                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2921                    return getPersistence().remove(folderId);
2922            }
2923    
2924            public static com.liferay.portlet.documentlibrary.model.DLFolder updateImpl(
2925                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
2926                    throws com.liferay.portal.kernel.exception.SystemException {
2927                    return getPersistence().updateImpl(dlFolder);
2928            }
2929    
2930            /**
2931            * Returns the document library folder with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found.
2932            *
2933            * @param folderId the primary key of the document library folder
2934            * @return the document library folder
2935            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
2936            * @throws SystemException if a system exception occurred
2937            */
2938            public static com.liferay.portlet.documentlibrary.model.DLFolder findByPrimaryKey(
2939                    long folderId)
2940                    throws com.liferay.portal.kernel.exception.SystemException,
2941                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
2942                    return getPersistence().findByPrimaryKey(folderId);
2943            }
2944    
2945            /**
2946            * Returns the document library folder with the primary key or returns <code>null</code> if it could not be found.
2947            *
2948            * @param folderId the primary key of the document library folder
2949            * @return the document library folder, or <code>null</code> if a document library folder with the primary key could not be found
2950            * @throws SystemException if a system exception occurred
2951            */
2952            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByPrimaryKey(
2953                    long folderId)
2954                    throws com.liferay.portal.kernel.exception.SystemException {
2955                    return getPersistence().fetchByPrimaryKey(folderId);
2956            }
2957    
2958            /**
2959            * Returns all the document library folders.
2960            *
2961            * @return the document library folders
2962            * @throws SystemException if a system exception occurred
2963            */
2964            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll()
2965                    throws com.liferay.portal.kernel.exception.SystemException {
2966                    return getPersistence().findAll();
2967            }
2968    
2969            /**
2970            * Returns a range of all the document library folders.
2971            *
2972            * <p>
2973            * 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.
2974            * </p>
2975            *
2976            * @param start the lower bound of the range of document library folders
2977            * @param end the upper bound of the range of document library folders (not inclusive)
2978            * @return the range of document library folders
2979            * @throws SystemException if a system exception occurred
2980            */
2981            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
2982                    int start, int end)
2983                    throws com.liferay.portal.kernel.exception.SystemException {
2984                    return getPersistence().findAll(start, end);
2985            }
2986    
2987            /**
2988            * Returns an ordered range of all the document library folders.
2989            *
2990            * <p>
2991            * 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.
2992            * </p>
2993            *
2994            * @param start the lower bound of the range of document library folders
2995            * @param end the upper bound of the range of document library folders (not inclusive)
2996            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2997            * @return the ordered range of document library folders
2998            * @throws SystemException if a system exception occurred
2999            */
3000            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
3001                    int start, int end,
3002                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3003                    throws com.liferay.portal.kernel.exception.SystemException {
3004                    return getPersistence().findAll(start, end, orderByComparator);
3005            }
3006    
3007            /**
3008            * Removes all the document library folders from the database.
3009            *
3010            * @throws SystemException if a system exception occurred
3011            */
3012            public static void removeAll()
3013                    throws com.liferay.portal.kernel.exception.SystemException {
3014                    getPersistence().removeAll();
3015            }
3016    
3017            /**
3018            * Returns the number of document library folders.
3019            *
3020            * @return the number of document library folders
3021            * @throws SystemException if a system exception occurred
3022            */
3023            public static int countAll()
3024                    throws com.liferay.portal.kernel.exception.SystemException {
3025                    return getPersistence().countAll();
3026            }
3027    
3028            /**
3029            * Returns all the document library file entry types associated with the document library folder.
3030            *
3031            * @param pk the primary key of the document library folder
3032            * @return the document library file entry types associated with the document library folder
3033            * @throws SystemException if a system exception occurred
3034            */
3035            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
3036                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
3037                    return getPersistence().getDLFileEntryTypes(pk);
3038            }
3039    
3040            /**
3041            * Returns a range of all the document library file entry types associated with the document library folder.
3042            *
3043            * <p>
3044            * 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.
3045            * </p>
3046            *
3047            * @param pk the primary key of the document library folder
3048            * @param start the lower bound of the range of document library folders
3049            * @param end the upper bound of the range of document library folders (not inclusive)
3050            * @return the range of document library file entry types associated with the document library folder
3051            * @throws SystemException if a system exception occurred
3052            */
3053            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
3054                    long pk, int start, int end)
3055                    throws com.liferay.portal.kernel.exception.SystemException {
3056                    return getPersistence().getDLFileEntryTypes(pk, start, end);
3057            }
3058    
3059            /**
3060            * Returns an ordered range of all the document library file entry types associated with the document library folder.
3061            *
3062            * <p>
3063            * 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.
3064            * </p>
3065            *
3066            * @param pk the primary key of the document library folder
3067            * @param start the lower bound of the range of document library folders
3068            * @param end the upper bound of the range of document library folders (not inclusive)
3069            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
3070            * @return the ordered range of document library file entry types associated with the document library folder
3071            * @throws SystemException if a system exception occurred
3072            */
3073            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
3074                    long pk, int start, int end,
3075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3076                    throws com.liferay.portal.kernel.exception.SystemException {
3077                    return getPersistence()
3078                                       .getDLFileEntryTypes(pk, start, end, orderByComparator);
3079            }
3080    
3081            /**
3082            * Returns the number of document library file entry types associated with the document library folder.
3083            *
3084            * @param pk the primary key of the document library folder
3085            * @return the number of document library file entry types associated with the document library folder
3086            * @throws SystemException if a system exception occurred
3087            */
3088            public static int getDLFileEntryTypesSize(long pk)
3089                    throws com.liferay.portal.kernel.exception.SystemException {
3090                    return getPersistence().getDLFileEntryTypesSize(pk);
3091            }
3092    
3093            /**
3094            * Returns <code>true</code> if the document library file entry type is associated with the document library folder.
3095            *
3096            * @param pk the primary key of the document library folder
3097            * @param dlFileEntryTypePK the primary key of the document library file entry type
3098            * @return <code>true</code> if the document library file entry type is associated with the document library folder; <code>false</code> otherwise
3099            * @throws SystemException if a system exception occurred
3100            */
3101            public static boolean containsDLFileEntryType(long pk,
3102                    long dlFileEntryTypePK)
3103                    throws com.liferay.portal.kernel.exception.SystemException {
3104                    return getPersistence().containsDLFileEntryType(pk, dlFileEntryTypePK);
3105            }
3106    
3107            /**
3108            * Returns <code>true</code> if the document library folder has any document library file entry types associated with it.
3109            *
3110            * @param pk the primary key of the document library folder to check for associations with document library file entry types
3111            * @return <code>true</code> if the document library folder has any document library file entry types associated with it; <code>false</code> otherwise
3112            * @throws SystemException if a system exception occurred
3113            */
3114            public static boolean containsDLFileEntryTypes(long pk)
3115                    throws com.liferay.portal.kernel.exception.SystemException {
3116                    return getPersistence().containsDLFileEntryTypes(pk);
3117            }
3118    
3119            /**
3120            * 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.
3121            *
3122            * @param pk the primary key of the document library folder
3123            * @param dlFileEntryTypePK the primary key of the document library file entry type
3124            * @throws SystemException if a system exception occurred
3125            */
3126            public static void addDLFileEntryType(long pk, long dlFileEntryTypePK)
3127                    throws com.liferay.portal.kernel.exception.SystemException {
3128                    getPersistence().addDLFileEntryType(pk, dlFileEntryTypePK);
3129            }
3130    
3131            /**
3132            * 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.
3133            *
3134            * @param pk the primary key of the document library folder
3135            * @param dlFileEntryType the document library file entry type
3136            * @throws SystemException if a system exception occurred
3137            */
3138            public static void addDLFileEntryType(long pk,
3139                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
3140                    throws com.liferay.portal.kernel.exception.SystemException {
3141                    getPersistence().addDLFileEntryType(pk, dlFileEntryType);
3142            }
3143    
3144            /**
3145            * 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.
3146            *
3147            * @param pk the primary key of the document library folder
3148            * @param dlFileEntryTypePKs the primary keys of the document library file entry types
3149            * @throws SystemException if a system exception occurred
3150            */
3151            public static void addDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs)
3152                    throws com.liferay.portal.kernel.exception.SystemException {
3153                    getPersistence().addDLFileEntryTypes(pk, dlFileEntryTypePKs);
3154            }
3155    
3156            /**
3157            * 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.
3158            *
3159            * @param pk the primary key of the document library folder
3160            * @param dlFileEntryTypes the document library file entry types
3161            * @throws SystemException if a system exception occurred
3162            */
3163            public static void addDLFileEntryTypes(long pk,
3164                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes)
3165                    throws com.liferay.portal.kernel.exception.SystemException {
3166                    getPersistence().addDLFileEntryTypes(pk, dlFileEntryTypes);
3167            }
3168    
3169            /**
3170            * 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.
3171            *
3172            * @param pk the primary key of the document library folder to clear the associated document library file entry types from
3173            * @throws SystemException if a system exception occurred
3174            */
3175            public static void clearDLFileEntryTypes(long pk)
3176                    throws com.liferay.portal.kernel.exception.SystemException {
3177                    getPersistence().clearDLFileEntryTypes(pk);
3178            }
3179    
3180            /**
3181            * 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.
3182            *
3183            * @param pk the primary key of the document library folder
3184            * @param dlFileEntryTypePK the primary key of the document library file entry type
3185            * @throws SystemException if a system exception occurred
3186            */
3187            public static void removeDLFileEntryType(long pk, long dlFileEntryTypePK)
3188                    throws com.liferay.portal.kernel.exception.SystemException {
3189                    getPersistence().removeDLFileEntryType(pk, dlFileEntryTypePK);
3190            }
3191    
3192            /**
3193            * 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.
3194            *
3195            * @param pk the primary key of the document library folder
3196            * @param dlFileEntryType the document library file entry type
3197            * @throws SystemException if a system exception occurred
3198            */
3199            public static void removeDLFileEntryType(long pk,
3200                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
3201                    throws com.liferay.portal.kernel.exception.SystemException {
3202                    getPersistence().removeDLFileEntryType(pk, dlFileEntryType);
3203            }
3204    
3205            /**
3206            * 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.
3207            *
3208            * @param pk the primary key of the document library folder
3209            * @param dlFileEntryTypePKs the primary keys of the document library file entry types
3210            * @throws SystemException if a system exception occurred
3211            */
3212            public static void removeDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs)
3213                    throws com.liferay.portal.kernel.exception.SystemException {
3214                    getPersistence().removeDLFileEntryTypes(pk, dlFileEntryTypePKs);
3215            }
3216    
3217            /**
3218            * 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.
3219            *
3220            * @param pk the primary key of the document library folder
3221            * @param dlFileEntryTypes the document library file entry types
3222            * @throws SystemException if a system exception occurred
3223            */
3224            public static void removeDLFileEntryTypes(long pk,
3225                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes)
3226                    throws com.liferay.portal.kernel.exception.SystemException {
3227                    getPersistence().removeDLFileEntryTypes(pk, dlFileEntryTypes);
3228            }
3229    
3230            /**
3231            * 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.
3232            *
3233            * @param pk the primary key of the document library folder
3234            * @param dlFileEntryTypePKs the primary keys of the document library file entry types to be associated with the document library folder
3235            * @throws SystemException if a system exception occurred
3236            */
3237            public static void setDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs)
3238                    throws com.liferay.portal.kernel.exception.SystemException {
3239                    getPersistence().setDLFileEntryTypes(pk, dlFileEntryTypePKs);
3240            }
3241    
3242            /**
3243            * 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.
3244            *
3245            * @param pk the primary key of the document library folder
3246            * @param dlFileEntryTypes the document library file entry types to be associated with the document library folder
3247            * @throws SystemException if a system exception occurred
3248            */
3249            public static void setDLFileEntryTypes(long pk,
3250                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes)
3251                    throws com.liferay.portal.kernel.exception.SystemException {
3252                    getPersistence().setDLFileEntryTypes(pk, dlFileEntryTypes);
3253            }
3254    
3255            public static DLFolderPersistence getPersistence() {
3256                    if (_persistence == null) {
3257                            _persistence = (DLFolderPersistence)PortalBeanLocatorUtil.locate(DLFolderPersistence.class.getName());
3258    
3259                            ReferenceRegistry.registerReference(DLFolderUtil.class,
3260                                    "_persistence");
3261                    }
3262    
3263                    return _persistence;
3264            }
3265    
3266            /**
3267             * @deprecated As of 6.2.0
3268             */
3269            public void setPersistence(DLFolderPersistence persistence) {
3270            }
3271    
3272            private static DLFolderPersistence _persistence;
3273    }