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.IGImage;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="IGImageUtil.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       IGImagePersistence
35   * @see       IGImagePersistenceImpl
36   * @generated
37   */
38  public class IGImageUtil {
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 IGImage remove(IGImage igImage) throws SystemException {
66          return getPersistence().remove(igImage);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
71       */
72      public static IGImage update(IGImage igImage, boolean merge)
73          throws SystemException {
74          return getPersistence().update(igImage, merge);
75      }
76  
77      public static void cacheResult(
78          com.liferay.portlet.imagegallery.model.IGImage igImage) {
79          getPersistence().cacheResult(igImage);
80      }
81  
82      public static void cacheResult(
83          java.util.List<com.liferay.portlet.imagegallery.model.IGImage> igImages) {
84          getPersistence().cacheResult(igImages);
85      }
86  
87      public static com.liferay.portlet.imagegallery.model.IGImage create(
88          long imageId) {
89          return getPersistence().create(imageId);
90      }
91  
92      public static com.liferay.portlet.imagegallery.model.IGImage remove(
93          long imageId)
94          throws com.liferay.portal.kernel.exception.SystemException,
95              com.liferay.portlet.imagegallery.NoSuchImageException {
96          return getPersistence().remove(imageId);
97      }
98  
99      public static com.liferay.portlet.imagegallery.model.IGImage updateImpl(
100         com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
101         throws com.liferay.portal.kernel.exception.SystemException {
102         return getPersistence().updateImpl(igImage, merge);
103     }
104 
105     public static com.liferay.portlet.imagegallery.model.IGImage findByPrimaryKey(
106         long imageId)
107         throws com.liferay.portal.kernel.exception.SystemException,
108             com.liferay.portlet.imagegallery.NoSuchImageException {
109         return getPersistence().findByPrimaryKey(imageId);
110     }
111 
112     public static com.liferay.portlet.imagegallery.model.IGImage fetchByPrimaryKey(
113         long imageId)
114         throws com.liferay.portal.kernel.exception.SystemException {
115         return getPersistence().fetchByPrimaryKey(imageId);
116     }
117 
118     public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> 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.IGImage> 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.IGImage> 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.IGImage 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.NoSuchImageException {
142         return getPersistence().findByUuid_First(uuid, obc);
143     }
144 
145     public static com.liferay.portlet.imagegallery.model.IGImage 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.NoSuchImageException {
150         return getPersistence().findByUuid_Last(uuid, obc);
151     }
152 
153     public static com.liferay.portlet.imagegallery.model.IGImage[] findByUuid_PrevAndNext(
154         long imageId, 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.NoSuchImageException {
158         return getPersistence().findByUuid_PrevAndNext(imageId, uuid, obc);
159     }
160 
161     public static com.liferay.portlet.imagegallery.model.IGImage findByUUID_G(
162         java.lang.String uuid, long groupId)
163         throws com.liferay.portal.kernel.exception.SystemException,
164             com.liferay.portlet.imagegallery.NoSuchImageException {
165         return getPersistence().findByUUID_G(uuid, groupId);
166     }
167 
168     public static com.liferay.portlet.imagegallery.model.IGImage 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.IGImage 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.IGImage> 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.IGImage> 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.IGImage> 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.IGImage 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.NoSuchImageException {
203         return getPersistence().findByGroupId_First(groupId, obc);
204     }
205 
206     public static com.liferay.portlet.imagegallery.model.IGImage 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.NoSuchImageException {
210         return getPersistence().findByGroupId_Last(groupId, obc);
211     }
212 
213     public static com.liferay.portlet.imagegallery.model.IGImage[] findByGroupId_PrevAndNext(
214         long imageId, long groupId,
215         com.liferay.portal.kernel.util.OrderByComparator obc)
216         throws com.liferay.portal.kernel.exception.SystemException,
217             com.liferay.portlet.imagegallery.NoSuchImageException {
218         return getPersistence().findByGroupId_PrevAndNext(imageId, groupId, obc);
219     }
220 
221     public static com.liferay.portlet.imagegallery.model.IGImage findBySmallImageId(
222         long smallImageId)
223         throws com.liferay.portal.kernel.exception.SystemException,
224             com.liferay.portlet.imagegallery.NoSuchImageException {
225         return getPersistence().findBySmallImageId(smallImageId);
226     }
227 
228     public static com.liferay.portlet.imagegallery.model.IGImage fetchBySmallImageId(
229         long smallImageId)
230         throws com.liferay.portal.kernel.exception.SystemException {
231         return getPersistence().fetchBySmallImageId(smallImageId);
232     }
233 
234     public static com.liferay.portlet.imagegallery.model.IGImage fetchBySmallImageId(
235         long smallImageId, boolean retrieveFromCache)
236         throws com.liferay.portal.kernel.exception.SystemException {
237         return getPersistence()
238                    .fetchBySmallImageId(smallImageId, retrieveFromCache);
239     }
240 
241     public static com.liferay.portlet.imagegallery.model.IGImage findByLargeImageId(
242         long largeImageId)
243         throws com.liferay.portal.kernel.exception.SystemException,
244             com.liferay.portlet.imagegallery.NoSuchImageException {
245         return getPersistence().findByLargeImageId(largeImageId);
246     }
247 
248     public static com.liferay.portlet.imagegallery.model.IGImage fetchByLargeImageId(
249         long largeImageId)
250         throws com.liferay.portal.kernel.exception.SystemException {
251         return getPersistence().fetchByLargeImageId(largeImageId);
252     }
253 
254     public static com.liferay.portlet.imagegallery.model.IGImage fetchByLargeImageId(
255         long largeImageId, boolean retrieveFromCache)
256         throws com.liferay.portal.kernel.exception.SystemException {
257         return getPersistence()
258                    .fetchByLargeImageId(largeImageId, retrieveFromCache);
259     }
260 
261     public static com.liferay.portlet.imagegallery.model.IGImage findByCustom1ImageId(
262         long custom1ImageId)
263         throws com.liferay.portal.kernel.exception.SystemException,
264             com.liferay.portlet.imagegallery.NoSuchImageException {
265         return getPersistence().findByCustom1ImageId(custom1ImageId);
266     }
267 
268     public static com.liferay.portlet.imagegallery.model.IGImage fetchByCustom1ImageId(
269         long custom1ImageId)
270         throws com.liferay.portal.kernel.exception.SystemException {
271         return getPersistence().fetchByCustom1ImageId(custom1ImageId);
272     }
273 
274     public static com.liferay.portlet.imagegallery.model.IGImage fetchByCustom1ImageId(
275         long custom1ImageId, boolean retrieveFromCache)
276         throws com.liferay.portal.kernel.exception.SystemException {
277         return getPersistence()
278                    .fetchByCustom1ImageId(custom1ImageId, retrieveFromCache);
279     }
280 
281     public static com.liferay.portlet.imagegallery.model.IGImage findByCustom2ImageId(
282         long custom2ImageId)
283         throws com.liferay.portal.kernel.exception.SystemException,
284             com.liferay.portlet.imagegallery.NoSuchImageException {
285         return getPersistence().findByCustom2ImageId(custom2ImageId);
286     }
287 
288     public static com.liferay.portlet.imagegallery.model.IGImage fetchByCustom2ImageId(
289         long custom2ImageId)
290         throws com.liferay.portal.kernel.exception.SystemException {
291         return getPersistence().fetchByCustom2ImageId(custom2ImageId);
292     }
293 
294     public static com.liferay.portlet.imagegallery.model.IGImage fetchByCustom2ImageId(
295         long custom2ImageId, boolean retrieveFromCache)
296         throws com.liferay.portal.kernel.exception.SystemException {
297         return getPersistence()
298                    .fetchByCustom2ImageId(custom2ImageId, retrieveFromCache);
299     }
300 
301     public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_U(
302         long groupId, long userId)
303         throws com.liferay.portal.kernel.exception.SystemException {
304         return getPersistence().findByG_U(groupId, userId);
305     }
306 
307     public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_U(
308         long groupId, long userId, int start, int end)
309         throws com.liferay.portal.kernel.exception.SystemException {
310         return getPersistence().findByG_U(groupId, userId, start, end);
311     }
312 
313     public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_U(
314         long groupId, long userId, int start, int end,
315         com.liferay.portal.kernel.util.OrderByComparator obc)
316         throws com.liferay.portal.kernel.exception.SystemException {
317         return getPersistence().findByG_U(groupId, userId, start, end, obc);
318     }
319 
320     public static com.liferay.portlet.imagegallery.model.IGImage findByG_U_First(
321         long groupId, long userId,
322         com.liferay.portal.kernel.util.OrderByComparator obc)
323         throws com.liferay.portal.kernel.exception.SystemException,
324             com.liferay.portlet.imagegallery.NoSuchImageException {
325         return getPersistence().findByG_U_First(groupId, userId, obc);
326     }
327 
328     public static com.liferay.portlet.imagegallery.model.IGImage findByG_U_Last(
329         long groupId, long userId,
330         com.liferay.portal.kernel.util.OrderByComparator obc)
331         throws com.liferay.portal.kernel.exception.SystemException,
332             com.liferay.portlet.imagegallery.NoSuchImageException {
333         return getPersistence().findByG_U_Last(groupId, userId, obc);
334     }
335 
336     public static com.liferay.portlet.imagegallery.model.IGImage[] findByG_U_PrevAndNext(
337         long imageId, long groupId, long userId,
338         com.liferay.portal.kernel.util.OrderByComparator obc)
339         throws com.liferay.portal.kernel.exception.SystemException,
340             com.liferay.portlet.imagegallery.NoSuchImageException {
341         return getPersistence()
342                    .findByG_U_PrevAndNext(imageId, groupId, userId, obc);
343     }
344 
345     public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F(
346         long groupId, long folderId)
347         throws com.liferay.portal.kernel.exception.SystemException {
348         return getPersistence().findByG_F(groupId, folderId);
349     }
350 
351     public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F(
352         long groupId, long folderId, int start, int end)
353         throws com.liferay.portal.kernel.exception.SystemException {
354         return getPersistence().findByG_F(groupId, folderId, start, end);
355     }
356 
357     public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F(
358         long groupId, long folderId, int start, int end,
359         com.liferay.portal.kernel.util.OrderByComparator obc)
360         throws com.liferay.portal.kernel.exception.SystemException {
361         return getPersistence().findByG_F(groupId, folderId, start, end, obc);
362     }
363 
364     public static com.liferay.portlet.imagegallery.model.IGImage findByG_F_First(
365         long groupId, long folderId,
366         com.liferay.portal.kernel.util.OrderByComparator obc)
367         throws com.liferay.portal.kernel.exception.SystemException,
368             com.liferay.portlet.imagegallery.NoSuchImageException {
369         return getPersistence().findByG_F_First(groupId, folderId, obc);
370     }
371 
372     public static com.liferay.portlet.imagegallery.model.IGImage findByG_F_Last(
373         long groupId, long folderId,
374         com.liferay.portal.kernel.util.OrderByComparator obc)
375         throws com.liferay.portal.kernel.exception.SystemException,
376             com.liferay.portlet.imagegallery.NoSuchImageException {
377         return getPersistence().findByG_F_Last(groupId, folderId, obc);
378     }
379 
380     public static com.liferay.portlet.imagegallery.model.IGImage[] findByG_F_PrevAndNext(
381         long imageId, long groupId, long folderId,
382         com.liferay.portal.kernel.util.OrderByComparator obc)
383         throws com.liferay.portal.kernel.exception.SystemException,
384             com.liferay.portlet.imagegallery.NoSuchImageException {
385         return getPersistence()
386                    .findByG_F_PrevAndNext(imageId, groupId, folderId, obc);
387     }
388 
389     public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F_N(
390         long groupId, long folderId, java.lang.String name)
391         throws com.liferay.portal.kernel.exception.SystemException {
392         return getPersistence().findByG_F_N(groupId, folderId, name);
393     }
394 
395     public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F_N(
396         long groupId, long folderId, java.lang.String name, int start, int end)
397         throws com.liferay.portal.kernel.exception.SystemException {
398         return getPersistence().findByG_F_N(groupId, folderId, name, start, end);
399     }
400 
401     public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F_N(
402         long groupId, long folderId, java.lang.String name, int start, int end,
403         com.liferay.portal.kernel.util.OrderByComparator obc)
404         throws com.liferay.portal.kernel.exception.SystemException {
405         return getPersistence()
406                    .findByG_F_N(groupId, folderId, name, start, end, obc);
407     }
408 
409     public static com.liferay.portlet.imagegallery.model.IGImage findByG_F_N_First(
410         long groupId, long folderId, java.lang.String name,
411         com.liferay.portal.kernel.util.OrderByComparator obc)
412         throws com.liferay.portal.kernel.exception.SystemException,
413             com.liferay.portlet.imagegallery.NoSuchImageException {
414         return getPersistence().findByG_F_N_First(groupId, folderId, name, obc);
415     }
416 
417     public static com.liferay.portlet.imagegallery.model.IGImage findByG_F_N_Last(
418         long groupId, long folderId, java.lang.String name,
419         com.liferay.portal.kernel.util.OrderByComparator obc)
420         throws com.liferay.portal.kernel.exception.SystemException,
421             com.liferay.portlet.imagegallery.NoSuchImageException {
422         return getPersistence().findByG_F_N_Last(groupId, folderId, name, obc);
423     }
424 
425     public static com.liferay.portlet.imagegallery.model.IGImage[] findByG_F_N_PrevAndNext(
426         long imageId, long groupId, long folderId, java.lang.String name,
427         com.liferay.portal.kernel.util.OrderByComparator obc)
428         throws com.liferay.portal.kernel.exception.SystemException,
429             com.liferay.portlet.imagegallery.NoSuchImageException {
430         return getPersistence()
431                    .findByG_F_N_PrevAndNext(imageId, groupId, folderId, name,
432             obc);
433     }
434 
435     public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll()
436         throws com.liferay.portal.kernel.exception.SystemException {
437         return getPersistence().findAll();
438     }
439 
440     public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll(
441         int start, int end)
442         throws com.liferay.portal.kernel.exception.SystemException {
443         return getPersistence().findAll(start, end);
444     }
445 
446     public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll(
447         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
448         throws com.liferay.portal.kernel.exception.SystemException {
449         return getPersistence().findAll(start, end, obc);
450     }
451 
452     public static void removeByUuid(java.lang.String uuid)
453         throws com.liferay.portal.kernel.exception.SystemException {
454         getPersistence().removeByUuid(uuid);
455     }
456 
457     public static void removeByUUID_G(java.lang.String uuid, long groupId)
458         throws com.liferay.portal.kernel.exception.SystemException,
459             com.liferay.portlet.imagegallery.NoSuchImageException {
460         getPersistence().removeByUUID_G(uuid, groupId);
461     }
462 
463     public static void removeByGroupId(long groupId)
464         throws com.liferay.portal.kernel.exception.SystemException {
465         getPersistence().removeByGroupId(groupId);
466     }
467 
468     public static void removeBySmallImageId(long smallImageId)
469         throws com.liferay.portal.kernel.exception.SystemException,
470             com.liferay.portlet.imagegallery.NoSuchImageException {
471         getPersistence().removeBySmallImageId(smallImageId);
472     }
473 
474     public static void removeByLargeImageId(long largeImageId)
475         throws com.liferay.portal.kernel.exception.SystemException,
476             com.liferay.portlet.imagegallery.NoSuchImageException {
477         getPersistence().removeByLargeImageId(largeImageId);
478     }
479 
480     public static void removeByCustom1ImageId(long custom1ImageId)
481         throws com.liferay.portal.kernel.exception.SystemException,
482             com.liferay.portlet.imagegallery.NoSuchImageException {
483         getPersistence().removeByCustom1ImageId(custom1ImageId);
484     }
485 
486     public static void removeByCustom2ImageId(long custom2ImageId)
487         throws com.liferay.portal.kernel.exception.SystemException,
488             com.liferay.portlet.imagegallery.NoSuchImageException {
489         getPersistence().removeByCustom2ImageId(custom2ImageId);
490     }
491 
492     public static void removeByG_U(long groupId, long userId)
493         throws com.liferay.portal.kernel.exception.SystemException {
494         getPersistence().removeByG_U(groupId, userId);
495     }
496 
497     public static void removeByG_F(long groupId, long folderId)
498         throws com.liferay.portal.kernel.exception.SystemException {
499         getPersistence().removeByG_F(groupId, folderId);
500     }
501 
502     public static void removeByG_F_N(long groupId, long folderId,
503         java.lang.String name)
504         throws com.liferay.portal.kernel.exception.SystemException {
505         getPersistence().removeByG_F_N(groupId, folderId, name);
506     }
507 
508     public static void removeAll()
509         throws com.liferay.portal.kernel.exception.SystemException {
510         getPersistence().removeAll();
511     }
512 
513     public static int countByUuid(java.lang.String uuid)
514         throws com.liferay.portal.kernel.exception.SystemException {
515         return getPersistence().countByUuid(uuid);
516     }
517 
518     public static int countByUUID_G(java.lang.String uuid, long groupId)
519         throws com.liferay.portal.kernel.exception.SystemException {
520         return getPersistence().countByUUID_G(uuid, groupId);
521     }
522 
523     public static int countByGroupId(long groupId)
524         throws com.liferay.portal.kernel.exception.SystemException {
525         return getPersistence().countByGroupId(groupId);
526     }
527 
528     public static int countBySmallImageId(long smallImageId)
529         throws com.liferay.portal.kernel.exception.SystemException {
530         return getPersistence().countBySmallImageId(smallImageId);
531     }
532 
533     public static int countByLargeImageId(long largeImageId)
534         throws com.liferay.portal.kernel.exception.SystemException {
535         return getPersistence().countByLargeImageId(largeImageId);
536     }
537 
538     public static int countByCustom1ImageId(long custom1ImageId)
539         throws com.liferay.portal.kernel.exception.SystemException {
540         return getPersistence().countByCustom1ImageId(custom1ImageId);
541     }
542 
543     public static int countByCustom2ImageId(long custom2ImageId)
544         throws com.liferay.portal.kernel.exception.SystemException {
545         return getPersistence().countByCustom2ImageId(custom2ImageId);
546     }
547 
548     public static int countByG_U(long groupId, long userId)
549         throws com.liferay.portal.kernel.exception.SystemException {
550         return getPersistence().countByG_U(groupId, userId);
551     }
552 
553     public static int countByG_F(long groupId, long folderId)
554         throws com.liferay.portal.kernel.exception.SystemException {
555         return getPersistence().countByG_F(groupId, folderId);
556     }
557 
558     public static int countByG_F_N(long groupId, long folderId,
559         java.lang.String name)
560         throws com.liferay.portal.kernel.exception.SystemException {
561         return getPersistence().countByG_F_N(groupId, folderId, name);
562     }
563 
564     public static int countAll()
565         throws com.liferay.portal.kernel.exception.SystemException {
566         return getPersistence().countAll();
567     }
568 
569     public static IGImagePersistence getPersistence() {
570         if (_persistence == null) {
571             _persistence = (IGImagePersistence)PortalBeanLocatorUtil.locate(IGImagePersistence.class.getName());
572         }
573 
574         return _persistence;
575     }
576 
577     public void setPersistence(IGImagePersistence persistence) {
578         _persistence = persistence;
579     }
580 
581     private static IGImagePersistence _persistence;
582 }