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