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