001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.documentlibrary.model.DLFolder;
022    
023    /**
024     * The persistence interface for the document library folder service.
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see DLFolderPersistenceImpl
032     * @see DLFolderUtil
033     * @generated
034     */
035    @ProviderType
036    public interface DLFolderPersistence extends BasePersistence<DLFolder> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * 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.
041             */
042    
043            /**
044            * Returns all the document library folders where uuid = &#63;.
045            *
046            * @param uuid the uuid
047            * @return the matching document library folders
048            * @throws SystemException if a system exception occurred
049            */
050            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid(
051                    java.lang.String uuid)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            /**
055            * Returns a range of all the document library folders where uuid = &#63;.
056            *
057            * <p>
058            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
059            * </p>
060            *
061            * @param uuid the uuid
062            * @param start the lower bound of the range of document library folders
063            * @param end the upper bound of the range of document library folders (not inclusive)
064            * @return the range of matching document library folders
065            * @throws SystemException if a system exception occurred
066            */
067            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid(
068                    java.lang.String uuid, int start, int end)
069                    throws com.liferay.portal.kernel.exception.SystemException;
070    
071            /**
072            * Returns an ordered range of all the document library folders where uuid = &#63;.
073            *
074            * <p>
075            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
076            * </p>
077            *
078            * @param uuid the uuid
079            * @param start the lower bound of the range of document library folders
080            * @param end the upper bound of the range of document library folders (not inclusive)
081            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
082            * @return the ordered range of matching document library folders
083            * @throws SystemException if a system exception occurred
084            */
085            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid(
086                    java.lang.String uuid, int start, int end,
087                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            /**
091            * Returns the first document library folder in the ordered set where uuid = &#63;.
092            *
093            * @param uuid the uuid
094            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
095            * @return the first matching document library folder
096            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
097            * @throws SystemException if a system exception occurred
098            */
099            public com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_First(
100                    java.lang.String uuid,
101                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102                    throws com.liferay.portal.kernel.exception.SystemException,
103                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
104    
105            /**
106            * Returns the first document library folder in the ordered set where uuid = &#63;.
107            *
108            * @param uuid the uuid
109            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
110            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
111            * @throws SystemException if a system exception occurred
112            */
113            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByUuid_First(
114                    java.lang.String uuid,
115                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns the last document library folder in the ordered set where uuid = &#63;.
120            *
121            * @param uuid the uuid
122            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
123            * @return the last matching document library folder
124            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
125            * @throws SystemException if a system exception occurred
126            */
127            public com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_Last(
128                    java.lang.String uuid,
129                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130                    throws com.liferay.portal.kernel.exception.SystemException,
131                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
132    
133            /**
134            * Returns the last document library folder in the ordered set where uuid = &#63;.
135            *
136            * @param uuid the uuid
137            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
138            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
139            * @throws SystemException if a system exception occurred
140            */
141            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByUuid_Last(
142                    java.lang.String uuid,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            /**
147            * Returns the document library folders before and after the current document library folder in the ordered set where uuid = &#63;.
148            *
149            * @param folderId the primary key of the current document library folder
150            * @param uuid the uuid
151            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
152            * @return the previous, current, and next document library folder
153            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
154            * @throws SystemException if a system exception occurred
155            */
156            public com.liferay.portlet.documentlibrary.model.DLFolder[] findByUuid_PrevAndNext(
157                    long folderId, java.lang.String uuid,
158                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159                    throws com.liferay.portal.kernel.exception.SystemException,
160                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
161    
162            /**
163            * Removes all the document library folders where uuid = &#63; from the database.
164            *
165            * @param uuid the uuid
166            * @throws SystemException if a system exception occurred
167            */
168            public void removeByUuid(java.lang.String uuid)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            /**
172            * Returns the number of document library folders where uuid = &#63;.
173            *
174            * @param uuid the uuid
175            * @return the number of matching document library folders
176            * @throws SystemException if a system exception occurred
177            */
178            public int countByUuid(java.lang.String uuid)
179                    throws com.liferay.portal.kernel.exception.SystemException;
180    
181            /**
182            * 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.
183            *
184            * @param uuid the uuid
185            * @param groupId the group ID
186            * @return the matching document library folder
187            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
188            * @throws SystemException if a system exception occurred
189            */
190            public com.liferay.portlet.documentlibrary.model.DLFolder findByUUID_G(
191                    java.lang.String uuid, long groupId)
192                    throws com.liferay.portal.kernel.exception.SystemException,
193                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
194    
195            /**
196            * 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.
197            *
198            * @param uuid the uuid
199            * @param groupId the group ID
200            * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
201            * @throws SystemException if a system exception occurred
202            */
203            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G(
204                    java.lang.String uuid, long groupId)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            /**
208            * 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.
209            *
210            * @param uuid the uuid
211            * @param groupId the group ID
212            * @param retrieveFromCache whether to use the finder cache
213            * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
214            * @throws SystemException if a system exception occurred
215            */
216            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G(
217                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
218                    throws com.liferay.portal.kernel.exception.SystemException;
219    
220            /**
221            * Removes the document library folder where uuid = &#63; and groupId = &#63; from the database.
222            *
223            * @param uuid the uuid
224            * @param groupId the group ID
225            * @return the document library folder that was removed
226            * @throws SystemException if a system exception occurred
227            */
228            public com.liferay.portlet.documentlibrary.model.DLFolder removeByUUID_G(
229                    java.lang.String uuid, long groupId)
230                    throws com.liferay.portal.kernel.exception.SystemException,
231                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
232    
233            /**
234            * Returns the number of document library folders where uuid = &#63; and groupId = &#63;.
235            *
236            * @param uuid the uuid
237            * @param groupId the group ID
238            * @return the number of matching document library folders
239            * @throws SystemException if a system exception occurred
240            */
241            public int countByUUID_G(java.lang.String uuid, long groupId)
242                    throws com.liferay.portal.kernel.exception.SystemException;
243    
244            /**
245            * Returns all the document library folders where uuid = &#63; and companyId = &#63;.
246            *
247            * @param uuid the uuid
248            * @param companyId the company ID
249            * @return the matching document library folders
250            * @throws SystemException if a system exception occurred
251            */
252            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid_C(
253                    java.lang.String uuid, long companyId)
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            /**
257            * Returns a range of all the document library folders where uuid = &#63; and companyId = &#63;.
258            *
259            * <p>
260            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
261            * </p>
262            *
263            * @param uuid the uuid
264            * @param companyId the company ID
265            * @param start the lower bound of the range of document library folders
266            * @param end the upper bound of the range of document library folders (not inclusive)
267            * @return the range of matching document library folders
268            * @throws SystemException if a system exception occurred
269            */
270            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid_C(
271                    java.lang.String uuid, long companyId, int start, int end)
272                    throws com.liferay.portal.kernel.exception.SystemException;
273    
274            /**
275            * Returns an ordered range of all the document library folders where uuid = &#63; and companyId = &#63;.
276            *
277            * <p>
278            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
279            * </p>
280            *
281            * @param uuid the uuid
282            * @param companyId the company ID
283            * @param start the lower bound of the range of document library folders
284            * @param end the upper bound of the range of document library folders (not inclusive)
285            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
286            * @return the ordered 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> findByUuid_C(
290                    java.lang.String uuid, long companyId, int start, int end,
291                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292                    throws com.liferay.portal.kernel.exception.SystemException;
293    
294            /**
295            * Returns the first document library folder in the ordered set where uuid = &#63; and companyId = &#63;.
296            *
297            * @param uuid the uuid
298            * @param companyId the company ID
299            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
300            * @return the first matching document library folder
301            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
302            * @throws SystemException if a system exception occurred
303            */
304            public com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_C_First(
305                    java.lang.String uuid, long companyId,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException,
308                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
309    
310            /**
311            * Returns the first document library folder in the ordered set where uuid = &#63; and companyId = &#63;.
312            *
313            * @param uuid the uuid
314            * @param companyId the company ID
315            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
316            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
317            * @throws SystemException if a system exception occurred
318            */
319            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByUuid_C_First(
320                    java.lang.String uuid, long companyId,
321                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
322                    throws com.liferay.portal.kernel.exception.SystemException;
323    
324            /**
325            * Returns the last document library folder in the ordered set where uuid = &#63; and companyId = &#63;.
326            *
327            * @param uuid the uuid
328            * @param companyId the company ID
329            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
330            * @return the last matching document library folder
331            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
332            * @throws SystemException if a system exception occurred
333            */
334            public com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_C_Last(
335                    java.lang.String uuid, long companyId,
336                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
337                    throws com.liferay.portal.kernel.exception.SystemException,
338                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
339    
340            /**
341            * Returns the last document library folder in the ordered set where uuid = &#63; and companyId = &#63;.
342            *
343            * @param uuid the uuid
344            * @param companyId the company ID
345            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
346            * @return the last matching document library folder, or <code>null</code> 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 fetchByUuid_C_Last(
350                    java.lang.String uuid, long companyId,
351                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
352                    throws com.liferay.portal.kernel.exception.SystemException;
353    
354            /**
355            * Returns the document library folders before and after the current document library folder in the ordered set where uuid = &#63; and companyId = &#63;.
356            *
357            * @param folderId the primary key of the current document library folder
358            * @param uuid the uuid
359            * @param companyId the company ID
360            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
361            * @return the previous, current, and next document library folder
362            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
363            * @throws SystemException if a system exception occurred
364            */
365            public com.liferay.portlet.documentlibrary.model.DLFolder[] findByUuid_C_PrevAndNext(
366                    long folderId, java.lang.String uuid, long companyId,
367                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
368                    throws com.liferay.portal.kernel.exception.SystemException,
369                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
370    
371            /**
372            * Removes all the document library folders where uuid = &#63; and companyId = &#63; from the database.
373            *
374            * @param uuid the uuid
375            * @param companyId the company ID
376            * @throws SystemException if a system exception occurred
377            */
378            public void removeByUuid_C(java.lang.String uuid, long companyId)
379                    throws com.liferay.portal.kernel.exception.SystemException;
380    
381            /**
382            * Returns the number of document library folders where uuid = &#63; and companyId = &#63;.
383            *
384            * @param uuid the uuid
385            * @param companyId the company ID
386            * @return the number of matching document library folders
387            * @throws SystemException if a system exception occurred
388            */
389            public int countByUuid_C(java.lang.String uuid, long companyId)
390                    throws com.liferay.portal.kernel.exception.SystemException;
391    
392            /**
393            * Returns all the document library folders where groupId = &#63;.
394            *
395            * @param groupId the group ID
396            * @return the matching document library folders
397            * @throws SystemException if a system exception occurred
398            */
399            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
400                    long groupId)
401                    throws com.liferay.portal.kernel.exception.SystemException;
402    
403            /**
404            * Returns a range of all the document library folders where groupId = &#63;.
405            *
406            * <p>
407            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
408            * </p>
409            *
410            * @param groupId the group ID
411            * @param start the lower bound of the range of document library folders
412            * @param end the upper bound of the range of document library folders (not inclusive)
413            * @return the range of matching document library folders
414            * @throws SystemException if a system exception occurred
415            */
416            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
417                    long groupId, int start, int end)
418                    throws com.liferay.portal.kernel.exception.SystemException;
419    
420            /**
421            * Returns an ordered range of all the document library folders where groupId = &#63;.
422            *
423            * <p>
424            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
425            * </p>
426            *
427            * @param groupId the group ID
428            * @param start the lower bound of the range of document library folders
429            * @param end the upper bound of the range of document library folders (not inclusive)
430            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
431            * @return the ordered range of matching document library folders
432            * @throws SystemException if a system exception occurred
433            */
434            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
435                    long groupId, int start, int end,
436                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
437                    throws com.liferay.portal.kernel.exception.SystemException;
438    
439            /**
440            * Returns the first document library folder in the ordered set where groupId = &#63;.
441            *
442            * @param groupId the group ID
443            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
444            * @return the first matching document library folder
445            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
446            * @throws SystemException if a system exception occurred
447            */
448            public com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_First(
449                    long groupId,
450                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
451                    throws com.liferay.portal.kernel.exception.SystemException,
452                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
453    
454            /**
455            * Returns the first document library folder in the ordered set where groupId = &#63;.
456            *
457            * @param groupId the group ID
458            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
459            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
460            * @throws SystemException if a system exception occurred
461            */
462            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByGroupId_First(
463                    long groupId,
464                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
465                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * Returns the last document library folder in the ordered set where groupId = &#63;.
469            *
470            * @param groupId the group ID
471            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
472            * @return the last matching document library folder
473            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
474            * @throws SystemException if a system exception occurred
475            */
476            public com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_Last(
477                    long groupId,
478                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
479                    throws com.liferay.portal.kernel.exception.SystemException,
480                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
481    
482            /**
483            * Returns the last document library folder in the ordered set where groupId = &#63;.
484            *
485            * @param groupId the group ID
486            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
487            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
488            * @throws SystemException if a system exception occurred
489            */
490            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByGroupId_Last(
491                    long groupId,
492                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
493                    throws com.liferay.portal.kernel.exception.SystemException;
494    
495            /**
496            * Returns the document library folders before and after the current document library folder in the ordered set where groupId = &#63;.
497            *
498            * @param folderId the primary key of the current document library folder
499            * @param groupId the group ID
500            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
501            * @return the previous, current, and next document library folder
502            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
503            * @throws SystemException if a system exception occurred
504            */
505            public com.liferay.portlet.documentlibrary.model.DLFolder[] findByGroupId_PrevAndNext(
506                    long folderId, long groupId,
507                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
508                    throws com.liferay.portal.kernel.exception.SystemException,
509                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
510    
511            /**
512            * Returns all the document library folders that the user has permission to view where groupId = &#63;.
513            *
514            * @param groupId the group ID
515            * @return the matching document library folders that the user has permission to view
516            * @throws SystemException if a system exception occurred
517            */
518            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId(
519                    long groupId)
520                    throws com.liferay.portal.kernel.exception.SystemException;
521    
522            /**
523            * Returns a range of all the document library folders that the user has permission to view where groupId = &#63;.
524            *
525            * <p>
526            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
527            * </p>
528            *
529            * @param groupId the group ID
530            * @param start the lower bound of the range of document library folders
531            * @param end the upper bound of the range of document library folders (not inclusive)
532            * @return the range of matching document library folders that the user has permission to view
533            * @throws SystemException if a system exception occurred
534            */
535            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId(
536                    long groupId, int start, int end)
537                    throws com.liferay.portal.kernel.exception.SystemException;
538    
539            /**
540            * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = &#63;.
541            *
542            * <p>
543            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
544            * </p>
545            *
546            * @param groupId the group ID
547            * @param start the lower bound of the range of document library folders
548            * @param end the upper bound of the range of document library folders (not inclusive)
549            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
550            * @return the ordered range of matching document library folders that the user has permission to view
551            * @throws SystemException if a system exception occurred
552            */
553            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId(
554                    long groupId, int start, int end,
555                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
556                    throws com.liferay.portal.kernel.exception.SystemException;
557    
558            /**
559            * 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;.
560            *
561            * @param folderId the primary key of the current document library folder
562            * @param groupId the group ID
563            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
564            * @return the previous, current, and next document library folder
565            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
566            * @throws SystemException if a system exception occurred
567            */
568            public com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByGroupId_PrevAndNext(
569                    long folderId, long groupId,
570                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
571                    throws com.liferay.portal.kernel.exception.SystemException,
572                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
573    
574            /**
575            * Removes all the document library folders where groupId = &#63; from the database.
576            *
577            * @param groupId the group ID
578            * @throws SystemException if a system exception occurred
579            */
580            public void removeByGroupId(long groupId)
581                    throws com.liferay.portal.kernel.exception.SystemException;
582    
583            /**
584            * Returns the number of document library folders where groupId = &#63;.
585            *
586            * @param groupId the group ID
587            * @return the number of matching document library folders
588            * @throws SystemException if a system exception occurred
589            */
590            public int countByGroupId(long groupId)
591                    throws com.liferay.portal.kernel.exception.SystemException;
592    
593            /**
594            * Returns the number of document library folders that the user has permission to view where groupId = &#63;.
595            *
596            * @param groupId the group ID
597            * @return the number of matching document library folders that the user has permission to view
598            * @throws SystemException if a system exception occurred
599            */
600            public int filterCountByGroupId(long groupId)
601                    throws com.liferay.portal.kernel.exception.SystemException;
602    
603            /**
604            * Returns all the document library folders where companyId = &#63;.
605            *
606            * @param companyId the company 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> findByCompanyId(
611                    long companyId)
612                    throws com.liferay.portal.kernel.exception.SystemException;
613    
614            /**
615            * Returns a range of all the document library folders where companyId = &#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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
619            * </p>
620            *
621            * @param companyId the company ID
622            * @param start the lower bound of the range of document library folders
623            * @param end the upper bound of the range of document library folders (not inclusive)
624            * @return the range of matching document library folders
625            * @throws SystemException if a system exception occurred
626            */
627            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
628                    long companyId, int start, int end)
629                    throws com.liferay.portal.kernel.exception.SystemException;
630    
631            /**
632            * Returns an ordered range of all the document library folders where companyId = &#63;.
633            *
634            * <p>
635            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
636            * </p>
637            *
638            * @param companyId the company ID
639            * @param start the lower bound of the range of document library folders
640            * @param end the upper bound of the range of document library folders (not inclusive)
641            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
642            * @return the ordered range of matching document library folders
643            * @throws SystemException if a system exception occurred
644            */
645            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
646                    long companyId, int start, int end,
647                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
648                    throws com.liferay.portal.kernel.exception.SystemException;
649    
650            /**
651            * Returns the first document library folder in the ordered set where companyId = &#63;.
652            *
653            * @param companyId the company ID
654            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
655            * @return the first matching document library folder
656            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
657            * @throws SystemException if a system exception occurred
658            */
659            public com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_First(
660                    long companyId,
661                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
662                    throws com.liferay.portal.kernel.exception.SystemException,
663                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
664    
665            /**
666            * Returns the first document library folder in the ordered set where companyId = &#63;.
667            *
668            * @param companyId the company ID
669            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
670            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
671            * @throws SystemException if a system exception occurred
672            */
673            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByCompanyId_First(
674                    long companyId,
675                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
676                    throws com.liferay.portal.kernel.exception.SystemException;
677    
678            /**
679            * Returns the last document library folder in the ordered set where companyId = &#63;.
680            *
681            * @param companyId the company ID
682            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
683            * @return the last matching document library folder
684            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
685            * @throws SystemException if a system exception occurred
686            */
687            public com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_Last(
688                    long companyId,
689                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
690                    throws com.liferay.portal.kernel.exception.SystemException,
691                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
692    
693            /**
694            * Returns the last document library folder in the ordered set where companyId = &#63;.
695            *
696            * @param companyId the company ID
697            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
698            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
699            * @throws SystemException if a system exception occurred
700            */
701            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByCompanyId_Last(
702                    long companyId,
703                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
704                    throws com.liferay.portal.kernel.exception.SystemException;
705    
706            /**
707            * Returns the document library folders before and after the current document library folder in the ordered set where companyId = &#63;.
708            *
709            * @param folderId the primary key of the current document library folder
710            * @param companyId the company ID
711            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
712            * @return the previous, current, and next document library folder
713            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
714            * @throws SystemException if a system exception occurred
715            */
716            public com.liferay.portlet.documentlibrary.model.DLFolder[] findByCompanyId_PrevAndNext(
717                    long folderId, long companyId,
718                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
719                    throws com.liferay.portal.kernel.exception.SystemException,
720                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
721    
722            /**
723            * Removes all the document library folders where companyId = &#63; from the database.
724            *
725            * @param companyId the company ID
726            * @throws SystemException if a system exception occurred
727            */
728            public void removeByCompanyId(long companyId)
729                    throws com.liferay.portal.kernel.exception.SystemException;
730    
731            /**
732            * Returns the number of document library folders where companyId = &#63;.
733            *
734            * @param companyId the company ID
735            * @return the number of matching document library folders
736            * @throws SystemException if a system exception occurred
737            */
738            public int countByCompanyId(long companyId)
739                    throws com.liferay.portal.kernel.exception.SystemException;
740    
741            /**
742            * Returns the document library folder where repositoryId = &#63; or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found.
743            *
744            * @param repositoryId the repository ID
745            * @return the matching document library folder
746            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
747            * @throws SystemException if a system exception occurred
748            */
749            public com.liferay.portlet.documentlibrary.model.DLFolder findByRepositoryId(
750                    long repositoryId)
751                    throws com.liferay.portal.kernel.exception.SystemException,
752                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
753    
754            /**
755            * Returns the document library folder where repositoryId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
756            *
757            * @param repositoryId the repository ID
758            * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
759            * @throws SystemException if a system exception occurred
760            */
761            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByRepositoryId(
762                    long repositoryId)
763                    throws com.liferay.portal.kernel.exception.SystemException;
764    
765            /**
766            * Returns the document library folder where repositoryId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
767            *
768            * @param repositoryId the repository ID
769            * @param retrieveFromCache whether to use the finder cache
770            * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
771            * @throws SystemException if a system exception occurred
772            */
773            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByRepositoryId(
774                    long repositoryId, boolean retrieveFromCache)
775                    throws com.liferay.portal.kernel.exception.SystemException;
776    
777            /**
778            * Removes the document library folder where repositoryId = &#63; from the database.
779            *
780            * @param repositoryId the repository ID
781            * @return the document library folder that was removed
782            * @throws SystemException if a system exception occurred
783            */
784            public com.liferay.portlet.documentlibrary.model.DLFolder removeByRepositoryId(
785                    long repositoryId)
786                    throws com.liferay.portal.kernel.exception.SystemException,
787                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
788    
789            /**
790            * Returns the number of document library folders where repositoryId = &#63;.
791            *
792            * @param repositoryId the repository ID
793            * @return the number of matching document library folders
794            * @throws SystemException if a system exception occurred
795            */
796            public int countByRepositoryId(long repositoryId)
797                    throws com.liferay.portal.kernel.exception.SystemException;
798    
799            /**
800            * Returns all the document library folders where repositoryId = &#63;.
801            *
802            * @param repositoryId the repository ID
803            * @return the matching document library folders
804            * @throws SystemException if a system exception occurred
805            */
806            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByRepositoryIdList(
807                    long repositoryId)
808                    throws com.liferay.portal.kernel.exception.SystemException;
809    
810            /**
811            * Returns a range of all the document library folders where repositoryId = &#63;.
812            *
813            * <p>
814            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
815            * </p>
816            *
817            * @param repositoryId the repository ID
818            * @param start the lower bound of the range of document library folders
819            * @param end the upper bound of the range of document library folders (not inclusive)
820            * @return the range of matching document library folders
821            * @throws SystemException if a system exception occurred
822            */
823            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByRepositoryIdList(
824                    long repositoryId, int start, int end)
825                    throws com.liferay.portal.kernel.exception.SystemException;
826    
827            /**
828            * Returns an ordered range of all the document library folders where repositoryId = &#63;.
829            *
830            * <p>
831            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
832            * </p>
833            *
834            * @param repositoryId the repository ID
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> findByRepositoryIdList(
842                    long repositoryId, 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 repositoryId = &#63;.
848            *
849            * @param repositoryId the repository ID
850            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
851            * @return the first matching document library folder
852            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
853            * @throws SystemException if a system exception occurred
854            */
855            public com.liferay.portlet.documentlibrary.model.DLFolder findByRepositoryIdList_First(
856                    long repositoryId,
857                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
858                    throws com.liferay.portal.kernel.exception.SystemException,
859                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
860    
861            /**
862            * Returns the first document library folder in the ordered set where repositoryId = &#63;.
863            *
864            * @param repositoryId the repository ID
865            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
866            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
867            * @throws SystemException if a system exception occurred
868            */
869            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByRepositoryIdList_First(
870                    long repositoryId,
871                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
872                    throws com.liferay.portal.kernel.exception.SystemException;
873    
874            /**
875            * Returns the last document library folder in the ordered set where repositoryId = &#63;.
876            *
877            * @param repositoryId the repository ID
878            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
879            * @return the last matching document library folder
880            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
881            * @throws SystemException if a system exception occurred
882            */
883            public com.liferay.portlet.documentlibrary.model.DLFolder findByRepositoryIdList_Last(
884                    long repositoryId,
885                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
886                    throws com.liferay.portal.kernel.exception.SystemException,
887                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
888    
889            /**
890            * Returns the last document library folder in the ordered set where repositoryId = &#63;.
891            *
892            * @param repositoryId the repository ID
893            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
894            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
895            * @throws SystemException if a system exception occurred
896            */
897            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByRepositoryIdList_Last(
898                    long repositoryId,
899                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
900                    throws com.liferay.portal.kernel.exception.SystemException;
901    
902            /**
903            * Returns the document library folders before and after the current document library folder in the ordered set where repositoryId = &#63;.
904            *
905            * @param folderId the primary key of the current document library folder
906            * @param repositoryId the repository ID
907            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
908            * @return the previous, current, and next document library folder
909            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
910            * @throws SystemException if a system exception occurred
911            */
912            public com.liferay.portlet.documentlibrary.model.DLFolder[] findByRepositoryIdList_PrevAndNext(
913                    long folderId, long repositoryId,
914                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
915                    throws com.liferay.portal.kernel.exception.SystemException,
916                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
917    
918            /**
919            * Removes all the document library folders where repositoryId = &#63; from the database.
920            *
921            * @param repositoryId the repository ID
922            * @throws SystemException if a system exception occurred
923            */
924            public void removeByRepositoryIdList(long repositoryId)
925                    throws com.liferay.portal.kernel.exception.SystemException;
926    
927            /**
928            * Returns the number of document library folders where repositoryId = &#63;.
929            *
930            * @param repositoryId the repository ID
931            * @return the number of matching document library folders
932            * @throws SystemException if a system exception occurred
933            */
934            public int countByRepositoryIdList(long repositoryId)
935                    throws com.liferay.portal.kernel.exception.SystemException;
936    
937            /**
938            * Returns all the document library folders where groupId = &#63; and parentFolderId = &#63;.
939            *
940            * @param groupId the group ID
941            * @param parentFolderId the parent folder ID
942            * @return the matching document library folders
943            * @throws SystemException if a system exception occurred
944            */
945            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
946                    long groupId, long parentFolderId)
947                    throws com.liferay.portal.kernel.exception.SystemException;
948    
949            /**
950            * Returns a range of all the document library folders where groupId = &#63; and parentFolderId = &#63;.
951            *
952            * <p>
953            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
954            * </p>
955            *
956            * @param groupId the group ID
957            * @param parentFolderId the parent folder ID
958            * @param start the lower bound of the range of document library folders
959            * @param end the upper bound of the range of document library folders (not inclusive)
960            * @return the range of matching document library folders
961            * @throws SystemException if a system exception occurred
962            */
963            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
964                    long groupId, long parentFolderId, int start, int end)
965                    throws com.liferay.portal.kernel.exception.SystemException;
966    
967            /**
968            * Returns an ordered range of all the document library folders where groupId = &#63; and parentFolderId = &#63;.
969            *
970            * <p>
971            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
972            * </p>
973            *
974            * @param groupId the group ID
975            * @param parentFolderId the parent folder ID
976            * @param start the lower bound of the range of document library folders
977            * @param end the upper bound of the range of document library folders (not inclusive)
978            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
979            * @return the ordered range of matching document library folders
980            * @throws SystemException if a system exception occurred
981            */
982            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
983                    long groupId, long parentFolderId, int start, int end,
984                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
985                    throws com.liferay.portal.kernel.exception.SystemException;
986    
987            /**
988            * Returns the first document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
989            *
990            * @param groupId the group ID
991            * @param parentFolderId the parent folder ID
992            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
993            * @return the first matching document library folder
994            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
995            * @throws SystemException if a system exception occurred
996            */
997            public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_First(
998                    long groupId, long parentFolderId,
999                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1000                    throws com.liferay.portal.kernel.exception.SystemException,
1001                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
1002    
1003            /**
1004            * Returns the first document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
1005            *
1006            * @param groupId the group ID
1007            * @param parentFolderId the parent folder ID
1008            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1009            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
1010            * @throws SystemException if a system exception occurred
1011            */
1012            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_First(
1013                    long groupId, long parentFolderId,
1014                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1015                    throws com.liferay.portal.kernel.exception.SystemException;
1016    
1017            /**
1018            * Returns the last document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
1019            *
1020            * @param groupId the group ID
1021            * @param parentFolderId the parent folder ID
1022            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1023            * @return the last matching document library folder
1024            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1025            * @throws SystemException if a system exception occurred
1026            */
1027            public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_Last(
1028                    long groupId, long parentFolderId,
1029                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1030                    throws com.liferay.portal.kernel.exception.SystemException,
1031                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
1032    
1033            /**
1034            * Returns the last document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
1035            *
1036            * @param groupId the group ID
1037            * @param parentFolderId the parent folder ID
1038            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1039            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
1040            * @throws SystemException if a system exception occurred
1041            */
1042            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_Last(
1043                    long groupId, long parentFolderId,
1044                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1045                    throws com.liferay.portal.kernel.exception.SystemException;
1046    
1047            /**
1048            * Returns the document library folders before and after the current document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
1049            *
1050            * @param folderId the primary key of the current document library folder
1051            * @param groupId the group ID
1052            * @param parentFolderId the parent folder ID
1053            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1054            * @return the previous, current, and next document library folder
1055            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
1056            * @throws SystemException if a system exception occurred
1057            */
1058            public com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_PrevAndNext(
1059                    long folderId, long groupId, long parentFolderId,
1060                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1061                    throws com.liferay.portal.kernel.exception.SystemException,
1062                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
1063    
1064            /**
1065            * Returns all the document library folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63;.
1066            *
1067            * @param groupId the group ID
1068            * @param parentFolderId the parent folder ID
1069            * @return the matching document library folders that the user has permission to view
1070            * @throws SystemException if a system exception occurred
1071            */
1072            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P(
1073                    long groupId, long parentFolderId)
1074                    throws com.liferay.portal.kernel.exception.SystemException;
1075    
1076            /**
1077            * Returns a range of all the document library folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63;.
1078            *
1079            * <p>
1080            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1081            * </p>
1082            *
1083            * @param groupId the group ID
1084            * @param parentFolderId the parent folder ID
1085            * @param start the lower bound of the range of document library folders
1086            * @param end the upper bound of the range of document library folders (not inclusive)
1087            * @return the range of matching document library folders that the user has permission to view
1088            * @throws SystemException if a system exception occurred
1089            */
1090            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P(
1091                    long groupId, long parentFolderId, int start, int end)
1092                    throws com.liferay.portal.kernel.exception.SystemException;
1093    
1094            /**
1095            * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = &#63; and parentFolderId = &#63;.
1096            *
1097            * <p>
1098            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1099            * </p>
1100            *
1101            * @param groupId the group ID
1102            * @param parentFolderId the parent folder ID
1103            * @param start the lower bound of the range of document library folders
1104            * @param end the upper bound of the range of document library folders (not inclusive)
1105            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1106            * @return the ordered range of matching document library folders that the user has permission to view
1107            * @throws SystemException if a system exception occurred
1108            */
1109            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P(
1110                    long groupId, long parentFolderId, int start, int end,
1111                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1112                    throws com.liferay.portal.kernel.exception.SystemException;
1113    
1114            /**
1115            * 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;.
1116            *
1117            * @param folderId the primary key of the current document library folder
1118            * @param groupId the group ID
1119            * @param parentFolderId the parent folder ID
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_PrevAndNext(
1126                    long folderId, long groupId, long parentFolderId,
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            * Removes all the document library folders where groupId = &#63; and parentFolderId = &#63; from the database.
1133            *
1134            * @param groupId the group ID
1135            * @param parentFolderId the parent folder ID
1136            * @throws SystemException if a system exception occurred
1137            */
1138            public void removeByG_P(long groupId, long parentFolderId)
1139                    throws com.liferay.portal.kernel.exception.SystemException;
1140    
1141            /**
1142            * Returns the number of document library folders where groupId = &#63; and parentFolderId = &#63;.
1143            *
1144            * @param groupId the group ID
1145            * @param parentFolderId the parent folder ID
1146            * @return the number of matching document library folders
1147            * @throws SystemException if a system exception occurred
1148            */
1149            public int countByG_P(long groupId, long parentFolderId)
1150                    throws com.liferay.portal.kernel.exception.SystemException;
1151    
1152            /**
1153            * Returns the number of document library folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63;.
1154            *
1155            * @param groupId the group ID
1156            * @param parentFolderId the parent folder ID
1157            * @return the number of matching document library folders that the user has permission to view
1158            * @throws SystemException if a system exception occurred
1159            */
1160            public int filterCountByG_P(long groupId, long parentFolderId)
1161                    throws com.liferay.portal.kernel.exception.SystemException;
1162    
1163            /**
1164            * Returns all the document library folders where companyId = &#63; and status &ne; &#63;.
1165            *
1166            * @param companyId the company ID
1167            * @param status the status
1168            * @return the matching document library folders
1169            * @throws SystemException if a system exception occurred
1170            */
1171            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByC_NotS(
1172                    long companyId, int status)
1173                    throws com.liferay.portal.kernel.exception.SystemException;
1174    
1175            /**
1176            * Returns a range of all the document library folders where companyId = &#63; and status &ne; &#63;.
1177            *
1178            * <p>
1179            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1180            * </p>
1181            *
1182            * @param companyId the company ID
1183            * @param status the status
1184            * @param start the lower bound of the range of document library folders
1185            * @param end the upper bound of the range of document library folders (not inclusive)
1186            * @return the range of matching document library folders
1187            * @throws SystemException if a system exception occurred
1188            */
1189            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByC_NotS(
1190                    long companyId, int status, int start, int end)
1191                    throws com.liferay.portal.kernel.exception.SystemException;
1192    
1193            /**
1194            * Returns an ordered range of all the document library folders where companyId = &#63; and status &ne; &#63;.
1195            *
1196            * <p>
1197            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1198            * </p>
1199            *
1200            * @param companyId the company ID
1201            * @param status the status
1202            * @param start the lower bound of the range of document library folders
1203            * @param end the upper bound of the range of document library folders (not inclusive)
1204            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1205            * @return the ordered range of matching document library folders
1206            * @throws SystemException if a system exception occurred
1207            */
1208            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByC_NotS(
1209                    long companyId, int status, int start, int end,
1210                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1211                    throws com.liferay.portal.kernel.exception.SystemException;
1212    
1213            /**
1214            * Returns the first document library folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1215            *
1216            * @param companyId the company ID
1217            * @param status the status
1218            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1219            * @return the first matching document library folder
1220            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1221            * @throws SystemException if a system exception occurred
1222            */
1223            public com.liferay.portlet.documentlibrary.model.DLFolder findByC_NotS_First(
1224                    long companyId, int status,
1225                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1226                    throws com.liferay.portal.kernel.exception.SystemException,
1227                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
1228    
1229            /**
1230            * Returns the first document library folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1231            *
1232            * @param companyId the company ID
1233            * @param status the status
1234            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1235            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
1236            * @throws SystemException if a system exception occurred
1237            */
1238            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByC_NotS_First(
1239                    long companyId, int status,
1240                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1241                    throws com.liferay.portal.kernel.exception.SystemException;
1242    
1243            /**
1244            * Returns the last document library folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1245            *
1246            * @param companyId the company ID
1247            * @param status the status
1248            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1249            * @return the last matching document library folder
1250            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1251            * @throws SystemException if a system exception occurred
1252            */
1253            public com.liferay.portlet.documentlibrary.model.DLFolder findByC_NotS_Last(
1254                    long companyId, int status,
1255                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1256                    throws com.liferay.portal.kernel.exception.SystemException,
1257                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
1258    
1259            /**
1260            * Returns the last document library folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1261            *
1262            * @param companyId the company ID
1263            * @param status the status
1264            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1265            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
1266            * @throws SystemException if a system exception occurred
1267            */
1268            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByC_NotS_Last(
1269                    long companyId, int status,
1270                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1271                    throws com.liferay.portal.kernel.exception.SystemException;
1272    
1273            /**
1274            * Returns the document library folders before and after the current document library folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1275            *
1276            * @param folderId the primary key of the current document library folder
1277            * @param companyId the company ID
1278            * @param status the status
1279            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1280            * @return the previous, current, and next document library folder
1281            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
1282            * @throws SystemException if a system exception occurred
1283            */
1284            public com.liferay.portlet.documentlibrary.model.DLFolder[] findByC_NotS_PrevAndNext(
1285                    long folderId, long companyId, int status,
1286                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1287                    throws com.liferay.portal.kernel.exception.SystemException,
1288                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
1289    
1290            /**
1291            * Removes all the document library folders where companyId = &#63; and status &ne; &#63; from the database.
1292            *
1293            * @param companyId the company ID
1294            * @param status the status
1295            * @throws SystemException if a system exception occurred
1296            */
1297            public void removeByC_NotS(long companyId, int status)
1298                    throws com.liferay.portal.kernel.exception.SystemException;
1299    
1300            /**
1301            * Returns the number of document library folders where companyId = &#63; and status &ne; &#63;.
1302            *
1303            * @param companyId the company ID
1304            * @param status the status
1305            * @return the number of matching document library folders
1306            * @throws SystemException if a system exception occurred
1307            */
1308            public int countByC_NotS(long companyId, int status)
1309                    throws com.liferay.portal.kernel.exception.SystemException;
1310    
1311            /**
1312            * Returns all the document library folders where parentFolderId = &#63; and name = &#63;.
1313            *
1314            * @param parentFolderId the parent folder ID
1315            * @param name the name
1316            * @return the matching document library folders
1317            * @throws SystemException if a system exception occurred
1318            */
1319            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
1320                    long parentFolderId, java.lang.String name)
1321                    throws com.liferay.portal.kernel.exception.SystemException;
1322    
1323            /**
1324            * Returns a range of all the document library folders where parentFolderId = &#63; and name = &#63;.
1325            *
1326            * <p>
1327            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1328            * </p>
1329            *
1330            * @param parentFolderId the parent folder ID
1331            * @param name the name
1332            * @param start the lower bound of the range of document library folders
1333            * @param end the upper bound of the range of document library folders (not inclusive)
1334            * @return the range of matching document library folders
1335            * @throws SystemException if a system exception occurred
1336            */
1337            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
1338                    long parentFolderId, java.lang.String name, int start, int end)
1339                    throws com.liferay.portal.kernel.exception.SystemException;
1340    
1341            /**
1342            * Returns an ordered range of all the document library folders where parentFolderId = &#63; and name = &#63;.
1343            *
1344            * <p>
1345            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1346            * </p>
1347            *
1348            * @param parentFolderId the parent folder ID
1349            * @param name the name
1350            * @param start the lower bound of the range of document library folders
1351            * @param end the upper bound of the range of document library folders (not inclusive)
1352            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1353            * @return the ordered range of matching document library folders
1354            * @throws SystemException if a system exception occurred
1355            */
1356            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
1357                    long parentFolderId, java.lang.String name, int start, int end,
1358                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1359                    throws com.liferay.portal.kernel.exception.SystemException;
1360    
1361            /**
1362            * Returns the first document library folder in the ordered set where parentFolderId = &#63; and name = &#63;.
1363            *
1364            * @param parentFolderId the parent folder ID
1365            * @param name the name
1366            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1367            * @return the first matching document library folder
1368            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1369            * @throws SystemException if a system exception occurred
1370            */
1371            public com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_First(
1372                    long parentFolderId, java.lang.String name,
1373                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1374                    throws com.liferay.portal.kernel.exception.SystemException,
1375                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
1376    
1377            /**
1378            * Returns the first document library folder in the ordered set where parentFolderId = &#63; and name = &#63;.
1379            *
1380            * @param parentFolderId the parent folder ID
1381            * @param name the name
1382            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1383            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
1384            * @throws SystemException if a system exception occurred
1385            */
1386            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByP_N_First(
1387                    long parentFolderId, java.lang.String name,
1388                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1389                    throws com.liferay.portal.kernel.exception.SystemException;
1390    
1391            /**
1392            * Returns the last document library folder in the ordered set where parentFolderId = &#63; and name = &#63;.
1393            *
1394            * @param parentFolderId the parent folder ID
1395            * @param name the name
1396            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1397            * @return the last matching document library folder
1398            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1399            * @throws SystemException if a system exception occurred
1400            */
1401            public com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_Last(
1402                    long parentFolderId, java.lang.String name,
1403                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1404                    throws com.liferay.portal.kernel.exception.SystemException,
1405                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
1406    
1407            /**
1408            * Returns the last document library folder in the ordered set where parentFolderId = &#63; and name = &#63;.
1409            *
1410            * @param parentFolderId the parent folder ID
1411            * @param name the name
1412            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1413            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
1414            * @throws SystemException if a system exception occurred
1415            */
1416            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByP_N_Last(
1417                    long parentFolderId, java.lang.String name,
1418                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1419                    throws com.liferay.portal.kernel.exception.SystemException;
1420    
1421            /**
1422            * Returns the document library folders before and after the current document library folder in the ordered set where parentFolderId = &#63; and name = &#63;.
1423            *
1424            * @param folderId the primary key of the current document library folder
1425            * @param parentFolderId the parent folder ID
1426            * @param name the name
1427            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1428            * @return the previous, current, and next document library folder
1429            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
1430            * @throws SystemException if a system exception occurred
1431            */
1432            public com.liferay.portlet.documentlibrary.model.DLFolder[] findByP_N_PrevAndNext(
1433                    long folderId, long parentFolderId, java.lang.String name,
1434                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1435                    throws com.liferay.portal.kernel.exception.SystemException,
1436                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
1437    
1438            /**
1439            * Removes all the document library folders where parentFolderId = &#63; and name = &#63; from the database.
1440            *
1441            * @param parentFolderId the parent folder ID
1442            * @param name the name
1443            * @throws SystemException if a system exception occurred
1444            */
1445            public void removeByP_N(long parentFolderId, java.lang.String name)
1446                    throws com.liferay.portal.kernel.exception.SystemException;
1447    
1448            /**
1449            * Returns the number of document library folders where parentFolderId = &#63; and name = &#63;.
1450            *
1451            * @param parentFolderId the parent folder ID
1452            * @param name the name
1453            * @return the number of matching document library folders
1454            * @throws SystemException if a system exception occurred
1455            */
1456            public int countByP_N(long parentFolderId, java.lang.String name)
1457                    throws com.liferay.portal.kernel.exception.SystemException;
1458    
1459            /**
1460            * Returns all the document library folders where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1461            *
1462            * @param folderId the folder ID
1463            * @param companyId the company ID
1464            * @param parentFolderId the parent folder ID
1465            * @param status the status
1466            * @return the matching document library folders
1467            * @throws SystemException if a system exception occurred
1468            */
1469            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByF_C_P_NotS(
1470                    long folderId, long companyId, long parentFolderId, int status)
1471                    throws com.liferay.portal.kernel.exception.SystemException;
1472    
1473            /**
1474            * Returns a range of all the document library folders where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1475            *
1476            * <p>
1477            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1478            * </p>
1479            *
1480            * @param folderId the folder ID
1481            * @param companyId the company ID
1482            * @param parentFolderId the parent folder ID
1483            * @param status the status
1484            * @param start the lower bound of the range of document library folders
1485            * @param end the upper bound of the range of document library folders (not inclusive)
1486            * @return the range of matching document library folders
1487            * @throws SystemException if a system exception occurred
1488            */
1489            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByF_C_P_NotS(
1490                    long folderId, long companyId, long parentFolderId, int status,
1491                    int start, int end)
1492                    throws com.liferay.portal.kernel.exception.SystemException;
1493    
1494            /**
1495            * Returns an ordered range of all the document library folders where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1496            *
1497            * <p>
1498            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1499            * </p>
1500            *
1501            * @param folderId the folder ID
1502            * @param companyId the company ID
1503            * @param parentFolderId the parent folder ID
1504            * @param status the status
1505            * @param start the lower bound of the range of document library folders
1506            * @param end the upper bound of the range of document library folders (not inclusive)
1507            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1508            * @return the ordered range of matching document library folders
1509            * @throws SystemException if a system exception occurred
1510            */
1511            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByF_C_P_NotS(
1512                    long folderId, long companyId, long parentFolderId, int status,
1513                    int start, int end,
1514                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1515                    throws com.liferay.portal.kernel.exception.SystemException;
1516    
1517            /**
1518            * Returns the first document library folder in the ordered set where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1519            *
1520            * @param folderId the folder ID
1521            * @param companyId the company ID
1522            * @param parentFolderId the parent folder ID
1523            * @param status the status
1524            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1525            * @return the first matching document library folder
1526            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1527            * @throws SystemException if a system exception occurred
1528            */
1529            public com.liferay.portlet.documentlibrary.model.DLFolder findByF_C_P_NotS_First(
1530                    long folderId, long companyId, long parentFolderId, int status,
1531                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1532                    throws com.liferay.portal.kernel.exception.SystemException,
1533                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
1534    
1535            /**
1536            * Returns the first document library folder in the ordered set where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1537            *
1538            * @param folderId the folder ID
1539            * @param companyId the company ID
1540            * @param parentFolderId the parent folder ID
1541            * @param status the status
1542            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1543            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
1544            * @throws SystemException if a system exception occurred
1545            */
1546            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByF_C_P_NotS_First(
1547                    long folderId, long companyId, long parentFolderId, int status,
1548                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1549                    throws com.liferay.portal.kernel.exception.SystemException;
1550    
1551            /**
1552            * Returns the last document library folder in the ordered set where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1553            *
1554            * @param folderId the folder ID
1555            * @param companyId the company ID
1556            * @param parentFolderId the parent folder ID
1557            * @param status the status
1558            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1559            * @return the last matching document library folder
1560            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1561            * @throws SystemException if a system exception occurred
1562            */
1563            public com.liferay.portlet.documentlibrary.model.DLFolder findByF_C_P_NotS_Last(
1564                    long folderId, long companyId, long parentFolderId, int status,
1565                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1566                    throws com.liferay.portal.kernel.exception.SystemException,
1567                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
1568    
1569            /**
1570            * Returns the last document library folder in the ordered set where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1571            *
1572            * @param folderId the folder ID
1573            * @param companyId the company ID
1574            * @param parentFolderId the parent folder ID
1575            * @param status the status
1576            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1577            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
1578            * @throws SystemException if a system exception occurred
1579            */
1580            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByF_C_P_NotS_Last(
1581                    long folderId, long companyId, long parentFolderId, int status,
1582                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1583                    throws com.liferay.portal.kernel.exception.SystemException;
1584    
1585            /**
1586            * Removes all the document library folders where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63; from the database.
1587            *
1588            * @param folderId the folder ID
1589            * @param companyId the company ID
1590            * @param parentFolderId the parent folder ID
1591            * @param status the status
1592            * @throws SystemException if a system exception occurred
1593            */
1594            public void removeByF_C_P_NotS(long folderId, long companyId,
1595                    long parentFolderId, int status)
1596                    throws com.liferay.portal.kernel.exception.SystemException;
1597    
1598            /**
1599            * Returns the number of document library folders where folderId &gt; &#63; and companyId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1600            *
1601            * @param folderId the folder ID
1602            * @param companyId the company ID
1603            * @param parentFolderId the parent folder ID
1604            * @param status the status
1605            * @return the number of matching document library folders
1606            * @throws SystemException if a system exception occurred
1607            */
1608            public int countByF_C_P_NotS(long folderId, long companyId,
1609                    long parentFolderId, int status)
1610                    throws com.liferay.portal.kernel.exception.SystemException;
1611    
1612            /**
1613            * 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.
1614            *
1615            * @param groupId the group ID
1616            * @param parentFolderId the parent folder ID
1617            * @param name the name
1618            * @return the matching document library folder
1619            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1620            * @throws SystemException if a system exception occurred
1621            */
1622            public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_N(
1623                    long groupId, long parentFolderId, java.lang.String name)
1624                    throws com.liferay.portal.kernel.exception.SystemException,
1625                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
1626    
1627            /**
1628            * 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.
1629            *
1630            * @param groupId the group ID
1631            * @param parentFolderId the parent folder ID
1632            * @param name the name
1633            * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
1634            * @throws SystemException if a system exception occurred
1635            */
1636            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N(
1637                    long groupId, long parentFolderId, java.lang.String name)
1638                    throws com.liferay.portal.kernel.exception.SystemException;
1639    
1640            /**
1641            * 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.
1642            *
1643            * @param groupId the group ID
1644            * @param parentFolderId the parent folder ID
1645            * @param name the name
1646            * @param retrieveFromCache whether to use the finder cache
1647            * @return the matching document library folder, or <code>null</code> if a matching document library folder could not be found
1648            * @throws SystemException if a system exception occurred
1649            */
1650            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N(
1651                    long groupId, long parentFolderId, java.lang.String name,
1652                    boolean retrieveFromCache)
1653                    throws com.liferay.portal.kernel.exception.SystemException;
1654    
1655            /**
1656            * Removes the document library folder where groupId = &#63; and parentFolderId = &#63; and name = &#63; from the database.
1657            *
1658            * @param groupId the group ID
1659            * @param parentFolderId the parent folder ID
1660            * @param name the name
1661            * @return the document library folder that was removed
1662            * @throws SystemException if a system exception occurred
1663            */
1664            public com.liferay.portlet.documentlibrary.model.DLFolder removeByG_P_N(
1665                    long groupId, long parentFolderId, java.lang.String name)
1666                    throws com.liferay.portal.kernel.exception.SystemException,
1667                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
1668    
1669            /**
1670            * Returns the number of document library folders where groupId = &#63; and parentFolderId = &#63; and name = &#63;.
1671            *
1672            * @param groupId the group ID
1673            * @param parentFolderId the parent folder ID
1674            * @param name the name
1675            * @return the number of matching document library folders
1676            * @throws SystemException if a system exception occurred
1677            */
1678            public int countByG_P_N(long groupId, long parentFolderId,
1679                    java.lang.String name)
1680                    throws com.liferay.portal.kernel.exception.SystemException;
1681    
1682            /**
1683            * Returns all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
1684            *
1685            * @param groupId the group ID
1686            * @param mountPoint the mount point
1687            * @param parentFolderId the parent folder ID
1688            * @param hidden the hidden
1689            * @return the matching document library folders
1690            * @throws SystemException if a system exception occurred
1691            */
1692            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H(
1693                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden)
1694                    throws com.liferay.portal.kernel.exception.SystemException;
1695    
1696            /**
1697            * Returns a range of all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
1698            *
1699            * <p>
1700            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1701            * </p>
1702            *
1703            * @param groupId the group ID
1704            * @param mountPoint the mount point
1705            * @param parentFolderId the parent folder ID
1706            * @param hidden the hidden
1707            * @param start the lower bound of the range of document library folders
1708            * @param end the upper bound of the range of document library folders (not inclusive)
1709            * @return the range of matching document library folders
1710            * @throws SystemException if a system exception occurred
1711            */
1712            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H(
1713                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
1714                    int start, int end)
1715                    throws com.liferay.portal.kernel.exception.SystemException;
1716    
1717            /**
1718            * Returns an ordered range of all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
1719            *
1720            * <p>
1721            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1722            * </p>
1723            *
1724            * @param groupId the group ID
1725            * @param mountPoint the mount point
1726            * @param parentFolderId the parent folder ID
1727            * @param hidden the hidden
1728            * @param start the lower bound of the range of document library folders
1729            * @param end the upper bound of the range of document library folders (not inclusive)
1730            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1731            * @return the ordered range of matching document library folders
1732            * @throws SystemException if a system exception occurred
1733            */
1734            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H(
1735                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
1736                    int start, int end,
1737                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1738                    throws com.liferay.portal.kernel.exception.SystemException;
1739    
1740            /**
1741            * Returns the first document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
1742            *
1743            * @param groupId the group ID
1744            * @param mountPoint the mount point
1745            * @param parentFolderId the parent folder ID
1746            * @param hidden the hidden
1747            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1748            * @return the first matching document library folder
1749            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1750            * @throws SystemException if a system exception occurred
1751            */
1752            public com.liferay.portlet.documentlibrary.model.DLFolder findByG_M_P_H_First(
1753                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
1754                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1755                    throws com.liferay.portal.kernel.exception.SystemException,
1756                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
1757    
1758            /**
1759            * Returns the first document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
1760            *
1761            * @param groupId the group ID
1762            * @param mountPoint the mount point
1763            * @param parentFolderId the parent folder ID
1764            * @param hidden the hidden
1765            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1766            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
1767            * @throws SystemException if a system exception occurred
1768            */
1769            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_M_P_H_First(
1770                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
1771                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1772                    throws com.liferay.portal.kernel.exception.SystemException;
1773    
1774            /**
1775            * Returns the last document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
1776            *
1777            * @param groupId the group ID
1778            * @param mountPoint the mount point
1779            * @param parentFolderId the parent folder ID
1780            * @param hidden the hidden
1781            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1782            * @return the last matching document library folder
1783            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
1784            * @throws SystemException if a system exception occurred
1785            */
1786            public com.liferay.portlet.documentlibrary.model.DLFolder findByG_M_P_H_Last(
1787                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
1788                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1789                    throws com.liferay.portal.kernel.exception.SystemException,
1790                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
1791    
1792            /**
1793            * Returns the last document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
1794            *
1795            * @param groupId the group ID
1796            * @param mountPoint the mount point
1797            * @param parentFolderId the parent folder ID
1798            * @param hidden the hidden
1799            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1800            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
1801            * @throws SystemException if a system exception occurred
1802            */
1803            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_M_P_H_Last(
1804                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
1805                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1806                    throws com.liferay.portal.kernel.exception.SystemException;
1807    
1808            /**
1809            * Returns the document library folders before and after the current document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
1810            *
1811            * @param folderId the primary key of the current document library folder
1812            * @param groupId the group ID
1813            * @param mountPoint the mount point
1814            * @param parentFolderId the parent folder ID
1815            * @param hidden the hidden
1816            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1817            * @return the previous, current, and next document library folder
1818            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
1819            * @throws SystemException if a system exception occurred
1820            */
1821            public com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_M_P_H_PrevAndNext(
1822                    long folderId, long groupId, boolean mountPoint, long parentFolderId,
1823                    boolean hidden,
1824                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1825                    throws com.liferay.portal.kernel.exception.SystemException,
1826                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
1827    
1828            /**
1829            * Returns all the document library folders that the user has permission to view where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
1830            *
1831            * @param groupId the group ID
1832            * @param mountPoint the mount point
1833            * @param parentFolderId the parent folder ID
1834            * @param hidden the hidden
1835            * @return the matching document library folders that the user has permission to view
1836            * @throws SystemException if a system exception occurred
1837            */
1838            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H(
1839                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden)
1840                    throws com.liferay.portal.kernel.exception.SystemException;
1841    
1842            /**
1843            * Returns a range of all the document library folders that the user has permission to view where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
1844            *
1845            * <p>
1846            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1847            * </p>
1848            *
1849            * @param groupId the group ID
1850            * @param mountPoint the mount point
1851            * @param parentFolderId the parent folder ID
1852            * @param hidden the hidden
1853            * @param start the lower bound of the range of document library folders
1854            * @param end the upper bound of the range of document library folders (not inclusive)
1855            * @return the range of matching document library folders that the user has permission to view
1856            * @throws SystemException if a system exception occurred
1857            */
1858            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H(
1859                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
1860                    int start, int end)
1861                    throws com.liferay.portal.kernel.exception.SystemException;
1862    
1863            /**
1864            * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
1865            *
1866            * <p>
1867            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1868            * </p>
1869            *
1870            * @param groupId the group ID
1871            * @param mountPoint the mount point
1872            * @param parentFolderId the parent folder ID
1873            * @param hidden the hidden
1874            * @param start the lower bound of the range of document library folders
1875            * @param end the upper bound of the range of document library folders (not inclusive)
1876            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1877            * @return the ordered range of matching document library folders that the user has permission to view
1878            * @throws SystemException if a system exception occurred
1879            */
1880            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H(
1881                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
1882                    int start, int end,
1883                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1884                    throws com.liferay.portal.kernel.exception.SystemException;
1885    
1886            /**
1887            * Returns the document library folders before and after the current document library folder in the ordered set of document library folders that the user has permission to view where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
1888            *
1889            * @param folderId the primary key of the current document library folder
1890            * @param groupId the group ID
1891            * @param mountPoint the mount point
1892            * @param parentFolderId the parent folder ID
1893            * @param hidden the hidden
1894            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1895            * @return the previous, current, and next document library folder
1896            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
1897            * @throws SystemException if a system exception occurred
1898            */
1899            public com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByG_M_P_H_PrevAndNext(
1900                    long folderId, long groupId, boolean mountPoint, long parentFolderId,
1901                    boolean hidden,
1902                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1903                    throws com.liferay.portal.kernel.exception.SystemException,
1904                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
1905    
1906            /**
1907            * Removes all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; from the database.
1908            *
1909            * @param groupId the group ID
1910            * @param mountPoint the mount point
1911            * @param parentFolderId the parent folder ID
1912            * @param hidden the hidden
1913            * @throws SystemException if a system exception occurred
1914            */
1915            public void removeByG_M_P_H(long groupId, boolean mountPoint,
1916                    long parentFolderId, boolean hidden)
1917                    throws com.liferay.portal.kernel.exception.SystemException;
1918    
1919            /**
1920            * Returns the number of document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
1921            *
1922            * @param groupId the group ID
1923            * @param mountPoint the mount point
1924            * @param parentFolderId the parent folder ID
1925            * @param hidden the hidden
1926            * @return the number of matching document library folders
1927            * @throws SystemException if a system exception occurred
1928            */
1929            public int countByG_M_P_H(long groupId, boolean mountPoint,
1930                    long parentFolderId, boolean hidden)
1931                    throws com.liferay.portal.kernel.exception.SystemException;
1932    
1933            /**
1934            * Returns the number of document library folders that the user has permission to view where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63;.
1935            *
1936            * @param groupId the group ID
1937            * @param mountPoint the mount point
1938            * @param parentFolderId the parent folder ID
1939            * @param hidden the hidden
1940            * @return the number of matching document library folders that the user has permission to view
1941            * @throws SystemException if a system exception occurred
1942            */
1943            public int filterCountByG_M_P_H(long groupId, boolean mountPoint,
1944                    long parentFolderId, boolean hidden)
1945                    throws com.liferay.portal.kernel.exception.SystemException;
1946    
1947            /**
1948            * Returns all the document library folders where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
1949            *
1950            * @param groupId the group ID
1951            * @param parentFolderId the parent folder ID
1952            * @param hidden the hidden
1953            * @param status the status
1954            * @return the matching document library folders
1955            * @throws SystemException if a system exception occurred
1956            */
1957            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P_H_S(
1958                    long groupId, long parentFolderId, boolean hidden, int status)
1959                    throws com.liferay.portal.kernel.exception.SystemException;
1960    
1961            /**
1962            * Returns a range of all the document library folders where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
1963            *
1964            * <p>
1965            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1966            * </p>
1967            *
1968            * @param groupId the group ID
1969            * @param parentFolderId the parent folder ID
1970            * @param hidden the hidden
1971            * @param status the status
1972            * @param start the lower bound of the range of document library folders
1973            * @param end the upper bound of the range of document library folders (not inclusive)
1974            * @return the range of matching document library folders
1975            * @throws SystemException if a system exception occurred
1976            */
1977            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P_H_S(
1978                    long groupId, long parentFolderId, boolean hidden, int status,
1979                    int start, int end)
1980                    throws com.liferay.portal.kernel.exception.SystemException;
1981    
1982            /**
1983            * Returns an ordered range of all the document library folders where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
1984            *
1985            * <p>
1986            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1987            * </p>
1988            *
1989            * @param groupId the group ID
1990            * @param parentFolderId the parent folder ID
1991            * @param hidden the hidden
1992            * @param status the status
1993            * @param start the lower bound of the range of document library folders
1994            * @param end the upper bound of the range of document library folders (not inclusive)
1995            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1996            * @return the ordered range of matching document library folders
1997            * @throws SystemException if a system exception occurred
1998            */
1999            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P_H_S(
2000                    long groupId, long parentFolderId, boolean hidden, int status,
2001                    int start, int end,
2002                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2003                    throws com.liferay.portal.kernel.exception.SystemException;
2004    
2005            /**
2006            * Returns the first document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2007            *
2008            * @param groupId the group ID
2009            * @param parentFolderId the parent folder ID
2010            * @param hidden the hidden
2011            * @param status the status
2012            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2013            * @return the first matching document library folder
2014            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
2015            * @throws SystemException if a system exception occurred
2016            */
2017            public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_H_S_First(
2018                    long groupId, long parentFolderId, boolean hidden, int status,
2019                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2020                    throws com.liferay.portal.kernel.exception.SystemException,
2021                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
2022    
2023            /**
2024            * Returns the first document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2025            *
2026            * @param groupId the group ID
2027            * @param parentFolderId the parent folder ID
2028            * @param hidden the hidden
2029            * @param status the status
2030            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2031            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
2032            * @throws SystemException if a system exception occurred
2033            */
2034            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_H_S_First(
2035                    long groupId, long parentFolderId, boolean hidden, int status,
2036                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2037                    throws com.liferay.portal.kernel.exception.SystemException;
2038    
2039            /**
2040            * Returns the last document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2041            *
2042            * @param groupId the group ID
2043            * @param parentFolderId the parent folder ID
2044            * @param hidden the hidden
2045            * @param status the status
2046            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2047            * @return the last matching document library folder
2048            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
2049            * @throws SystemException if a system exception occurred
2050            */
2051            public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_H_S_Last(
2052                    long groupId, long parentFolderId, boolean hidden, int status,
2053                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2054                    throws com.liferay.portal.kernel.exception.SystemException,
2055                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
2056    
2057            /**
2058            * Returns the last document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2059            *
2060            * @param groupId the group ID
2061            * @param parentFolderId the parent folder ID
2062            * @param hidden the hidden
2063            * @param status the status
2064            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2065            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
2066            * @throws SystemException if a system exception occurred
2067            */
2068            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_H_S_Last(
2069                    long groupId, long parentFolderId, boolean hidden, int status,
2070                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2071                    throws com.liferay.portal.kernel.exception.SystemException;
2072    
2073            /**
2074            * Returns the document library folders before and after the current document library folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2075            *
2076            * @param folderId the primary key of the current document library folder
2077            * @param groupId the group ID
2078            * @param parentFolderId the parent folder ID
2079            * @param hidden the hidden
2080            * @param status the status
2081            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2082            * @return the previous, current, and next document library folder
2083            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
2084            * @throws SystemException if a system exception occurred
2085            */
2086            public com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_H_S_PrevAndNext(
2087                    long folderId, long groupId, long parentFolderId, boolean hidden,
2088                    int status,
2089                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2090                    throws com.liferay.portal.kernel.exception.SystemException,
2091                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
2092    
2093            /**
2094            * Returns all the document library folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2095            *
2096            * @param groupId the group ID
2097            * @param parentFolderId the parent folder ID
2098            * @param hidden the hidden
2099            * @param status the status
2100            * @return the matching document library folders that the user has permission to view
2101            * @throws SystemException if a system exception occurred
2102            */
2103            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P_H_S(
2104                    long groupId, long parentFolderId, boolean hidden, int status)
2105                    throws com.liferay.portal.kernel.exception.SystemException;
2106    
2107            /**
2108            * Returns a range of all the document library folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2109            *
2110            * <p>
2111            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2112            * </p>
2113            *
2114            * @param groupId the group ID
2115            * @param parentFolderId the parent folder ID
2116            * @param hidden the hidden
2117            * @param status the status
2118            * @param start the lower bound of the range of document library folders
2119            * @param end the upper bound of the range of document library folders (not inclusive)
2120            * @return the range of matching document library folders that the user has permission to view
2121            * @throws SystemException if a system exception occurred
2122            */
2123            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P_H_S(
2124                    long groupId, long parentFolderId, boolean hidden, int status,
2125                    int start, int end)
2126                    throws com.liferay.portal.kernel.exception.SystemException;
2127    
2128            /**
2129            * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2130            *
2131            * <p>
2132            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2133            * </p>
2134            *
2135            * @param groupId the group ID
2136            * @param parentFolderId the parent folder ID
2137            * @param hidden the hidden
2138            * @param status the status
2139            * @param start the lower bound of the range of document library folders
2140            * @param end the upper bound of the range of document library folders (not inclusive)
2141            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2142            * @return the ordered range of matching document library folders that the user has permission to view
2143            * @throws SystemException if a system exception occurred
2144            */
2145            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P_H_S(
2146                    long groupId, long parentFolderId, boolean hidden, int status,
2147                    int start, int end,
2148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2149                    throws com.liferay.portal.kernel.exception.SystemException;
2150    
2151            /**
2152            * Returns the document library folders before and after the current document library folder in the ordered set of document library folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2153            *
2154            * @param folderId the primary key of the current document library folder
2155            * @param groupId the group ID
2156            * @param parentFolderId the parent folder ID
2157            * @param hidden the hidden
2158            * @param status the status
2159            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2160            * @return the previous, current, and next document library folder
2161            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
2162            * @throws SystemException if a system exception occurred
2163            */
2164            public com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByG_P_H_S_PrevAndNext(
2165                    long folderId, long groupId, long parentFolderId, boolean hidden,
2166                    int status,
2167                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2168                    throws com.liferay.portal.kernel.exception.SystemException,
2169                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
2170    
2171            /**
2172            * Removes all the document library folders where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63; from the database.
2173            *
2174            * @param groupId the group ID
2175            * @param parentFolderId the parent folder ID
2176            * @param hidden the hidden
2177            * @param status the status
2178            * @throws SystemException if a system exception occurred
2179            */
2180            public void removeByG_P_H_S(long groupId, long parentFolderId,
2181                    boolean hidden, int status)
2182                    throws com.liferay.portal.kernel.exception.SystemException;
2183    
2184            /**
2185            * Returns the number of document library folders where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2186            *
2187            * @param groupId the group ID
2188            * @param parentFolderId the parent folder ID
2189            * @param hidden the hidden
2190            * @param status the status
2191            * @return the number of matching document library folders
2192            * @throws SystemException if a system exception occurred
2193            */
2194            public int countByG_P_H_S(long groupId, long parentFolderId,
2195                    boolean hidden, int status)
2196                    throws com.liferay.portal.kernel.exception.SystemException;
2197    
2198            /**
2199            * Returns the number of document library folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2200            *
2201            * @param groupId the group ID
2202            * @param parentFolderId the parent folder ID
2203            * @param hidden the hidden
2204            * @param status the status
2205            * @return the number of matching document library folders that the user has permission to view
2206            * @throws SystemException if a system exception occurred
2207            */
2208            public int filterCountByG_P_H_S(long groupId, long parentFolderId,
2209                    boolean hidden, int status)
2210                    throws com.liferay.portal.kernel.exception.SystemException;
2211    
2212            /**
2213            * Returns all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2214            *
2215            * @param groupId the group ID
2216            * @param mountPoint the mount point
2217            * @param parentFolderId the parent folder ID
2218            * @param hidden the hidden
2219            * @param status the status
2220            * @return the matching document library folders
2221            * @throws SystemException if a system exception occurred
2222            */
2223            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H_S(
2224                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2225                    int status) throws com.liferay.portal.kernel.exception.SystemException;
2226    
2227            /**
2228            * Returns a range of all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2229            *
2230            * <p>
2231            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2232            * </p>
2233            *
2234            * @param groupId the group ID
2235            * @param mountPoint the mount point
2236            * @param parentFolderId the parent folder ID
2237            * @param hidden the hidden
2238            * @param status the status
2239            * @param start the lower bound of the range of document library folders
2240            * @param end the upper bound of the range of document library folders (not inclusive)
2241            * @return the range of matching document library folders
2242            * @throws SystemException if a system exception occurred
2243            */
2244            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H_S(
2245                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2246                    int status, int start, int end)
2247                    throws com.liferay.portal.kernel.exception.SystemException;
2248    
2249            /**
2250            * Returns an ordered range of all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2251            *
2252            * <p>
2253            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2254            * </p>
2255            *
2256            * @param groupId the group ID
2257            * @param mountPoint the mount point
2258            * @param parentFolderId the parent folder ID
2259            * @param hidden the hidden
2260            * @param status the status
2261            * @param start the lower bound of the range of document library folders
2262            * @param end the upper bound of the range of document library folders (not inclusive)
2263            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2264            * @return the ordered range of matching document library folders
2265            * @throws SystemException if a system exception occurred
2266            */
2267            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_M_P_H_S(
2268                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2269                    int status, int start, int end,
2270                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2271                    throws com.liferay.portal.kernel.exception.SystemException;
2272    
2273            /**
2274            * Returns the first document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2275            *
2276            * @param groupId the group ID
2277            * @param mountPoint the mount point
2278            * @param parentFolderId the parent folder ID
2279            * @param hidden the hidden
2280            * @param status the status
2281            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2282            * @return the first matching document library folder
2283            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
2284            * @throws SystemException if a system exception occurred
2285            */
2286            public com.liferay.portlet.documentlibrary.model.DLFolder findByG_M_P_H_S_First(
2287                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2288                    int status,
2289                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2290                    throws com.liferay.portal.kernel.exception.SystemException,
2291                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
2292    
2293            /**
2294            * Returns the first document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2295            *
2296            * @param groupId the group ID
2297            * @param mountPoint the mount point
2298            * @param parentFolderId the parent folder ID
2299            * @param hidden the hidden
2300            * @param status the status
2301            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2302            * @return the first matching document library folder, or <code>null</code> if a matching document library folder could not be found
2303            * @throws SystemException if a system exception occurred
2304            */
2305            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_M_P_H_S_First(
2306                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2307                    int status,
2308                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2309                    throws com.liferay.portal.kernel.exception.SystemException;
2310    
2311            /**
2312            * Returns the last document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2313            *
2314            * @param groupId the group ID
2315            * @param mountPoint the mount point
2316            * @param parentFolderId the parent folder ID
2317            * @param hidden the hidden
2318            * @param status the status
2319            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2320            * @return the last matching document library folder
2321            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching document library folder could not be found
2322            * @throws SystemException if a system exception occurred
2323            */
2324            public com.liferay.portlet.documentlibrary.model.DLFolder findByG_M_P_H_S_Last(
2325                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2326                    int status,
2327                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2328                    throws com.liferay.portal.kernel.exception.SystemException,
2329                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
2330    
2331            /**
2332            * Returns the last document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2333            *
2334            * @param groupId the group ID
2335            * @param mountPoint the mount point
2336            * @param parentFolderId the parent folder ID
2337            * @param hidden the hidden
2338            * @param status the status
2339            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2340            * @return the last matching document library folder, or <code>null</code> if a matching document library folder could not be found
2341            * @throws SystemException if a system exception occurred
2342            */
2343            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_M_P_H_S_Last(
2344                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2345                    int status,
2346                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2347                    throws com.liferay.portal.kernel.exception.SystemException;
2348    
2349            /**
2350            * Returns the document library folders before and after the current document library folder in the ordered set where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2351            *
2352            * @param folderId the primary key of the current document library folder
2353            * @param groupId the group ID
2354            * @param mountPoint the mount point
2355            * @param parentFolderId the parent folder ID
2356            * @param hidden the hidden
2357            * @param status the status
2358            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2359            * @return the previous, current, and next document library folder
2360            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
2361            * @throws SystemException if a system exception occurred
2362            */
2363            public com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_M_P_H_S_PrevAndNext(
2364                    long folderId, long groupId, boolean mountPoint, long parentFolderId,
2365                    boolean hidden, int status,
2366                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2367                    throws com.liferay.portal.kernel.exception.SystemException,
2368                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
2369    
2370            /**
2371            * Returns all the document library folders that the user has permission to view where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2372            *
2373            * @param groupId the group ID
2374            * @param mountPoint the mount point
2375            * @param parentFolderId the parent folder ID
2376            * @param hidden the hidden
2377            * @param status the status
2378            * @return the matching document library folders that the user has permission to view
2379            * @throws SystemException if a system exception occurred
2380            */
2381            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H_S(
2382                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2383                    int status) throws com.liferay.portal.kernel.exception.SystemException;
2384    
2385            /**
2386            * Returns a range of all the document library folders that the user has permission to view where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2387            *
2388            * <p>
2389            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2390            * </p>
2391            *
2392            * @param groupId the group ID
2393            * @param mountPoint the mount point
2394            * @param parentFolderId the parent folder ID
2395            * @param hidden the hidden
2396            * @param status the status
2397            * @param start the lower bound of the range of document library folders
2398            * @param end the upper bound of the range of document library folders (not inclusive)
2399            * @return the range of matching document library folders that the user has permission to view
2400            * @throws SystemException if a system exception occurred
2401            */
2402            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H_S(
2403                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2404                    int status, int start, int end)
2405                    throws com.liferay.portal.kernel.exception.SystemException;
2406    
2407            /**
2408            * Returns an ordered range of all the document library folders that the user has permissions to view where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2409            *
2410            * <p>
2411            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2412            * </p>
2413            *
2414            * @param groupId the group ID
2415            * @param mountPoint the mount point
2416            * @param parentFolderId the parent folder ID
2417            * @param hidden the hidden
2418            * @param status the status
2419            * @param start the lower bound of the range of document library folders
2420            * @param end the upper bound of the range of document library folders (not inclusive)
2421            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2422            * @return the ordered range of matching document library folders that the user has permission to view
2423            * @throws SystemException if a system exception occurred
2424            */
2425            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_M_P_H_S(
2426                    long groupId, boolean mountPoint, long parentFolderId, boolean hidden,
2427                    int status, int start, int end,
2428                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2429                    throws com.liferay.portal.kernel.exception.SystemException;
2430    
2431            /**
2432            * Returns the document library folders before and after the current document library folder in the ordered set of document library folders that the user has permission to view where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2433            *
2434            * @param folderId the primary key of the current document library folder
2435            * @param groupId the group ID
2436            * @param mountPoint the mount point
2437            * @param parentFolderId the parent folder ID
2438            * @param hidden the hidden
2439            * @param status the status
2440            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2441            * @return the previous, current, and next document library folder
2442            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
2443            * @throws SystemException if a system exception occurred
2444            */
2445            public com.liferay.portlet.documentlibrary.model.DLFolder[] filterFindByG_M_P_H_S_PrevAndNext(
2446                    long folderId, long groupId, boolean mountPoint, long parentFolderId,
2447                    boolean hidden, int status,
2448                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2449                    throws com.liferay.portal.kernel.exception.SystemException,
2450                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
2451    
2452            /**
2453            * Removes all the document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63; from the database.
2454            *
2455            * @param groupId the group ID
2456            * @param mountPoint the mount point
2457            * @param parentFolderId the parent folder ID
2458            * @param hidden the hidden
2459            * @param status the status
2460            * @throws SystemException if a system exception occurred
2461            */
2462            public void removeByG_M_P_H_S(long groupId, boolean mountPoint,
2463                    long parentFolderId, boolean hidden, int status)
2464                    throws com.liferay.portal.kernel.exception.SystemException;
2465    
2466            /**
2467            * Returns the number of document library folders where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2468            *
2469            * @param groupId the group ID
2470            * @param mountPoint the mount point
2471            * @param parentFolderId the parent folder ID
2472            * @param hidden the hidden
2473            * @param status the status
2474            * @return the number of matching document library folders
2475            * @throws SystemException if a system exception occurred
2476            */
2477            public int countByG_M_P_H_S(long groupId, boolean mountPoint,
2478                    long parentFolderId, boolean hidden, int status)
2479                    throws com.liferay.portal.kernel.exception.SystemException;
2480    
2481            /**
2482            * Returns the number of document library folders that the user has permission to view where groupId = &#63; and mountPoint = &#63; and parentFolderId = &#63; and hidden = &#63; and status = &#63;.
2483            *
2484            * @param groupId the group ID
2485            * @param mountPoint the mount point
2486            * @param parentFolderId the parent folder ID
2487            * @param hidden the hidden
2488            * @param status the status
2489            * @return the number of matching document library folders that the user has permission to view
2490            * @throws SystemException if a system exception occurred
2491            */
2492            public int filterCountByG_M_P_H_S(long groupId, boolean mountPoint,
2493                    long parentFolderId, boolean hidden, int status)
2494                    throws com.liferay.portal.kernel.exception.SystemException;
2495    
2496            /**
2497            * Caches the document library folder in the entity cache if it is enabled.
2498            *
2499            * @param dlFolder the document library folder
2500            */
2501            public void cacheResult(
2502                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder);
2503    
2504            /**
2505            * Caches the document library folders in the entity cache if it is enabled.
2506            *
2507            * @param dlFolders the document library folders
2508            */
2509            public void cacheResult(
2510                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders);
2511    
2512            /**
2513            * Creates a new document library folder with the primary key. Does not add the document library folder to the database.
2514            *
2515            * @param folderId the primary key for the new document library folder
2516            * @return the new document library folder
2517            */
2518            public com.liferay.portlet.documentlibrary.model.DLFolder create(
2519                    long folderId);
2520    
2521            /**
2522            * Removes the document library folder with the primary key from the database. Also notifies the appropriate model listeners.
2523            *
2524            * @param folderId the primary key of the document library folder
2525            * @return the document library folder that was removed
2526            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
2527            * @throws SystemException if a system exception occurred
2528            */
2529            public com.liferay.portlet.documentlibrary.model.DLFolder remove(
2530                    long folderId)
2531                    throws com.liferay.portal.kernel.exception.SystemException,
2532                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
2533    
2534            public com.liferay.portlet.documentlibrary.model.DLFolder updateImpl(
2535                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
2536                    throws com.liferay.portal.kernel.exception.SystemException;
2537    
2538            /**
2539            * Returns the document library folder with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found.
2540            *
2541            * @param folderId the primary key of the document library folder
2542            * @return the document library folder
2543            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a document library folder with the primary key could not be found
2544            * @throws SystemException if a system exception occurred
2545            */
2546            public com.liferay.portlet.documentlibrary.model.DLFolder findByPrimaryKey(
2547                    long folderId)
2548                    throws com.liferay.portal.kernel.exception.SystemException,
2549                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
2550    
2551            /**
2552            * Returns the document library folder with the primary key or returns <code>null</code> if it could not be found.
2553            *
2554            * @param folderId the primary key of the document library folder
2555            * @return the document library folder, or <code>null</code> if a document library folder with the primary key could not be found
2556            * @throws SystemException if a system exception occurred
2557            */
2558            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByPrimaryKey(
2559                    long folderId)
2560                    throws com.liferay.portal.kernel.exception.SystemException;
2561    
2562            /**
2563            * Returns all the document library folders.
2564            *
2565            * @return the document library folders
2566            * @throws SystemException if a system exception occurred
2567            */
2568            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll()
2569                    throws com.liferay.portal.kernel.exception.SystemException;
2570    
2571            /**
2572            * Returns a range of all the document library folders.
2573            *
2574            * <p>
2575            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2576            * </p>
2577            *
2578            * @param start the lower bound of the range of document library folders
2579            * @param end the upper bound of the range of document library folders (not inclusive)
2580            * @return the range of document library folders
2581            * @throws SystemException if a system exception occurred
2582            */
2583            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
2584                    int start, int end)
2585                    throws com.liferay.portal.kernel.exception.SystemException;
2586    
2587            /**
2588            * Returns an ordered range of all the document library folders.
2589            *
2590            * <p>
2591            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2592            * </p>
2593            *
2594            * @param start the lower bound of the range of document library folders
2595            * @param end the upper bound of the range of document library folders (not inclusive)
2596            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2597            * @return the ordered range of document library folders
2598            * @throws SystemException if a system exception occurred
2599            */
2600            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
2601                    int start, int end,
2602                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2603                    throws com.liferay.portal.kernel.exception.SystemException;
2604    
2605            /**
2606            * Removes all the document library folders from the database.
2607            *
2608            * @throws SystemException if a system exception occurred
2609            */
2610            public void removeAll()
2611                    throws com.liferay.portal.kernel.exception.SystemException;
2612    
2613            /**
2614            * Returns the number of document library folders.
2615            *
2616            * @return the number of document library folders
2617            * @throws SystemException if a system exception occurred
2618            */
2619            public int countAll()
2620                    throws com.liferay.portal.kernel.exception.SystemException;
2621    
2622            /**
2623            * Returns all the document library file entry types associated with the document library folder.
2624            *
2625            * @param pk the primary key of the document library folder
2626            * @return the document library file entry types associated with the document library folder
2627            * @throws SystemException if a system exception occurred
2628            */
2629            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
2630                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
2631    
2632            /**
2633            * Returns a range of all the document library file entry types associated with the document library folder.
2634            *
2635            * <p>
2636            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2637            * </p>
2638            *
2639            * @param pk the primary key of the document library folder
2640            * @param start the lower bound of the range of document library folders
2641            * @param end the upper bound of the range of document library folders (not inclusive)
2642            * @return the range of document library file entry types associated with the document library folder
2643            * @throws SystemException if a system exception occurred
2644            */
2645            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
2646                    long pk, int start, int end)
2647                    throws com.liferay.portal.kernel.exception.SystemException;
2648    
2649            /**
2650            * Returns an ordered range of all the document library file entry types associated with the document library folder.
2651            *
2652            * <p>
2653            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2654            * </p>
2655            *
2656            * @param pk the primary key of the document library folder
2657            * @param start the lower bound of the range of document library folders
2658            * @param end the upper bound of the range of document library folders (not inclusive)
2659            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2660            * @return the ordered range of document library file entry types associated with the document library folder
2661            * @throws SystemException if a system exception occurred
2662            */
2663            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
2664                    long pk, int start, int end,
2665                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2666                    throws com.liferay.portal.kernel.exception.SystemException;
2667    
2668            /**
2669            * Returns the number of document library file entry types associated with the document library folder.
2670            *
2671            * @param pk the primary key of the document library folder
2672            * @return the number of document library file entry types associated with the document library folder
2673            * @throws SystemException if a system exception occurred
2674            */
2675            public int getDLFileEntryTypesSize(long pk)
2676                    throws com.liferay.portal.kernel.exception.SystemException;
2677    
2678            /**
2679            * Returns <code>true</code> if the document library file entry type is associated with the document library folder.
2680            *
2681            * @param pk the primary key of the document library folder
2682            * @param dlFileEntryTypePK the primary key of the document library file entry type
2683            * @return <code>true</code> if the document library file entry type is associated with the document library folder; <code>false</code> otherwise
2684            * @throws SystemException if a system exception occurred
2685            */
2686            public boolean containsDLFileEntryType(long pk, long dlFileEntryTypePK)
2687                    throws com.liferay.portal.kernel.exception.SystemException;
2688    
2689            /**
2690            * Returns <code>true</code> if the document library folder has any document library file entry types associated with it.
2691            *
2692            * @param pk the primary key of the document library folder to check for associations with document library file entry types
2693            * @return <code>true</code> if the document library folder has any document library file entry types associated with it; <code>false</code> otherwise
2694            * @throws SystemException if a system exception occurred
2695            */
2696            public boolean containsDLFileEntryTypes(long pk)
2697                    throws com.liferay.portal.kernel.exception.SystemException;
2698    
2699            /**
2700            * 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.
2701            *
2702            * @param pk the primary key of the document library folder
2703            * @param dlFileEntryTypePK the primary key of the document library file entry type
2704            * @throws SystemException if a system exception occurred
2705            */
2706            public void addDLFileEntryType(long pk, long dlFileEntryTypePK)
2707                    throws com.liferay.portal.kernel.exception.SystemException;
2708    
2709            /**
2710            * 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.
2711            *
2712            * @param pk the primary key of the document library folder
2713            * @param dlFileEntryType the document library file entry type
2714            * @throws SystemException if a system exception occurred
2715            */
2716            public void addDLFileEntryType(long pk,
2717                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
2718                    throws com.liferay.portal.kernel.exception.SystemException;
2719    
2720            /**
2721            * 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.
2722            *
2723            * @param pk the primary key of the document library folder
2724            * @param dlFileEntryTypePKs the primary keys of the document library file entry types
2725            * @throws SystemException if a system exception occurred
2726            */
2727            public void addDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs)
2728                    throws com.liferay.portal.kernel.exception.SystemException;
2729    
2730            /**
2731            * 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.
2732            *
2733            * @param pk the primary key of the document library folder
2734            * @param dlFileEntryTypes the document library file entry types
2735            * @throws SystemException if a system exception occurred
2736            */
2737            public void addDLFileEntryTypes(long pk,
2738                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes)
2739                    throws com.liferay.portal.kernel.exception.SystemException;
2740    
2741            /**
2742            * 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.
2743            *
2744            * @param pk the primary key of the document library folder to clear the associated document library file entry types from
2745            * @throws SystemException if a system exception occurred
2746            */
2747            public void clearDLFileEntryTypes(long pk)
2748                    throws com.liferay.portal.kernel.exception.SystemException;
2749    
2750            /**
2751            * 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.
2752            *
2753            * @param pk the primary key of the document library folder
2754            * @param dlFileEntryTypePK the primary key of the document library file entry type
2755            * @throws SystemException if a system exception occurred
2756            */
2757            public void removeDLFileEntryType(long pk, long dlFileEntryTypePK)
2758                    throws com.liferay.portal.kernel.exception.SystemException;
2759    
2760            /**
2761            * 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.
2762            *
2763            * @param pk the primary key of the document library folder
2764            * @param dlFileEntryType the document library file entry type
2765            * @throws SystemException if a system exception occurred
2766            */
2767            public void removeDLFileEntryType(long pk,
2768                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
2769                    throws com.liferay.portal.kernel.exception.SystemException;
2770    
2771            /**
2772            * 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.
2773            *
2774            * @param pk the primary key of the document library folder
2775            * @param dlFileEntryTypePKs the primary keys of the document library file entry types
2776            * @throws SystemException if a system exception occurred
2777            */
2778            public void removeDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs)
2779                    throws com.liferay.portal.kernel.exception.SystemException;
2780    
2781            /**
2782            * 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.
2783            *
2784            * @param pk the primary key of the document library folder
2785            * @param dlFileEntryTypes the document library file entry types
2786            * @throws SystemException if a system exception occurred
2787            */
2788            public void removeDLFileEntryTypes(long pk,
2789                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes)
2790                    throws com.liferay.portal.kernel.exception.SystemException;
2791    
2792            /**
2793            * 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.
2794            *
2795            * @param pk the primary key of the document library folder
2796            * @param dlFileEntryTypePKs the primary keys of the document library file entry types to be associated with the document library folder
2797            * @throws SystemException if a system exception occurred
2798            */
2799            public void setDLFileEntryTypes(long pk, long[] dlFileEntryTypePKs)
2800                    throws com.liferay.portal.kernel.exception.SystemException;
2801    
2802            /**
2803            * 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.
2804            *
2805            * @param pk the primary key of the document library folder
2806            * @param dlFileEntryTypes the document library file entry types to be associated with the document library folder
2807            * @throws SystemException if a system exception occurred
2808            */
2809            public void setDLFileEntryTypes(long pk,
2810                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes)
2811                    throws com.liferay.portal.kernel.exception.SystemException;
2812    }