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