1
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
38 public class IGImageUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(IGImage igImage) {
50 getPersistence().clearCache(igImage);
51 }
52
53
56 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<IGImage> findWithDynamicQuery(DynamicQuery dynamicQuery)
65 throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<IGImage> findWithDynamicQuery(
73 DynamicQuery dynamicQuery, int start, int end)
74 throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static IGImage remove(IGImage igImage) throws SystemException {
82 return getPersistence().remove(igImage);
83 }
84
85
88 public static IGImage update(IGImage igImage, boolean merge)
89 throws SystemException {
90 return getPersistence().update(igImage, merge);
91 }
92
93 public static void cacheResult(
94 com.liferay.portlet.imagegallery.model.IGImage igImage) {
95 getPersistence().cacheResult(igImage);
96 }
97
98 public static void cacheResult(
99 java.util.List<com.liferay.portlet.imagegallery.model.IGImage> igImages) {
100 getPersistence().cacheResult(igImages);
101 }
102
103 public static com.liferay.portlet.imagegallery.model.IGImage create(
104 long imageId) {
105 return getPersistence().create(imageId);
106 }
107
108 public static com.liferay.portlet.imagegallery.model.IGImage remove(
109 long imageId)
110 throws com.liferay.portal.kernel.exception.SystemException,
111 com.liferay.portlet.imagegallery.NoSuchImageException {
112 return getPersistence().remove(imageId);
113 }
114
115 public static com.liferay.portlet.imagegallery.model.IGImage updateImpl(
116 com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
117 throws com.liferay.portal.kernel.exception.SystemException {
118 return getPersistence().updateImpl(igImage, merge);
119 }
120
121 public static com.liferay.portlet.imagegallery.model.IGImage findByPrimaryKey(
122 long imageId)
123 throws com.liferay.portal.kernel.exception.SystemException,
124 com.liferay.portlet.imagegallery.NoSuchImageException {
125 return getPersistence().findByPrimaryKey(imageId);
126 }
127
128 public static com.liferay.portlet.imagegallery.model.IGImage fetchByPrimaryKey(
129 long imageId)
130 throws com.liferay.portal.kernel.exception.SystemException {
131 return getPersistence().fetchByPrimaryKey(imageId);
132 }
133
134 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByUuid(
135 java.lang.String uuid)
136 throws com.liferay.portal.kernel.exception.SystemException {
137 return getPersistence().findByUuid(uuid);
138 }
139
140 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByUuid(
141 java.lang.String uuid, int start, int end)
142 throws com.liferay.portal.kernel.exception.SystemException {
143 return getPersistence().findByUuid(uuid, start, end);
144 }
145
146 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByUuid(
147 java.lang.String uuid, int start, int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
151 }
152
153 public static com.liferay.portlet.imagegallery.model.IGImage findByUuid_First(
154 java.lang.String uuid,
155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156 throws com.liferay.portal.kernel.exception.SystemException,
157 com.liferay.portlet.imagegallery.NoSuchImageException {
158 return getPersistence().findByUuid_First(uuid, orderByComparator);
159 }
160
161 public static com.liferay.portlet.imagegallery.model.IGImage findByUuid_Last(
162 java.lang.String uuid,
163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164 throws com.liferay.portal.kernel.exception.SystemException,
165 com.liferay.portlet.imagegallery.NoSuchImageException {
166 return getPersistence().findByUuid_Last(uuid, orderByComparator);
167 }
168
169 public static com.liferay.portlet.imagegallery.model.IGImage[] findByUuid_PrevAndNext(
170 long imageId, java.lang.String uuid,
171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172 throws com.liferay.portal.kernel.exception.SystemException,
173 com.liferay.portlet.imagegallery.NoSuchImageException {
174 return getPersistence()
175 .findByUuid_PrevAndNext(imageId, uuid, orderByComparator);
176 }
177
178 public static com.liferay.portlet.imagegallery.model.IGImage findByUUID_G(
179 java.lang.String uuid, long groupId)
180 throws com.liferay.portal.kernel.exception.SystemException,
181 com.liferay.portlet.imagegallery.NoSuchImageException {
182 return getPersistence().findByUUID_G(uuid, groupId);
183 }
184
185 public static com.liferay.portlet.imagegallery.model.IGImage fetchByUUID_G(
186 java.lang.String uuid, long groupId)
187 throws com.liferay.portal.kernel.exception.SystemException {
188 return getPersistence().fetchByUUID_G(uuid, groupId);
189 }
190
191 public static com.liferay.portlet.imagegallery.model.IGImage fetchByUUID_G(
192 java.lang.String uuid, long groupId, boolean retrieveFromCache)
193 throws com.liferay.portal.kernel.exception.SystemException {
194 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
195 }
196
197 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByGroupId(
198 long groupId)
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return getPersistence().findByGroupId(groupId);
201 }
202
203 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByGroupId(
204 long groupId, int start, int end)
205 throws com.liferay.portal.kernel.exception.SystemException {
206 return getPersistence().findByGroupId(groupId, start, end);
207 }
208
209 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByGroupId(
210 long groupId, int start, int end,
211 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
212 throws com.liferay.portal.kernel.exception.SystemException {
213 return getPersistence()
214 .findByGroupId(groupId, start, end, orderByComparator);
215 }
216
217 public static com.liferay.portlet.imagegallery.model.IGImage findByGroupId_First(
218 long groupId,
219 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220 throws com.liferay.portal.kernel.exception.SystemException,
221 com.liferay.portlet.imagegallery.NoSuchImageException {
222 return getPersistence().findByGroupId_First(groupId, orderByComparator);
223 }
224
225 public static com.liferay.portlet.imagegallery.model.IGImage findByGroupId_Last(
226 long groupId,
227 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228 throws com.liferay.portal.kernel.exception.SystemException,
229 com.liferay.portlet.imagegallery.NoSuchImageException {
230 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
231 }
232
233 public static com.liferay.portlet.imagegallery.model.IGImage[] findByGroupId_PrevAndNext(
234 long imageId, long groupId,
235 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
236 throws com.liferay.portal.kernel.exception.SystemException,
237 com.liferay.portlet.imagegallery.NoSuchImageException {
238 return getPersistence()
239 .findByGroupId_PrevAndNext(imageId, groupId,
240 orderByComparator);
241 }
242
243 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByGroupId(
244 long groupId)
245 throws com.liferay.portal.kernel.exception.SystemException {
246 return getPersistence().filterFindByGroupId(groupId);
247 }
248
249 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByGroupId(
250 long groupId, int start, int end)
251 throws com.liferay.portal.kernel.exception.SystemException {
252 return getPersistence().filterFindByGroupId(groupId, start, end);
253 }
254
255 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByGroupId(
256 long groupId, int start, int end,
257 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258 throws com.liferay.portal.kernel.exception.SystemException {
259 return getPersistence()
260 .filterFindByGroupId(groupId, start, end, orderByComparator);
261 }
262
263 public static com.liferay.portlet.imagegallery.model.IGImage findBySmallImageId(
264 long smallImageId)
265 throws com.liferay.portal.kernel.exception.SystemException,
266 com.liferay.portlet.imagegallery.NoSuchImageException {
267 return getPersistence().findBySmallImageId(smallImageId);
268 }
269
270 public static com.liferay.portlet.imagegallery.model.IGImage fetchBySmallImageId(
271 long smallImageId)
272 throws com.liferay.portal.kernel.exception.SystemException {
273 return getPersistence().fetchBySmallImageId(smallImageId);
274 }
275
276 public static com.liferay.portlet.imagegallery.model.IGImage fetchBySmallImageId(
277 long smallImageId, boolean retrieveFromCache)
278 throws com.liferay.portal.kernel.exception.SystemException {
279 return getPersistence()
280 .fetchBySmallImageId(smallImageId, retrieveFromCache);
281 }
282
283 public static com.liferay.portlet.imagegallery.model.IGImage findByLargeImageId(
284 long largeImageId)
285 throws com.liferay.portal.kernel.exception.SystemException,
286 com.liferay.portlet.imagegallery.NoSuchImageException {
287 return getPersistence().findByLargeImageId(largeImageId);
288 }
289
290 public static com.liferay.portlet.imagegallery.model.IGImage fetchByLargeImageId(
291 long largeImageId)
292 throws com.liferay.portal.kernel.exception.SystemException {
293 return getPersistence().fetchByLargeImageId(largeImageId);
294 }
295
296 public static com.liferay.portlet.imagegallery.model.IGImage fetchByLargeImageId(
297 long largeImageId, boolean retrieveFromCache)
298 throws com.liferay.portal.kernel.exception.SystemException {
299 return getPersistence()
300 .fetchByLargeImageId(largeImageId, retrieveFromCache);
301 }
302
303 public static com.liferay.portlet.imagegallery.model.IGImage findByCustom1ImageId(
304 long custom1ImageId)
305 throws com.liferay.portal.kernel.exception.SystemException,
306 com.liferay.portlet.imagegallery.NoSuchImageException {
307 return getPersistence().findByCustom1ImageId(custom1ImageId);
308 }
309
310 public static com.liferay.portlet.imagegallery.model.IGImage fetchByCustom1ImageId(
311 long custom1ImageId)
312 throws com.liferay.portal.kernel.exception.SystemException {
313 return getPersistence().fetchByCustom1ImageId(custom1ImageId);
314 }
315
316 public static com.liferay.portlet.imagegallery.model.IGImage fetchByCustom1ImageId(
317 long custom1ImageId, boolean retrieveFromCache)
318 throws com.liferay.portal.kernel.exception.SystemException {
319 return getPersistence()
320 .fetchByCustom1ImageId(custom1ImageId, retrieveFromCache);
321 }
322
323 public static com.liferay.portlet.imagegallery.model.IGImage findByCustom2ImageId(
324 long custom2ImageId)
325 throws com.liferay.portal.kernel.exception.SystemException,
326 com.liferay.portlet.imagegallery.NoSuchImageException {
327 return getPersistence().findByCustom2ImageId(custom2ImageId);
328 }
329
330 public static com.liferay.portlet.imagegallery.model.IGImage fetchByCustom2ImageId(
331 long custom2ImageId)
332 throws com.liferay.portal.kernel.exception.SystemException {
333 return getPersistence().fetchByCustom2ImageId(custom2ImageId);
334 }
335
336 public static com.liferay.portlet.imagegallery.model.IGImage fetchByCustom2ImageId(
337 long custom2ImageId, boolean retrieveFromCache)
338 throws com.liferay.portal.kernel.exception.SystemException {
339 return getPersistence()
340 .fetchByCustom2ImageId(custom2ImageId, retrieveFromCache);
341 }
342
343 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_U(
344 long groupId, long userId)
345 throws com.liferay.portal.kernel.exception.SystemException {
346 return getPersistence().findByG_U(groupId, userId);
347 }
348
349 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_U(
350 long groupId, long userId, int start, int end)
351 throws com.liferay.portal.kernel.exception.SystemException {
352 return getPersistence().findByG_U(groupId, userId, start, end);
353 }
354
355 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_U(
356 long groupId, long userId, int start, int end,
357 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
358 throws com.liferay.portal.kernel.exception.SystemException {
359 return getPersistence()
360 .findByG_U(groupId, userId, start, end, orderByComparator);
361 }
362
363 public static com.liferay.portlet.imagegallery.model.IGImage findByG_U_First(
364 long groupId, long userId,
365 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
366 throws com.liferay.portal.kernel.exception.SystemException,
367 com.liferay.portlet.imagegallery.NoSuchImageException {
368 return getPersistence()
369 .findByG_U_First(groupId, userId, orderByComparator);
370 }
371
372 public static com.liferay.portlet.imagegallery.model.IGImage findByG_U_Last(
373 long groupId, long userId,
374 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
375 throws com.liferay.portal.kernel.exception.SystemException,
376 com.liferay.portlet.imagegallery.NoSuchImageException {
377 return getPersistence()
378 .findByG_U_Last(groupId, userId, orderByComparator);
379 }
380
381 public static com.liferay.portlet.imagegallery.model.IGImage[] findByG_U_PrevAndNext(
382 long imageId, long groupId, long userId,
383 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
384 throws com.liferay.portal.kernel.exception.SystemException,
385 com.liferay.portlet.imagegallery.NoSuchImageException {
386 return getPersistence()
387 .findByG_U_PrevAndNext(imageId, groupId, userId,
388 orderByComparator);
389 }
390
391 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByG_U(
392 long groupId, long userId)
393 throws com.liferay.portal.kernel.exception.SystemException {
394 return getPersistence().filterFindByG_U(groupId, userId);
395 }
396
397 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByG_U(
398 long groupId, long userId, int start, int end)
399 throws com.liferay.portal.kernel.exception.SystemException {
400 return getPersistence().filterFindByG_U(groupId, userId, start, end);
401 }
402
403 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByG_U(
404 long groupId, long userId, int start, int end,
405 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
406 throws com.liferay.portal.kernel.exception.SystemException {
407 return getPersistence()
408 .filterFindByG_U(groupId, userId, start, end,
409 orderByComparator);
410 }
411
412 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F(
413 long groupId, long folderId)
414 throws com.liferay.portal.kernel.exception.SystemException {
415 return getPersistence().findByG_F(groupId, folderId);
416 }
417
418 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F(
419 long groupId, long folderId, int start, int end)
420 throws com.liferay.portal.kernel.exception.SystemException {
421 return getPersistence().findByG_F(groupId, folderId, start, end);
422 }
423
424 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F(
425 long groupId, long folderId, int start, int end,
426 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
427 throws com.liferay.portal.kernel.exception.SystemException {
428 return getPersistence()
429 .findByG_F(groupId, folderId, start, end, orderByComparator);
430 }
431
432 public static com.liferay.portlet.imagegallery.model.IGImage findByG_F_First(
433 long groupId, long folderId,
434 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435 throws com.liferay.portal.kernel.exception.SystemException,
436 com.liferay.portlet.imagegallery.NoSuchImageException {
437 return getPersistence()
438 .findByG_F_First(groupId, folderId, orderByComparator);
439 }
440
441 public static com.liferay.portlet.imagegallery.model.IGImage findByG_F_Last(
442 long groupId, long folderId,
443 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
444 throws com.liferay.portal.kernel.exception.SystemException,
445 com.liferay.portlet.imagegallery.NoSuchImageException {
446 return getPersistence()
447 .findByG_F_Last(groupId, folderId, orderByComparator);
448 }
449
450 public static com.liferay.portlet.imagegallery.model.IGImage[] findByG_F_PrevAndNext(
451 long imageId, long groupId, long folderId,
452 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
453 throws com.liferay.portal.kernel.exception.SystemException,
454 com.liferay.portlet.imagegallery.NoSuchImageException {
455 return getPersistence()
456 .findByG_F_PrevAndNext(imageId, groupId, folderId,
457 orderByComparator);
458 }
459
460 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByG_F(
461 long groupId, long folderId)
462 throws com.liferay.portal.kernel.exception.SystemException {
463 return getPersistence().filterFindByG_F(groupId, folderId);
464 }
465
466 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByG_F(
467 long groupId, long folderId, int start, int end)
468 throws com.liferay.portal.kernel.exception.SystemException {
469 return getPersistence().filterFindByG_F(groupId, folderId, start, end);
470 }
471
472 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByG_F(
473 long groupId, long folderId, int start, int end,
474 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
475 throws com.liferay.portal.kernel.exception.SystemException {
476 return getPersistence()
477 .filterFindByG_F(groupId, folderId, start, end,
478 orderByComparator);
479 }
480
481 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F_N(
482 long groupId, long folderId, java.lang.String name)
483 throws com.liferay.portal.kernel.exception.SystemException {
484 return getPersistence().findByG_F_N(groupId, folderId, name);
485 }
486
487 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F_N(
488 long groupId, long folderId, java.lang.String name, int start, int end)
489 throws com.liferay.portal.kernel.exception.SystemException {
490 return getPersistence().findByG_F_N(groupId, folderId, name, start, end);
491 }
492
493 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F_N(
494 long groupId, long folderId, java.lang.String name, int start, int end,
495 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
496 throws com.liferay.portal.kernel.exception.SystemException {
497 return getPersistence()
498 .findByG_F_N(groupId, folderId, name, start, end,
499 orderByComparator);
500 }
501
502 public static com.liferay.portlet.imagegallery.model.IGImage findByG_F_N_First(
503 long groupId, long folderId, java.lang.String name,
504 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
505 throws com.liferay.portal.kernel.exception.SystemException,
506 com.liferay.portlet.imagegallery.NoSuchImageException {
507 return getPersistence()
508 .findByG_F_N_First(groupId, folderId, name, orderByComparator);
509 }
510
511 public static com.liferay.portlet.imagegallery.model.IGImage findByG_F_N_Last(
512 long groupId, long folderId, java.lang.String name,
513 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
514 throws com.liferay.portal.kernel.exception.SystemException,
515 com.liferay.portlet.imagegallery.NoSuchImageException {
516 return getPersistence()
517 .findByG_F_N_Last(groupId, folderId, name, orderByComparator);
518 }
519
520 public static com.liferay.portlet.imagegallery.model.IGImage[] findByG_F_N_PrevAndNext(
521 long imageId, long groupId, long folderId, java.lang.String name,
522 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
523 throws com.liferay.portal.kernel.exception.SystemException,
524 com.liferay.portlet.imagegallery.NoSuchImageException {
525 return getPersistence()
526 .findByG_F_N_PrevAndNext(imageId, groupId, folderId, name,
527 orderByComparator);
528 }
529
530 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByG_F_N(
531 long groupId, long folderId, java.lang.String name)
532 throws com.liferay.portal.kernel.exception.SystemException {
533 return getPersistence().filterFindByG_F_N(groupId, folderId, name);
534 }
535
536 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByG_F_N(
537 long groupId, long folderId, java.lang.String name, int start, int end)
538 throws com.liferay.portal.kernel.exception.SystemException {
539 return getPersistence()
540 .filterFindByG_F_N(groupId, folderId, name, start, end);
541 }
542
543 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByG_F_N(
544 long groupId, long folderId, java.lang.String name, int start, int end,
545 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
546 throws com.liferay.portal.kernel.exception.SystemException {
547 return getPersistence()
548 .filterFindByG_F_N(groupId, folderId, name, start, end,
549 orderByComparator);
550 }
551
552 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll()
553 throws com.liferay.portal.kernel.exception.SystemException {
554 return getPersistence().findAll();
555 }
556
557 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll(
558 int start, int end)
559 throws com.liferay.portal.kernel.exception.SystemException {
560 return getPersistence().findAll(start, end);
561 }
562
563 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll(
564 int start, int end,
565 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
566 throws com.liferay.portal.kernel.exception.SystemException {
567 return getPersistence().findAll(start, end, orderByComparator);
568 }
569
570 public static void removeByUuid(java.lang.String uuid)
571 throws com.liferay.portal.kernel.exception.SystemException {
572 getPersistence().removeByUuid(uuid);
573 }
574
575 public static void removeByUUID_G(java.lang.String uuid, long groupId)
576 throws com.liferay.portal.kernel.exception.SystemException,
577 com.liferay.portlet.imagegallery.NoSuchImageException {
578 getPersistence().removeByUUID_G(uuid, groupId);
579 }
580
581 public static void removeByGroupId(long groupId)
582 throws com.liferay.portal.kernel.exception.SystemException {
583 getPersistence().removeByGroupId(groupId);
584 }
585
586 public static void removeBySmallImageId(long smallImageId)
587 throws com.liferay.portal.kernel.exception.SystemException,
588 com.liferay.portlet.imagegallery.NoSuchImageException {
589 getPersistence().removeBySmallImageId(smallImageId);
590 }
591
592 public static void removeByLargeImageId(long largeImageId)
593 throws com.liferay.portal.kernel.exception.SystemException,
594 com.liferay.portlet.imagegallery.NoSuchImageException {
595 getPersistence().removeByLargeImageId(largeImageId);
596 }
597
598 public static void removeByCustom1ImageId(long custom1ImageId)
599 throws com.liferay.portal.kernel.exception.SystemException,
600 com.liferay.portlet.imagegallery.NoSuchImageException {
601 getPersistence().removeByCustom1ImageId(custom1ImageId);
602 }
603
604 public static void removeByCustom2ImageId(long custom2ImageId)
605 throws com.liferay.portal.kernel.exception.SystemException,
606 com.liferay.portlet.imagegallery.NoSuchImageException {
607 getPersistence().removeByCustom2ImageId(custom2ImageId);
608 }
609
610 public static void removeByG_U(long groupId, long userId)
611 throws com.liferay.portal.kernel.exception.SystemException {
612 getPersistence().removeByG_U(groupId, userId);
613 }
614
615 public static void removeByG_F(long groupId, long folderId)
616 throws com.liferay.portal.kernel.exception.SystemException {
617 getPersistence().removeByG_F(groupId, folderId);
618 }
619
620 public static void removeByG_F_N(long groupId, long folderId,
621 java.lang.String name)
622 throws com.liferay.portal.kernel.exception.SystemException {
623 getPersistence().removeByG_F_N(groupId, folderId, name);
624 }
625
626 public static void removeAll()
627 throws com.liferay.portal.kernel.exception.SystemException {
628 getPersistence().removeAll();
629 }
630
631 public static int countByUuid(java.lang.String uuid)
632 throws com.liferay.portal.kernel.exception.SystemException {
633 return getPersistence().countByUuid(uuid);
634 }
635
636 public static int countByUUID_G(java.lang.String uuid, long groupId)
637 throws com.liferay.portal.kernel.exception.SystemException {
638 return getPersistence().countByUUID_G(uuid, groupId);
639 }
640
641 public static int countByGroupId(long groupId)
642 throws com.liferay.portal.kernel.exception.SystemException {
643 return getPersistence().countByGroupId(groupId);
644 }
645
646 public static int filterCountByGroupId(long groupId)
647 throws com.liferay.portal.kernel.exception.SystemException {
648 return getPersistence().filterCountByGroupId(groupId);
649 }
650
651 public static int countBySmallImageId(long smallImageId)
652 throws com.liferay.portal.kernel.exception.SystemException {
653 return getPersistence().countBySmallImageId(smallImageId);
654 }
655
656 public static int countByLargeImageId(long largeImageId)
657 throws com.liferay.portal.kernel.exception.SystemException {
658 return getPersistence().countByLargeImageId(largeImageId);
659 }
660
661 public static int countByCustom1ImageId(long custom1ImageId)
662 throws com.liferay.portal.kernel.exception.SystemException {
663 return getPersistence().countByCustom1ImageId(custom1ImageId);
664 }
665
666 public static int countByCustom2ImageId(long custom2ImageId)
667 throws com.liferay.portal.kernel.exception.SystemException {
668 return getPersistence().countByCustom2ImageId(custom2ImageId);
669 }
670
671 public static int countByG_U(long groupId, long userId)
672 throws com.liferay.portal.kernel.exception.SystemException {
673 return getPersistence().countByG_U(groupId, userId);
674 }
675
676 public static int filterCountByG_U(long groupId, long userId)
677 throws com.liferay.portal.kernel.exception.SystemException {
678 return getPersistence().filterCountByG_U(groupId, userId);
679 }
680
681 public static int countByG_F(long groupId, long folderId)
682 throws com.liferay.portal.kernel.exception.SystemException {
683 return getPersistence().countByG_F(groupId, folderId);
684 }
685
686 public static int filterCountByG_F(long groupId, long folderId)
687 throws com.liferay.portal.kernel.exception.SystemException {
688 return getPersistence().filterCountByG_F(groupId, folderId);
689 }
690
691 public static int countByG_F_N(long groupId, long folderId,
692 java.lang.String name)
693 throws com.liferay.portal.kernel.exception.SystemException {
694 return getPersistence().countByG_F_N(groupId, folderId, name);
695 }
696
697 public static int filterCountByG_F_N(long groupId, long folderId,
698 java.lang.String name)
699 throws com.liferay.portal.kernel.exception.SystemException {
700 return getPersistence().filterCountByG_F_N(groupId, folderId, name);
701 }
702
703 public static int countAll()
704 throws com.liferay.portal.kernel.exception.SystemException {
705 return getPersistence().countAll();
706 }
707
708 public static IGImagePersistence getPersistence() {
709 if (_persistence == null) {
710 _persistence = (IGImagePersistence)PortalBeanLocatorUtil.locate(IGImagePersistence.class.getName());
711 }
712
713 return _persistence;
714 }
715
716 public void setPersistence(IGImagePersistence persistence) {
717 _persistence = persistence;
718 }
719
720 private static IGImagePersistence _persistence;
721 }