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