1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.bookmarks.service.persistence;
24  
25  import com.liferay.portal.SystemException;
26  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28  
29  import com.liferay.portlet.bookmarks.model.BookmarksEntry;
30  
31  import java.util.List;
32  
33  /**
34   * <a href="BookmarksEntryUtil.java.html"><b><i>View Source</i></b></a>
35   *
36   * <p>
37   * ServiceBuilder generated this class. Modifications in this class will be
38   * overwritten the next time is generated.
39   * </p>
40   *
41   * @author    Brian Wing Shun Chan
42   * @see       BookmarksEntryPersistence
43   * @see       BookmarksEntryPersistenceImpl
44   * @generated
45   */
46  public class BookmarksEntryUtil {
47      /**
48       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
49       */
50      public static void clearCache() {
51          getPersistence().clearCache();
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
58          throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
64       */
65      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
66          int start, int end) throws SystemException {
67          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
72       */
73      public static BookmarksEntry remove(BookmarksEntry bookmarksEntry)
74          throws SystemException {
75          return getPersistence().remove(bookmarksEntry);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
80       */
81      public static BookmarksEntry update(BookmarksEntry bookmarksEntry,
82          boolean merge) throws SystemException {
83          return getPersistence().update(bookmarksEntry, merge);
84      }
85  
86      public static void cacheResult(
87          com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry) {
88          getPersistence().cacheResult(bookmarksEntry);
89      }
90  
91      public static void cacheResult(
92          java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> bookmarksEntries) {
93          getPersistence().cacheResult(bookmarksEntries);
94      }
95  
96      public static com.liferay.portlet.bookmarks.model.BookmarksEntry create(
97          long entryId) {
98          return getPersistence().create(entryId);
99      }
100 
101     public static com.liferay.portlet.bookmarks.model.BookmarksEntry remove(
102         long entryId)
103         throws com.liferay.portal.SystemException,
104             com.liferay.portlet.bookmarks.NoSuchEntryException {
105         return getPersistence().remove(entryId);
106     }
107 
108     /**
109      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
110      */
111     public static com.liferay.portlet.bookmarks.model.BookmarksEntry update(
112         com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
113         throws com.liferay.portal.SystemException {
114         return getPersistence().update(bookmarksEntry);
115     }
116 
117     public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateImpl(
118         com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
119         boolean merge) throws com.liferay.portal.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.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) throws com.liferay.portal.SystemException {
132         return getPersistence().fetchByPrimaryKey(entryId);
133     }
134 
135     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByUuid(
136         java.lang.String uuid) throws com.liferay.portal.SystemException {
137         return getPersistence().findByUuid(uuid);
138     }
139 
140     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByUuid(
141         java.lang.String uuid, int start, int end)
142         throws com.liferay.portal.SystemException {
143         return getPersistence().findByUuid(uuid, start, end);
144     }
145 
146     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByUuid(
147         java.lang.String uuid, int start, int end,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException {
150         return getPersistence().findByUuid(uuid, start, end, obc);
151     }
152 
153     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByUuid_First(
154         java.lang.String uuid,
155         com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.bookmarks.NoSuchEntryException {
158         return getPersistence().findByUuid_First(uuid, obc);
159     }
160 
161     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByUuid_Last(
162         java.lang.String uuid,
163         com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.bookmarks.NoSuchEntryException {
166         return getPersistence().findByUuid_Last(uuid, obc);
167     }
168 
169     public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByUuid_PrevAndNext(
170         long entryId, java.lang.String uuid,
171         com.liferay.portal.kernel.util.OrderByComparator obc)
172         throws com.liferay.portal.SystemException,
173             com.liferay.portlet.bookmarks.NoSuchEntryException {
174         return getPersistence().findByUuid_PrevAndNext(entryId, uuid, obc);
175     }
176 
177     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByUUID_G(
178         java.lang.String uuid, long groupId)
179         throws com.liferay.portal.SystemException,
180             com.liferay.portlet.bookmarks.NoSuchEntryException {
181         return getPersistence().findByUUID_G(uuid, groupId);
182     }
183 
184     public static com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByUUID_G(
185         java.lang.String uuid, long groupId)
186         throws com.liferay.portal.SystemException {
187         return getPersistence().fetchByUUID_G(uuid, groupId);
188     }
189 
190     public static com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByUUID_G(
191         java.lang.String uuid, long groupId, boolean retrieveFromCache)
192         throws com.liferay.portal.SystemException {
193         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
194     }
195 
196     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByGroupId(
197         long groupId) throws com.liferay.portal.SystemException {
198         return getPersistence().findByGroupId(groupId);
199     }
200 
201     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByGroupId(
202         long groupId, int start, int end)
203         throws com.liferay.portal.SystemException {
204         return getPersistence().findByGroupId(groupId, start, end);
205     }
206 
207     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByGroupId(
208         long groupId, int start, int end,
209         com.liferay.portal.kernel.util.OrderByComparator obc)
210         throws com.liferay.portal.SystemException {
211         return getPersistence().findByGroupId(groupId, start, end, obc);
212     }
213 
214     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByGroupId_First(
215         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
216         throws com.liferay.portal.SystemException,
217             com.liferay.portlet.bookmarks.NoSuchEntryException {
218         return getPersistence().findByGroupId_First(groupId, obc);
219     }
220 
221     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByGroupId_Last(
222         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
223         throws com.liferay.portal.SystemException,
224             com.liferay.portlet.bookmarks.NoSuchEntryException {
225         return getPersistence().findByGroupId_Last(groupId, obc);
226     }
227 
228     public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByGroupId_PrevAndNext(
229         long entryId, long groupId,
230         com.liferay.portal.kernel.util.OrderByComparator obc)
231         throws com.liferay.portal.SystemException,
232             com.liferay.portlet.bookmarks.NoSuchEntryException {
233         return getPersistence().findByGroupId_PrevAndNext(entryId, groupId, obc);
234     }
235 
236     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByFolderId(
237         long folderId) throws com.liferay.portal.SystemException {
238         return getPersistence().findByFolderId(folderId);
239     }
240 
241     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByFolderId(
242         long folderId, int start, int end)
243         throws com.liferay.portal.SystemException {
244         return getPersistence().findByFolderId(folderId, start, end);
245     }
246 
247     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByFolderId(
248         long folderId, int start, int end,
249         com.liferay.portal.kernel.util.OrderByComparator obc)
250         throws com.liferay.portal.SystemException {
251         return getPersistence().findByFolderId(folderId, start, end, obc);
252     }
253 
254     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByFolderId_First(
255         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
256         throws com.liferay.portal.SystemException,
257             com.liferay.portlet.bookmarks.NoSuchEntryException {
258         return getPersistence().findByFolderId_First(folderId, obc);
259     }
260 
261     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByFolderId_Last(
262         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
263         throws com.liferay.portal.SystemException,
264             com.liferay.portlet.bookmarks.NoSuchEntryException {
265         return getPersistence().findByFolderId_Last(folderId, obc);
266     }
267 
268     public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByFolderId_PrevAndNext(
269         long entryId, long folderId,
270         com.liferay.portal.kernel.util.OrderByComparator obc)
271         throws com.liferay.portal.SystemException,
272             com.liferay.portlet.bookmarks.NoSuchEntryException {
273         return getPersistence()
274                    .findByFolderId_PrevAndNext(entryId, folderId, obc);
275     }
276 
277     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
278         long groupId, long userId) throws com.liferay.portal.SystemException {
279         return getPersistence().findByG_U(groupId, userId);
280     }
281 
282     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
283         long groupId, long userId, int start, int end)
284         throws com.liferay.portal.SystemException {
285         return getPersistence().findByG_U(groupId, userId, start, end);
286     }
287 
288     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U(
289         long groupId, long userId, int start, int end,
290         com.liferay.portal.kernel.util.OrderByComparator obc)
291         throws com.liferay.portal.SystemException {
292         return getPersistence().findByG_U(groupId, userId, start, end, obc);
293     }
294 
295     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_U_First(
296         long groupId, long userId,
297         com.liferay.portal.kernel.util.OrderByComparator obc)
298         throws com.liferay.portal.SystemException,
299             com.liferay.portlet.bookmarks.NoSuchEntryException {
300         return getPersistence().findByG_U_First(groupId, userId, obc);
301     }
302 
303     public static com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_U_Last(
304         long groupId, long userId,
305         com.liferay.portal.kernel.util.OrderByComparator obc)
306         throws com.liferay.portal.SystemException,
307             com.liferay.portlet.bookmarks.NoSuchEntryException {
308         return getPersistence().findByG_U_Last(groupId, userId, obc);
309     }
310 
311     public static com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByG_U_PrevAndNext(
312         long entryId, long groupId, long userId,
313         com.liferay.portal.kernel.util.OrderByComparator obc)
314         throws com.liferay.portal.SystemException,
315             com.liferay.portlet.bookmarks.NoSuchEntryException {
316         return getPersistence()
317                    .findByG_U_PrevAndNext(entryId, groupId, userId, obc);
318     }
319 
320     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll()
321         throws com.liferay.portal.SystemException {
322         return getPersistence().findAll();
323     }
324 
325     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll(
326         int start, int end) throws com.liferay.portal.SystemException {
327         return getPersistence().findAll(start, end);
328     }
329 
330     public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll(
331         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
332         throws com.liferay.portal.SystemException {
333         return getPersistence().findAll(start, end, obc);
334     }
335 
336     public static void removeByUuid(java.lang.String uuid)
337         throws com.liferay.portal.SystemException {
338         getPersistence().removeByUuid(uuid);
339     }
340 
341     public static void removeByUUID_G(java.lang.String uuid, long groupId)
342         throws com.liferay.portal.SystemException,
343             com.liferay.portlet.bookmarks.NoSuchEntryException {
344         getPersistence().removeByUUID_G(uuid, groupId);
345     }
346 
347     public static void removeByGroupId(long groupId)
348         throws com.liferay.portal.SystemException {
349         getPersistence().removeByGroupId(groupId);
350     }
351 
352     public static void removeByFolderId(long folderId)
353         throws com.liferay.portal.SystemException {
354         getPersistence().removeByFolderId(folderId);
355     }
356 
357     public static void removeByG_U(long groupId, long userId)
358         throws com.liferay.portal.SystemException {
359         getPersistence().removeByG_U(groupId, userId);
360     }
361 
362     public static void removeAll() throws com.liferay.portal.SystemException {
363         getPersistence().removeAll();
364     }
365 
366     public static int countByUuid(java.lang.String uuid)
367         throws com.liferay.portal.SystemException {
368         return getPersistence().countByUuid(uuid);
369     }
370 
371     public static int countByUUID_G(java.lang.String uuid, long groupId)
372         throws com.liferay.portal.SystemException {
373         return getPersistence().countByUUID_G(uuid, groupId);
374     }
375 
376     public static int countByGroupId(long groupId)
377         throws com.liferay.portal.SystemException {
378         return getPersistence().countByGroupId(groupId);
379     }
380 
381     public static int countByFolderId(long folderId)
382         throws com.liferay.portal.SystemException {
383         return getPersistence().countByFolderId(folderId);
384     }
385 
386     public static int countByG_U(long groupId, long userId)
387         throws com.liferay.portal.SystemException {
388         return getPersistence().countByG_U(groupId, userId);
389     }
390 
391     public static int countAll() throws com.liferay.portal.SystemException {
392         return getPersistence().countAll();
393     }
394 
395     public static BookmarksEntryPersistence getPersistence() {
396         if (_persistence == null) {
397             _persistence = (BookmarksEntryPersistence)PortalBeanLocatorUtil.locate(BookmarksEntryPersistence.class.getName());
398         }
399 
400         return _persistence;
401     }
402 
403     public void setPersistence(BookmarksEntryPersistence persistence) {
404         _persistence = persistence;
405     }
406 
407     private static BookmarksEntryPersistence _persistence;
408 }