001    /**
002     * Copyright (c) 2000-2010 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.service.ServiceContext;
022    
023    import com.liferay.portlet.documentlibrary.model.DLFolder;
024    
025    import java.util.List;
026    
027    /**
028     * The persistence utility for the d l folder service.
029     *
030     * <p>
031     * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this class.
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see DLFolderPersistence
036     * @see DLFolderPersistenceImpl
037     * @generated
038     */
039    public class DLFolderUtil {
040            /**
041             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
042             */
043            public static void clearCache() {
044                    getPersistence().clearCache();
045            }
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
049             */
050            public static void clearCache(DLFolder dlFolder) {
051                    getPersistence().clearCache(dlFolder);
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
056             */
057            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
058                    throws SystemException {
059                    return getPersistence().countWithDynamicQuery(dynamicQuery);
060            }
061    
062            /**
063             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
064             */
065            public static List<DLFolder> findWithDynamicQuery(DynamicQuery dynamicQuery)
066                    throws SystemException {
067                    return getPersistence().findWithDynamicQuery(dynamicQuery);
068            }
069    
070            /**
071             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
072             */
073            public static List<DLFolder> findWithDynamicQuery(
074                    DynamicQuery dynamicQuery, int start, int end)
075                    throws SystemException {
076                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
077            }
078    
079            /**
080             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
081             */
082            public static List<DLFolder> findWithDynamicQuery(
083                    DynamicQuery dynamicQuery, int start, int end,
084                    OrderByComparator orderByComparator) throws SystemException {
085                    return getPersistence()
086                                       .findWithDynamicQuery(dynamicQuery, start, end,
087                            orderByComparator);
088            }
089    
090            /**
091             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
092             */
093            public static DLFolder remove(DLFolder dlFolder) throws SystemException {
094                    return getPersistence().remove(dlFolder);
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 d l folder in the entity cache if it is enabled.
115            *
116            * @param dlFolder the d l folder to cache
117            */
118            public static void cacheResult(
119                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) {
120                    getPersistence().cacheResult(dlFolder);
121            }
122    
123            /**
124            * Caches the d l folders in the entity cache if it is enabled.
125            *
126            * @param dlFolders the d l folders to cache
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 d l folder with the primary key.
135            *
136            * @param folderId the primary key for the new d l folder
137            * @return the new d l 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 d l folder with the primary key from the database. Also notifies the appropriate model listeners.
146            *
147            * @param folderId the primary key of the d l folder to remove
148            * @return the d l folder that was removed
149            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a d l 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            * Finds the d l 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 d l folder to find
170            * @return the d l folder
171            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a d l 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            * Finds the d l 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 d l folder to find
185            * @return the d l folder, or <code>null</code> if a d l 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            * Finds all the d l folders where uuid = &#63;.
196            *
197            * @param uuid the uuid to search with
198            * @return the matching d l 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            * Finds a range of all the d l 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 to search with
215            * @param start the lower bound of the range of d l folders to return
216            * @param end the upper bound of the range of d l folders to return (not inclusive)
217            * @return the range of matching d l 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            * Finds an ordered range of all the d l 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 to search with
234            * @param start the lower bound of the range of d l folders to return
235            * @param end the upper bound of the range of d l folders to return (not inclusive)
236            * @param orderByComparator the comparator to order the results by
237            * @return the ordered range of matching d l 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            * Finds the first d l 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 to search with
255            * @param orderByComparator the comparator to order the set by
256            * @return the first matching d l folder
257            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l 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            * Finds the last d l 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 to search with
276            * @param orderByComparator the comparator to order the set by
277            * @return the last matching d l folder
278            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l 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            * Finds the d l folders before and after the current d l 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 d l folder
297            * @param uuid the uuid to search with
298            * @param orderByComparator the comparator to order the set by
299            * @return the previous, current, and next d l folder
300            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a d l 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            * Finds the d l 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 to search with
316            * @param groupId the group id to search with
317            * @return the matching d l folder
318            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l 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            * Finds the d l 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 to search with
332            * @param groupId the group id to search with
333            * @return the matching d l folder, or <code>null</code> if a matching d l 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            * Finds the d l 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 to search with
346            * @param groupId the group id to search with
347            * @return the matching d l folder, or <code>null</code> if a matching d l folder could not be found
348            * @throws SystemException if a system exception occurred
349            */
350            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G(
351                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
352                    throws com.liferay.portal.kernel.exception.SystemException {
353                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
354            }
355    
356            /**
357            * Finds all the d l folders where groupId = &#63;.
358            *
359            * @param groupId the group id to search with
360            * @return the matching d l folders
361            * @throws SystemException if a system exception occurred
362            */
363            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
364                    long groupId)
365                    throws com.liferay.portal.kernel.exception.SystemException {
366                    return getPersistence().findByGroupId(groupId);
367            }
368    
369            /**
370            * Finds a range of all the d l folders where groupId = &#63;.
371            *
372            * <p>
373            * 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.
374            * </p>
375            *
376            * @param groupId the group id to search with
377            * @param start the lower bound of the range of d l folders to return
378            * @param end the upper bound of the range of d l folders to return (not inclusive)
379            * @return the range of matching d l folders
380            * @throws SystemException if a system exception occurred
381            */
382            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
383                    long groupId, int start, int end)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    return getPersistence().findByGroupId(groupId, start, end);
386            }
387    
388            /**
389            * Finds an ordered range of all the d l folders where groupId = &#63;.
390            *
391            * <p>
392            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
393            * </p>
394            *
395            * @param groupId the group id to search with
396            * @param start the lower bound of the range of d l folders to return
397            * @param end the upper bound of the range of d l folders to return (not inclusive)
398            * @param orderByComparator the comparator to order the results by
399            * @return the ordered range of matching d l folders
400            * @throws SystemException if a system exception occurred
401            */
402            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
403                    long groupId, int start, int end,
404                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
405                    throws com.liferay.portal.kernel.exception.SystemException {
406                    return getPersistence()
407                                       .findByGroupId(groupId, start, end, orderByComparator);
408            }
409    
410            /**
411            * Finds the first d l folder in the ordered set where groupId = &#63;.
412            *
413            * <p>
414            * 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.
415            * </p>
416            *
417            * @param groupId the group id to search with
418            * @param orderByComparator the comparator to order the set by
419            * @return the first matching d l folder
420            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found
421            * @throws SystemException if a system exception occurred
422            */
423            public static com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_First(
424                    long groupId,
425                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
426                    throws com.liferay.portal.kernel.exception.SystemException,
427                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
428                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
429            }
430    
431            /**
432            * Finds the last d l folder in the ordered set where groupId = &#63;.
433            *
434            * <p>
435            * 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.
436            * </p>
437            *
438            * @param groupId the group id to search with
439            * @param orderByComparator the comparator to order the set by
440            * @return the last matching d l folder
441            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found
442            * @throws SystemException if a system exception occurred
443            */
444            public static com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_Last(
445                    long groupId,
446                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
447                    throws com.liferay.portal.kernel.exception.SystemException,
448                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
449                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
450            }
451    
452            /**
453            * Finds the d l folders before and after the current d l folder in the ordered set where groupId = &#63;.
454            *
455            * <p>
456            * 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.
457            * </p>
458            *
459            * @param folderId the primary key of the current d l folder
460            * @param groupId the group id to search with
461            * @param orderByComparator the comparator to order the set by
462            * @return the previous, current, and next d l folder
463            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a d l folder with the primary key could not be found
464            * @throws SystemException if a system exception occurred
465            */
466            public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByGroupId_PrevAndNext(
467                    long folderId, long groupId,
468                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
469                    throws com.liferay.portal.kernel.exception.SystemException,
470                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
471                    return getPersistence()
472                                       .findByGroupId_PrevAndNext(folderId, groupId,
473                            orderByComparator);
474            }
475    
476            /**
477            * Filters by the user's permissions and finds all the d l folders where groupId = &#63;.
478            *
479            * @param groupId the group id to search with
480            * @return the matching d l folders that the user has permission to view
481            * @throws SystemException if a system exception occurred
482            */
483            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId(
484                    long groupId)
485                    throws com.liferay.portal.kernel.exception.SystemException {
486                    return getPersistence().filterFindByGroupId(groupId);
487            }
488    
489            /**
490            * Filters by the user's permissions and finds a range of all the d l folders where groupId = &#63;.
491            *
492            * <p>
493            * 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.
494            * </p>
495            *
496            * @param groupId the group id to search with
497            * @param start the lower bound of the range of d l folders to return
498            * @param end the upper bound of the range of d l folders to return (not inclusive)
499            * @return the range of matching d l folders that the user has permission to view
500            * @throws SystemException if a system exception occurred
501            */
502            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId(
503                    long groupId, int start, int end)
504                    throws com.liferay.portal.kernel.exception.SystemException {
505                    return getPersistence().filterFindByGroupId(groupId, start, end);
506            }
507    
508            /**
509            * Filters by the user's permissions and finds an ordered range of all the d l folders where groupId = &#63;.
510            *
511            * <p>
512            * 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.
513            * </p>
514            *
515            * @param groupId the group id to search with
516            * @param start the lower bound of the range of d l folders to return
517            * @param end the upper bound of the range of d l folders to return (not inclusive)
518            * @param orderByComparator the comparator to order the results by
519            * @return the ordered range of matching d l folders that the user has permission to view
520            * @throws SystemException if a system exception occurred
521            */
522            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId(
523                    long groupId, int start, int end,
524                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
525                    throws com.liferay.portal.kernel.exception.SystemException {
526                    return getPersistence()
527                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
528            }
529    
530            /**
531            * Finds all the d l folders where companyId = &#63;.
532            *
533            * @param companyId the company id to search with
534            * @return the matching d l folders
535            * @throws SystemException if a system exception occurred
536            */
537            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
538                    long companyId)
539                    throws com.liferay.portal.kernel.exception.SystemException {
540                    return getPersistence().findByCompanyId(companyId);
541            }
542    
543            /**
544            * Finds a range of all the d l folders where companyId = &#63;.
545            *
546            * <p>
547            * 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.
548            * </p>
549            *
550            * @param companyId the company id to search with
551            * @param start the lower bound of the range of d l folders to return
552            * @param end the upper bound of the range of d l folders to return (not inclusive)
553            * @return the range of matching d l folders
554            * @throws SystemException if a system exception occurred
555            */
556            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
557                    long companyId, int start, int end)
558                    throws com.liferay.portal.kernel.exception.SystemException {
559                    return getPersistence().findByCompanyId(companyId, start, end);
560            }
561    
562            /**
563            * Finds an ordered range of all the d l folders where companyId = &#63;.
564            *
565            * <p>
566            * 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.
567            * </p>
568            *
569            * @param companyId the company id to search with
570            * @param start the lower bound of the range of d l folders to return
571            * @param end the upper bound of the range of d l folders to return (not inclusive)
572            * @param orderByComparator the comparator to order the results by
573            * @return the ordered range of matching d l folders
574            * @throws SystemException if a system exception occurred
575            */
576            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
577                    long companyId, int start, int end,
578                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
579                    throws com.liferay.portal.kernel.exception.SystemException {
580                    return getPersistence()
581                                       .findByCompanyId(companyId, start, end, orderByComparator);
582            }
583    
584            /**
585            * Finds the first d l folder in the ordered set where companyId = &#63;.
586            *
587            * <p>
588            * 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.
589            * </p>
590            *
591            * @param companyId the company id to search with
592            * @param orderByComparator the comparator to order the set by
593            * @return the first matching d l folder
594            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found
595            * @throws SystemException if a system exception occurred
596            */
597            public static com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_First(
598                    long companyId,
599                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
600                    throws com.liferay.portal.kernel.exception.SystemException,
601                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
602                    return getPersistence()
603                                       .findByCompanyId_First(companyId, orderByComparator);
604            }
605    
606            /**
607            * Finds the last d l folder in the ordered set where companyId = &#63;.
608            *
609            * <p>
610            * 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.
611            * </p>
612            *
613            * @param companyId the company id to search with
614            * @param orderByComparator the comparator to order the set by
615            * @return the last matching d l folder
616            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found
617            * @throws SystemException if a system exception occurred
618            */
619            public static com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_Last(
620                    long companyId,
621                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
622                    throws com.liferay.portal.kernel.exception.SystemException,
623                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
624                    return getPersistence()
625                                       .findByCompanyId_Last(companyId, orderByComparator);
626            }
627    
628            /**
629            * Finds the d l folders before and after the current d l folder in the ordered set where companyId = &#63;.
630            *
631            * <p>
632            * 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.
633            * </p>
634            *
635            * @param folderId the primary key of the current d l folder
636            * @param companyId the company id to search with
637            * @param orderByComparator the comparator to order the set by
638            * @return the previous, current, and next d l folder
639            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a d l folder with the primary key could not be found
640            * @throws SystemException if a system exception occurred
641            */
642            public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByCompanyId_PrevAndNext(
643                    long folderId, long companyId,
644                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
645                    throws com.liferay.portal.kernel.exception.SystemException,
646                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
647                    return getPersistence()
648                                       .findByCompanyId_PrevAndNext(folderId, companyId,
649                            orderByComparator);
650            }
651    
652            /**
653            * Finds all the d l folders where groupId = &#63; and parentFolderId = &#63;.
654            *
655            * @param groupId the group id to search with
656            * @param parentFolderId the parent folder id to search with
657            * @return the matching d l folders
658            * @throws SystemException if a system exception occurred
659            */
660            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
661                    long groupId, long parentFolderId)
662                    throws com.liferay.portal.kernel.exception.SystemException {
663                    return getPersistence().findByG_P(groupId, parentFolderId);
664            }
665    
666            /**
667            * Finds a range of all the d l folders where groupId = &#63; and parentFolderId = &#63;.
668            *
669            * <p>
670            * 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.
671            * </p>
672            *
673            * @param groupId the group id to search with
674            * @param parentFolderId the parent folder id to search with
675            * @param start the lower bound of the range of d l folders to return
676            * @param end the upper bound of the range of d l folders to return (not inclusive)
677            * @return the range of matching d l folders
678            * @throws SystemException if a system exception occurred
679            */
680            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
681                    long groupId, long parentFolderId, int start, int end)
682                    throws com.liferay.portal.kernel.exception.SystemException {
683                    return getPersistence().findByG_P(groupId, parentFolderId, start, end);
684            }
685    
686            /**
687            * Finds an ordered range of all the d l folders where groupId = &#63; and parentFolderId = &#63;.
688            *
689            * <p>
690            * 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.
691            * </p>
692            *
693            * @param groupId the group id to search with
694            * @param parentFolderId the parent folder id to search with
695            * @param start the lower bound of the range of d l folders to return
696            * @param end the upper bound of the range of d l folders to return (not inclusive)
697            * @param orderByComparator the comparator to order the results by
698            * @return the ordered range of matching d l folders
699            * @throws SystemException if a system exception occurred
700            */
701            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
702                    long groupId, long parentFolderId, int start, int end,
703                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
704                    throws com.liferay.portal.kernel.exception.SystemException {
705                    return getPersistence()
706                                       .findByG_P(groupId, parentFolderId, start, end,
707                            orderByComparator);
708            }
709    
710            /**
711            * Finds the first d l folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
712            *
713            * <p>
714            * 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.
715            * </p>
716            *
717            * @param groupId the group id to search with
718            * @param parentFolderId the parent folder id to search with
719            * @param orderByComparator the comparator to order the set by
720            * @return the first matching d l folder
721            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found
722            * @throws SystemException if a system exception occurred
723            */
724            public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_First(
725                    long groupId, long parentFolderId,
726                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
727                    throws com.liferay.portal.kernel.exception.SystemException,
728                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
729                    return getPersistence()
730                                       .findByG_P_First(groupId, parentFolderId, orderByComparator);
731            }
732    
733            /**
734            * Finds the last d l folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
735            *
736            * <p>
737            * 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.
738            * </p>
739            *
740            * @param groupId the group id to search with
741            * @param parentFolderId the parent folder id to search with
742            * @param orderByComparator the comparator to order the set by
743            * @return the last matching d l folder
744            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found
745            * @throws SystemException if a system exception occurred
746            */
747            public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_Last(
748                    long groupId, long parentFolderId,
749                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
750                    throws com.liferay.portal.kernel.exception.SystemException,
751                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
752                    return getPersistence()
753                                       .findByG_P_Last(groupId, parentFolderId, orderByComparator);
754            }
755    
756            /**
757            * Finds the d l folders before and after the current d l folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
758            *
759            * <p>
760            * 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.
761            * </p>
762            *
763            * @param folderId the primary key of the current d l folder
764            * @param groupId the group id to search with
765            * @param parentFolderId the parent folder id to search with
766            * @param orderByComparator the comparator to order the set by
767            * @return the previous, current, and next d l folder
768            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a d l folder with the primary key could not be found
769            * @throws SystemException if a system exception occurred
770            */
771            public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_PrevAndNext(
772                    long folderId, long groupId, long parentFolderId,
773                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
774                    throws com.liferay.portal.kernel.exception.SystemException,
775                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
776                    return getPersistence()
777                                       .findByG_P_PrevAndNext(folderId, groupId, parentFolderId,
778                            orderByComparator);
779            }
780    
781            /**
782            * Filters by the user's permissions and finds all the d l folders where groupId = &#63; and parentFolderId = &#63;.
783            *
784            * @param groupId the group id to search with
785            * @param parentFolderId the parent folder id to search with
786            * @return the matching d l folders that the user has permission to view
787            * @throws SystemException if a system exception occurred
788            */
789            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P(
790                    long groupId, long parentFolderId)
791                    throws com.liferay.portal.kernel.exception.SystemException {
792                    return getPersistence().filterFindByG_P(groupId, parentFolderId);
793            }
794    
795            /**
796            * Filters by the user's permissions and finds a range of all the d l folders where groupId = &#63; and parentFolderId = &#63;.
797            *
798            * <p>
799            * 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.
800            * </p>
801            *
802            * @param groupId the group id to search with
803            * @param parentFolderId the parent folder id to search with
804            * @param start the lower bound of the range of d l folders to return
805            * @param end the upper bound of the range of d l folders to return (not inclusive)
806            * @return the range of matching d l folders that the user has permission to view
807            * @throws SystemException if a system exception occurred
808            */
809            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P(
810                    long groupId, long parentFolderId, int start, int end)
811                    throws com.liferay.portal.kernel.exception.SystemException {
812                    return getPersistence()
813                                       .filterFindByG_P(groupId, parentFolderId, start, end);
814            }
815    
816            /**
817            * Filters by the user's permissions and finds an ordered range of all the d l folders where groupId = &#63; and parentFolderId = &#63;.
818            *
819            * <p>
820            * 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.
821            * </p>
822            *
823            * @param groupId the group id to search with
824            * @param parentFolderId the parent folder id to search with
825            * @param start the lower bound of the range of d l folders to return
826            * @param end the upper bound of the range of d l folders to return (not inclusive)
827            * @param orderByComparator the comparator to order the results by
828            * @return the ordered range of matching d l folders that the user has permission to view
829            * @throws SystemException if a system exception occurred
830            */
831            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P(
832                    long groupId, long parentFolderId, int start, int end,
833                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
834                    throws com.liferay.portal.kernel.exception.SystemException {
835                    return getPersistence()
836                                       .filterFindByG_P(groupId, parentFolderId, start, end,
837                            orderByComparator);
838            }
839    
840            /**
841            * Finds all the d l folders where parentFolderId = &#63; and name = &#63;.
842            *
843            * @param parentFolderId the parent folder id to search with
844            * @param name the name to search with
845            * @return the matching d l folders
846            * @throws SystemException if a system exception occurred
847            */
848            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
849                    long parentFolderId, java.lang.String name)
850                    throws com.liferay.portal.kernel.exception.SystemException {
851                    return getPersistence().findByP_N(parentFolderId, name);
852            }
853    
854            /**
855            * Finds a range of all the d l folders where parentFolderId = &#63; and name = &#63;.
856            *
857            * <p>
858            * 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.
859            * </p>
860            *
861            * @param parentFolderId the parent folder id to search with
862            * @param name the name to search with
863            * @param start the lower bound of the range of d l folders to return
864            * @param end the upper bound of the range of d l folders to return (not inclusive)
865            * @return the range of matching d l folders
866            * @throws SystemException if a system exception occurred
867            */
868            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
869                    long parentFolderId, java.lang.String name, int start, int end)
870                    throws com.liferay.portal.kernel.exception.SystemException {
871                    return getPersistence().findByP_N(parentFolderId, name, start, end);
872            }
873    
874            /**
875            * Finds an ordered range of all the d l folders where parentFolderId = &#63; and name = &#63;.
876            *
877            * <p>
878            * 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.
879            * </p>
880            *
881            * @param parentFolderId the parent folder id to search with
882            * @param name the name to search with
883            * @param start the lower bound of the range of d l folders to return
884            * @param end the upper bound of the range of d l folders to return (not inclusive)
885            * @param orderByComparator the comparator to order the results by
886            * @return the ordered range of matching d l folders
887            * @throws SystemException if a system exception occurred
888            */
889            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
890                    long parentFolderId, java.lang.String name, int start, int end,
891                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
892                    throws com.liferay.portal.kernel.exception.SystemException {
893                    return getPersistence()
894                                       .findByP_N(parentFolderId, name, start, end,
895                            orderByComparator);
896            }
897    
898            /**
899            * Finds the first d l folder in the ordered set where parentFolderId = &#63; and name = &#63;.
900            *
901            * <p>
902            * 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.
903            * </p>
904            *
905            * @param parentFolderId the parent folder id to search with
906            * @param name the name to search with
907            * @param orderByComparator the comparator to order the set by
908            * @return the first matching d l folder
909            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found
910            * @throws SystemException if a system exception occurred
911            */
912            public static com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_First(
913                    long parentFolderId, java.lang.String name,
914                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
915                    throws com.liferay.portal.kernel.exception.SystemException,
916                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
917                    return getPersistence()
918                                       .findByP_N_First(parentFolderId, name, orderByComparator);
919            }
920    
921            /**
922            * Finds the last d l folder in the ordered set where parentFolderId = &#63; and name = &#63;.
923            *
924            * <p>
925            * 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.
926            * </p>
927            *
928            * @param parentFolderId the parent folder id to search with
929            * @param name the name to search with
930            * @param orderByComparator the comparator to order the set by
931            * @return the last matching d l folder
932            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found
933            * @throws SystemException if a system exception occurred
934            */
935            public static com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_Last(
936                    long parentFolderId, java.lang.String name,
937                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
938                    throws com.liferay.portal.kernel.exception.SystemException,
939                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
940                    return getPersistence()
941                                       .findByP_N_Last(parentFolderId, name, orderByComparator);
942            }
943    
944            /**
945            * Finds the d l folders before and after the current d l folder in the ordered set where parentFolderId = &#63; and name = &#63;.
946            *
947            * <p>
948            * 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.
949            * </p>
950            *
951            * @param folderId the primary key of the current d l folder
952            * @param parentFolderId the parent folder id to search with
953            * @param name the name to search with
954            * @param orderByComparator the comparator to order the set by
955            * @return the previous, current, and next d l folder
956            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a d l folder with the primary key could not be found
957            * @throws SystemException if a system exception occurred
958            */
959            public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByP_N_PrevAndNext(
960                    long folderId, long parentFolderId, java.lang.String name,
961                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
962                    throws com.liferay.portal.kernel.exception.SystemException,
963                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
964                    return getPersistence()
965                                       .findByP_N_PrevAndNext(folderId, parentFolderId, name,
966                            orderByComparator);
967            }
968    
969            /**
970            * Finds the d l 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.
971            *
972            * @param groupId the group id to search with
973            * @param parentFolderId the parent folder id to search with
974            * @param name the name to search with
975            * @return the matching d l folder
976            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found
977            * @throws SystemException if a system exception occurred
978            */
979            public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_N(
980                    long groupId, long parentFolderId, java.lang.String name)
981                    throws com.liferay.portal.kernel.exception.SystemException,
982                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
983                    return getPersistence().findByG_P_N(groupId, parentFolderId, name);
984            }
985    
986            /**
987            * Finds the d l 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.
988            *
989            * @param groupId the group id to search with
990            * @param parentFolderId the parent folder id to search with
991            * @param name the name to search with
992            * @return the matching d l folder, or <code>null</code> if a matching d l folder could not be found
993            * @throws SystemException if a system exception occurred
994            */
995            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N(
996                    long groupId, long parentFolderId, java.lang.String name)
997                    throws com.liferay.portal.kernel.exception.SystemException {
998                    return getPersistence().fetchByG_P_N(groupId, parentFolderId, name);
999            }
1000    
1001            /**
1002            * Finds the d l 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.
1003            *
1004            * @param groupId the group id to search with
1005            * @param parentFolderId the parent folder id to search with
1006            * @param name the name to search with
1007            * @return the matching d l folder, or <code>null</code> if a matching d l folder could not be found
1008            * @throws SystemException if a system exception occurred
1009            */
1010            public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N(
1011                    long groupId, long parentFolderId, java.lang.String name,
1012                    boolean retrieveFromCache)
1013                    throws com.liferay.portal.kernel.exception.SystemException {
1014                    return getPersistence()
1015                                       .fetchByG_P_N(groupId, parentFolderId, name,
1016                            retrieveFromCache);
1017            }
1018    
1019            /**
1020            * Finds all the d l folders.
1021            *
1022            * @return the d l folders
1023            * @throws SystemException if a system exception occurred
1024            */
1025            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll()
1026                    throws com.liferay.portal.kernel.exception.SystemException {
1027                    return getPersistence().findAll();
1028            }
1029    
1030            /**
1031            * Finds a range of all the d l folders.
1032            *
1033            * <p>
1034            * 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.
1035            * </p>
1036            *
1037            * @param start the lower bound of the range of d l folders to return
1038            * @param end the upper bound of the range of d l folders to return (not inclusive)
1039            * @return the range of d l folders
1040            * @throws SystemException if a system exception occurred
1041            */
1042            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
1043                    int start, int end)
1044                    throws com.liferay.portal.kernel.exception.SystemException {
1045                    return getPersistence().findAll(start, end);
1046            }
1047    
1048            /**
1049            * Finds an ordered range of all the d l folders.
1050            *
1051            * <p>
1052            * 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.
1053            * </p>
1054            *
1055            * @param start the lower bound of the range of d l folders to return
1056            * @param end the upper bound of the range of d l folders to return (not inclusive)
1057            * @param orderByComparator the comparator to order the results by
1058            * @return the ordered range of d l folders
1059            * @throws SystemException if a system exception occurred
1060            */
1061            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
1062                    int start, int end,
1063                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1064                    throws com.liferay.portal.kernel.exception.SystemException {
1065                    return getPersistence().findAll(start, end, orderByComparator);
1066            }
1067    
1068            /**
1069            * Removes all the d l folders where uuid = &#63; from the database.
1070            *
1071            * @param uuid the uuid to search with
1072            * @throws SystemException if a system exception occurred
1073            */
1074            public static void removeByUuid(java.lang.String uuid)
1075                    throws com.liferay.portal.kernel.exception.SystemException {
1076                    getPersistence().removeByUuid(uuid);
1077            }
1078    
1079            /**
1080            * Removes the d l folder where uuid = &#63; and groupId = &#63; from the database.
1081            *
1082            * @param uuid the uuid to search with
1083            * @param groupId the group id to search with
1084            * @throws SystemException if a system exception occurred
1085            */
1086            public static void removeByUUID_G(java.lang.String uuid, long groupId)
1087                    throws com.liferay.portal.kernel.exception.SystemException,
1088                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1089                    getPersistence().removeByUUID_G(uuid, groupId);
1090            }
1091    
1092            /**
1093            * Removes all the d l folders where groupId = &#63; from the database.
1094            *
1095            * @param groupId the group id to search with
1096            * @throws SystemException if a system exception occurred
1097            */
1098            public static void removeByGroupId(long groupId)
1099                    throws com.liferay.portal.kernel.exception.SystemException {
1100                    getPersistence().removeByGroupId(groupId);
1101            }
1102    
1103            /**
1104            * Removes all the d l folders where companyId = &#63; from the database.
1105            *
1106            * @param companyId the company id to search with
1107            * @throws SystemException if a system exception occurred
1108            */
1109            public static void removeByCompanyId(long companyId)
1110                    throws com.liferay.portal.kernel.exception.SystemException {
1111                    getPersistence().removeByCompanyId(companyId);
1112            }
1113    
1114            /**
1115            * Removes all the d l folders where groupId = &#63; and parentFolderId = &#63; from the database.
1116            *
1117            * @param groupId the group id to search with
1118            * @param parentFolderId the parent folder id to search with
1119            * @throws SystemException if a system exception occurred
1120            */
1121            public static void removeByG_P(long groupId, long parentFolderId)
1122                    throws com.liferay.portal.kernel.exception.SystemException {
1123                    getPersistence().removeByG_P(groupId, parentFolderId);
1124            }
1125    
1126            /**
1127            * Removes all the d l folders where parentFolderId = &#63; and name = &#63; from the database.
1128            *
1129            * @param parentFolderId the parent folder id to search with
1130            * @param name the name to search with
1131            * @throws SystemException if a system exception occurred
1132            */
1133            public static void removeByP_N(long parentFolderId, java.lang.String name)
1134                    throws com.liferay.portal.kernel.exception.SystemException {
1135                    getPersistence().removeByP_N(parentFolderId, name);
1136            }
1137    
1138            /**
1139            * Removes the d l folder where groupId = &#63; and parentFolderId = &#63; and name = &#63; from the database.
1140            *
1141            * @param groupId the group id to search with
1142            * @param parentFolderId the parent folder id to search with
1143            * @param name the name to search with
1144            * @throws SystemException if a system exception occurred
1145            */
1146            public static void removeByG_P_N(long groupId, long parentFolderId,
1147                    java.lang.String name)
1148                    throws com.liferay.portal.kernel.exception.SystemException,
1149                            com.liferay.portlet.documentlibrary.NoSuchFolderException {
1150                    getPersistence().removeByG_P_N(groupId, parentFolderId, name);
1151            }
1152    
1153            /**
1154            * Removes all the d l folders from the database.
1155            *
1156            * @throws SystemException if a system exception occurred
1157            */
1158            public static void removeAll()
1159                    throws com.liferay.portal.kernel.exception.SystemException {
1160                    getPersistence().removeAll();
1161            }
1162    
1163            /**
1164            * Counts all the d l folders where uuid = &#63;.
1165            *
1166            * @param uuid the uuid to search with
1167            * @return the number of matching d l folders
1168            * @throws SystemException if a system exception occurred
1169            */
1170            public static int countByUuid(java.lang.String uuid)
1171                    throws com.liferay.portal.kernel.exception.SystemException {
1172                    return getPersistence().countByUuid(uuid);
1173            }
1174    
1175            /**
1176            * Counts all the d l folders where uuid = &#63; and groupId = &#63;.
1177            *
1178            * @param uuid the uuid to search with
1179            * @param groupId the group id to search with
1180            * @return the number of matching d l folders
1181            * @throws SystemException if a system exception occurred
1182            */
1183            public static int countByUUID_G(java.lang.String uuid, long groupId)
1184                    throws com.liferay.portal.kernel.exception.SystemException {
1185                    return getPersistence().countByUUID_G(uuid, groupId);
1186            }
1187    
1188            /**
1189            * Counts all the d l folders where groupId = &#63;.
1190            *
1191            * @param groupId the group id to search with
1192            * @return the number of matching d l folders
1193            * @throws SystemException if a system exception occurred
1194            */
1195            public static int countByGroupId(long groupId)
1196                    throws com.liferay.portal.kernel.exception.SystemException {
1197                    return getPersistence().countByGroupId(groupId);
1198            }
1199    
1200            /**
1201            * Filters by the user's permissions and counts all the d l folders where groupId = &#63;.
1202            *
1203            * @param groupId the group id to search with
1204            * @return the number of matching d l folders that the user has permission to view
1205            * @throws SystemException if a system exception occurred
1206            */
1207            public static int filterCountByGroupId(long groupId)
1208                    throws com.liferay.portal.kernel.exception.SystemException {
1209                    return getPersistence().filterCountByGroupId(groupId);
1210            }
1211    
1212            /**
1213            * Counts all the d l folders where companyId = &#63;.
1214            *
1215            * @param companyId the company id to search with
1216            * @return the number of matching d l folders
1217            * @throws SystemException if a system exception occurred
1218            */
1219            public static int countByCompanyId(long companyId)
1220                    throws com.liferay.portal.kernel.exception.SystemException {
1221                    return getPersistence().countByCompanyId(companyId);
1222            }
1223    
1224            /**
1225            * Counts all the d l folders where groupId = &#63; and parentFolderId = &#63;.
1226            *
1227            * @param groupId the group id to search with
1228            * @param parentFolderId the parent folder id to search with
1229            * @return the number of matching d l folders
1230            * @throws SystemException if a system exception occurred
1231            */
1232            public static int countByG_P(long groupId, long parentFolderId)
1233                    throws com.liferay.portal.kernel.exception.SystemException {
1234                    return getPersistence().countByG_P(groupId, parentFolderId);
1235            }
1236    
1237            /**
1238            * Filters by the user's permissions and counts all the d l folders where groupId = &#63; and parentFolderId = &#63;.
1239            *
1240            * @param groupId the group id to search with
1241            * @param parentFolderId the parent folder id to search with
1242            * @return the number of matching d l folders that the user has permission to view
1243            * @throws SystemException if a system exception occurred
1244            */
1245            public static int filterCountByG_P(long groupId, long parentFolderId)
1246                    throws com.liferay.portal.kernel.exception.SystemException {
1247                    return getPersistence().filterCountByG_P(groupId, parentFolderId);
1248            }
1249    
1250            /**
1251            * Counts all the d l folders where parentFolderId = &#63; and name = &#63;.
1252            *
1253            * @param parentFolderId the parent folder id to search with
1254            * @param name the name to search with
1255            * @return the number of matching d l folders
1256            * @throws SystemException if a system exception occurred
1257            */
1258            public static int countByP_N(long parentFolderId, java.lang.String name)
1259                    throws com.liferay.portal.kernel.exception.SystemException {
1260                    return getPersistence().countByP_N(parentFolderId, name);
1261            }
1262    
1263            /**
1264            * Counts all the d l folders where groupId = &#63; and parentFolderId = &#63; and name = &#63;.
1265            *
1266            * @param groupId the group id to search with
1267            * @param parentFolderId the parent folder id to search with
1268            * @param name the name to search with
1269            * @return the number of matching d l folders
1270            * @throws SystemException if a system exception occurred
1271            */
1272            public static int countByG_P_N(long groupId, long parentFolderId,
1273                    java.lang.String name)
1274                    throws com.liferay.portal.kernel.exception.SystemException {
1275                    return getPersistence().countByG_P_N(groupId, parentFolderId, name);
1276            }
1277    
1278            /**
1279            * Filters by the user's permissions and counts all the d l folders where groupId = &#63; and parentFolderId = &#63; and name = &#63;.
1280            *
1281            * @param groupId the group id to search with
1282            * @param parentFolderId the parent folder id to search with
1283            * @param name the name to search with
1284            * @return the number of matching d l folders that the user has permission to view
1285            * @throws SystemException if a system exception occurred
1286            */
1287            public static int filterCountByG_P_N(long groupId, long parentFolderId,
1288                    java.lang.String name)
1289                    throws com.liferay.portal.kernel.exception.SystemException {
1290                    return getPersistence().filterCountByG_P_N(groupId, parentFolderId, name);
1291            }
1292    
1293            /**
1294            * Counts all the d l folders.
1295            *
1296            * @return the number of d l folders
1297            * @throws SystemException if a system exception occurred
1298            */
1299            public static int countAll()
1300                    throws com.liferay.portal.kernel.exception.SystemException {
1301                    return getPersistence().countAll();
1302            }
1303    
1304            public static DLFolderPersistence getPersistence() {
1305                    if (_persistence == null) {
1306                            _persistence = (DLFolderPersistence)PortalBeanLocatorUtil.locate(DLFolderPersistence.class.getName());
1307                    }
1308    
1309                    return _persistence;
1310            }
1311    
1312            public void setPersistence(DLFolderPersistence persistence) {
1313                    _persistence = persistence;
1314            }
1315    
1316            private static DLFolderPersistence _persistence;
1317    }