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