1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.bookmarks.service.persistence;
16  
17  import com.liferay.portal.SystemException;
18  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20  import com.liferay.portal.kernel.util.ReferenceRegistry;
21  
22  import com.liferay.portlet.bookmarks.model.BookmarksFolder;
23  
24  import java.util.List;
25  
26  /**
27   * <a href="BookmarksFolderUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       BookmarksFolderPersistence
36   * @see       BookmarksFolderPersistenceImpl
37   * @generated
38   */
39  public class BookmarksFolderUtil {
40      /**
41       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
42       */
43      public static void clearCache() {
44          getPersistence().clearCache();
45      }
46  
47      /**
48       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(BookmarksFolder)
49       */
50      public static void clearCache(BookmarksFolder bookmarksFolder) {
51          getPersistence().clearCache(bookmarksFolder);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
56       */
57      public int countWithDynamicQuery(DynamicQuery dynamicQuery)
58          throws SystemException {
59          return getPersistence().countWithDynamicQuery(dynamicQuery);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
64       */
65      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
66          throws SystemException {
67          return getPersistence().findWithDynamicQuery(dynamicQuery);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
72       */
73      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
74          int start, int end) throws SystemException {
75          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
80       */
81      public static BookmarksFolder remove(BookmarksFolder bookmarksFolder)
82          throws SystemException {
83          return getPersistence().remove(bookmarksFolder);
84      }
85  
86      /**
87       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
88       */
89      public static BookmarksFolder update(BookmarksFolder bookmarksFolder,
90          boolean merge) throws SystemException {
91          return getPersistence().update(bookmarksFolder, merge);
92      }
93  
94      public static void cacheResult(
95          com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder) {
96          getPersistence().cacheResult(bookmarksFolder);
97      }
98  
99      public static void cacheResult(
100         java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> bookmarksFolders) {
101         getPersistence().cacheResult(bookmarksFolders);
102     }
103 
104     public static com.liferay.portlet.bookmarks.model.BookmarksFolder create(
105         long folderId) {
106         return getPersistence().create(folderId);
107     }
108 
109     public static com.liferay.portlet.bookmarks.model.BookmarksFolder remove(
110         long folderId)
111         throws com.liferay.portal.SystemException,
112             com.liferay.portlet.bookmarks.NoSuchFolderException {
113         return getPersistence().remove(folderId);
114     }
115 
116     /**
117      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
118      */
119     public static com.liferay.portlet.bookmarks.model.BookmarksFolder update(
120         com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
121         throws com.liferay.portal.SystemException {
122         return getPersistence().update(bookmarksFolder);
123     }
124 
125     public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateImpl(
126         com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder,
127         boolean merge) throws com.liferay.portal.SystemException {
128         return getPersistence().updateImpl(bookmarksFolder, merge);
129     }
130 
131     public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByPrimaryKey(
132         long folderId)
133         throws com.liferay.portal.SystemException,
134             com.liferay.portlet.bookmarks.NoSuchFolderException {
135         return getPersistence().findByPrimaryKey(folderId);
136     }
137 
138     public static com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByPrimaryKey(
139         long folderId) throws com.liferay.portal.SystemException {
140         return getPersistence().fetchByPrimaryKey(folderId);
141     }
142 
143     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByUuid(
144         java.lang.String uuid) throws com.liferay.portal.SystemException {
145         return getPersistence().findByUuid(uuid);
146     }
147 
148     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByUuid(
149         java.lang.String uuid, int start, int end)
150         throws com.liferay.portal.SystemException {
151         return getPersistence().findByUuid(uuid, start, end);
152     }
153 
154     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByUuid(
155         java.lang.String uuid, int start, int end,
156         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157         throws com.liferay.portal.SystemException {
158         return getPersistence().findByUuid(uuid, start, end, orderByComparator);
159     }
160 
161     public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByUuid_First(
162         java.lang.String uuid,
163         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.bookmarks.NoSuchFolderException {
166         return getPersistence().findByUuid_First(uuid, orderByComparator);
167     }
168 
169     public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByUuid_Last(
170         java.lang.String uuid,
171         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172         throws com.liferay.portal.SystemException,
173             com.liferay.portlet.bookmarks.NoSuchFolderException {
174         return getPersistence().findByUuid_Last(uuid, orderByComparator);
175     }
176 
177     public static com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByUuid_PrevAndNext(
178         long folderId, java.lang.String uuid,
179         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180         throws com.liferay.portal.SystemException,
181             com.liferay.portlet.bookmarks.NoSuchFolderException {
182         return getPersistence()
183                    .findByUuid_PrevAndNext(folderId, uuid, orderByComparator);
184     }
185 
186     public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByUUID_G(
187         java.lang.String uuid, long groupId)
188         throws com.liferay.portal.SystemException,
189             com.liferay.portlet.bookmarks.NoSuchFolderException {
190         return getPersistence().findByUUID_G(uuid, groupId);
191     }
192 
193     public static com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByUUID_G(
194         java.lang.String uuid, long groupId)
195         throws com.liferay.portal.SystemException {
196         return getPersistence().fetchByUUID_G(uuid, groupId);
197     }
198 
199     public static com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByUUID_G(
200         java.lang.String uuid, long groupId, boolean retrieveFromCache)
201         throws com.liferay.portal.SystemException {
202         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
203     }
204 
205     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByGroupId(
206         long groupId) throws com.liferay.portal.SystemException {
207         return getPersistence().findByGroupId(groupId);
208     }
209 
210     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByGroupId(
211         long groupId, int start, int end)
212         throws com.liferay.portal.SystemException {
213         return getPersistence().findByGroupId(groupId, start, end);
214     }
215 
216     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByGroupId(
217         long groupId, int start, int end,
218         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219         throws com.liferay.portal.SystemException {
220         return getPersistence()
221                    .findByGroupId(groupId, start, end, orderByComparator);
222     }
223 
224     public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByGroupId_First(
225         long groupId,
226         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227         throws com.liferay.portal.SystemException,
228             com.liferay.portlet.bookmarks.NoSuchFolderException {
229         return getPersistence().findByGroupId_First(groupId, orderByComparator);
230     }
231 
232     public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByGroupId_Last(
233         long groupId,
234         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
235         throws com.liferay.portal.SystemException,
236             com.liferay.portlet.bookmarks.NoSuchFolderException {
237         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
238     }
239 
240     public static com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByGroupId_PrevAndNext(
241         long folderId, long groupId,
242         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243         throws com.liferay.portal.SystemException,
244             com.liferay.portlet.bookmarks.NoSuchFolderException {
245         return getPersistence()
246                    .findByGroupId_PrevAndNext(folderId, groupId,
247             orderByComparator);
248     }
249 
250     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
251         long companyId) throws com.liferay.portal.SystemException {
252         return getPersistence().findByCompanyId(companyId);
253     }
254 
255     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
256         long companyId, int start, int end)
257         throws com.liferay.portal.SystemException {
258         return getPersistence().findByCompanyId(companyId, start, end);
259     }
260 
261     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
262         long companyId, int start, int end,
263         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264         throws com.liferay.portal.SystemException {
265         return getPersistence()
266                    .findByCompanyId(companyId, start, end, orderByComparator);
267     }
268 
269     public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByCompanyId_First(
270         long companyId,
271         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
272         throws com.liferay.portal.SystemException,
273             com.liferay.portlet.bookmarks.NoSuchFolderException {
274         return getPersistence()
275                    .findByCompanyId_First(companyId, orderByComparator);
276     }
277 
278     public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByCompanyId_Last(
279         long companyId,
280         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
281         throws com.liferay.portal.SystemException,
282             com.liferay.portlet.bookmarks.NoSuchFolderException {
283         return getPersistence()
284                    .findByCompanyId_Last(companyId, orderByComparator);
285     }
286 
287     public static com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByCompanyId_PrevAndNext(
288         long folderId, long companyId,
289         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
290         throws com.liferay.portal.SystemException,
291             com.liferay.portlet.bookmarks.NoSuchFolderException {
292         return getPersistence()
293                    .findByCompanyId_PrevAndNext(folderId, companyId,
294             orderByComparator);
295     }
296 
297     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
298         long groupId, long parentFolderId)
299         throws com.liferay.portal.SystemException {
300         return getPersistence().findByG_P(groupId, parentFolderId);
301     }
302 
303     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
304         long groupId, long parentFolderId, int start, int end)
305         throws com.liferay.portal.SystemException {
306         return getPersistence().findByG_P(groupId, parentFolderId, start, end);
307     }
308 
309     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
310         long groupId, long parentFolderId, int start, int end,
311         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
312         throws com.liferay.portal.SystemException {
313         return getPersistence()
314                    .findByG_P(groupId, parentFolderId, start, end,
315             orderByComparator);
316     }
317 
318     public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_First(
319         long groupId, long parentFolderId,
320         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
321         throws com.liferay.portal.SystemException,
322             com.liferay.portlet.bookmarks.NoSuchFolderException {
323         return getPersistence()
324                    .findByG_P_First(groupId, parentFolderId, orderByComparator);
325     }
326 
327     public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_Last(
328         long groupId, long parentFolderId,
329         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
330         throws com.liferay.portal.SystemException,
331             com.liferay.portlet.bookmarks.NoSuchFolderException {
332         return getPersistence()
333                    .findByG_P_Last(groupId, parentFolderId, orderByComparator);
334     }
335 
336     public static com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByG_P_PrevAndNext(
337         long folderId, long groupId, long parentFolderId,
338         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
339         throws com.liferay.portal.SystemException,
340             com.liferay.portlet.bookmarks.NoSuchFolderException {
341         return getPersistence()
342                    .findByG_P_PrevAndNext(folderId, groupId, parentFolderId,
343             orderByComparator);
344     }
345 
346     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll()
347         throws com.liferay.portal.SystemException {
348         return getPersistence().findAll();
349     }
350 
351     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll(
352         int start, int end) throws com.liferay.portal.SystemException {
353         return getPersistence().findAll(start, end);
354     }
355 
356     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll(
357         int start, int end,
358         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
359         throws com.liferay.portal.SystemException {
360         return getPersistence().findAll(start, end, orderByComparator);
361     }
362 
363     public static void removeByUuid(java.lang.String uuid)
364         throws com.liferay.portal.SystemException {
365         getPersistence().removeByUuid(uuid);
366     }
367 
368     public static void removeByUUID_G(java.lang.String uuid, long groupId)
369         throws com.liferay.portal.SystemException,
370             com.liferay.portlet.bookmarks.NoSuchFolderException {
371         getPersistence().removeByUUID_G(uuid, groupId);
372     }
373 
374     public static void removeByGroupId(long groupId)
375         throws com.liferay.portal.SystemException {
376         getPersistence().removeByGroupId(groupId);
377     }
378 
379     public static void removeByCompanyId(long companyId)
380         throws com.liferay.portal.SystemException {
381         getPersistence().removeByCompanyId(companyId);
382     }
383 
384     public static void removeByG_P(long groupId, long parentFolderId)
385         throws com.liferay.portal.SystemException {
386         getPersistence().removeByG_P(groupId, parentFolderId);
387     }
388 
389     public static void removeAll() throws com.liferay.portal.SystemException {
390         getPersistence().removeAll();
391     }
392 
393     public static int countByUuid(java.lang.String uuid)
394         throws com.liferay.portal.SystemException {
395         return getPersistence().countByUuid(uuid);
396     }
397 
398     public static int countByUUID_G(java.lang.String uuid, long groupId)
399         throws com.liferay.portal.SystemException {
400         return getPersistence().countByUUID_G(uuid, groupId);
401     }
402 
403     public static int countByGroupId(long groupId)
404         throws com.liferay.portal.SystemException {
405         return getPersistence().countByGroupId(groupId);
406     }
407 
408     public static int countByCompanyId(long companyId)
409         throws com.liferay.portal.SystemException {
410         return getPersistence().countByCompanyId(companyId);
411     }
412 
413     public static int countByG_P(long groupId, long parentFolderId)
414         throws com.liferay.portal.SystemException {
415         return getPersistence().countByG_P(groupId, parentFolderId);
416     }
417 
418     public static int countAll() throws com.liferay.portal.SystemException {
419         return getPersistence().countAll();
420     }
421 
422     public static BookmarksFolderPersistence getPersistence() {
423         if (_persistence == null) {
424             _persistence = (BookmarksFolderPersistence)PortalBeanLocatorUtil.locate(BookmarksFolderPersistence.class.getName());
425 
426             ReferenceRegistry.registerReference(BookmarksFolderUtil.class,
427                 "_persistence");
428         }
429 
430         return _persistence;
431     }
432 
433     public void setPersistence(BookmarksFolderPersistence persistence) {
434         _persistence = persistence;
435 
436         ReferenceRegistry.registerReference(BookmarksFolderUtil.class,
437             "_persistence");
438     }
439 
440     private static BookmarksFolderPersistence _persistence;
441 }