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.bookmarks.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.bookmarks.model.BookmarksFolder;
020    
021    /**
022     * The persistence interface for the bookmarks folder service.
023     *
024     * <p>
025     * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface.
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see BookmarksFolderPersistenceImpl
030     * @see BookmarksFolderUtil
031     * @generated
032     */
033    public interface BookmarksFolderPersistence extends BasePersistence<BookmarksFolder> {
034            /**
035            * Caches the bookmarks folder in the entity cache if it is enabled.
036            *
037            * @param bookmarksFolder the bookmarks folder to cache
038            */
039            public void cacheResult(
040                    com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder);
041    
042            /**
043            * Caches the bookmarks folders in the entity cache if it is enabled.
044            *
045            * @param bookmarksFolders the bookmarks folders to cache
046            */
047            public void cacheResult(
048                    java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> bookmarksFolders);
049    
050            /**
051            * Creates a new bookmarks folder with the primary key.
052            *
053            * @param folderId the primary key for the new bookmarks folder
054            * @return the new bookmarks folder
055            */
056            public com.liferay.portlet.bookmarks.model.BookmarksFolder create(
057                    long folderId);
058    
059            /**
060            * Removes the bookmarks folder with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param folderId the primary key of the bookmarks folder to remove
063            * @return the bookmarks folder that was removed
064            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a bookmarks folder with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public com.liferay.portlet.bookmarks.model.BookmarksFolder remove(
068                    long folderId)
069                    throws com.liferay.portal.kernel.exception.SystemException,
070                            com.liferay.portlet.bookmarks.NoSuchFolderException;
071    
072            public com.liferay.portlet.bookmarks.model.BookmarksFolder updateImpl(
073                    com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder,
074                    boolean merge)
075                    throws com.liferay.portal.kernel.exception.SystemException;
076    
077            /**
078            * Finds the bookmarks folder with the primary key or throws a {@link com.liferay.portlet.bookmarks.NoSuchFolderException} if it could not be found.
079            *
080            * @param folderId the primary key of the bookmarks folder to find
081            * @return the bookmarks folder
082            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a bookmarks folder with the primary key could not be found
083            * @throws SystemException if a system exception occurred
084            */
085            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByPrimaryKey(
086                    long folderId)
087                    throws com.liferay.portal.kernel.exception.SystemException,
088                            com.liferay.portlet.bookmarks.NoSuchFolderException;
089    
090            /**
091            * Finds the bookmarks folder with the primary key or returns <code>null</code> if it could not be found.
092            *
093            * @param folderId the primary key of the bookmarks folder to find
094            * @return the bookmarks folder, or <code>null</code> if a bookmarks folder with the primary key could not be found
095            * @throws SystemException if a system exception occurred
096            */
097            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByPrimaryKey(
098                    long folderId)
099                    throws com.liferay.portal.kernel.exception.SystemException;
100    
101            /**
102            * Finds all the bookmarks folders where uuid = &#63;.
103            *
104            * @param uuid the uuid to search with
105            * @return the matching bookmarks folders
106            * @throws SystemException if a system exception occurred
107            */
108            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByUuid(
109                    java.lang.String uuid)
110                    throws com.liferay.portal.kernel.exception.SystemException;
111    
112            /**
113            * Finds a range of all the bookmarks folders where uuid = &#63;.
114            *
115            * <p>
116            * 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.
117            * </p>
118            *
119            * @param uuid the uuid to search with
120            * @param start the lower bound of the range of bookmarks folders to return
121            * @param end the upper bound of the range of bookmarks folders to return (not inclusive)
122            * @return the range of matching bookmarks folders
123            * @throws SystemException if a system exception occurred
124            */
125            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByUuid(
126                    java.lang.String uuid, int start, int end)
127                    throws com.liferay.portal.kernel.exception.SystemException;
128    
129            /**
130            * Finds an ordered range of all the bookmarks folders where uuid = &#63;.
131            *
132            * <p>
133            * 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.
134            * </p>
135            *
136            * @param uuid the uuid to search with
137            * @param start the lower bound of the range of bookmarks folders to return
138            * @param end the upper bound of the range of bookmarks folders to return (not inclusive)
139            * @param orderByComparator the comparator to order the results by
140            * @return the ordered range of matching bookmarks folders
141            * @throws SystemException if a system exception occurred
142            */
143            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByUuid(
144                    java.lang.String uuid, int start, int end,
145                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146                    throws com.liferay.portal.kernel.exception.SystemException;
147    
148            /**
149            * Finds the first bookmarks folder in the ordered set where uuid = &#63;.
150            *
151            * <p>
152            * 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.
153            * </p>
154            *
155            * @param uuid the uuid to search with
156            * @param orderByComparator the comparator to order the set by
157            * @return the first matching bookmarks folder
158            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByUuid_First(
162                    java.lang.String uuid,
163                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164                    throws com.liferay.portal.kernel.exception.SystemException,
165                            com.liferay.portlet.bookmarks.NoSuchFolderException;
166    
167            /**
168            * Finds the last bookmarks folder in the ordered set where uuid = &#63;.
169            *
170            * <p>
171            * 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.
172            * </p>
173            *
174            * @param uuid the uuid to search with
175            * @param orderByComparator the comparator to order the set by
176            * @return the last matching bookmarks folder
177            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
178            * @throws SystemException if a system exception occurred
179            */
180            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByUuid_Last(
181                    java.lang.String uuid,
182                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183                    throws com.liferay.portal.kernel.exception.SystemException,
184                            com.liferay.portlet.bookmarks.NoSuchFolderException;
185    
186            /**
187            * Finds the bookmarks folders before and after the current bookmarks folder in the ordered set where uuid = &#63;.
188            *
189            * <p>
190            * 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.
191            * </p>
192            *
193            * @param folderId the primary key of the current bookmarks folder
194            * @param uuid the uuid to search with
195            * @param orderByComparator the comparator to order the set by
196            * @return the previous, current, and next bookmarks folder
197            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a bookmarks folder with the primary key could not be found
198            * @throws SystemException if a system exception occurred
199            */
200            public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByUuid_PrevAndNext(
201                    long folderId, java.lang.String uuid,
202                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203                    throws com.liferay.portal.kernel.exception.SystemException,
204                            com.liferay.portlet.bookmarks.NoSuchFolderException;
205    
206            /**
207            * Finds the bookmarks folder where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.bookmarks.NoSuchFolderException} if it could not be found.
208            *
209            * @param uuid the uuid to search with
210            * @param groupId the group id to search with
211            * @return the matching bookmarks folder
212            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
213            * @throws SystemException if a system exception occurred
214            */
215            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByUUID_G(
216                    java.lang.String uuid, long groupId)
217                    throws com.liferay.portal.kernel.exception.SystemException,
218                            com.liferay.portlet.bookmarks.NoSuchFolderException;
219    
220            /**
221            * Finds the bookmarks folder where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
222            *
223            * @param uuid the uuid to search with
224            * @param groupId the group id to search with
225            * @return the matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
226            * @throws SystemException if a system exception occurred
227            */
228            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByUUID_G(
229                    java.lang.String uuid, long groupId)
230                    throws com.liferay.portal.kernel.exception.SystemException;
231    
232            /**
233            * Finds the bookmarks folder where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
234            *
235            * @param uuid the uuid to search with
236            * @param groupId the group id to search with
237            * @return the matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
238            * @throws SystemException if a system exception occurred
239            */
240            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByUUID_G(
241                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
242                    throws com.liferay.portal.kernel.exception.SystemException;
243    
244            /**
245            * Finds all the bookmarks folders where groupId = &#63;.
246            *
247            * @param groupId the group id to search with
248            * @return the matching bookmarks folders
249            * @throws SystemException if a system exception occurred
250            */
251            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByGroupId(
252                    long groupId)
253                    throws com.liferay.portal.kernel.exception.SystemException;
254    
255            /**
256            * Finds a range of all the bookmarks folders where groupId = &#63;.
257            *
258            * <p>
259            * 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.
260            * </p>
261            *
262            * @param groupId the group id to search with
263            * @param start the lower bound of the range of bookmarks folders to return
264            * @param end the upper bound of the range of bookmarks folders to return (not inclusive)
265            * @return the range of matching bookmarks folders
266            * @throws SystemException if a system exception occurred
267            */
268            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByGroupId(
269                    long groupId, int start, int end)
270                    throws com.liferay.portal.kernel.exception.SystemException;
271    
272            /**
273            * Finds an ordered range of all the bookmarks folders where groupId = &#63;.
274            *
275            * <p>
276            * 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.
277            * </p>
278            *
279            * @param groupId the group id to search with
280            * @param start the lower bound of the range of bookmarks folders to return
281            * @param end the upper bound of the range of bookmarks folders to return (not inclusive)
282            * @param orderByComparator the comparator to order the results by
283            * @return the ordered range of matching bookmarks folders
284            * @throws SystemException if a system exception occurred
285            */
286            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByGroupId(
287                    long groupId, int start, int end,
288                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289                    throws com.liferay.portal.kernel.exception.SystemException;
290    
291            /**
292            * Finds the first bookmarks folder in the ordered set where groupId = &#63;.
293            *
294            * <p>
295            * 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.
296            * </p>
297            *
298            * @param groupId the group id to search with
299            * @param orderByComparator the comparator to order the set by
300            * @return the first matching bookmarks folder
301            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
302            * @throws SystemException if a system exception occurred
303            */
304            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByGroupId_First(
305                    long groupId,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException,
308                            com.liferay.portlet.bookmarks.NoSuchFolderException;
309    
310            /**
311            * Finds the last bookmarks folder in the ordered set where groupId = &#63;.
312            *
313            * <p>
314            * 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.
315            * </p>
316            *
317            * @param groupId the group id to search with
318            * @param orderByComparator the comparator to order the set by
319            * @return the last matching bookmarks folder
320            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
321            * @throws SystemException if a system exception occurred
322            */
323            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByGroupId_Last(
324                    long groupId,
325                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
326                    throws com.liferay.portal.kernel.exception.SystemException,
327                            com.liferay.portlet.bookmarks.NoSuchFolderException;
328    
329            /**
330            * Finds the bookmarks folders before and after the current bookmarks folder in the ordered set where groupId = &#63;.
331            *
332            * <p>
333            * 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.
334            * </p>
335            *
336            * @param folderId the primary key of the current bookmarks folder
337            * @param groupId the group id to search with
338            * @param orderByComparator the comparator to order the set by
339            * @return the previous, current, and next bookmarks folder
340            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a bookmarks folder with the primary key could not be found
341            * @throws SystemException if a system exception occurred
342            */
343            public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByGroupId_PrevAndNext(
344                    long folderId, long groupId,
345                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
346                    throws com.liferay.portal.kernel.exception.SystemException,
347                            com.liferay.portlet.bookmarks.NoSuchFolderException;
348    
349            /**
350            * Filters by the user's permissions and finds all the bookmarks folders where groupId = &#63;.
351            *
352            * @param groupId the group id to search with
353            * @return the matching bookmarks folders that the user has permission to view
354            * @throws SystemException if a system exception occurred
355            */
356            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByGroupId(
357                    long groupId)
358                    throws com.liferay.portal.kernel.exception.SystemException;
359    
360            /**
361            * Filters by the user's permissions and finds a range of all the bookmarks folders where groupId = &#63;.
362            *
363            * <p>
364            * 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.
365            * </p>
366            *
367            * @param groupId the group id to search with
368            * @param start the lower bound of the range of bookmarks folders to return
369            * @param end the upper bound of the range of bookmarks folders to return (not inclusive)
370            * @return the range of matching bookmarks folders that the user has permission to view
371            * @throws SystemException if a system exception occurred
372            */
373            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByGroupId(
374                    long groupId, int start, int end)
375                    throws com.liferay.portal.kernel.exception.SystemException;
376    
377            /**
378            * Filters by the user's permissions and finds an ordered range of all the bookmarks folders where groupId = &#63;.
379            *
380            * <p>
381            * 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.
382            * </p>
383            *
384            * @param groupId the group id to search with
385            * @param start the lower bound of the range of bookmarks folders to return
386            * @param end the upper bound of the range of bookmarks folders to return (not inclusive)
387            * @param orderByComparator the comparator to order the results by
388            * @return the ordered range of matching bookmarks folders that the user has permission to view
389            * @throws SystemException if a system exception occurred
390            */
391            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByGroupId(
392                    long groupId, int start, int end,
393                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
394                    throws com.liferay.portal.kernel.exception.SystemException;
395    
396            /**
397            * Finds all the bookmarks folders where companyId = &#63;.
398            *
399            * @param companyId the company id to search with
400            * @return the matching bookmarks folders
401            * @throws SystemException if a system exception occurred
402            */
403            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
404                    long companyId)
405                    throws com.liferay.portal.kernel.exception.SystemException;
406    
407            /**
408            * Finds a range of all the bookmarks folders where companyId = &#63;.
409            *
410            * <p>
411            * 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.
412            * </p>
413            *
414            * @param companyId the company id to search with
415            * @param start the lower bound of the range of bookmarks folders to return
416            * @param end the upper bound of the range of bookmarks folders to return (not inclusive)
417            * @return the range of matching bookmarks folders
418            * @throws SystemException if a system exception occurred
419            */
420            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
421                    long companyId, int start, int end)
422                    throws com.liferay.portal.kernel.exception.SystemException;
423    
424            /**
425            * Finds an ordered range of all the bookmarks folders where companyId = &#63;.
426            *
427            * <p>
428            * 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.
429            * </p>
430            *
431            * @param companyId the company id to search with
432            * @param start the lower bound of the range of bookmarks folders to return
433            * @param end the upper bound of the range of bookmarks folders to return (not inclusive)
434            * @param orderByComparator the comparator to order the results by
435            * @return the ordered range of matching bookmarks folders
436            * @throws SystemException if a system exception occurred
437            */
438            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
439                    long companyId, int start, int end,
440                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
441                    throws com.liferay.portal.kernel.exception.SystemException;
442    
443            /**
444            * Finds the first bookmarks folder in the ordered set where companyId = &#63;.
445            *
446            * <p>
447            * 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.
448            * </p>
449            *
450            * @param companyId the company id to search with
451            * @param orderByComparator the comparator to order the set by
452            * @return the first matching bookmarks folder
453            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
454            * @throws SystemException if a system exception occurred
455            */
456            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByCompanyId_First(
457                    long companyId,
458                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
459                    throws com.liferay.portal.kernel.exception.SystemException,
460                            com.liferay.portlet.bookmarks.NoSuchFolderException;
461    
462            /**
463            * Finds the last bookmarks folder in the ordered set where companyId = &#63;.
464            *
465            * <p>
466            * 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.
467            * </p>
468            *
469            * @param companyId the company id to search with
470            * @param orderByComparator the comparator to order the set by
471            * @return the last matching bookmarks folder
472            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
473            * @throws SystemException if a system exception occurred
474            */
475            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByCompanyId_Last(
476                    long companyId,
477                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
478                    throws com.liferay.portal.kernel.exception.SystemException,
479                            com.liferay.portlet.bookmarks.NoSuchFolderException;
480    
481            /**
482            * Finds the bookmarks folders before and after the current bookmarks folder in the ordered set where companyId = &#63;.
483            *
484            * <p>
485            * 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.
486            * </p>
487            *
488            * @param folderId the primary key of the current bookmarks folder
489            * @param companyId the company id to search with
490            * @param orderByComparator the comparator to order the set by
491            * @return the previous, current, and next bookmarks folder
492            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a bookmarks folder with the primary key could not be found
493            * @throws SystemException if a system exception occurred
494            */
495            public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByCompanyId_PrevAndNext(
496                    long folderId, long companyId,
497                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
498                    throws com.liferay.portal.kernel.exception.SystemException,
499                            com.liferay.portlet.bookmarks.NoSuchFolderException;
500    
501            /**
502            * Finds all the bookmarks folders where groupId = &#63; and parentFolderId = &#63;.
503            *
504            * @param groupId the group id to search with
505            * @param parentFolderId the parent folder id to search with
506            * @return the matching bookmarks folders
507            * @throws SystemException if a system exception occurred
508            */
509            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
510                    long groupId, long parentFolderId)
511                    throws com.liferay.portal.kernel.exception.SystemException;
512    
513            /**
514            * Finds a range of all the bookmarks folders where groupId = &#63; and parentFolderId = &#63;.
515            *
516            * <p>
517            * 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.
518            * </p>
519            *
520            * @param groupId the group id to search with
521            * @param parentFolderId the parent folder id to search with
522            * @param start the lower bound of the range of bookmarks folders to return
523            * @param end the upper bound of the range of bookmarks folders to return (not inclusive)
524            * @return the range of matching bookmarks folders
525            * @throws SystemException if a system exception occurred
526            */
527            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
528                    long groupId, long parentFolderId, int start, int end)
529                    throws com.liferay.portal.kernel.exception.SystemException;
530    
531            /**
532            * Finds an ordered range of all the bookmarks folders where groupId = &#63; and parentFolderId = &#63;.
533            *
534            * <p>
535            * 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.
536            * </p>
537            *
538            * @param groupId the group id to search with
539            * @param parentFolderId the parent folder id to search with
540            * @param start the lower bound of the range of bookmarks folders to return
541            * @param end the upper bound of the range of bookmarks folders to return (not inclusive)
542            * @param orderByComparator the comparator to order the results by
543            * @return the ordered range of matching bookmarks folders
544            * @throws SystemException if a system exception occurred
545            */
546            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
547                    long groupId, long parentFolderId, int start, int end,
548                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
549                    throws com.liferay.portal.kernel.exception.SystemException;
550    
551            /**
552            * Finds the first bookmarks folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
553            *
554            * <p>
555            * 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.
556            * </p>
557            *
558            * @param groupId the group id to search with
559            * @param parentFolderId the parent folder id to search with
560            * @param orderByComparator the comparator to order the set by
561            * @return the first matching bookmarks folder
562            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
563            * @throws SystemException if a system exception occurred
564            */
565            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_First(
566                    long groupId, long parentFolderId,
567                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
568                    throws com.liferay.portal.kernel.exception.SystemException,
569                            com.liferay.portlet.bookmarks.NoSuchFolderException;
570    
571            /**
572            * Finds the last bookmarks folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
573            *
574            * <p>
575            * 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.
576            * </p>
577            *
578            * @param groupId the group id to search with
579            * @param parentFolderId the parent folder id to search with
580            * @param orderByComparator the comparator to order the set by
581            * @return the last matching bookmarks folder
582            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
583            * @throws SystemException if a system exception occurred
584            */
585            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_Last(
586                    long groupId, long parentFolderId,
587                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
588                    throws com.liferay.portal.kernel.exception.SystemException,
589                            com.liferay.portlet.bookmarks.NoSuchFolderException;
590    
591            /**
592            * Finds the bookmarks folders before and after the current bookmarks folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
593            *
594            * <p>
595            * 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.
596            * </p>
597            *
598            * @param folderId the primary key of the current bookmarks folder
599            * @param groupId the group id to search with
600            * @param parentFolderId the parent folder id to search with
601            * @param orderByComparator the comparator to order the set by
602            * @return the previous, current, and next bookmarks folder
603            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a bookmarks folder with the primary key could not be found
604            * @throws SystemException if a system exception occurred
605            */
606            public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByG_P_PrevAndNext(
607                    long folderId, long groupId, long parentFolderId,
608                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
609                    throws com.liferay.portal.kernel.exception.SystemException,
610                            com.liferay.portlet.bookmarks.NoSuchFolderException;
611    
612            /**
613            * Filters by the user's permissions and finds all the bookmarks folders where groupId = &#63; and parentFolderId = &#63;.
614            *
615            * @param groupId the group id to search with
616            * @param parentFolderId the parent folder id to search with
617            * @return the matching bookmarks folders that the user has permission to view
618            * @throws SystemException if a system exception occurred
619            */
620            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByG_P(
621                    long groupId, long parentFolderId)
622                    throws com.liferay.portal.kernel.exception.SystemException;
623    
624            /**
625            * Filters by the user's permissions and finds a range of all the bookmarks folders where groupId = &#63; and parentFolderId = &#63;.
626            *
627            * <p>
628            * 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.
629            * </p>
630            *
631            * @param groupId the group id to search with
632            * @param parentFolderId the parent folder id to search with
633            * @param start the lower bound of the range of bookmarks folders to return
634            * @param end the upper bound of the range of bookmarks folders to return (not inclusive)
635            * @return the range of matching bookmarks folders that the user has permission to view
636            * @throws SystemException if a system exception occurred
637            */
638            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByG_P(
639                    long groupId, long parentFolderId, int start, int end)
640                    throws com.liferay.portal.kernel.exception.SystemException;
641    
642            /**
643            * Filters by the user's permissions and finds an ordered range of all the bookmarks folders where groupId = &#63; and parentFolderId = &#63;.
644            *
645            * <p>
646            * 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.
647            * </p>
648            *
649            * @param groupId the group id to search with
650            * @param parentFolderId the parent folder id to search with
651            * @param start the lower bound of the range of bookmarks folders to return
652            * @param end the upper bound of the range of bookmarks folders to return (not inclusive)
653            * @param orderByComparator the comparator to order the results by
654            * @return the ordered range of matching bookmarks folders that the user has permission to view
655            * @throws SystemException if a system exception occurred
656            */
657            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByG_P(
658                    long groupId, long parentFolderId, int start, int end,
659                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
660                    throws com.liferay.portal.kernel.exception.SystemException;
661    
662            /**
663            * Finds all the bookmarks folders.
664            *
665            * @return the bookmarks folders
666            * @throws SystemException if a system exception occurred
667            */
668            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll()
669                    throws com.liferay.portal.kernel.exception.SystemException;
670    
671            /**
672            * Finds a range of all the bookmarks folders.
673            *
674            * <p>
675            * 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.
676            * </p>
677            *
678            * @param start the lower bound of the range of bookmarks folders to return
679            * @param end the upper bound of the range of bookmarks folders to return (not inclusive)
680            * @return the range of bookmarks folders
681            * @throws SystemException if a system exception occurred
682            */
683            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll(
684                    int start, int end)
685                    throws com.liferay.portal.kernel.exception.SystemException;
686    
687            /**
688            * Finds an ordered range of all the bookmarks folders.
689            *
690            * <p>
691            * 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.
692            * </p>
693            *
694            * @param start the lower bound of the range of bookmarks folders to return
695            * @param end the upper bound of the range of bookmarks folders to return (not inclusive)
696            * @param orderByComparator the comparator to order the results by
697            * @return the ordered range of bookmarks folders
698            * @throws SystemException if a system exception occurred
699            */
700            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll(
701                    int start, int end,
702                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
703                    throws com.liferay.portal.kernel.exception.SystemException;
704    
705            /**
706            * Removes all the bookmarks folders where uuid = &#63; from the database.
707            *
708            * @param uuid the uuid to search with
709            * @throws SystemException if a system exception occurred
710            */
711            public void removeByUuid(java.lang.String uuid)
712                    throws com.liferay.portal.kernel.exception.SystemException;
713    
714            /**
715            * Removes the bookmarks folder where uuid = &#63; and groupId = &#63; from the database.
716            *
717            * @param uuid the uuid to search with
718            * @param groupId the group id to search with
719            * @throws SystemException if a system exception occurred
720            */
721            public void removeByUUID_G(java.lang.String uuid, long groupId)
722                    throws com.liferay.portal.kernel.exception.SystemException,
723                            com.liferay.portlet.bookmarks.NoSuchFolderException;
724    
725            /**
726            * Removes all the bookmarks folders where groupId = &#63; from the database.
727            *
728            * @param groupId the group id to search with
729            * @throws SystemException if a system exception occurred
730            */
731            public void removeByGroupId(long groupId)
732                    throws com.liferay.portal.kernel.exception.SystemException;
733    
734            /**
735            * Removes all the bookmarks folders where companyId = &#63; from the database.
736            *
737            * @param companyId the company id to search with
738            * @throws SystemException if a system exception occurred
739            */
740            public void removeByCompanyId(long companyId)
741                    throws com.liferay.portal.kernel.exception.SystemException;
742    
743            /**
744            * Removes all the bookmarks folders where groupId = &#63; and parentFolderId = &#63; from the database.
745            *
746            * @param groupId the group id to search with
747            * @param parentFolderId the parent folder id to search with
748            * @throws SystemException if a system exception occurred
749            */
750            public void removeByG_P(long groupId, long parentFolderId)
751                    throws com.liferay.portal.kernel.exception.SystemException;
752    
753            /**
754            * Removes all the bookmarks folders from the database.
755            *
756            * @throws SystemException if a system exception occurred
757            */
758            public void removeAll()
759                    throws com.liferay.portal.kernel.exception.SystemException;
760    
761            /**
762            * Counts all the bookmarks folders where uuid = &#63;.
763            *
764            * @param uuid the uuid to search with
765            * @return the number of matching bookmarks folders
766            * @throws SystemException if a system exception occurred
767            */
768            public int countByUuid(java.lang.String uuid)
769                    throws com.liferay.portal.kernel.exception.SystemException;
770    
771            /**
772            * Counts all the bookmarks folders where uuid = &#63; and groupId = &#63;.
773            *
774            * @param uuid the uuid to search with
775            * @param groupId the group id to search with
776            * @return the number of matching bookmarks folders
777            * @throws SystemException if a system exception occurred
778            */
779            public int countByUUID_G(java.lang.String uuid, long groupId)
780                    throws com.liferay.portal.kernel.exception.SystemException;
781    
782            /**
783            * Counts all the bookmarks folders where groupId = &#63;.
784            *
785            * @param groupId the group id to search with
786            * @return the number of matching bookmarks folders
787            * @throws SystemException if a system exception occurred
788            */
789            public int countByGroupId(long groupId)
790                    throws com.liferay.portal.kernel.exception.SystemException;
791    
792            /**
793            * Filters by the user's permissions and counts all the bookmarks folders where groupId = &#63;.
794            *
795            * @param groupId the group id to search with
796            * @return the number of matching bookmarks folders that the user has permission to view
797            * @throws SystemException if a system exception occurred
798            */
799            public int filterCountByGroupId(long groupId)
800                    throws com.liferay.portal.kernel.exception.SystemException;
801    
802            /**
803            * Counts all the bookmarks folders where companyId = &#63;.
804            *
805            * @param companyId the company id to search with
806            * @return the number of matching bookmarks folders
807            * @throws SystemException if a system exception occurred
808            */
809            public int countByCompanyId(long companyId)
810                    throws com.liferay.portal.kernel.exception.SystemException;
811    
812            /**
813            * Counts all the bookmarks folders where groupId = &#63; and parentFolderId = &#63;.
814            *
815            * @param groupId the group id to search with
816            * @param parentFolderId the parent folder id to search with
817            * @return the number of matching bookmarks folders
818            * @throws SystemException if a system exception occurred
819            */
820            public int countByG_P(long groupId, long parentFolderId)
821                    throws com.liferay.portal.kernel.exception.SystemException;
822    
823            /**
824            * Filters by the user's permissions and counts all the bookmarks folders where groupId = &#63; and parentFolderId = &#63;.
825            *
826            * @param groupId the group id to search with
827            * @param parentFolderId the parent folder id to search with
828            * @return the number of matching bookmarks folders that the user has permission to view
829            * @throws SystemException if a system exception occurred
830            */
831            public int filterCountByG_P(long groupId, long parentFolderId)
832                    throws com.liferay.portal.kernel.exception.SystemException;
833    
834            /**
835            * Counts all the bookmarks folders.
836            *
837            * @return the number of bookmarks folders
838            * @throws SystemException if a system exception occurred
839            */
840            public int countAll()
841                    throws com.liferay.portal.kernel.exception.SystemException;
842    }