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