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