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            * Returns all the bookmarks folders where resourceBlockId = &#63;.
042            *
043            * @param resourceBlockId the resource block ID
044            * @return the matching bookmarks folders
045            * @throws SystemException if a system exception occurred
046            */
047            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByResourceBlockId(
048                    long resourceBlockId)
049                    throws com.liferay.portal.kernel.exception.SystemException;
050    
051            /**
052            * Returns a range of all the bookmarks folders where resourceBlockId = &#63;.
053            *
054            * <p>
055            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
056            * </p>
057            *
058            * @param resourceBlockId the resource block ID
059            * @param start the lower bound of the range of bookmarks folders
060            * @param end the upper bound of the range of bookmarks folders (not inclusive)
061            * @return the range of matching bookmarks folders
062            * @throws SystemException if a system exception occurred
063            */
064            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByResourceBlockId(
065                    long resourceBlockId, int start, int end)
066                    throws com.liferay.portal.kernel.exception.SystemException;
067    
068            /**
069            * Returns an ordered range of all the bookmarks folders where resourceBlockId = &#63;.
070            *
071            * <p>
072            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
073            * </p>
074            *
075            * @param resourceBlockId the resource block ID
076            * @param start the lower bound of the range of bookmarks folders
077            * @param end the upper bound of the range of bookmarks folders (not inclusive)
078            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
079            * @return the ordered range of matching bookmarks folders
080            * @throws SystemException if a system exception occurred
081            */
082            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByResourceBlockId(
083                    long resourceBlockId, int start, int end,
084                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
085                    throws com.liferay.portal.kernel.exception.SystemException;
086    
087            /**
088            * Returns the first bookmarks folder in the ordered set where resourceBlockId = &#63;.
089            *
090            * @param resourceBlockId the resource block ID
091            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
092            * @return the first matching bookmarks folder
093            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
094            * @throws SystemException if a system exception occurred
095            */
096            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByResourceBlockId_First(
097                    long resourceBlockId,
098                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
099                    throws com.liferay.portal.kernel.exception.SystemException,
100                            com.liferay.portlet.bookmarks.NoSuchFolderException;
101    
102            /**
103            * Returns the first bookmarks folder in the ordered set where resourceBlockId = &#63;.
104            *
105            * @param resourceBlockId the resource block ID
106            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
107            * @return the first matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
108            * @throws SystemException if a system exception occurred
109            */
110            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByResourceBlockId_First(
111                    long resourceBlockId,
112                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            /**
116            * Returns the last bookmarks folder in the ordered set where resourceBlockId = &#63;.
117            *
118            * @param resourceBlockId the resource block ID
119            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
120            * @return the last matching bookmarks folder
121            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
122            * @throws SystemException if a system exception occurred
123            */
124            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByResourceBlockId_Last(
125                    long resourceBlockId,
126                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
127                    throws com.liferay.portal.kernel.exception.SystemException,
128                            com.liferay.portlet.bookmarks.NoSuchFolderException;
129    
130            /**
131            * Returns the last bookmarks folder in the ordered set where resourceBlockId = &#63;.
132            *
133            * @param resourceBlockId the resource block ID
134            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
135            * @return the last matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
136            * @throws SystemException if a system exception occurred
137            */
138            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByResourceBlockId_Last(
139                    long resourceBlockId,
140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            /**
144            * Returns the bookmarks folders before and after the current bookmarks folder in the ordered set where resourceBlockId = &#63;.
145            *
146            * @param folderId the primary key of the current bookmarks folder
147            * @param resourceBlockId the resource block ID
148            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
149            * @return the previous, current, and next bookmarks folder
150            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a bookmarks folder with the primary key could not be found
151            * @throws SystemException if a system exception occurred
152            */
153            public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByResourceBlockId_PrevAndNext(
154                    long folderId, long resourceBlockId,
155                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156                    throws com.liferay.portal.kernel.exception.SystemException,
157                            com.liferay.portlet.bookmarks.NoSuchFolderException;
158    
159            /**
160            * Removes all the bookmarks folders where resourceBlockId = &#63; from the database.
161            *
162            * @param resourceBlockId the resource block ID
163            * @throws SystemException if a system exception occurred
164            */
165            public void removeByResourceBlockId(long resourceBlockId)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            /**
169            * Returns the number of bookmarks folders where resourceBlockId = &#63;.
170            *
171            * @param resourceBlockId the resource block ID
172            * @return the number of matching bookmarks folders
173            * @throws SystemException if a system exception occurred
174            */
175            public int countByResourceBlockId(long resourceBlockId)
176                    throws com.liferay.portal.kernel.exception.SystemException;
177    
178            /**
179            * Returns all the bookmarks folders where uuid = &#63;.
180            *
181            * @param uuid the uuid
182            * @return the matching bookmarks folders
183            * @throws SystemException if a system exception occurred
184            */
185            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByUuid(
186                    java.lang.String uuid)
187                    throws com.liferay.portal.kernel.exception.SystemException;
188    
189            /**
190            * Returns a range of all the bookmarks folders where uuid = &#63;.
191            *
192            * <p>
193            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
194            * </p>
195            *
196            * @param uuid the uuid
197            * @param start the lower bound of the range of bookmarks folders
198            * @param end the upper bound of the range of bookmarks folders (not inclusive)
199            * @return the range of matching bookmarks folders
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByUuid(
203                    java.lang.String uuid, int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            /**
207            * Returns an ordered range of all the bookmarks folders where uuid = &#63;.
208            *
209            * <p>
210            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
211            * </p>
212            *
213            * @param uuid the uuid
214            * @param start the lower bound of the range of bookmarks folders
215            * @param end the upper bound of the range of bookmarks folders (not inclusive)
216            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
217            * @return the ordered range of matching bookmarks folders
218            * @throws SystemException if a system exception occurred
219            */
220            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByUuid(
221                    java.lang.String uuid, int start, int end,
222                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223                    throws com.liferay.portal.kernel.exception.SystemException;
224    
225            /**
226            * Returns the first bookmarks folder in the ordered set where uuid = &#63;.
227            *
228            * @param uuid the uuid
229            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
230            * @return the first matching bookmarks folder
231            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByUuid_First(
235                    java.lang.String uuid,
236                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
237                    throws com.liferay.portal.kernel.exception.SystemException,
238                            com.liferay.portlet.bookmarks.NoSuchFolderException;
239    
240            /**
241            * Returns the first bookmarks folder in the ordered set where uuid = &#63;.
242            *
243            * @param uuid the uuid
244            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
245            * @return the first matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
246            * @throws SystemException if a system exception occurred
247            */
248            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByUuid_First(
249                    java.lang.String uuid,
250                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
251                    throws com.liferay.portal.kernel.exception.SystemException;
252    
253            /**
254            * Returns the last bookmarks folder in the ordered set where uuid = &#63;.
255            *
256            * @param uuid the uuid
257            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
258            * @return the last matching bookmarks folder
259            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
260            * @throws SystemException if a system exception occurred
261            */
262            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByUuid_Last(
263                    java.lang.String uuid,
264                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
265                    throws com.liferay.portal.kernel.exception.SystemException,
266                            com.liferay.portlet.bookmarks.NoSuchFolderException;
267    
268            /**
269            * Returns the last bookmarks folder in the ordered set where uuid = &#63;.
270            *
271            * @param uuid the uuid
272            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
273            * @return the last matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
274            * @throws SystemException if a system exception occurred
275            */
276            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByUuid_Last(
277                    java.lang.String uuid,
278                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
279                    throws com.liferay.portal.kernel.exception.SystemException;
280    
281            /**
282            * Returns the bookmarks folders before and after the current bookmarks folder in the ordered set where uuid = &#63;.
283            *
284            * @param folderId the primary key of the current bookmarks folder
285            * @param uuid the uuid
286            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
287            * @return the previous, current, and next bookmarks folder
288            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a bookmarks folder with the primary key could not be found
289            * @throws SystemException if a system exception occurred
290            */
291            public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByUuid_PrevAndNext(
292                    long folderId, java.lang.String uuid,
293                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
294                    throws com.liferay.portal.kernel.exception.SystemException,
295                            com.liferay.portlet.bookmarks.NoSuchFolderException;
296    
297            /**
298            * Removes all the bookmarks folders where uuid = &#63; from the database.
299            *
300            * @param uuid the uuid
301            * @throws SystemException if a system exception occurred
302            */
303            public void removeByUuid(java.lang.String uuid)
304                    throws com.liferay.portal.kernel.exception.SystemException;
305    
306            /**
307            * Returns the number of bookmarks folders where uuid = &#63;.
308            *
309            * @param uuid the uuid
310            * @return the number of matching bookmarks folders
311            * @throws SystemException if a system exception occurred
312            */
313            public int countByUuid(java.lang.String uuid)
314                    throws com.liferay.portal.kernel.exception.SystemException;
315    
316            /**
317            * 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.
318            *
319            * @param uuid the uuid
320            * @param groupId the group ID
321            * @return the matching bookmarks folder
322            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
323            * @throws SystemException if a system exception occurred
324            */
325            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByUUID_G(
326                    java.lang.String uuid, long groupId)
327                    throws com.liferay.portal.kernel.exception.SystemException,
328                            com.liferay.portlet.bookmarks.NoSuchFolderException;
329    
330            /**
331            * 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.
332            *
333            * @param uuid the uuid
334            * @param groupId the group ID
335            * @return the matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
336            * @throws SystemException if a system exception occurred
337            */
338            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByUUID_G(
339                    java.lang.String uuid, long groupId)
340                    throws com.liferay.portal.kernel.exception.SystemException;
341    
342            /**
343            * 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.
344            *
345            * @param uuid the uuid
346            * @param groupId the group ID
347            * @param retrieveFromCache whether to use the finder cache
348            * @return the matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
349            * @throws SystemException if a system exception occurred
350            */
351            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByUUID_G(
352                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
353                    throws com.liferay.portal.kernel.exception.SystemException;
354    
355            /**
356            * Removes the bookmarks folder where uuid = &#63; and groupId = &#63; from the database.
357            *
358            * @param uuid the uuid
359            * @param groupId the group ID
360            * @return the bookmarks folder that was removed
361            * @throws SystemException if a system exception occurred
362            */
363            public com.liferay.portlet.bookmarks.model.BookmarksFolder removeByUUID_G(
364                    java.lang.String uuid, long groupId)
365                    throws com.liferay.portal.kernel.exception.SystemException,
366                            com.liferay.portlet.bookmarks.NoSuchFolderException;
367    
368            /**
369            * Returns the number of bookmarks folders where uuid = &#63; and groupId = &#63;.
370            *
371            * @param uuid the uuid
372            * @param groupId the group ID
373            * @return the number of matching bookmarks folders
374            * @throws SystemException if a system exception occurred
375            */
376            public int countByUUID_G(java.lang.String uuid, long groupId)
377                    throws com.liferay.portal.kernel.exception.SystemException;
378    
379            /**
380            * Returns all the bookmarks folders where uuid = &#63; and companyId = &#63;.
381            *
382            * @param uuid the uuid
383            * @param companyId the company ID
384            * @return the matching bookmarks folders
385            * @throws SystemException if a system exception occurred
386            */
387            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByUuid_C(
388                    java.lang.String uuid, long companyId)
389                    throws com.liferay.portal.kernel.exception.SystemException;
390    
391            /**
392            * Returns a range of all the bookmarks folders where uuid = &#63; and companyId = &#63;.
393            *
394            * <p>
395            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
396            * </p>
397            *
398            * @param uuid the uuid
399            * @param companyId the company ID
400            * @param start the lower bound of the range of bookmarks folders
401            * @param end the upper bound of the range of bookmarks folders (not inclusive)
402            * @return the range of matching bookmarks folders
403            * @throws SystemException if a system exception occurred
404            */
405            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByUuid_C(
406                    java.lang.String uuid, long companyId, int start, int end)
407                    throws com.liferay.portal.kernel.exception.SystemException;
408    
409            /**
410            * Returns an ordered range of all the bookmarks folders where uuid = &#63; and companyId = &#63;.
411            *
412            * <p>
413            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
414            * </p>
415            *
416            * @param uuid the uuid
417            * @param companyId the company ID
418            * @param start the lower bound of the range of bookmarks folders
419            * @param end the upper bound of the range of bookmarks folders (not inclusive)
420            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
421            * @return the ordered 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> findByUuid_C(
425                    java.lang.String uuid, long companyId, int start, int end,
426                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
427                    throws com.liferay.portal.kernel.exception.SystemException;
428    
429            /**
430            * Returns the first bookmarks folder in the ordered set where uuid = &#63; and companyId = &#63;.
431            *
432            * @param uuid the uuid
433            * @param companyId the company ID
434            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
435            * @return the first matching bookmarks folder
436            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
437            * @throws SystemException if a system exception occurred
438            */
439            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByUuid_C_First(
440                    java.lang.String uuid, long companyId,
441                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
442                    throws com.liferay.portal.kernel.exception.SystemException,
443                            com.liferay.portlet.bookmarks.NoSuchFolderException;
444    
445            /**
446            * Returns the first bookmarks folder in the ordered set where uuid = &#63; and companyId = &#63;.
447            *
448            * @param uuid the uuid
449            * @param companyId the company 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 fetchByUuid_C_First(
455                    java.lang.String uuid, long companyId,
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 uuid = &#63; and companyId = &#63;.
461            *
462            * @param uuid the uuid
463            * @param companyId the company ID
464            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
465            * @return the last matching bookmarks folder
466            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
467            * @throws SystemException if a system exception occurred
468            */
469            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByUuid_C_Last(
470                    java.lang.String uuid, long companyId,
471                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
472                    throws com.liferay.portal.kernel.exception.SystemException,
473                            com.liferay.portlet.bookmarks.NoSuchFolderException;
474    
475            /**
476            * Returns the last bookmarks folder in the ordered set where uuid = &#63; and companyId = &#63;.
477            *
478            * @param uuid the uuid
479            * @param companyId the company ID
480            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
481            * @return the last matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
482            * @throws SystemException if a system exception occurred
483            */
484            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByUuid_C_Last(
485                    java.lang.String uuid, long companyId,
486                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
487                    throws com.liferay.portal.kernel.exception.SystemException;
488    
489            /**
490            * Returns the bookmarks folders before and after the current bookmarks folder in the ordered set where uuid = &#63; and companyId = &#63;.
491            *
492            * @param folderId the primary key of the current bookmarks folder
493            * @param uuid the uuid
494            * @param companyId the company ID
495            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
496            * @return the previous, current, and next bookmarks folder
497            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a bookmarks folder with the primary key could not be found
498            * @throws SystemException if a system exception occurred
499            */
500            public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByUuid_C_PrevAndNext(
501                    long folderId, java.lang.String uuid, long companyId,
502                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
503                    throws com.liferay.portal.kernel.exception.SystemException,
504                            com.liferay.portlet.bookmarks.NoSuchFolderException;
505    
506            /**
507            * Removes all the bookmarks folders where uuid = &#63; and companyId = &#63; from the database.
508            *
509            * @param uuid the uuid
510            * @param companyId the company ID
511            * @throws SystemException if a system exception occurred
512            */
513            public void removeByUuid_C(java.lang.String uuid, long companyId)
514                    throws com.liferay.portal.kernel.exception.SystemException;
515    
516            /**
517            * Returns the number of bookmarks folders where uuid = &#63; and companyId = &#63;.
518            *
519            * @param uuid the uuid
520            * @param companyId the company ID
521            * @return the number of matching bookmarks folders
522            * @throws SystemException if a system exception occurred
523            */
524            public int countByUuid_C(java.lang.String uuid, long companyId)
525                    throws com.liferay.portal.kernel.exception.SystemException;
526    
527            /**
528            * Returns all the bookmarks folders where groupId = &#63;.
529            *
530            * @param groupId the group ID
531            * @return the matching bookmarks folders
532            * @throws SystemException if a system exception occurred
533            */
534            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByGroupId(
535                    long groupId)
536                    throws com.liferay.portal.kernel.exception.SystemException;
537    
538            /**
539            * Returns a range of all the bookmarks folders where groupId = &#63;.
540            *
541            * <p>
542            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
543            * </p>
544            *
545            * @param groupId the group ID
546            * @param start the lower bound of the range of bookmarks folders
547            * @param end the upper bound of the range of bookmarks folders (not inclusive)
548            * @return the range of matching bookmarks folders
549            * @throws SystemException if a system exception occurred
550            */
551            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByGroupId(
552                    long groupId, int start, int end)
553                    throws com.liferay.portal.kernel.exception.SystemException;
554    
555            /**
556            * Returns an ordered range of all the bookmarks folders where groupId = &#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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
560            * </p>
561            *
562            * @param groupId the group ID
563            * @param start the lower bound of the range of bookmarks folders
564            * @param end the upper bound of the range of bookmarks folders (not inclusive)
565            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
566            * @return the ordered range of matching bookmarks folders
567            * @throws SystemException if a system exception occurred
568            */
569            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByGroupId(
570                    long groupId, int start, int end,
571                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
572                    throws com.liferay.portal.kernel.exception.SystemException;
573    
574            /**
575            * Returns the first bookmarks folder in the ordered set where groupId = &#63;.
576            *
577            * @param groupId the group ID
578            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
579            * @return the first matching bookmarks folder
580            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
581            * @throws SystemException if a system exception occurred
582            */
583            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByGroupId_First(
584                    long groupId,
585                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
586                    throws com.liferay.portal.kernel.exception.SystemException,
587                            com.liferay.portlet.bookmarks.NoSuchFolderException;
588    
589            /**
590            * Returns the first bookmarks folder in the ordered set where groupId = &#63;.
591            *
592            * @param groupId the group ID
593            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
594            * @return the first matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
595            * @throws SystemException if a system exception occurred
596            */
597            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByGroupId_First(
598                    long groupId,
599                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
600                    throws com.liferay.portal.kernel.exception.SystemException;
601    
602            /**
603            * Returns the last bookmarks folder in the ordered set where groupId = &#63;.
604            *
605            * @param groupId the group ID
606            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
607            * @return the last matching bookmarks folder
608            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
609            * @throws SystemException if a system exception occurred
610            */
611            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByGroupId_Last(
612                    long groupId,
613                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
614                    throws com.liferay.portal.kernel.exception.SystemException,
615                            com.liferay.portlet.bookmarks.NoSuchFolderException;
616    
617            /**
618            * Returns the last bookmarks folder in the ordered set where groupId = &#63;.
619            *
620            * @param groupId the group ID
621            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
622            * @return the last matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
623            * @throws SystemException if a system exception occurred
624            */
625            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByGroupId_Last(
626                    long groupId,
627                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
628                    throws com.liferay.portal.kernel.exception.SystemException;
629    
630            /**
631            * Returns the bookmarks folders before and after the current bookmarks folder in the ordered set where groupId = &#63;.
632            *
633            * @param folderId the primary key of the current bookmarks folder
634            * @param groupId the group ID
635            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
636            * @return the previous, current, and next bookmarks folder
637            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a bookmarks folder with the primary key could not be found
638            * @throws SystemException if a system exception occurred
639            */
640            public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByGroupId_PrevAndNext(
641                    long folderId, long groupId,
642                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
643                    throws com.liferay.portal.kernel.exception.SystemException,
644                            com.liferay.portlet.bookmarks.NoSuchFolderException;
645    
646            /**
647            * Returns all the bookmarks folders that the user has permission to view where groupId = &#63;.
648            *
649            * @param groupId the group ID
650            * @return the matching bookmarks folders that the user has permission to view
651            * @throws SystemException if a system exception occurred
652            */
653            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByGroupId(
654                    long groupId)
655                    throws com.liferay.portal.kernel.exception.SystemException;
656    
657            /**
658            * Returns a range of all the bookmarks folders that the user has permission to view where groupId = &#63;.
659            *
660            * <p>
661            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
662            * </p>
663            *
664            * @param groupId the group ID
665            * @param start the lower bound of the range of bookmarks folders
666            * @param end the upper bound of the range of bookmarks folders (not inclusive)
667            * @return the range of matching bookmarks folders that the user has permission to view
668            * @throws SystemException if a system exception occurred
669            */
670            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByGroupId(
671                    long groupId, int start, int end)
672                    throws com.liferay.portal.kernel.exception.SystemException;
673    
674            /**
675            * Returns an ordered range of all the bookmarks folders that the user has permissions to view where groupId = &#63;.
676            *
677            * <p>
678            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
679            * </p>
680            *
681            * @param groupId the group ID
682            * @param start the lower bound of the range of bookmarks folders
683            * @param end the upper bound of the range of bookmarks folders (not inclusive)
684            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
685            * @return the ordered range of matching bookmarks folders that the user has permission to view
686            * @throws SystemException if a system exception occurred
687            */
688            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByGroupId(
689                    long groupId, int start, int end,
690                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
691                    throws com.liferay.portal.kernel.exception.SystemException;
692    
693            /**
694            * 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;.
695            *
696            * @param folderId the primary key of the current bookmarks folder
697            * @param groupId the group ID
698            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
699            * @return the previous, current, and next bookmarks folder
700            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a bookmarks folder with the primary key could not be found
701            * @throws SystemException if a system exception occurred
702            */
703            public com.liferay.portlet.bookmarks.model.BookmarksFolder[] filterFindByGroupId_PrevAndNext(
704                    long folderId, long groupId,
705                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
706                    throws com.liferay.portal.kernel.exception.SystemException,
707                            com.liferay.portlet.bookmarks.NoSuchFolderException;
708    
709            /**
710            * Removes all the bookmarks folders where groupId = &#63; from the database.
711            *
712            * @param groupId the group ID
713            * @throws SystemException if a system exception occurred
714            */
715            public void removeByGroupId(long groupId)
716                    throws com.liferay.portal.kernel.exception.SystemException;
717    
718            /**
719            * Returns the number of bookmarks folders where groupId = &#63;.
720            *
721            * @param groupId the group ID
722            * @return the number of matching bookmarks folders
723            * @throws SystemException if a system exception occurred
724            */
725            public int countByGroupId(long groupId)
726                    throws com.liferay.portal.kernel.exception.SystemException;
727    
728            /**
729            * Returns the number of bookmarks folders that the user has permission to view where groupId = &#63;.
730            *
731            * @param groupId the group ID
732            * @return the number of matching bookmarks folders that the user has permission to view
733            * @throws SystemException if a system exception occurred
734            */
735            public int filterCountByGroupId(long groupId)
736                    throws com.liferay.portal.kernel.exception.SystemException;
737    
738            /**
739            * Returns all the bookmarks folders where companyId = &#63;.
740            *
741            * @param companyId the company ID
742            * @return the matching bookmarks folders
743            * @throws SystemException if a system exception occurred
744            */
745            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
746                    long companyId)
747                    throws com.liferay.portal.kernel.exception.SystemException;
748    
749            /**
750            * Returns a range of all the bookmarks folders where companyId = &#63;.
751            *
752            * <p>
753            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
754            * </p>
755            *
756            * @param companyId the company ID
757            * @param start the lower bound of the range of bookmarks folders
758            * @param end the upper bound of the range of bookmarks folders (not inclusive)
759            * @return the range of matching bookmarks folders
760            * @throws SystemException if a system exception occurred
761            */
762            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
763                    long companyId, int start, int end)
764                    throws com.liferay.portal.kernel.exception.SystemException;
765    
766            /**
767            * Returns an ordered range of all the bookmarks folders where companyId = &#63;.
768            *
769            * <p>
770            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
771            * </p>
772            *
773            * @param companyId the company ID
774            * @param start the lower bound of the range of bookmarks folders
775            * @param end the upper bound of the range of bookmarks folders (not inclusive)
776            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
777            * @return the ordered range of matching bookmarks folders
778            * @throws SystemException if a system exception occurred
779            */
780            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
781                    long companyId, int start, int end,
782                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
783                    throws com.liferay.portal.kernel.exception.SystemException;
784    
785            /**
786            * Returns the first bookmarks folder in the ordered set where companyId = &#63;.
787            *
788            * @param companyId the company ID
789            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
790            * @return the first matching bookmarks folder
791            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
792            * @throws SystemException if a system exception occurred
793            */
794            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByCompanyId_First(
795                    long companyId,
796                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
797                    throws com.liferay.portal.kernel.exception.SystemException,
798                            com.liferay.portlet.bookmarks.NoSuchFolderException;
799    
800            /**
801            * Returns the first bookmarks folder in the ordered set where companyId = &#63;.
802            *
803            * @param companyId the company ID
804            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
805            * @return the first matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
806            * @throws SystemException if a system exception occurred
807            */
808            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByCompanyId_First(
809                    long companyId,
810                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
811                    throws com.liferay.portal.kernel.exception.SystemException;
812    
813            /**
814            * Returns the last bookmarks folder in the ordered set where companyId = &#63;.
815            *
816            * @param companyId the company ID
817            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
818            * @return the last matching bookmarks folder
819            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
820            * @throws SystemException if a system exception occurred
821            */
822            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByCompanyId_Last(
823                    long companyId,
824                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
825                    throws com.liferay.portal.kernel.exception.SystemException,
826                            com.liferay.portlet.bookmarks.NoSuchFolderException;
827    
828            /**
829            * Returns the last bookmarks folder in the ordered set where companyId = &#63;.
830            *
831            * @param companyId the company ID
832            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
833            * @return the last matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
834            * @throws SystemException if a system exception occurred
835            */
836            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByCompanyId_Last(
837                    long companyId,
838                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
839                    throws com.liferay.portal.kernel.exception.SystemException;
840    
841            /**
842            * Returns the bookmarks folders before and after the current bookmarks folder in the ordered set where companyId = &#63;.
843            *
844            * @param folderId the primary key of the current bookmarks folder
845            * @param companyId the company ID
846            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
847            * @return the previous, current, and next bookmarks folder
848            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a bookmarks folder with the primary key could not be found
849            * @throws SystemException if a system exception occurred
850            */
851            public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByCompanyId_PrevAndNext(
852                    long folderId, long companyId,
853                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
854                    throws com.liferay.portal.kernel.exception.SystemException,
855                            com.liferay.portlet.bookmarks.NoSuchFolderException;
856    
857            /**
858            * Removes all the bookmarks folders where companyId = &#63; from the database.
859            *
860            * @param companyId the company ID
861            * @throws SystemException if a system exception occurred
862            */
863            public void removeByCompanyId(long companyId)
864                    throws com.liferay.portal.kernel.exception.SystemException;
865    
866            /**
867            * Returns the number of bookmarks folders where companyId = &#63;.
868            *
869            * @param companyId the company ID
870            * @return the number of matching bookmarks folders
871            * @throws SystemException if a system exception occurred
872            */
873            public int countByCompanyId(long companyId)
874                    throws com.liferay.portal.kernel.exception.SystemException;
875    
876            /**
877            * Returns all the bookmarks folders where groupId = &#63; and parentFolderId = &#63;.
878            *
879            * @param groupId the group ID
880            * @param parentFolderId the parent folder ID
881            * @return the matching bookmarks folders
882            * @throws SystemException if a system exception occurred
883            */
884            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
885                    long groupId, long parentFolderId)
886                    throws com.liferay.portal.kernel.exception.SystemException;
887    
888            /**
889            * Returns a range of all the bookmarks folders where groupId = &#63; and parentFolderId = &#63;.
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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
893            * </p>
894            *
895            * @param groupId the group ID
896            * @param parentFolderId the parent folder ID
897            * @param start the lower bound of the range of bookmarks folders
898            * @param end the upper bound of the range of bookmarks folders (not inclusive)
899            * @return the range of matching bookmarks folders
900            * @throws SystemException if a system exception occurred
901            */
902            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
903                    long groupId, long parentFolderId, int start, int end)
904                    throws com.liferay.portal.kernel.exception.SystemException;
905    
906            /**
907            * Returns an ordered range of all the bookmarks folders where groupId = &#63; and parentFolderId = &#63;.
908            *
909            * <p>
910            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
911            * </p>
912            *
913            * @param groupId the group ID
914            * @param parentFolderId the parent folder ID
915            * @param start the lower bound of the range of bookmarks folders
916            * @param end the upper bound of the range of bookmarks folders (not inclusive)
917            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
918            * @return the ordered range of matching bookmarks folders
919            * @throws SystemException if a system exception occurred
920            */
921            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
922                    long groupId, long parentFolderId, int start, int end,
923                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
924                    throws com.liferay.portal.kernel.exception.SystemException;
925    
926            /**
927            * Returns the first bookmarks folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
928            *
929            * @param groupId the group ID
930            * @param parentFolderId the parent folder ID
931            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
932            * @return the first matching bookmarks folder
933            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
934            * @throws SystemException if a system exception occurred
935            */
936            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_First(
937                    long groupId, long parentFolderId,
938                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
939                    throws com.liferay.portal.kernel.exception.SystemException,
940                            com.liferay.portlet.bookmarks.NoSuchFolderException;
941    
942            /**
943            * Returns the first bookmarks folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
944            *
945            * @param groupId the group ID
946            * @param parentFolderId the parent folder ID
947            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
948            * @return the first matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
949            * @throws SystemException if a system exception occurred
950            */
951            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByG_P_First(
952                    long groupId, long parentFolderId,
953                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
954                    throws com.liferay.portal.kernel.exception.SystemException;
955    
956            /**
957            * Returns the last bookmarks folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
958            *
959            * @param groupId the group ID
960            * @param parentFolderId the parent folder ID
961            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
962            * @return the last matching bookmarks folder
963            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
964            * @throws SystemException if a system exception occurred
965            */
966            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_Last(
967                    long groupId, long parentFolderId,
968                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
969                    throws com.liferay.portal.kernel.exception.SystemException,
970                            com.liferay.portlet.bookmarks.NoSuchFolderException;
971    
972            /**
973            * Returns the last bookmarks folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
974            *
975            * @param groupId the group ID
976            * @param parentFolderId the parent folder ID
977            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
978            * @return the last matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
979            * @throws SystemException if a system exception occurred
980            */
981            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByG_P_Last(
982                    long groupId, long parentFolderId,
983                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
984                    throws com.liferay.portal.kernel.exception.SystemException;
985    
986            /**
987            * Returns the bookmarks folders before and after the current bookmarks folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
988            *
989            * @param folderId the primary key of the current bookmarks folder
990            * @param groupId the group ID
991            * @param parentFolderId the parent folder ID
992            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
993            * @return the previous, current, and next bookmarks folder
994            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a bookmarks folder with the primary key could not be found
995            * @throws SystemException if a system exception occurred
996            */
997            public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByG_P_PrevAndNext(
998                    long folderId, long groupId, long parentFolderId,
999                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1000                    throws com.liferay.portal.kernel.exception.SystemException,
1001                            com.liferay.portlet.bookmarks.NoSuchFolderException;
1002    
1003            /**
1004            * Returns all the bookmarks folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63;.
1005            *
1006            * @param groupId the group ID
1007            * @param parentFolderId the parent folder ID
1008            * @return the matching bookmarks folders that the user has permission to view
1009            * @throws SystemException if a system exception occurred
1010            */
1011            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByG_P(
1012                    long groupId, long parentFolderId)
1013                    throws com.liferay.portal.kernel.exception.SystemException;
1014    
1015            /**
1016            * Returns a range of all the bookmarks folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63;.
1017            *
1018            * <p>
1019            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1020            * </p>
1021            *
1022            * @param groupId the group ID
1023            * @param parentFolderId the parent folder ID
1024            * @param start the lower bound of the range of bookmarks folders
1025            * @param end the upper bound of the range of bookmarks folders (not inclusive)
1026            * @return the range of matching bookmarks folders that the user has permission to view
1027            * @throws SystemException if a system exception occurred
1028            */
1029            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByG_P(
1030                    long groupId, long parentFolderId, int start, int end)
1031                    throws com.liferay.portal.kernel.exception.SystemException;
1032    
1033            /**
1034            * Returns an ordered range of all the bookmarks folders that the user has permissions to view where groupId = &#63; and parentFolderId = &#63;.
1035            *
1036            * <p>
1037            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1038            * </p>
1039            *
1040            * @param groupId the group ID
1041            * @param parentFolderId the parent folder ID
1042            * @param start the lower bound of the range of bookmarks folders
1043            * @param end the upper bound of the range of bookmarks folders (not inclusive)
1044            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1045            * @return the ordered range of matching bookmarks folders that the user has permission to view
1046            * @throws SystemException if a system exception occurred
1047            */
1048            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByG_P(
1049                    long groupId, long parentFolderId, int start, int end,
1050                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1051                    throws com.liferay.portal.kernel.exception.SystemException;
1052    
1053            /**
1054            * 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;.
1055            *
1056            * @param folderId the primary key of the current bookmarks folder
1057            * @param groupId the group ID
1058            * @param parentFolderId the parent folder ID
1059            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1060            * @return the previous, current, and next bookmarks folder
1061            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a bookmarks folder with the primary key could not be found
1062            * @throws SystemException if a system exception occurred
1063            */
1064            public com.liferay.portlet.bookmarks.model.BookmarksFolder[] filterFindByG_P_PrevAndNext(
1065                    long folderId, long groupId, long parentFolderId,
1066                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1067                    throws com.liferay.portal.kernel.exception.SystemException,
1068                            com.liferay.portlet.bookmarks.NoSuchFolderException;
1069    
1070            /**
1071            * Removes all the bookmarks folders where groupId = &#63; and parentFolderId = &#63; from the database.
1072            *
1073            * @param groupId the group ID
1074            * @param parentFolderId the parent folder ID
1075            * @throws SystemException if a system exception occurred
1076            */
1077            public void removeByG_P(long groupId, long parentFolderId)
1078                    throws com.liferay.portal.kernel.exception.SystemException;
1079    
1080            /**
1081            * Returns the number of bookmarks folders where groupId = &#63; and parentFolderId = &#63;.
1082            *
1083            * @param groupId the group ID
1084            * @param parentFolderId the parent folder ID
1085            * @return the number of matching bookmarks folders
1086            * @throws SystemException if a system exception occurred
1087            */
1088            public int countByG_P(long groupId, long parentFolderId)
1089                    throws com.liferay.portal.kernel.exception.SystemException;
1090    
1091            /**
1092            * Returns the number of bookmarks folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63;.
1093            *
1094            * @param groupId the group ID
1095            * @param parentFolderId the parent folder ID
1096            * @return the number of matching bookmarks folders that the user has permission to view
1097            * @throws SystemException if a system exception occurred
1098            */
1099            public int filterCountByG_P(long groupId, long parentFolderId)
1100                    throws com.liferay.portal.kernel.exception.SystemException;
1101    
1102            /**
1103            * Returns all the bookmarks folders where companyId = &#63; and status &ne; &#63;.
1104            *
1105            * @param companyId the company ID
1106            * @param status the status
1107            * @return the matching bookmarks folders
1108            * @throws SystemException if a system exception occurred
1109            */
1110            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByC_NotS(
1111                    long companyId, int status)
1112                    throws com.liferay.portal.kernel.exception.SystemException;
1113    
1114            /**
1115            * Returns a range of all the bookmarks folders where companyId = &#63; and status &ne; &#63;.
1116            *
1117            * <p>
1118            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1119            * </p>
1120            *
1121            * @param companyId the company ID
1122            * @param status the status
1123            * @param start the lower bound of the range of bookmarks folders
1124            * @param end the upper bound of the range of bookmarks folders (not inclusive)
1125            * @return the range of matching bookmarks folders
1126            * @throws SystemException if a system exception occurred
1127            */
1128            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByC_NotS(
1129                    long companyId, int status, int start, int end)
1130                    throws com.liferay.portal.kernel.exception.SystemException;
1131    
1132            /**
1133            * Returns an ordered range of all the bookmarks folders where companyId = &#63; and status &ne; &#63;.
1134            *
1135            * <p>
1136            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1137            * </p>
1138            *
1139            * @param companyId the company ID
1140            * @param status the status
1141            * @param start the lower bound of the range of bookmarks folders
1142            * @param end the upper bound of the range of bookmarks folders (not inclusive)
1143            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1144            * @return the ordered range of matching bookmarks folders
1145            * @throws SystemException if a system exception occurred
1146            */
1147            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByC_NotS(
1148                    long companyId, int status, int start, int end,
1149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1150                    throws com.liferay.portal.kernel.exception.SystemException;
1151    
1152            /**
1153            * Returns the first bookmarks folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1154            *
1155            * @param companyId the company ID
1156            * @param status the status
1157            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1158            * @return the first matching bookmarks folder
1159            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
1160            * @throws SystemException if a system exception occurred
1161            */
1162            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByC_NotS_First(
1163                    long companyId, int status,
1164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1165                    throws com.liferay.portal.kernel.exception.SystemException,
1166                            com.liferay.portlet.bookmarks.NoSuchFolderException;
1167    
1168            /**
1169            * Returns the first bookmarks folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1170            *
1171            * @param companyId the company ID
1172            * @param status the status
1173            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1174            * @return the first matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
1175            * @throws SystemException if a system exception occurred
1176            */
1177            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByC_NotS_First(
1178                    long companyId, int status,
1179                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1180                    throws com.liferay.portal.kernel.exception.SystemException;
1181    
1182            /**
1183            * Returns the last bookmarks folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1184            *
1185            * @param companyId the company ID
1186            * @param status the status
1187            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1188            * @return the last matching bookmarks folder
1189            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
1190            * @throws SystemException if a system exception occurred
1191            */
1192            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByC_NotS_Last(
1193                    long companyId, int status,
1194                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1195                    throws com.liferay.portal.kernel.exception.SystemException,
1196                            com.liferay.portlet.bookmarks.NoSuchFolderException;
1197    
1198            /**
1199            * Returns the last bookmarks folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1200            *
1201            * @param companyId the company ID
1202            * @param status the status
1203            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1204            * @return the last matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
1205            * @throws SystemException if a system exception occurred
1206            */
1207            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByC_NotS_Last(
1208                    long companyId, int status,
1209                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1210                    throws com.liferay.portal.kernel.exception.SystemException;
1211    
1212            /**
1213            * Returns the bookmarks folders before and after the current bookmarks folder in the ordered set where companyId = &#63; and status &ne; &#63;.
1214            *
1215            * @param folderId the primary key of the current bookmarks folder
1216            * @param companyId the company ID
1217            * @param status the status
1218            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1219            * @return the previous, current, and next bookmarks folder
1220            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a bookmarks folder with the primary key could not be found
1221            * @throws SystemException if a system exception occurred
1222            */
1223            public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByC_NotS_PrevAndNext(
1224                    long folderId, long companyId, int status,
1225                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1226                    throws com.liferay.portal.kernel.exception.SystemException,
1227                            com.liferay.portlet.bookmarks.NoSuchFolderException;
1228    
1229            /**
1230            * Removes all the bookmarks folders where companyId = &#63; and status &ne; &#63; from the database.
1231            *
1232            * @param companyId the company ID
1233            * @param status the status
1234            * @throws SystemException if a system exception occurred
1235            */
1236            public void removeByC_NotS(long companyId, int status)
1237                    throws com.liferay.portal.kernel.exception.SystemException;
1238    
1239            /**
1240            * Returns the number of bookmarks folders where companyId = &#63; and status &ne; &#63;.
1241            *
1242            * @param companyId the company ID
1243            * @param status the status
1244            * @return the number of matching bookmarks folders
1245            * @throws SystemException if a system exception occurred
1246            */
1247            public int countByC_NotS(long companyId, int status)
1248                    throws com.liferay.portal.kernel.exception.SystemException;
1249    
1250            /**
1251            * Returns all the bookmarks folders where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1252            *
1253            * @param groupId the group ID
1254            * @param parentFolderId the parent folder ID
1255            * @param status the status
1256            * @return the matching bookmarks folders
1257            * @throws SystemException if a system exception occurred
1258            */
1259            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P_S(
1260                    long groupId, long parentFolderId, int status)
1261                    throws com.liferay.portal.kernel.exception.SystemException;
1262    
1263            /**
1264            * Returns a range of all the bookmarks folders where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1265            *
1266            * <p>
1267            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1268            * </p>
1269            *
1270            * @param groupId the group ID
1271            * @param parentFolderId the parent folder ID
1272            * @param status the status
1273            * @param start the lower bound of the range of bookmarks folders
1274            * @param end the upper bound of the range of bookmarks folders (not inclusive)
1275            * @return the range of matching bookmarks folders
1276            * @throws SystemException if a system exception occurred
1277            */
1278            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P_S(
1279                    long groupId, long parentFolderId, int status, int start, int end)
1280                    throws com.liferay.portal.kernel.exception.SystemException;
1281    
1282            /**
1283            * Returns an ordered range of all the bookmarks folders where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1284            *
1285            * <p>
1286            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1287            * </p>
1288            *
1289            * @param groupId the group ID
1290            * @param parentFolderId the parent folder ID
1291            * @param status the status
1292            * @param start the lower bound of the range of bookmarks folders
1293            * @param end the upper bound of the range of bookmarks folders (not inclusive)
1294            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1295            * @return the ordered range of matching bookmarks folders
1296            * @throws SystemException if a system exception occurred
1297            */
1298            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P_S(
1299                    long groupId, long parentFolderId, int status, int start, int end,
1300                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1301                    throws com.liferay.portal.kernel.exception.SystemException;
1302    
1303            /**
1304            * Returns the first bookmarks folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1305            *
1306            * @param groupId the group ID
1307            * @param parentFolderId the parent folder ID
1308            * @param status the status
1309            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1310            * @return the first matching bookmarks folder
1311            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
1312            * @throws SystemException if a system exception occurred
1313            */
1314            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_S_First(
1315                    long groupId, long parentFolderId, int status,
1316                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1317                    throws com.liferay.portal.kernel.exception.SystemException,
1318                            com.liferay.portlet.bookmarks.NoSuchFolderException;
1319    
1320            /**
1321            * Returns the first bookmarks folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1322            *
1323            * @param groupId the group ID
1324            * @param parentFolderId the parent folder ID
1325            * @param status the status
1326            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1327            * @return the first matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
1328            * @throws SystemException if a system exception occurred
1329            */
1330            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByG_P_S_First(
1331                    long groupId, long parentFolderId, int status,
1332                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1333                    throws com.liferay.portal.kernel.exception.SystemException;
1334    
1335            /**
1336            * Returns the last bookmarks folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1337            *
1338            * @param groupId the group ID
1339            * @param parentFolderId the parent folder ID
1340            * @param status the status
1341            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1342            * @return the last matching bookmarks folder
1343            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
1344            * @throws SystemException if a system exception occurred
1345            */
1346            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_S_Last(
1347                    long groupId, long parentFolderId, int status,
1348                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1349                    throws com.liferay.portal.kernel.exception.SystemException,
1350                            com.liferay.portlet.bookmarks.NoSuchFolderException;
1351    
1352            /**
1353            * Returns the last bookmarks folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1354            *
1355            * @param groupId the group ID
1356            * @param parentFolderId the parent folder ID
1357            * @param status the status
1358            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1359            * @return the last matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
1360            * @throws SystemException if a system exception occurred
1361            */
1362            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByG_P_S_Last(
1363                    long groupId, long parentFolderId, int status,
1364                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1365                    throws com.liferay.portal.kernel.exception.SystemException;
1366    
1367            /**
1368            * Returns the bookmarks folders before and after the current bookmarks folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1369            *
1370            * @param folderId the primary key of the current bookmarks folder
1371            * @param groupId the group ID
1372            * @param parentFolderId the parent folder ID
1373            * @param status the status
1374            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1375            * @return the previous, current, and next bookmarks folder
1376            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a bookmarks folder with the primary key could not be found
1377            * @throws SystemException if a system exception occurred
1378            */
1379            public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByG_P_S_PrevAndNext(
1380                    long folderId, long groupId, long parentFolderId, int status,
1381                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1382                    throws com.liferay.portal.kernel.exception.SystemException,
1383                            com.liferay.portlet.bookmarks.NoSuchFolderException;
1384    
1385            /**
1386            * Returns all the bookmarks folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1387            *
1388            * @param groupId the group ID
1389            * @param parentFolderId the parent folder ID
1390            * @param status the status
1391            * @return the matching bookmarks folders that the user has permission to view
1392            * @throws SystemException if a system exception occurred
1393            */
1394            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByG_P_S(
1395                    long groupId, long parentFolderId, int status)
1396                    throws com.liferay.portal.kernel.exception.SystemException;
1397    
1398            /**
1399            * Returns a range of all the bookmarks folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1400            *
1401            * <p>
1402            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1403            * </p>
1404            *
1405            * @param groupId the group ID
1406            * @param parentFolderId the parent folder ID
1407            * @param status the status
1408            * @param start the lower bound of the range of bookmarks folders
1409            * @param end the upper bound of the range of bookmarks folders (not inclusive)
1410            * @return the range of matching bookmarks folders that the user has permission to view
1411            * @throws SystemException if a system exception occurred
1412            */
1413            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByG_P_S(
1414                    long groupId, long parentFolderId, int status, int start, int end)
1415                    throws com.liferay.portal.kernel.exception.SystemException;
1416    
1417            /**
1418            * Returns an ordered range of all the bookmarks folders that the user has permissions to view where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1419            *
1420            * <p>
1421            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1422            * </p>
1423            *
1424            * @param groupId the group ID
1425            * @param parentFolderId the parent folder ID
1426            * @param status the status
1427            * @param start the lower bound of the range of bookmarks folders
1428            * @param end the upper bound of the range of bookmarks folders (not inclusive)
1429            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1430            * @return the ordered range of matching bookmarks folders that the user has permission to view
1431            * @throws SystemException if a system exception occurred
1432            */
1433            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByG_P_S(
1434                    long groupId, long parentFolderId, int status, int start, int end,
1435                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1436                    throws com.liferay.portal.kernel.exception.SystemException;
1437    
1438            /**
1439            * 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; and status = &#63;.
1440            *
1441            * @param folderId the primary key of the current bookmarks folder
1442            * @param groupId the group ID
1443            * @param parentFolderId the parent folder ID
1444            * @param status the status
1445            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1446            * @return the previous, current, and next bookmarks folder
1447            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a bookmarks folder with the primary key could not be found
1448            * @throws SystemException if a system exception occurred
1449            */
1450            public com.liferay.portlet.bookmarks.model.BookmarksFolder[] filterFindByG_P_S_PrevAndNext(
1451                    long folderId, long groupId, long parentFolderId, int status,
1452                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1453                    throws com.liferay.portal.kernel.exception.SystemException,
1454                            com.liferay.portlet.bookmarks.NoSuchFolderException;
1455    
1456            /**
1457            * Removes all the bookmarks folders where groupId = &#63; and parentFolderId = &#63; and status = &#63; from the database.
1458            *
1459            * @param groupId the group ID
1460            * @param parentFolderId the parent folder ID
1461            * @param status the status
1462            * @throws SystemException if a system exception occurred
1463            */
1464            public void removeByG_P_S(long groupId, long parentFolderId, int status)
1465                    throws com.liferay.portal.kernel.exception.SystemException;
1466    
1467            /**
1468            * Returns the number of bookmarks folders where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1469            *
1470            * @param groupId the group ID
1471            * @param parentFolderId the parent folder ID
1472            * @param status the status
1473            * @return the number of matching bookmarks folders
1474            * @throws SystemException if a system exception occurred
1475            */
1476            public int countByG_P_S(long groupId, long parentFolderId, int status)
1477                    throws com.liferay.portal.kernel.exception.SystemException;
1478    
1479            /**
1480            * Returns the number of bookmarks folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and status = &#63;.
1481            *
1482            * @param groupId the group ID
1483            * @param parentFolderId the parent folder ID
1484            * @param status the status
1485            * @return the number of matching bookmarks folders that the user has permission to view
1486            * @throws SystemException if a system exception occurred
1487            */
1488            public int filterCountByG_P_S(long groupId, long parentFolderId, int status)
1489                    throws com.liferay.portal.kernel.exception.SystemException;
1490    
1491            /**
1492            * Returns all the bookmarks folders where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1493            *
1494            * @param groupId the group ID
1495            * @param parentFolderId the parent folder ID
1496            * @param status the status
1497            * @return the matching bookmarks folders
1498            * @throws SystemException if a system exception occurred
1499            */
1500            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P_NotS(
1501                    long groupId, long parentFolderId, int status)
1502                    throws com.liferay.portal.kernel.exception.SystemException;
1503    
1504            /**
1505            * Returns a range of all the bookmarks folders where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1506            *
1507            * <p>
1508            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1509            * </p>
1510            *
1511            * @param groupId the group ID
1512            * @param parentFolderId the parent folder ID
1513            * @param status the status
1514            * @param start the lower bound of the range of bookmarks folders
1515            * @param end the upper bound of the range of bookmarks folders (not inclusive)
1516            * @return the range of matching bookmarks folders
1517            * @throws SystemException if a system exception occurred
1518            */
1519            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P_NotS(
1520                    long groupId, long parentFolderId, int status, int start, int end)
1521                    throws com.liferay.portal.kernel.exception.SystemException;
1522    
1523            /**
1524            * Returns an ordered range of all the bookmarks folders where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1525            *
1526            * <p>
1527            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1528            * </p>
1529            *
1530            * @param groupId the group ID
1531            * @param parentFolderId the parent folder ID
1532            * @param status the status
1533            * @param start the lower bound of the range of bookmarks folders
1534            * @param end the upper bound of the range of bookmarks folders (not inclusive)
1535            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1536            * @return the ordered range of matching bookmarks folders
1537            * @throws SystemException if a system exception occurred
1538            */
1539            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P_NotS(
1540                    long groupId, long parentFolderId, int status, int start, int end,
1541                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1542                    throws com.liferay.portal.kernel.exception.SystemException;
1543    
1544            /**
1545            * Returns the first bookmarks folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1546            *
1547            * @param groupId the group ID
1548            * @param parentFolderId the parent folder ID
1549            * @param status the status
1550            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1551            * @return the first matching bookmarks folder
1552            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
1553            * @throws SystemException if a system exception occurred
1554            */
1555            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_NotS_First(
1556                    long groupId, long parentFolderId, int status,
1557                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1558                    throws com.liferay.portal.kernel.exception.SystemException,
1559                            com.liferay.portlet.bookmarks.NoSuchFolderException;
1560    
1561            /**
1562            * Returns the first bookmarks folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1563            *
1564            * @param groupId the group ID
1565            * @param parentFolderId the parent folder ID
1566            * @param status the status
1567            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1568            * @return the first matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
1569            * @throws SystemException if a system exception occurred
1570            */
1571            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByG_P_NotS_First(
1572                    long groupId, long parentFolderId, int status,
1573                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1574                    throws com.liferay.portal.kernel.exception.SystemException;
1575    
1576            /**
1577            * Returns the last bookmarks folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1578            *
1579            * @param groupId the group ID
1580            * @param parentFolderId the parent folder ID
1581            * @param status the status
1582            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1583            * @return the last matching bookmarks folder
1584            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a matching bookmarks folder could not be found
1585            * @throws SystemException if a system exception occurred
1586            */
1587            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_NotS_Last(
1588                    long groupId, long parentFolderId, int status,
1589                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1590                    throws com.liferay.portal.kernel.exception.SystemException,
1591                            com.liferay.portlet.bookmarks.NoSuchFolderException;
1592    
1593            /**
1594            * Returns the last bookmarks folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1595            *
1596            * @param groupId the group ID
1597            * @param parentFolderId the parent folder ID
1598            * @param status the status
1599            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1600            * @return the last matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
1601            * @throws SystemException if a system exception occurred
1602            */
1603            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByG_P_NotS_Last(
1604                    long groupId, long parentFolderId, int status,
1605                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1606                    throws com.liferay.portal.kernel.exception.SystemException;
1607    
1608            /**
1609            * Returns the bookmarks folders before and after the current bookmarks folder in the ordered set where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1610            *
1611            * @param folderId the primary key of the current bookmarks folder
1612            * @param groupId the group ID
1613            * @param parentFolderId the parent folder ID
1614            * @param status the status
1615            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1616            * @return the previous, current, and next bookmarks folder
1617            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a bookmarks folder with the primary key could not be found
1618            * @throws SystemException if a system exception occurred
1619            */
1620            public com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByG_P_NotS_PrevAndNext(
1621                    long folderId, long groupId, long parentFolderId, int status,
1622                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1623                    throws com.liferay.portal.kernel.exception.SystemException,
1624                            com.liferay.portlet.bookmarks.NoSuchFolderException;
1625    
1626            /**
1627            * Returns all the bookmarks folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1628            *
1629            * @param groupId the group ID
1630            * @param parentFolderId the parent folder ID
1631            * @param status the status
1632            * @return the matching bookmarks folders that the user has permission to view
1633            * @throws SystemException if a system exception occurred
1634            */
1635            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByG_P_NotS(
1636                    long groupId, long parentFolderId, int status)
1637                    throws com.liferay.portal.kernel.exception.SystemException;
1638    
1639            /**
1640            * Returns a range of all the bookmarks folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1641            *
1642            * <p>
1643            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1644            * </p>
1645            *
1646            * @param groupId the group ID
1647            * @param parentFolderId the parent folder ID
1648            * @param status the status
1649            * @param start the lower bound of the range of bookmarks folders
1650            * @param end the upper bound of the range of bookmarks folders (not inclusive)
1651            * @return the range of matching bookmarks folders that the user has permission to view
1652            * @throws SystemException if a system exception occurred
1653            */
1654            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByG_P_NotS(
1655                    long groupId, long parentFolderId, int status, int start, int end)
1656                    throws com.liferay.portal.kernel.exception.SystemException;
1657    
1658            /**
1659            * Returns an ordered range of all the bookmarks folders that the user has permissions to view where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1660            *
1661            * <p>
1662            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1663            * </p>
1664            *
1665            * @param groupId the group ID
1666            * @param parentFolderId the parent folder ID
1667            * @param status the status
1668            * @param start the lower bound of the range of bookmarks folders
1669            * @param end the upper bound of the range of bookmarks folders (not inclusive)
1670            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1671            * @return the ordered range of matching bookmarks folders that the user has permission to view
1672            * @throws SystemException if a system exception occurred
1673            */
1674            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByG_P_NotS(
1675                    long groupId, long parentFolderId, int status, int start, int end,
1676                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1677                    throws com.liferay.portal.kernel.exception.SystemException;
1678    
1679            /**
1680            * 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; and status &ne; &#63;.
1681            *
1682            * @param folderId the primary key of the current bookmarks folder
1683            * @param groupId the group ID
1684            * @param parentFolderId the parent folder ID
1685            * @param status the status
1686            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1687            * @return the previous, current, and next bookmarks folder
1688            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a bookmarks folder with the primary key could not be found
1689            * @throws SystemException if a system exception occurred
1690            */
1691            public com.liferay.portlet.bookmarks.model.BookmarksFolder[] filterFindByG_P_NotS_PrevAndNext(
1692                    long folderId, long groupId, long parentFolderId, int status,
1693                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1694                    throws com.liferay.portal.kernel.exception.SystemException,
1695                            com.liferay.portlet.bookmarks.NoSuchFolderException;
1696    
1697            /**
1698            * Removes all the bookmarks folders where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63; from the database.
1699            *
1700            * @param groupId the group ID
1701            * @param parentFolderId the parent folder ID
1702            * @param status the status
1703            * @throws SystemException if a system exception occurred
1704            */
1705            public void removeByG_P_NotS(long groupId, long parentFolderId, int status)
1706                    throws com.liferay.portal.kernel.exception.SystemException;
1707    
1708            /**
1709            * Returns the number of bookmarks folders where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1710            *
1711            * @param groupId the group ID
1712            * @param parentFolderId the parent folder ID
1713            * @param status the status
1714            * @return the number of matching bookmarks folders
1715            * @throws SystemException if a system exception occurred
1716            */
1717            public int countByG_P_NotS(long groupId, long parentFolderId, int status)
1718                    throws com.liferay.portal.kernel.exception.SystemException;
1719    
1720            /**
1721            * Returns the number of bookmarks folders that the user has permission to view where groupId = &#63; and parentFolderId = &#63; and status &ne; &#63;.
1722            *
1723            * @param groupId the group ID
1724            * @param parentFolderId the parent folder ID
1725            * @param status the status
1726            * @return the number of matching bookmarks folders that the user has permission to view
1727            * @throws SystemException if a system exception occurred
1728            */
1729            public int filterCountByG_P_NotS(long groupId, long parentFolderId,
1730                    int status) throws com.liferay.portal.kernel.exception.SystemException;
1731    
1732            /**
1733            * Caches the bookmarks folder in the entity cache if it is enabled.
1734            *
1735            * @param bookmarksFolder the bookmarks folder
1736            */
1737            public void cacheResult(
1738                    com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder);
1739    
1740            /**
1741            * Caches the bookmarks folders in the entity cache if it is enabled.
1742            *
1743            * @param bookmarksFolders the bookmarks folders
1744            */
1745            public void cacheResult(
1746                    java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> bookmarksFolders);
1747    
1748            /**
1749            * Creates a new bookmarks folder with the primary key. Does not add the bookmarks folder to the database.
1750            *
1751            * @param folderId the primary key for the new bookmarks folder
1752            * @return the new bookmarks folder
1753            */
1754            public com.liferay.portlet.bookmarks.model.BookmarksFolder create(
1755                    long folderId);
1756    
1757            /**
1758            * Removes the bookmarks folder with the primary key from the database. Also notifies the appropriate model listeners.
1759            *
1760            * @param folderId the primary key of the bookmarks folder
1761            * @return the bookmarks folder that was removed
1762            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a bookmarks folder with the primary key could not be found
1763            * @throws SystemException if a system exception occurred
1764            */
1765            public com.liferay.portlet.bookmarks.model.BookmarksFolder remove(
1766                    long folderId)
1767                    throws com.liferay.portal.kernel.exception.SystemException,
1768                            com.liferay.portlet.bookmarks.NoSuchFolderException;
1769    
1770            public com.liferay.portlet.bookmarks.model.BookmarksFolder updateImpl(
1771                    com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
1772                    throws com.liferay.portal.kernel.exception.SystemException;
1773    
1774            /**
1775            * Returns the bookmarks folder with the primary key or throws a {@link com.liferay.portlet.bookmarks.NoSuchFolderException} if it could not be found.
1776            *
1777            * @param folderId the primary key of the bookmarks folder
1778            * @return the bookmarks folder
1779            * @throws com.liferay.portlet.bookmarks.NoSuchFolderException if a bookmarks folder with the primary key could not be found
1780            * @throws SystemException if a system exception occurred
1781            */
1782            public com.liferay.portlet.bookmarks.model.BookmarksFolder findByPrimaryKey(
1783                    long folderId)
1784                    throws com.liferay.portal.kernel.exception.SystemException,
1785                            com.liferay.portlet.bookmarks.NoSuchFolderException;
1786    
1787            /**
1788            * Returns the bookmarks folder with the primary key or returns <code>null</code> if it could not be found.
1789            *
1790            * @param folderId the primary key of the bookmarks folder
1791            * @return the bookmarks folder, or <code>null</code> if a bookmarks folder with the primary key could not be found
1792            * @throws SystemException if a system exception occurred
1793            */
1794            public com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByPrimaryKey(
1795                    long folderId)
1796                    throws com.liferay.portal.kernel.exception.SystemException;
1797    
1798            /**
1799            * Returns all the bookmarks folders.
1800            *
1801            * @return the bookmarks folders
1802            * @throws SystemException if a system exception occurred
1803            */
1804            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll()
1805                    throws com.liferay.portal.kernel.exception.SystemException;
1806    
1807            /**
1808            * Returns a range of all the bookmarks folders.
1809            *
1810            * <p>
1811            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1812            * </p>
1813            *
1814            * @param start the lower bound of the range of bookmarks folders
1815            * @param end the upper bound of the range of bookmarks folders (not inclusive)
1816            * @return the range of bookmarks folders
1817            * @throws SystemException if a system exception occurred
1818            */
1819            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll(
1820                    int start, int end)
1821                    throws com.liferay.portal.kernel.exception.SystemException;
1822    
1823            /**
1824            * Returns an ordered range of all the bookmarks folders.
1825            *
1826            * <p>
1827            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksFolderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1828            * </p>
1829            *
1830            * @param start the lower bound of the range of bookmarks folders
1831            * @param end the upper bound of the range of bookmarks folders (not inclusive)
1832            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1833            * @return the ordered range of bookmarks folders
1834            * @throws SystemException if a system exception occurred
1835            */
1836            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll(
1837                    int start, int end,
1838                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1839                    throws com.liferay.portal.kernel.exception.SystemException;
1840    
1841            /**
1842            * Removes all the bookmarks folders from the database.
1843            *
1844            * @throws SystemException if a system exception occurred
1845            */
1846            public void removeAll()
1847                    throws com.liferay.portal.kernel.exception.SystemException;
1848    
1849            /**
1850            * Returns the number of bookmarks folders.
1851            *
1852            * @return the number of bookmarks folders
1853            * @throws SystemException if a system exception occurred
1854            */
1855            public int countAll()
1856                    throws com.liferay.portal.kernel.exception.SystemException;
1857    }