001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.documentlibrary.model.DLFolder;
020    
021    /**
022     * The persistence interface for the d l folder service.
023     *
024     * <p>
025     * Never modify or reference this interface directly. Always use {@link DLFolderUtil} to access the d l folder persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
026     * </p>
027     *
028     * <p>
029     * Caching information and settings can be found in <code>portal.properties</code>
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see DLFolderPersistenceImpl
034     * @see DLFolderUtil
035     * @generated
036     */
037    public interface DLFolderPersistence extends BasePersistence<DLFolder> {
038            /**
039            * Caches the d l folder in the entity cache if it is enabled.
040            *
041            * @param dlFolder the d l folder to cache
042            */
043            public void cacheResult(
044                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder);
045    
046            /**
047            * Caches the d l folders in the entity cache if it is enabled.
048            *
049            * @param dlFolders the d l folders to cache
050            */
051            public void cacheResult(
052                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders);
053    
054            /**
055            * Creates a new d l folder with the primary key. Does not add the d l folder to the database.
056            *
057            * @param folderId the primary key for the new d l folder
058            * @return the new d l folder
059            */
060            public com.liferay.portlet.documentlibrary.model.DLFolder create(
061                    long folderId);
062    
063            /**
064            * Removes the d l folder with the primary key from the database. Also notifies the appropriate model listeners.
065            *
066            * @param folderId the primary key of the d l folder to remove
067            * @return the d l folder that was removed
068            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a d l folder with the primary key could not be found
069            * @throws SystemException if a system exception occurred
070            */
071            public com.liferay.portlet.documentlibrary.model.DLFolder remove(
072                    long folderId)
073                    throws com.liferay.portal.kernel.exception.SystemException,
074                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
075    
076            public com.liferay.portlet.documentlibrary.model.DLFolder updateImpl(
077                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
078                    boolean merge)
079                    throws com.liferay.portal.kernel.exception.SystemException;
080    
081            /**
082            * Finds the d l folder with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found.
083            *
084            * @param folderId the primary key of the d l folder to find
085            * @return the d l folder
086            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a d l folder with the primary key could not be found
087            * @throws SystemException if a system exception occurred
088            */
089            public com.liferay.portlet.documentlibrary.model.DLFolder findByPrimaryKey(
090                    long folderId)
091                    throws com.liferay.portal.kernel.exception.SystemException,
092                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
093    
094            /**
095            * Finds the d l folder with the primary key or returns <code>null</code> if it could not be found.
096            *
097            * @param folderId the primary key of the d l folder to find
098            * @return the d l folder, or <code>null</code> if a d l folder with the primary key could not be found
099            * @throws SystemException if a system exception occurred
100            */
101            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByPrimaryKey(
102                    long folderId)
103                    throws com.liferay.portal.kernel.exception.SystemException;
104    
105            /**
106            * Finds all the d l folders where uuid = &#63;.
107            *
108            * @param uuid the uuid to search with
109            * @return the matching d l folders
110            * @throws SystemException if a system exception occurred
111            */
112            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid(
113                    java.lang.String uuid)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            /**
117            * Finds a range of all the d l folders where uuid = &#63;.
118            *
119            * <p>
120            * 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.
121            * </p>
122            *
123            * @param uuid the uuid to search with
124            * @param start the lower bound of the range of d l folders to return
125            * @param end the upper bound of the range of d l folders to return (not inclusive)
126            * @return the range of matching d l folders
127            * @throws SystemException if a system exception occurred
128            */
129            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid(
130                    java.lang.String uuid, int start, int end)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            /**
134            * Finds an ordered range of all the d l folders where uuid = &#63;.
135            *
136            * <p>
137            * 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.
138            * </p>
139            *
140            * @param uuid the uuid to search with
141            * @param start the lower bound of the range of d l folders to return
142            * @param end the upper bound of the range of d l folders to return (not inclusive)
143            * @param orderByComparator the comparator to order the results by
144            * @return the ordered range of matching d l folders
145            * @throws SystemException if a system exception occurred
146            */
147            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByUuid(
148                    java.lang.String uuid, int start, int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            /**
153            * Finds the first d l folder in the ordered set where uuid = &#63;.
154            *
155            * <p>
156            * 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.
157            * </p>
158            *
159            * @param uuid the uuid to search with
160            * @param orderByComparator the comparator to order the set by
161            * @return the first matching d l folder
162            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found
163            * @throws SystemException if a system exception occurred
164            */
165            public com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_First(
166                    java.lang.String uuid,
167                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168                    throws com.liferay.portal.kernel.exception.SystemException,
169                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
170    
171            /**
172            * Finds the last d l folder in the ordered set where uuid = &#63;.
173            *
174            * <p>
175            * 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.
176            * </p>
177            *
178            * @param uuid the uuid to search with
179            * @param orderByComparator the comparator to order the set by
180            * @return the last matching d l folder
181            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found
182            * @throws SystemException if a system exception occurred
183            */
184            public com.liferay.portlet.documentlibrary.model.DLFolder findByUuid_Last(
185                    java.lang.String uuid,
186                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187                    throws com.liferay.portal.kernel.exception.SystemException,
188                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
189    
190            /**
191            * Finds the d l folders before and after the current d l folder in the ordered set where uuid = &#63;.
192            *
193            * <p>
194            * 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.
195            * </p>
196            *
197            * @param folderId the primary key of the current d l folder
198            * @param uuid the uuid to search with
199            * @param orderByComparator the comparator to order the set by
200            * @return the previous, current, and next d l folder
201            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a d l folder with the primary key could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portlet.documentlibrary.model.DLFolder[] findByUuid_PrevAndNext(
205                    long folderId, java.lang.String uuid,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException,
208                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
209    
210            /**
211            * Finds the d l folder where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found.
212            *
213            * @param uuid the uuid to search with
214            * @param groupId the group id to search with
215            * @return the matching d l folder
216            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portlet.documentlibrary.model.DLFolder findByUUID_G(
220                    java.lang.String uuid, long groupId)
221                    throws com.liferay.portal.kernel.exception.SystemException,
222                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
223    
224            /**
225            * Finds the d l folder where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
226            *
227            * @param uuid the uuid to search with
228            * @param groupId the group id to search with
229            * @return the matching d l folder, or <code>null</code> if a matching d l folder could not be found
230            * @throws SystemException if a system exception occurred
231            */
232            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G(
233                    java.lang.String uuid, long groupId)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            /**
237            * Finds the d l folder where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
238            *
239            * @param uuid the uuid to search with
240            * @param groupId the group id to search with
241            * @return the matching d l folder, or <code>null</code> if a matching d l folder could not be found
242            * @throws SystemException if a system exception occurred
243            */
244            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G(
245                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
246                    throws com.liferay.portal.kernel.exception.SystemException;
247    
248            /**
249            * Finds all the d l folders where groupId = &#63;.
250            *
251            * @param groupId the group id to search with
252            * @return the matching d l folders
253            * @throws SystemException if a system exception occurred
254            */
255            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
256                    long groupId)
257                    throws com.liferay.portal.kernel.exception.SystemException;
258    
259            /**
260            * Finds a range of all the d l folders where groupId = &#63;.
261            *
262            * <p>
263            * 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.
264            * </p>
265            *
266            * @param groupId the group id to search with
267            * @param start the lower bound of the range of d l folders to return
268            * @param end the upper bound of the range of d l folders to return (not inclusive)
269            * @return the range of matching d l folders
270            * @throws SystemException if a system exception occurred
271            */
272            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
273                    long groupId, int start, int end)
274                    throws com.liferay.portal.kernel.exception.SystemException;
275    
276            /**
277            * Finds an ordered range of all the d l folders where groupId = &#63;.
278            *
279            * <p>
280            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
281            * </p>
282            *
283            * @param groupId the group id to search with
284            * @param start the lower bound of the range of d l folders to return
285            * @param end the upper bound of the range of d l folders to return (not inclusive)
286            * @param orderByComparator the comparator to order the results by
287            * @return the ordered range of matching d l folders
288            * @throws SystemException if a system exception occurred
289            */
290            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
291                    long groupId, int start, int end,
292                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293                    throws com.liferay.portal.kernel.exception.SystemException;
294    
295            /**
296            * Finds the first d l folder in the ordered set where groupId = &#63;.
297            *
298            * <p>
299            * 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.
300            * </p>
301            *
302            * @param groupId the group id to search with
303            * @param orderByComparator the comparator to order the set by
304            * @return the first matching d l folder
305            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found
306            * @throws SystemException if a system exception occurred
307            */
308            public com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_First(
309                    long groupId,
310                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311                    throws com.liferay.portal.kernel.exception.SystemException,
312                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
313    
314            /**
315            * Finds the last d l folder in the ordered set where groupId = &#63;.
316            *
317            * <p>
318            * 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.
319            * </p>
320            *
321            * @param groupId the group id to search with
322            * @param orderByComparator the comparator to order the set by
323            * @return the last matching d l folder
324            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found
325            * @throws SystemException if a system exception occurred
326            */
327            public com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_Last(
328                    long groupId,
329                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
330                    throws com.liferay.portal.kernel.exception.SystemException,
331                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
332    
333            /**
334            * Finds the d l folders before and after the current d l folder in the ordered set where groupId = &#63;.
335            *
336            * <p>
337            * 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.
338            * </p>
339            *
340            * @param folderId the primary key of the current d l folder
341            * @param groupId the group id to search with
342            * @param orderByComparator the comparator to order the set by
343            * @return the previous, current, and next d l folder
344            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a d l folder with the primary key could not be found
345            * @throws SystemException if a system exception occurred
346            */
347            public com.liferay.portlet.documentlibrary.model.DLFolder[] findByGroupId_PrevAndNext(
348                    long folderId, long groupId,
349                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
350                    throws com.liferay.portal.kernel.exception.SystemException,
351                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
352    
353            /**
354            * Filters by the user's permissions and finds all the d l folders where groupId = &#63;.
355            *
356            * @param groupId the group id to search with
357            * @return the matching d l folders that the user has permission to view
358            * @throws SystemException if a system exception occurred
359            */
360            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId(
361                    long groupId)
362                    throws com.liferay.portal.kernel.exception.SystemException;
363    
364            /**
365            * Filters by the user's permissions and finds a range of all the d l folders where groupId = &#63;.
366            *
367            * <p>
368            * 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.
369            * </p>
370            *
371            * @param groupId the group id to search with
372            * @param start the lower bound of the range of d l folders to return
373            * @param end the upper bound of the range of d l folders to return (not inclusive)
374            * @return the range of matching d l folders that the user has permission to view
375            * @throws SystemException if a system exception occurred
376            */
377            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId(
378                    long groupId, int start, int end)
379                    throws com.liferay.portal.kernel.exception.SystemException;
380    
381            /**
382            * Filters by the user's permissions and finds an ordered range of all the d l folders where groupId = &#63;.
383            *
384            * <p>
385            * 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.
386            * </p>
387            *
388            * @param groupId the group id to search with
389            * @param start the lower bound of the range of d l folders to return
390            * @param end the upper bound of the range of d l folders to return (not inclusive)
391            * @param orderByComparator the comparator to order the results by
392            * @return the ordered range of matching d l folders that the user has permission to view
393            * @throws SystemException if a system exception occurred
394            */
395            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByGroupId(
396                    long groupId, int start, int end,
397                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
398                    throws com.liferay.portal.kernel.exception.SystemException;
399    
400            /**
401            * Finds all the d l folders where companyId = &#63;.
402            *
403            * @param companyId the company id to search with
404            * @return the matching d l folders
405            * @throws SystemException if a system exception occurred
406            */
407            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
408                    long companyId)
409                    throws com.liferay.portal.kernel.exception.SystemException;
410    
411            /**
412            * Finds a range of all the d l folders where companyId = &#63;.
413            *
414            * <p>
415            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
416            * </p>
417            *
418            * @param companyId the company id to search with
419            * @param start the lower bound of the range of d l folders to return
420            * @param end the upper bound of the range of d l folders to return (not inclusive)
421            * @return the range of matching d l folders
422            * @throws SystemException if a system exception occurred
423            */
424            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
425                    long companyId, int start, int end)
426                    throws com.liferay.portal.kernel.exception.SystemException;
427    
428            /**
429            * Finds an ordered range of all the d l folders where companyId = &#63;.
430            *
431            * <p>
432            * 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.
433            * </p>
434            *
435            * @param companyId the company id to search with
436            * @param start the lower bound of the range of d l folders to return
437            * @param end the upper bound of the range of d l folders to return (not inclusive)
438            * @param orderByComparator the comparator to order the results by
439            * @return the ordered range of matching d l folders
440            * @throws SystemException if a system exception occurred
441            */
442            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
443                    long companyId, int start, int end,
444                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
445                    throws com.liferay.portal.kernel.exception.SystemException;
446    
447            /**
448            * Finds the first d l folder in the ordered set where companyId = &#63;.
449            *
450            * <p>
451            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
452            * </p>
453            *
454            * @param companyId the company id to search with
455            * @param orderByComparator the comparator to order the set by
456            * @return the first matching d l folder
457            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found
458            * @throws SystemException if a system exception occurred
459            */
460            public com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_First(
461                    long companyId,
462                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
463                    throws com.liferay.portal.kernel.exception.SystemException,
464                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
465    
466            /**
467            * Finds the last d l folder in the ordered set where companyId = &#63;.
468            *
469            * <p>
470            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
471            * </p>
472            *
473            * @param companyId the company id to search with
474            * @param orderByComparator the comparator to order the set by
475            * @return the last matching d l folder
476            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found
477            * @throws SystemException if a system exception occurred
478            */
479            public com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_Last(
480                    long companyId,
481                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
482                    throws com.liferay.portal.kernel.exception.SystemException,
483                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
484    
485            /**
486            * Finds the d l folders before and after the current d l folder in the ordered set where companyId = &#63;.
487            *
488            * <p>
489            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
490            * </p>
491            *
492            * @param folderId the primary key of the current d l folder
493            * @param companyId the company id to search with
494            * @param orderByComparator the comparator to order the set by
495            * @return the previous, current, and next d l folder
496            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a d l folder with the primary key could not be found
497            * @throws SystemException if a system exception occurred
498            */
499            public com.liferay.portlet.documentlibrary.model.DLFolder[] findByCompanyId_PrevAndNext(
500                    long folderId, long companyId,
501                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
502                    throws com.liferay.portal.kernel.exception.SystemException,
503                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
504    
505            /**
506            * Finds all the d l folders where groupId = &#63; and parentFolderId = &#63;.
507            *
508            * @param groupId the group id to search with
509            * @param parentFolderId the parent folder id to search with
510            * @return the matching d l folders
511            * @throws SystemException if a system exception occurred
512            */
513            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
514                    long groupId, long parentFolderId)
515                    throws com.liferay.portal.kernel.exception.SystemException;
516    
517            /**
518            * Finds a range of all the d l folders where groupId = &#63; and parentFolderId = &#63;.
519            *
520            * <p>
521            * 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.
522            * </p>
523            *
524            * @param groupId the group id to search with
525            * @param parentFolderId the parent folder id to search with
526            * @param start the lower bound of the range of d l folders to return
527            * @param end the upper bound of the range of d l folders to return (not inclusive)
528            * @return the range of matching d l folders
529            * @throws SystemException if a system exception occurred
530            */
531            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
532                    long groupId, long parentFolderId, int start, int end)
533                    throws com.liferay.portal.kernel.exception.SystemException;
534    
535            /**
536            * Finds an ordered range of all the d l folders where groupId = &#63; and parentFolderId = &#63;.
537            *
538            * <p>
539            * 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.
540            * </p>
541            *
542            * @param groupId the group id to search with
543            * @param parentFolderId the parent folder id to search with
544            * @param start the lower bound of the range of d l folders to return
545            * @param end the upper bound of the range of d l folders to return (not inclusive)
546            * @param orderByComparator the comparator to order the results by
547            * @return the ordered range of matching d l folders
548            * @throws SystemException if a system exception occurred
549            */
550            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
551                    long groupId, long parentFolderId, int start, int end,
552                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
553                    throws com.liferay.portal.kernel.exception.SystemException;
554    
555            /**
556            * Finds the first d l folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
557            *
558            * <p>
559            * 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.
560            * </p>
561            *
562            * @param groupId the group id to search with
563            * @param parentFolderId the parent folder id to search with
564            * @param orderByComparator the comparator to order the set by
565            * @return the first matching d l folder
566            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found
567            * @throws SystemException if a system exception occurred
568            */
569            public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_First(
570                    long groupId, long parentFolderId,
571                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
572                    throws com.liferay.portal.kernel.exception.SystemException,
573                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
574    
575            /**
576            * Finds the last d l folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
577            *
578            * <p>
579            * 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.
580            * </p>
581            *
582            * @param groupId the group id to search with
583            * @param parentFolderId the parent folder id to search with
584            * @param orderByComparator the comparator to order the set by
585            * @return the last matching d l folder
586            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found
587            * @throws SystemException if a system exception occurred
588            */
589            public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_Last(
590                    long groupId, long parentFolderId,
591                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
592                    throws com.liferay.portal.kernel.exception.SystemException,
593                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
594    
595            /**
596            * Finds the d l folders before and after the current d l folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
597            *
598            * <p>
599            * 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.
600            * </p>
601            *
602            * @param folderId the primary key of the current d l folder
603            * @param groupId the group id to search with
604            * @param parentFolderId the parent folder id to search with
605            * @param orderByComparator the comparator to order the set by
606            * @return the previous, current, and next d l folder
607            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a d l folder with the primary key could not be found
608            * @throws SystemException if a system exception occurred
609            */
610            public com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_PrevAndNext(
611                    long folderId, long groupId, long parentFolderId,
612                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
613                    throws com.liferay.portal.kernel.exception.SystemException,
614                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
615    
616            /**
617            * Filters by the user's permissions and finds all the d l folders where groupId = &#63; and parentFolderId = &#63;.
618            *
619            * @param groupId the group id to search with
620            * @param parentFolderId the parent folder id to search with
621            * @return the matching d l folders that the user has permission to view
622            * @throws SystemException if a system exception occurred
623            */
624            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P(
625                    long groupId, long parentFolderId)
626                    throws com.liferay.portal.kernel.exception.SystemException;
627    
628            /**
629            * Filters by the user's permissions and finds a range of all the d l folders where groupId = &#63; and parentFolderId = &#63;.
630            *
631            * <p>
632            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
633            * </p>
634            *
635            * @param groupId the group id to search with
636            * @param parentFolderId the parent folder id to search with
637            * @param start the lower bound of the range of d l folders to return
638            * @param end the upper bound of the range of d l folders to return (not inclusive)
639            * @return the range of matching d l folders that the user has permission to view
640            * @throws SystemException if a system exception occurred
641            */
642            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P(
643                    long groupId, long parentFolderId, int start, int end)
644                    throws com.liferay.portal.kernel.exception.SystemException;
645    
646            /**
647            * Filters by the user's permissions and finds an ordered range of all the d l folders where groupId = &#63; and parentFolderId = &#63;.
648            *
649            * <p>
650            * 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.
651            * </p>
652            *
653            * @param groupId the group id to search with
654            * @param parentFolderId the parent folder id to search with
655            * @param start the lower bound of the range of d l folders to return
656            * @param end the upper bound of the range of d l folders to return (not inclusive)
657            * @param orderByComparator the comparator to order the results by
658            * @return the ordered range of matching d l folders that the user has permission to view
659            * @throws SystemException if a system exception occurred
660            */
661            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> filterFindByG_P(
662                    long groupId, long parentFolderId, int start, int end,
663                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
664                    throws com.liferay.portal.kernel.exception.SystemException;
665    
666            /**
667            * Finds all the d l folders where parentFolderId = &#63; and name = &#63;.
668            *
669            * @param parentFolderId the parent folder id to search with
670            * @param name the name to search with
671            * @return the matching d l folders
672            * @throws SystemException if a system exception occurred
673            */
674            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
675                    long parentFolderId, java.lang.String name)
676                    throws com.liferay.portal.kernel.exception.SystemException;
677    
678            /**
679            * Finds a range of all the d l folders where parentFolderId = &#63; and name = &#63;.
680            *
681            * <p>
682            * 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.
683            * </p>
684            *
685            * @param parentFolderId the parent folder id to search with
686            * @param name the name to search with
687            * @param start the lower bound of the range of d l folders to return
688            * @param end the upper bound of the range of d l folders to return (not inclusive)
689            * @return the range of matching d l folders
690            * @throws SystemException if a system exception occurred
691            */
692            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
693                    long parentFolderId, java.lang.String name, int start, int end)
694                    throws com.liferay.portal.kernel.exception.SystemException;
695    
696            /**
697            * Finds an ordered range of all the d l folders where parentFolderId = &#63; and name = &#63;.
698            *
699            * <p>
700            * 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.
701            * </p>
702            *
703            * @param parentFolderId the parent folder id to search with
704            * @param name the name to search with
705            * @param start the lower bound of the range of d l folders to return
706            * @param end the upper bound of the range of d l folders to return (not inclusive)
707            * @param orderByComparator the comparator to order the results by
708            * @return the ordered range of matching d l folders
709            * @throws SystemException if a system exception occurred
710            */
711            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
712                    long parentFolderId, java.lang.String name, int start, int end,
713                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
714                    throws com.liferay.portal.kernel.exception.SystemException;
715    
716            /**
717            * Finds the first d l folder in the ordered set where parentFolderId = &#63; and name = &#63;.
718            *
719            * <p>
720            * 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.
721            * </p>
722            *
723            * @param parentFolderId the parent folder id to search with
724            * @param name the name to search with
725            * @param orderByComparator the comparator to order the set by
726            * @return the first matching d l folder
727            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found
728            * @throws SystemException if a system exception occurred
729            */
730            public com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_First(
731                    long parentFolderId, java.lang.String name,
732                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
733                    throws com.liferay.portal.kernel.exception.SystemException,
734                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
735    
736            /**
737            * Finds the last d l folder in the ordered set where parentFolderId = &#63; and name = &#63;.
738            *
739            * <p>
740            * 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.
741            * </p>
742            *
743            * @param parentFolderId the parent folder id to search with
744            * @param name the name to search with
745            * @param orderByComparator the comparator to order the set by
746            * @return the last matching d l folder
747            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found
748            * @throws SystemException if a system exception occurred
749            */
750            public com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_Last(
751                    long parentFolderId, java.lang.String name,
752                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
753                    throws com.liferay.portal.kernel.exception.SystemException,
754                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
755    
756            /**
757            * Finds the d l folders before and after the current d l folder in the ordered set where parentFolderId = &#63; and name = &#63;.
758            *
759            * <p>
760            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
761            * </p>
762            *
763            * @param folderId the primary key of the current d l folder
764            * @param parentFolderId the parent folder id to search with
765            * @param name the name to search with
766            * @param orderByComparator the comparator to order the set by
767            * @return the previous, current, and next d l folder
768            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a d l folder with the primary key could not be found
769            * @throws SystemException if a system exception occurred
770            */
771            public com.liferay.portlet.documentlibrary.model.DLFolder[] findByP_N_PrevAndNext(
772                    long folderId, long parentFolderId, java.lang.String name,
773                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
774                    throws com.liferay.portal.kernel.exception.SystemException,
775                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
776    
777            /**
778            * Finds the d l folder where groupId = &#63; and parentFolderId = &#63; and name = &#63; or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFolderException} if it could not be found.
779            *
780            * @param groupId the group id to search with
781            * @param parentFolderId the parent folder id to search with
782            * @param name the name to search with
783            * @return the matching d l folder
784            * @throws com.liferay.portlet.documentlibrary.NoSuchFolderException if a matching d l folder could not be found
785            * @throws SystemException if a system exception occurred
786            */
787            public com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_N(
788                    long groupId, long parentFolderId, java.lang.String name)
789                    throws com.liferay.portal.kernel.exception.SystemException,
790                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
791    
792            /**
793            * Finds the d l folder where groupId = &#63; and parentFolderId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
794            *
795            * @param groupId the group id to search with
796            * @param parentFolderId the parent folder id to search with
797            * @param name the name to search with
798            * @return the matching d l folder, or <code>null</code> if a matching d l folder could not be found
799            * @throws SystemException if a system exception occurred
800            */
801            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N(
802                    long groupId, long parentFolderId, java.lang.String name)
803                    throws com.liferay.portal.kernel.exception.SystemException;
804    
805            /**
806            * Finds the d l folder where groupId = &#63; and parentFolderId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
807            *
808            * @param groupId the group id to search with
809            * @param parentFolderId the parent folder id to search with
810            * @param name the name to search with
811            * @return the matching d l folder, or <code>null</code> if a matching d l folder could not be found
812            * @throws SystemException if a system exception occurred
813            */
814            public com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N(
815                    long groupId, long parentFolderId, java.lang.String name,
816                    boolean retrieveFromCache)
817                    throws com.liferay.portal.kernel.exception.SystemException;
818    
819            /**
820            * Finds all the d l folders.
821            *
822            * @return the d l folders
823            * @throws SystemException if a system exception occurred
824            */
825            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll()
826                    throws com.liferay.portal.kernel.exception.SystemException;
827    
828            /**
829            * Finds a range of all the d l folders.
830            *
831            * <p>
832            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
833            * </p>
834            *
835            * @param start the lower bound of the range of d l folders to return
836            * @param end the upper bound of the range of d l folders to return (not inclusive)
837            * @return the range of d l folders
838            * @throws SystemException if a system exception occurred
839            */
840            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
841                    int start, int end)
842                    throws com.liferay.portal.kernel.exception.SystemException;
843    
844            /**
845            * Finds an ordered range of all the d l folders.
846            *
847            * <p>
848            * 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.
849            * </p>
850            *
851            * @param start the lower bound of the range of d l folders to return
852            * @param end the upper bound of the range of d l folders to return (not inclusive)
853            * @param orderByComparator the comparator to order the results by
854            * @return the ordered range of d l folders
855            * @throws SystemException if a system exception occurred
856            */
857            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
858                    int start, int end,
859                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
860                    throws com.liferay.portal.kernel.exception.SystemException;
861    
862            /**
863            * Removes all the d l folders where uuid = &#63; from the database.
864            *
865            * @param uuid the uuid to search with
866            * @throws SystemException if a system exception occurred
867            */
868            public void removeByUuid(java.lang.String uuid)
869                    throws com.liferay.portal.kernel.exception.SystemException;
870    
871            /**
872            * Removes the d l folder where uuid = &#63; and groupId = &#63; from the database.
873            *
874            * @param uuid the uuid to search with
875            * @param groupId the group id to search with
876            * @throws SystemException if a system exception occurred
877            */
878            public void removeByUUID_G(java.lang.String uuid, long groupId)
879                    throws com.liferay.portal.kernel.exception.SystemException,
880                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
881    
882            /**
883            * Removes all the d l folders where groupId = &#63; from the database.
884            *
885            * @param groupId the group id to search with
886            * @throws SystemException if a system exception occurred
887            */
888            public void removeByGroupId(long groupId)
889                    throws com.liferay.portal.kernel.exception.SystemException;
890    
891            /**
892            * Removes all the d l folders where companyId = &#63; from the database.
893            *
894            * @param companyId the company id to search with
895            * @throws SystemException if a system exception occurred
896            */
897            public void removeByCompanyId(long companyId)
898                    throws com.liferay.portal.kernel.exception.SystemException;
899    
900            /**
901            * Removes all the d l folders where groupId = &#63; and parentFolderId = &#63; from the database.
902            *
903            * @param groupId the group id to search with
904            * @param parentFolderId the parent folder id to search with
905            * @throws SystemException if a system exception occurred
906            */
907            public void removeByG_P(long groupId, long parentFolderId)
908                    throws com.liferay.portal.kernel.exception.SystemException;
909    
910            /**
911            * Removes all the d l folders where parentFolderId = &#63; and name = &#63; from the database.
912            *
913            * @param parentFolderId the parent folder id to search with
914            * @param name the name to search with
915            * @throws SystemException if a system exception occurred
916            */
917            public void removeByP_N(long parentFolderId, java.lang.String name)
918                    throws com.liferay.portal.kernel.exception.SystemException;
919    
920            /**
921            * Removes the d l folder where groupId = &#63; and parentFolderId = &#63; and name = &#63; from the database.
922            *
923            * @param groupId the group id to search with
924            * @param parentFolderId the parent folder id to search with
925            * @param name the name to search with
926            * @throws SystemException if a system exception occurred
927            */
928            public void removeByG_P_N(long groupId, long parentFolderId,
929                    java.lang.String name)
930                    throws com.liferay.portal.kernel.exception.SystemException,
931                            com.liferay.portlet.documentlibrary.NoSuchFolderException;
932    
933            /**
934            * Removes all the d l folders from the database.
935            *
936            * @throws SystemException if a system exception occurred
937            */
938            public void removeAll()
939                    throws com.liferay.portal.kernel.exception.SystemException;
940    
941            /**
942            * Counts all the d l folders where uuid = &#63;.
943            *
944            * @param uuid the uuid to search with
945            * @return the number of matching d l folders
946            * @throws SystemException if a system exception occurred
947            */
948            public int countByUuid(java.lang.String uuid)
949                    throws com.liferay.portal.kernel.exception.SystemException;
950    
951            /**
952            * Counts all the d l folders where uuid = &#63; and groupId = &#63;.
953            *
954            * @param uuid the uuid to search with
955            * @param groupId the group id to search with
956            * @return the number of matching d l folders
957            * @throws SystemException if a system exception occurred
958            */
959            public int countByUUID_G(java.lang.String uuid, long groupId)
960                    throws com.liferay.portal.kernel.exception.SystemException;
961    
962            /**
963            * Counts all the d l folders where groupId = &#63;.
964            *
965            * @param groupId the group id to search with
966            * @return the number of matching d l folders
967            * @throws SystemException if a system exception occurred
968            */
969            public int countByGroupId(long groupId)
970                    throws com.liferay.portal.kernel.exception.SystemException;
971    
972            /**
973            * Filters by the user's permissions and counts all the d l folders where groupId = &#63;.
974            *
975            * @param groupId the group id to search with
976            * @return the number of matching d l folders that the user has permission to view
977            * @throws SystemException if a system exception occurred
978            */
979            public int filterCountByGroupId(long groupId)
980                    throws com.liferay.portal.kernel.exception.SystemException;
981    
982            /**
983            * Counts all the d l folders where companyId = &#63;.
984            *
985            * @param companyId the company id to search with
986            * @return the number of matching d l folders
987            * @throws SystemException if a system exception occurred
988            */
989            public int countByCompanyId(long companyId)
990                    throws com.liferay.portal.kernel.exception.SystemException;
991    
992            /**
993            * Counts all the d l folders where groupId = &#63; and parentFolderId = &#63;.
994            *
995            * @param groupId the group id to search with
996            * @param parentFolderId the parent folder id to search with
997            * @return the number of matching d l folders
998            * @throws SystemException if a system exception occurred
999            */
1000            public int countByG_P(long groupId, long parentFolderId)
1001                    throws com.liferay.portal.kernel.exception.SystemException;
1002    
1003            /**
1004            * Filters by the user's permissions and counts all the d l folders where groupId = &#63; and parentFolderId = &#63;.
1005            *
1006            * @param groupId the group id to search with
1007            * @param parentFolderId the parent folder id to search with
1008            * @return the number of matching d l folders that the user has permission to view
1009            * @throws SystemException if a system exception occurred
1010            */
1011            public int filterCountByG_P(long groupId, long parentFolderId)
1012                    throws com.liferay.portal.kernel.exception.SystemException;
1013    
1014            /**
1015            * Counts all the d l folders where parentFolderId = &#63; and name = &#63;.
1016            *
1017            * @param parentFolderId the parent folder id to search with
1018            * @param name the name to search with
1019            * @return the number of matching d l folders
1020            * @throws SystemException if a system exception occurred
1021            */
1022            public int countByP_N(long parentFolderId, java.lang.String name)
1023                    throws com.liferay.portal.kernel.exception.SystemException;
1024    
1025            /**
1026            * Counts all the d l folders where groupId = &#63; and parentFolderId = &#63; and name = &#63;.
1027            *
1028            * @param groupId the group id to search with
1029            * @param parentFolderId the parent folder id to search with
1030            * @param name the name to search with
1031            * @return the number of matching d l folders
1032            * @throws SystemException if a system exception occurred
1033            */
1034            public int countByG_P_N(long groupId, long parentFolderId,
1035                    java.lang.String name)
1036                    throws com.liferay.portal.kernel.exception.SystemException;
1037    
1038            /**
1039            * Filters by the user's permissions and counts all the d l folders where groupId = &#63; and parentFolderId = &#63; and name = &#63;.
1040            *
1041            * @param groupId the group id to search with
1042            * @param parentFolderId the parent folder id to search with
1043            * @param name the name to search with
1044            * @return the number of matching d l folders that the user has permission to view
1045            * @throws SystemException if a system exception occurred
1046            */
1047            public int filterCountByG_P_N(long groupId, long parentFolderId,
1048                    java.lang.String name)
1049                    throws com.liferay.portal.kernel.exception.SystemException;
1050    
1051            /**
1052            * Counts all the d l folders.
1053            *
1054            * @return the number of d l folders
1055            * @throws SystemException if a system exception occurred
1056            */
1057            public int countAll()
1058                    throws com.liferay.portal.kernel.exception.SystemException;
1059    }