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