1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.bookmarks.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  
21  import com.liferay.portlet.bookmarks.model.BookmarksEntry;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="BookmarksEntryUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       BookmarksEntryPersistence
35   * @see       BookmarksEntryPersistenceImpl
36   * @generated
37   */
38  public class BookmarksEntryUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(BookmarksEntry)
48       */
49      public static void clearCache(BookmarksEntry bookmarksEntry) {
50          getPersistence().clearCache(bookmarksEntry);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
55       */
56      public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().countWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
63       */
64      public static List<BookmarksEntry> findWithDynamicQuery(
65          DynamicQuery dynamicQuery) throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
71       */
72      public static List<BookmarksEntry> findWithDynamicQuery(
73          DynamicQuery dynamicQuery, int start, int end)
74          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 BookmarksEntry remove(BookmarksEntry bookmarksEntry)
82          throws SystemException {
83          return getPersistence().remove(bookmarksEntry);
84      }
85  
86      /**
87       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
88       */
89      public static BookmarksEntry update(BookmarksEntry bookmarksEntry,
90          boolean merge) throws SystemException {
91          return getPersistence().update(bookmarksEntry, merge);
92      }
93  
94      public static void cacheResult(
95          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry) {
96          getPersistence().cacheResult(bookmarksEntry);
97      }
98  
99      public static void cacheResult(
100         java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> bookmarksEntries) {
101         getPersistence().cacheResult(bookmarksEntries);
102     }
103 
104     public static com.liferay.portlet.bookmarks.model.BookmarksEntry create(
105         long entryId) {
106         return getPersistence().create(entryId);
107     }
108 
109     public static com.liferay.portlet.bookmarks.model.BookmarksEntry remove(
110         long entryId)
111         throws com.liferay.portal.kernel.exception.SystemException,
112             com.liferay.portlet.bookmarks.NoSuchEntryException {
113         return getPersistence().remove(entryId);
114     }
115 
116     public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateImpl(
117         com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
118         boolean merge)
119         throws com.liferay.portal.kernel.exception.SystemException {
120         return getPersistence().updateImpl(bookmarksEntry, merge);
121     }
122 
123     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByPrimaryKey(
124         long entryId)
125         throws com.liferay.portal.kernel.exception.SystemException,
126             com.liferay.portlet.bookmarks.NoSuchEntryException {
127         return getPersistence().findByPrimaryKey(entryId);
128     }
129 
130     public static com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByPrimaryKey(
131         long entryId)
132         throws com.liferay.portal.kernel.exception.SystemException {
133         return getPersistence().fetchByPrimaryKey(entryId);
134     }
135 
136     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByUuid(
137         java.lang.String uuid)
138         throws com.liferay.portal.kernel.exception.SystemException {
139         return getPersistence().findByUuid(uuid);
140     }
141 
142     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByUuid(
143         java.lang.String uuid, int start, int end)
144         throws com.liferay.portal.kernel.exception.SystemException {
145         return getPersistence().findByUuid(uuid, start, end);
146     }
147 
148     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByUuid(
149         java.lang.String uuid, int start, int end,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.kernel.exception.SystemException {
152         return getPersistence().findByUuid(uuid, start, end, orderByComparator);
153     }
154 
155     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByUuid_First(
156         java.lang.String uuid,
157         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158         throws com.liferay.portal.kernel.exception.SystemException,
159             com.liferay.portlet.bookmarks.NoSuchEntryException {
160         return getPersistence().findByUuid_First(uuid, orderByComparator);
161     }
162 
163     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByUuid_Last(
164         java.lang.String uuid,
165         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166         throws com.liferay.portal.kernel.exception.SystemException,
167             com.liferay.portlet.bookmarks.NoSuchEntryException {
168         return getPersistence().findByUuid_Last(uuid, orderByComparator);
169     }
170 
171     public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByUuid_PrevAndNext(
172         long entryId, java.lang.String uuid,
173         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174         throws com.liferay.portal.kernel.exception.SystemException,
175             com.liferay.portlet.bookmarks.NoSuchEntryException {
176         return getPersistence()
177                    .findByUuid_PrevAndNext(entryId, uuid, orderByComparator);
178     }
179 
180     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByUUID_G(
181         java.lang.String uuid, long groupId)
182         throws com.liferay.portal.kernel.exception.SystemException,
183             com.liferay.portlet.bookmarks.NoSuchEntryException {
184         return getPersistence().findByUUID_G(uuid, groupId);
185     }
186 
187     public static com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByUUID_G(
188         java.lang.String uuid, long groupId)
189         throws com.liferay.portal.kernel.exception.SystemException {
190         return getPersistence().fetchByUUID_G(uuid, groupId);
191     }
192 
193     public static com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByUUID_G(
194         java.lang.String uuid, long groupId, boolean retrieveFromCache)
195         throws com.liferay.portal.kernel.exception.SystemException {
196         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
197     }
198 
199     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByGroupId(
200         long groupId)
201         throws com.liferay.portal.kernel.exception.SystemException {
202         return getPersistence().findByGroupId(groupId);
203     }
204 
205     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByGroupId(
206         long groupId, int start, int end)
207         throws com.liferay.portal.kernel.exception.SystemException {
208         return getPersistence().findByGroupId(groupId, start, end);
209     }
210 
211     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByGroupId(
212         long groupId, int start, int end,
213         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214         throws com.liferay.portal.kernel.exception.SystemException {
215         return getPersistence()
216                    .findByGroupId(groupId, start, end, orderByComparator);
217     }
218 
219     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByGroupId_First(
220         long groupId,
221         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222         throws com.liferay.portal.kernel.exception.SystemException,
223             com.liferay.portlet.bookmarks.NoSuchEntryException {
224         return getPersistence().findByGroupId_First(groupId, orderByComparator);
225     }
226 
227     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByGroupId_Last(
228         long groupId,
229         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
230         throws com.liferay.portal.kernel.exception.SystemException,
231             com.liferay.portlet.bookmarks.NoSuchEntryException {
232         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
233     }
234 
235     public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByGroupId_PrevAndNext(
236         long entryId, long groupId,
237         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
238         throws com.liferay.portal.kernel.exception.SystemException,
239             com.liferay.portlet.bookmarks.NoSuchEntryException {
240         return getPersistence()
241                    .findByGroupId_PrevAndNext(entryId, groupId,
242             orderByComparator);
243     }
244 
245     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> filterFindByGroupId(
246         long groupId)
247         throws com.liferay.portal.kernel.exception.SystemException {
248         return getPersistence().filterFindByGroupId(groupId);
249     }
250 
251     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> filterFindByGroupId(
252         long groupId, int start, int end)
253         throws com.liferay.portal.kernel.exception.SystemException {
254         return getPersistence().filterFindByGroupId(groupId, start, end);
255     }
256 
257     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> filterFindByGroupId(
258         long groupId, int start, int end,
259         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
260         throws com.liferay.portal.kernel.exception.SystemException {
261         return getPersistence()
262                    .filterFindByGroupId(groupId, start, end, orderByComparator);
263     }
264 
265     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
266         long groupId, long userId)
267         throws com.liferay.portal.kernel.exception.SystemException {
268         return getPersistence().findByG_U(groupId, userId);
269     }
270 
271     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
272         long groupId, long userId, int start, int end)
273         throws com.liferay.portal.kernel.exception.SystemException {
274         return getPersistence().findByG_U(groupId, userId, start, end);
275     }
276 
277     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
278         long groupId, long userId, int start, int end,
279         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
280         throws com.liferay.portal.kernel.exception.SystemException {
281         return getPersistence()
282                    .findByG_U(groupId, userId, start, end, orderByComparator);
283     }
284 
285     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_U_First(
286         long groupId, long userId,
287         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
288         throws com.liferay.portal.kernel.exception.SystemException,
289             com.liferay.portlet.bookmarks.NoSuchEntryException {
290         return getPersistence()
291                    .findByG_U_First(groupId, userId, orderByComparator);
292     }
293 
294     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_U_Last(
295         long groupId, long userId,
296         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
297         throws com.liferay.portal.kernel.exception.SystemException,
298             com.liferay.portlet.bookmarks.NoSuchEntryException {
299         return getPersistence()
300                    .findByG_U_Last(groupId, userId, orderByComparator);
301     }
302 
303     public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByG_U_PrevAndNext(
304         long entryId, long groupId, long userId,
305         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
306         throws com.liferay.portal.kernel.exception.SystemException,
307             com.liferay.portlet.bookmarks.NoSuchEntryException {
308         return getPersistence()
309                    .findByG_U_PrevAndNext(entryId, groupId, userId,
310             orderByComparator);
311     }
312 
313     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> filterFindByG_U(
314         long groupId, long userId)
315         throws com.liferay.portal.kernel.exception.SystemException {
316         return getPersistence().filterFindByG_U(groupId, userId);
317     }
318 
319     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> filterFindByG_U(
320         long groupId, long userId, int start, int end)
321         throws com.liferay.portal.kernel.exception.SystemException {
322         return getPersistence().filterFindByG_U(groupId, userId, start, end);
323     }
324 
325     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> filterFindByG_U(
326         long groupId, long userId, int start, int end,
327         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
328         throws com.liferay.portal.kernel.exception.SystemException {
329         return getPersistence()
330                    .filterFindByG_U(groupId, userId, start, end,
331             orderByComparator);
332     }
333 
334     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_F(
335         long groupId, long folderId)
336         throws com.liferay.portal.kernel.exception.SystemException {
337         return getPersistence().findByG_F(groupId, folderId);
338     }
339 
340     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_F(
341         long groupId, long folderId, int start, int end)
342         throws com.liferay.portal.kernel.exception.SystemException {
343         return getPersistence().findByG_F(groupId, folderId, start, end);
344     }
345 
346     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_F(
347         long groupId, long folderId, int start, int end,
348         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
349         throws com.liferay.portal.kernel.exception.SystemException {
350         return getPersistence()
351                    .findByG_F(groupId, folderId, start, end, orderByComparator);
352     }
353 
354     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_F_First(
355         long groupId, long folderId,
356         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
357         throws com.liferay.portal.kernel.exception.SystemException,
358             com.liferay.portlet.bookmarks.NoSuchEntryException {
359         return getPersistence()
360                    .findByG_F_First(groupId, folderId, orderByComparator);
361     }
362 
363     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_F_Last(
364         long groupId, long folderId,
365         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
366         throws com.liferay.portal.kernel.exception.SystemException,
367             com.liferay.portlet.bookmarks.NoSuchEntryException {
368         return getPersistence()
369                    .findByG_F_Last(groupId, folderId, orderByComparator);
370     }
371 
372     public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByG_F_PrevAndNext(
373         long entryId, long groupId, long folderId,
374         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
375         throws com.liferay.portal.kernel.exception.SystemException,
376             com.liferay.portlet.bookmarks.NoSuchEntryException {
377         return getPersistence()
378                    .findByG_F_PrevAndNext(entryId, groupId, folderId,
379             orderByComparator);
380     }
381 
382     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> filterFindByG_F(
383         long groupId, long folderId)
384         throws com.liferay.portal.kernel.exception.SystemException {
385         return getPersistence().filterFindByG_F(groupId, folderId);
386     }
387 
388     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> filterFindByG_F(
389         long groupId, long folderId, int start, int end)
390         throws com.liferay.portal.kernel.exception.SystemException {
391         return getPersistence().filterFindByG_F(groupId, folderId, start, end);
392     }
393 
394     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> filterFindByG_F(
395         long groupId, long folderId, int start, int end,
396         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
397         throws com.liferay.portal.kernel.exception.SystemException {
398         return getPersistence()
399                    .filterFindByG_F(groupId, folderId, start, end,
400             orderByComparator);
401     }
402 
403     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll()
404         throws com.liferay.portal.kernel.exception.SystemException {
405         return getPersistence().findAll();
406     }
407 
408     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll(
409         int start, int end)
410         throws com.liferay.portal.kernel.exception.SystemException {
411         return getPersistence().findAll(start, end);
412     }
413 
414     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll(
415         int start, int end,
416         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
417         throws com.liferay.portal.kernel.exception.SystemException {
418         return getPersistence().findAll(start, end, orderByComparator);
419     }
420 
421     public static void removeByUuid(java.lang.String uuid)
422         throws com.liferay.portal.kernel.exception.SystemException {
423         getPersistence().removeByUuid(uuid);
424     }
425 
426     public static void removeByUUID_G(java.lang.String uuid, long groupId)
427         throws com.liferay.portal.kernel.exception.SystemException,
428             com.liferay.portlet.bookmarks.NoSuchEntryException {
429         getPersistence().removeByUUID_G(uuid, groupId);
430     }
431 
432     public static void removeByGroupId(long groupId)
433         throws com.liferay.portal.kernel.exception.SystemException {
434         getPersistence().removeByGroupId(groupId);
435     }
436 
437     public static void removeByG_U(long groupId, long userId)
438         throws com.liferay.portal.kernel.exception.SystemException {
439         getPersistence().removeByG_U(groupId, userId);
440     }
441 
442     public static void removeByG_F(long groupId, long folderId)
443         throws com.liferay.portal.kernel.exception.SystemException {
444         getPersistence().removeByG_F(groupId, folderId);
445     }
446 
447     public static void removeAll()
448         throws com.liferay.portal.kernel.exception.SystemException {
449         getPersistence().removeAll();
450     }
451 
452     public static int countByUuid(java.lang.String uuid)
453         throws com.liferay.portal.kernel.exception.SystemException {
454         return getPersistence().countByUuid(uuid);
455     }
456 
457     public static int countByUUID_G(java.lang.String uuid, long groupId)
458         throws com.liferay.portal.kernel.exception.SystemException {
459         return getPersistence().countByUUID_G(uuid, groupId);
460     }
461 
462     public static int countByGroupId(long groupId)
463         throws com.liferay.portal.kernel.exception.SystemException {
464         return getPersistence().countByGroupId(groupId);
465     }
466 
467     public static int filterCountByGroupId(long groupId)
468         throws com.liferay.portal.kernel.exception.SystemException {
469         return getPersistence().filterCountByGroupId(groupId);
470     }
471 
472     public static int countByG_U(long groupId, long userId)
473         throws com.liferay.portal.kernel.exception.SystemException {
474         return getPersistence().countByG_U(groupId, userId);
475     }
476 
477     public static int filterCountByG_U(long groupId, long userId)
478         throws com.liferay.portal.kernel.exception.SystemException {
479         return getPersistence().filterCountByG_U(groupId, userId);
480     }
481 
482     public static int countByG_F(long groupId, long folderId)
483         throws com.liferay.portal.kernel.exception.SystemException {
484         return getPersistence().countByG_F(groupId, folderId);
485     }
486 
487     public static int filterCountByG_F(long groupId, long folderId)
488         throws com.liferay.portal.kernel.exception.SystemException {
489         return getPersistence().filterCountByG_F(groupId, folderId);
490     }
491 
492     public static int countAll()
493         throws com.liferay.portal.kernel.exception.SystemException {
494         return getPersistence().countAll();
495     }
496 
497     public static BookmarksEntryPersistence getPersistence() {
498         if (_persistence == null) {
499             _persistence = (BookmarksEntryPersistence)PortalBeanLocatorUtil.locate(BookmarksEntryPersistence.class.getName());
500         }
501 
502         return _persistence;
503     }
504 
505     public void setPersistence(BookmarksEntryPersistence persistence) {
506         _persistence = persistence;
507     }
508 
509     private static BookmarksEntryPersistence _persistence;
510 }