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.BookmarksEntry;
23  
24  import java.util.List;
25  
26  /**
27   * <a href="BookmarksEntryUtil.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       BookmarksEntryPersistence
36   * @see       BookmarksEntryPersistenceImpl
37   * @generated
38   */
39  public class BookmarksEntryUtil {
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(BookmarksEntry)
49       */
50      public static void clearCache(BookmarksEntry bookmarksEntry) {
51          getPersistence().clearCache(bookmarksEntry);
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 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.SystemException,
112             com.liferay.portlet.bookmarks.NoSuchEntryException {
113         return getPersistence().remove(entryId);
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.BookmarksEntry update(
120         com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
121         throws com.liferay.portal.SystemException {
122         return getPersistence().update(bookmarksEntry);
123     }
124 
125     public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateImpl(
126         com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
127         boolean merge) throws com.liferay.portal.SystemException {
128         return getPersistence().updateImpl(bookmarksEntry, merge);
129     }
130 
131     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByPrimaryKey(
132         long entryId)
133         throws com.liferay.portal.SystemException,
134             com.liferay.portlet.bookmarks.NoSuchEntryException {
135         return getPersistence().findByPrimaryKey(entryId);
136     }
137 
138     public static com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByPrimaryKey(
139         long entryId) throws com.liferay.portal.SystemException {
140         return getPersistence().fetchByPrimaryKey(entryId);
141     }
142 
143     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> 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.BookmarksEntry> 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.BookmarksEntry> 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.BookmarksEntry 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.NoSuchEntryException {
166         return getPersistence().findByUuid_First(uuid, orderByComparator);
167     }
168 
169     public static com.liferay.portlet.bookmarks.model.BookmarksEntry 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.NoSuchEntryException {
174         return getPersistence().findByUuid_Last(uuid, orderByComparator);
175     }
176 
177     public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByUuid_PrevAndNext(
178         long entryId, java.lang.String uuid,
179         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180         throws com.liferay.portal.SystemException,
181             com.liferay.portlet.bookmarks.NoSuchEntryException {
182         return getPersistence()
183                    .findByUuid_PrevAndNext(entryId, uuid, orderByComparator);
184     }
185 
186     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByUUID_G(
187         java.lang.String uuid, long groupId)
188         throws com.liferay.portal.SystemException,
189             com.liferay.portlet.bookmarks.NoSuchEntryException {
190         return getPersistence().findByUUID_G(uuid, groupId);
191     }
192 
193     public static com.liferay.portlet.bookmarks.model.BookmarksEntry 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.BookmarksEntry 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.BookmarksEntry> 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.BookmarksEntry> 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.BookmarksEntry> 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.BookmarksEntry findByGroupId_First(
225         long groupId,
226         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227         throws com.liferay.portal.SystemException,
228             com.liferay.portlet.bookmarks.NoSuchEntryException {
229         return getPersistence().findByGroupId_First(groupId, orderByComparator);
230     }
231 
232     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByGroupId_Last(
233         long groupId,
234         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
235         throws com.liferay.portal.SystemException,
236             com.liferay.portlet.bookmarks.NoSuchEntryException {
237         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
238     }
239 
240     public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByGroupId_PrevAndNext(
241         long entryId, long groupId,
242         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243         throws com.liferay.portal.SystemException,
244             com.liferay.portlet.bookmarks.NoSuchEntryException {
245         return getPersistence()
246                    .findByGroupId_PrevAndNext(entryId, groupId,
247             orderByComparator);
248     }
249 
250     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByFolderId(
251         long folderId) throws com.liferay.portal.SystemException {
252         return getPersistence().findByFolderId(folderId);
253     }
254 
255     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByFolderId(
256         long folderId, int start, int end)
257         throws com.liferay.portal.SystemException {
258         return getPersistence().findByFolderId(folderId, start, end);
259     }
260 
261     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByFolderId(
262         long folderId, int start, int end,
263         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264         throws com.liferay.portal.SystemException {
265         return getPersistence()
266                    .findByFolderId(folderId, start, end, orderByComparator);
267     }
268 
269     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByFolderId_First(
270         long folderId,
271         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
272         throws com.liferay.portal.SystemException,
273             com.liferay.portlet.bookmarks.NoSuchEntryException {
274         return getPersistence().findByFolderId_First(folderId, orderByComparator);
275     }
276 
277     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByFolderId_Last(
278         long folderId,
279         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
280         throws com.liferay.portal.SystemException,
281             com.liferay.portlet.bookmarks.NoSuchEntryException {
282         return getPersistence().findByFolderId_Last(folderId, orderByComparator);
283     }
284 
285     public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByFolderId_PrevAndNext(
286         long entryId, long folderId,
287         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
288         throws com.liferay.portal.SystemException,
289             com.liferay.portlet.bookmarks.NoSuchEntryException {
290         return getPersistence()
291                    .findByFolderId_PrevAndNext(entryId, folderId,
292             orderByComparator);
293     }
294 
295     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
296         long groupId, long userId) throws com.liferay.portal.SystemException {
297         return getPersistence().findByG_U(groupId, userId);
298     }
299 
300     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
301         long groupId, long userId, int start, int end)
302         throws com.liferay.portal.SystemException {
303         return getPersistence().findByG_U(groupId, userId, start, end);
304     }
305 
306     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
307         long groupId, long userId, int start, int end,
308         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
309         throws com.liferay.portal.SystemException {
310         return getPersistence()
311                    .findByG_U(groupId, userId, start, end, orderByComparator);
312     }
313 
314     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_U_First(
315         long groupId, long userId,
316         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
317         throws com.liferay.portal.SystemException,
318             com.liferay.portlet.bookmarks.NoSuchEntryException {
319         return getPersistence()
320                    .findByG_U_First(groupId, userId, orderByComparator);
321     }
322 
323     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_U_Last(
324         long groupId, long userId,
325         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
326         throws com.liferay.portal.SystemException,
327             com.liferay.portlet.bookmarks.NoSuchEntryException {
328         return getPersistence()
329                    .findByG_U_Last(groupId, userId, orderByComparator);
330     }
331 
332     public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByG_U_PrevAndNext(
333         long entryId, long groupId, long userId,
334         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
335         throws com.liferay.portal.SystemException,
336             com.liferay.portlet.bookmarks.NoSuchEntryException {
337         return getPersistence()
338                    .findByG_U_PrevAndNext(entryId, groupId, userId,
339             orderByComparator);
340     }
341 
342     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll()
343         throws com.liferay.portal.SystemException {
344         return getPersistence().findAll();
345     }
346 
347     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll(
348         int start, int end) throws com.liferay.portal.SystemException {
349         return getPersistence().findAll(start, end);
350     }
351 
352     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll(
353         int start, int end,
354         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
355         throws com.liferay.portal.SystemException {
356         return getPersistence().findAll(start, end, orderByComparator);
357     }
358 
359     public static void removeByUuid(java.lang.String uuid)
360         throws com.liferay.portal.SystemException {
361         getPersistence().removeByUuid(uuid);
362     }
363 
364     public static void removeByUUID_G(java.lang.String uuid, long groupId)
365         throws com.liferay.portal.SystemException,
366             com.liferay.portlet.bookmarks.NoSuchEntryException {
367         getPersistence().removeByUUID_G(uuid, groupId);
368     }
369 
370     public static void removeByGroupId(long groupId)
371         throws com.liferay.portal.SystemException {
372         getPersistence().removeByGroupId(groupId);
373     }
374 
375     public static void removeByFolderId(long folderId)
376         throws com.liferay.portal.SystemException {
377         getPersistence().removeByFolderId(folderId);
378     }
379 
380     public static void removeByG_U(long groupId, long userId)
381         throws com.liferay.portal.SystemException {
382         getPersistence().removeByG_U(groupId, userId);
383     }
384 
385     public static void removeAll() throws com.liferay.portal.SystemException {
386         getPersistence().removeAll();
387     }
388 
389     public static int countByUuid(java.lang.String uuid)
390         throws com.liferay.portal.SystemException {
391         return getPersistence().countByUuid(uuid);
392     }
393 
394     public static int countByUUID_G(java.lang.String uuid, long groupId)
395         throws com.liferay.portal.SystemException {
396         return getPersistence().countByUUID_G(uuid, groupId);
397     }
398 
399     public static int countByGroupId(long groupId)
400         throws com.liferay.portal.SystemException {
401         return getPersistence().countByGroupId(groupId);
402     }
403 
404     public static int countByFolderId(long folderId)
405         throws com.liferay.portal.SystemException {
406         return getPersistence().countByFolderId(folderId);
407     }
408 
409     public static int countByG_U(long groupId, long userId)
410         throws com.liferay.portal.SystemException {
411         return getPersistence().countByG_U(groupId, userId);
412     }
413 
414     public static int countAll() throws com.liferay.portal.SystemException {
415         return getPersistence().countAll();
416     }
417 
418     public static BookmarksEntryPersistence getPersistence() {
419         if (_persistence == null) {
420             _persistence = (BookmarksEntryPersistence)PortalBeanLocatorUtil.locate(BookmarksEntryPersistence.class.getName());
421 
422             ReferenceRegistry.registerReference(BookmarksEntryUtil.class,
423                 "_persistence");
424         }
425 
426         return _persistence;
427     }
428 
429     public void setPersistence(BookmarksEntryPersistence persistence) {
430         _persistence = persistence;
431 
432         ReferenceRegistry.registerReference(BookmarksEntryUtil.class,
433             "_persistence");
434     }
435 
436     private static BookmarksEntryPersistence _persistence;
437 }