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