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#findWithDynamicQuery(DynamicQuery)
48       */
49      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50          throws SystemException {
51          return getPersistence().findWithDynamicQuery(dynamicQuery);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58          int start, int end) throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
64       */
65      public static BookmarksEntry remove(BookmarksEntry bookmarksEntry)
66          throws SystemException {
67          return getPersistence().remove(bookmarksEntry);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static BookmarksEntry update(BookmarksEntry bookmarksEntry,
74          boolean merge) throws SystemException {
75          return getPersistence().update(bookmarksEntry, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry) {
80          getPersistence().cacheResult(bookmarksEntry);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> bookmarksEntries) {
85          getPersistence().cacheResult(bookmarksEntries);
86      }
87  
88      public static com.liferay.portlet.bookmarks.model.BookmarksEntry create(
89          long entryId) {
90          return getPersistence().create(entryId);
91      }
92  
93      public static com.liferay.portlet.bookmarks.model.BookmarksEntry remove(
94          long entryId)
95          throws com.liferay.portal.kernel.exception.SystemException,
96              com.liferay.portlet.bookmarks.NoSuchEntryException {
97          return getPersistence().remove(entryId);
98      }
99  
100     public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateImpl(
101         com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
102         boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return getPersistence().updateImpl(bookmarksEntry, merge);
105     }
106 
107     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByPrimaryKey(
108         long entryId)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.bookmarks.NoSuchEntryException {
111         return getPersistence().findByPrimaryKey(entryId);
112     }
113 
114     public static com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByPrimaryKey(
115         long entryId)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return getPersistence().fetchByPrimaryKey(entryId);
118     }
119 
120     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByUuid(
121         java.lang.String uuid)
122         throws com.liferay.portal.kernel.exception.SystemException {
123         return getPersistence().findByUuid(uuid);
124     }
125 
126     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByUuid(
127         java.lang.String uuid, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException {
129         return getPersistence().findByUuid(uuid, start, end);
130     }
131 
132     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByUuid(
133         java.lang.String uuid, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator obc)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence().findByUuid(uuid, start, end, obc);
137     }
138 
139     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByUuid_First(
140         java.lang.String uuid,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.kernel.exception.SystemException,
143             com.liferay.portlet.bookmarks.NoSuchEntryException {
144         return getPersistence().findByUuid_First(uuid, obc);
145     }
146 
147     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByUuid_Last(
148         java.lang.String uuid,
149         com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.kernel.exception.SystemException,
151             com.liferay.portlet.bookmarks.NoSuchEntryException {
152         return getPersistence().findByUuid_Last(uuid, obc);
153     }
154 
155     public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByUuid_PrevAndNext(
156         long entryId, java.lang.String uuid,
157         com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.kernel.exception.SystemException,
159             com.liferay.portlet.bookmarks.NoSuchEntryException {
160         return getPersistence().findByUuid_PrevAndNext(entryId, uuid, obc);
161     }
162 
163     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByUUID_G(
164         java.lang.String uuid, long groupId)
165         throws com.liferay.portal.kernel.exception.SystemException,
166             com.liferay.portlet.bookmarks.NoSuchEntryException {
167         return getPersistence().findByUUID_G(uuid, groupId);
168     }
169 
170     public static com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByUUID_G(
171         java.lang.String uuid, long groupId)
172         throws com.liferay.portal.kernel.exception.SystemException {
173         return getPersistence().fetchByUUID_G(uuid, groupId);
174     }
175 
176     public static com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByUUID_G(
177         java.lang.String uuid, long groupId, boolean retrieveFromCache)
178         throws com.liferay.portal.kernel.exception.SystemException {
179         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
180     }
181 
182     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByGroupId(
183         long groupId)
184         throws com.liferay.portal.kernel.exception.SystemException {
185         return getPersistence().findByGroupId(groupId);
186     }
187 
188     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByGroupId(
189         long groupId, int start, int end)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         return getPersistence().findByGroupId(groupId, start, end);
192     }
193 
194     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByGroupId(
195         long groupId, int start, int end,
196         com.liferay.portal.kernel.util.OrderByComparator obc)
197         throws com.liferay.portal.kernel.exception.SystemException {
198         return getPersistence().findByGroupId(groupId, start, end, obc);
199     }
200 
201     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByGroupId_First(
202         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
203         throws com.liferay.portal.kernel.exception.SystemException,
204             com.liferay.portlet.bookmarks.NoSuchEntryException {
205         return getPersistence().findByGroupId_First(groupId, obc);
206     }
207 
208     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByGroupId_Last(
209         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
210         throws com.liferay.portal.kernel.exception.SystemException,
211             com.liferay.portlet.bookmarks.NoSuchEntryException {
212         return getPersistence().findByGroupId_Last(groupId, obc);
213     }
214 
215     public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByGroupId_PrevAndNext(
216         long entryId, long groupId,
217         com.liferay.portal.kernel.util.OrderByComparator obc)
218         throws com.liferay.portal.kernel.exception.SystemException,
219             com.liferay.portlet.bookmarks.NoSuchEntryException {
220         return getPersistence().findByGroupId_PrevAndNext(entryId, groupId, obc);
221     }
222 
223     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
224         long groupId, long userId)
225         throws com.liferay.portal.kernel.exception.SystemException {
226         return getPersistence().findByG_U(groupId, userId);
227     }
228 
229     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
230         long groupId, long userId, int start, int end)
231         throws com.liferay.portal.kernel.exception.SystemException {
232         return getPersistence().findByG_U(groupId, userId, start, end);
233     }
234 
235     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
236         long groupId, long userId, int start, int end,
237         com.liferay.portal.kernel.util.OrderByComparator obc)
238         throws com.liferay.portal.kernel.exception.SystemException {
239         return getPersistence().findByG_U(groupId, userId, start, end, obc);
240     }
241 
242     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_U_First(
243         long groupId, long userId,
244         com.liferay.portal.kernel.util.OrderByComparator obc)
245         throws com.liferay.portal.kernel.exception.SystemException,
246             com.liferay.portlet.bookmarks.NoSuchEntryException {
247         return getPersistence().findByG_U_First(groupId, userId, obc);
248     }
249 
250     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_U_Last(
251         long groupId, long userId,
252         com.liferay.portal.kernel.util.OrderByComparator obc)
253         throws com.liferay.portal.kernel.exception.SystemException,
254             com.liferay.portlet.bookmarks.NoSuchEntryException {
255         return getPersistence().findByG_U_Last(groupId, userId, obc);
256     }
257 
258     public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByG_U_PrevAndNext(
259         long entryId, long groupId, long userId,
260         com.liferay.portal.kernel.util.OrderByComparator obc)
261         throws com.liferay.portal.kernel.exception.SystemException,
262             com.liferay.portlet.bookmarks.NoSuchEntryException {
263         return getPersistence()
264                    .findByG_U_PrevAndNext(entryId, groupId, userId, obc);
265     }
266 
267     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_F(
268         long groupId, long folderId)
269         throws com.liferay.portal.kernel.exception.SystemException {
270         return getPersistence().findByG_F(groupId, folderId);
271     }
272 
273     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_F(
274         long groupId, long folderId, int start, int end)
275         throws com.liferay.portal.kernel.exception.SystemException {
276         return getPersistence().findByG_F(groupId, folderId, start, end);
277     }
278 
279     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_F(
280         long groupId, long folderId, int start, int end,
281         com.liferay.portal.kernel.util.OrderByComparator obc)
282         throws com.liferay.portal.kernel.exception.SystemException {
283         return getPersistence().findByG_F(groupId, folderId, start, end, obc);
284     }
285 
286     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_F_First(
287         long groupId, long folderId,
288         com.liferay.portal.kernel.util.OrderByComparator obc)
289         throws com.liferay.portal.kernel.exception.SystemException,
290             com.liferay.portlet.bookmarks.NoSuchEntryException {
291         return getPersistence().findByG_F_First(groupId, folderId, obc);
292     }
293 
294     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_F_Last(
295         long groupId, long folderId,
296         com.liferay.portal.kernel.util.OrderByComparator obc)
297         throws com.liferay.portal.kernel.exception.SystemException,
298             com.liferay.portlet.bookmarks.NoSuchEntryException {
299         return getPersistence().findByG_F_Last(groupId, folderId, obc);
300     }
301 
302     public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByG_F_PrevAndNext(
303         long entryId, long groupId, long folderId,
304         com.liferay.portal.kernel.util.OrderByComparator obc)
305         throws com.liferay.portal.kernel.exception.SystemException,
306             com.liferay.portlet.bookmarks.NoSuchEntryException {
307         return getPersistence()
308                    .findByG_F_PrevAndNext(entryId, groupId, folderId, obc);
309     }
310 
311     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll()
312         throws com.liferay.portal.kernel.exception.SystemException {
313         return getPersistence().findAll();
314     }
315 
316     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll(
317         int start, int end)
318         throws com.liferay.portal.kernel.exception.SystemException {
319         return getPersistence().findAll(start, end);
320     }
321 
322     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll(
323         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
324         throws com.liferay.portal.kernel.exception.SystemException {
325         return getPersistence().findAll(start, end, obc);
326     }
327 
328     public static void removeByUuid(java.lang.String uuid)
329         throws com.liferay.portal.kernel.exception.SystemException {
330         getPersistence().removeByUuid(uuid);
331     }
332 
333     public static void removeByUUID_G(java.lang.String uuid, long groupId)
334         throws com.liferay.portal.kernel.exception.SystemException,
335             com.liferay.portlet.bookmarks.NoSuchEntryException {
336         getPersistence().removeByUUID_G(uuid, groupId);
337     }
338 
339     public static void removeByGroupId(long groupId)
340         throws com.liferay.portal.kernel.exception.SystemException {
341         getPersistence().removeByGroupId(groupId);
342     }
343 
344     public static void removeByG_U(long groupId, long userId)
345         throws com.liferay.portal.kernel.exception.SystemException {
346         getPersistence().removeByG_U(groupId, userId);
347     }
348 
349     public static void removeByG_F(long groupId, long folderId)
350         throws com.liferay.portal.kernel.exception.SystemException {
351         getPersistence().removeByG_F(groupId, folderId);
352     }
353 
354     public static void removeAll()
355         throws com.liferay.portal.kernel.exception.SystemException {
356         getPersistence().removeAll();
357     }
358 
359     public static int countByUuid(java.lang.String uuid)
360         throws com.liferay.portal.kernel.exception.SystemException {
361         return getPersistence().countByUuid(uuid);
362     }
363 
364     public static int countByUUID_G(java.lang.String uuid, long groupId)
365         throws com.liferay.portal.kernel.exception.SystemException {
366         return getPersistence().countByUUID_G(uuid, groupId);
367     }
368 
369     public static int countByGroupId(long groupId)
370         throws com.liferay.portal.kernel.exception.SystemException {
371         return getPersistence().countByGroupId(groupId);
372     }
373 
374     public static int countByG_U(long groupId, long userId)
375         throws com.liferay.portal.kernel.exception.SystemException {
376         return getPersistence().countByG_U(groupId, userId);
377     }
378 
379     public static int countByG_F(long groupId, long folderId)
380         throws com.liferay.portal.kernel.exception.SystemException {
381         return getPersistence().countByG_F(groupId, folderId);
382     }
383 
384     public static int countAll()
385         throws com.liferay.portal.kernel.exception.SystemException {
386         return getPersistence().countAll();
387     }
388 
389     public static BookmarksEntryPersistence getPersistence() {
390         if (_persistence == null) {
391             _persistence = (BookmarksEntryPersistence)PortalBeanLocatorUtil.locate(BookmarksEntryPersistence.class.getName());
392         }
393 
394         return _persistence;
395     }
396 
397     public void setPersistence(BookmarksEntryPersistence persistence) {
398         _persistence = persistence;
399     }
400 
401     private static BookmarksEntryPersistence _persistence;
402 }