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 List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50 throws SystemException {
51 return getPersistence().findWithDynamicQuery(dynamicQuery);
52 }
53
54
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
65 public static IGImage remove(IGImage igImage) throws SystemException {
66 return getPersistence().remove(igImage);
67 }
68
69
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 orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
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 orderByComparator)
140 throws com.liferay.portal.kernel.exception.SystemException,
141 com.liferay.portlet.imagegallery.NoSuchImageException {
142 return getPersistence().findByUuid_First(uuid, orderByComparator);
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 orderByComparator)
148 throws com.liferay.portal.kernel.exception.SystemException,
149 com.liferay.portlet.imagegallery.NoSuchImageException {
150 return getPersistence().findByUuid_Last(uuid, orderByComparator);
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 orderByComparator)
156 throws com.liferay.portal.kernel.exception.SystemException,
157 com.liferay.portlet.imagegallery.NoSuchImageException {
158 return getPersistence()
159 .findByUuid_PrevAndNext(imageId, uuid, orderByComparator);
160 }
161
162 public static com.liferay.portlet.imagegallery.model.IGImage findByUUID_G(
163 java.lang.String uuid, long groupId)
164 throws com.liferay.portal.kernel.exception.SystemException,
165 com.liferay.portlet.imagegallery.NoSuchImageException {
166 return getPersistence().findByUUID_G(uuid, groupId);
167 }
168
169 public static com.liferay.portlet.imagegallery.model.IGImage fetchByUUID_G(
170 java.lang.String uuid, long groupId)
171 throws com.liferay.portal.kernel.exception.SystemException {
172 return getPersistence().fetchByUUID_G(uuid, groupId);
173 }
174
175 public static com.liferay.portlet.imagegallery.model.IGImage fetchByUUID_G(
176 java.lang.String uuid, long groupId, boolean retrieveFromCache)
177 throws com.liferay.portal.kernel.exception.SystemException {
178 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
179 }
180
181 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByGroupId(
182 long groupId)
183 throws com.liferay.portal.kernel.exception.SystemException {
184 return getPersistence().findByGroupId(groupId);
185 }
186
187 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByGroupId(
188 long groupId, int start, int end)
189 throws com.liferay.portal.kernel.exception.SystemException {
190 return getPersistence().findByGroupId(groupId, start, end);
191 }
192
193 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByGroupId(
194 long groupId, int start, int end,
195 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
196 throws com.liferay.portal.kernel.exception.SystemException {
197 return getPersistence()
198 .findByGroupId(groupId, start, end, orderByComparator);
199 }
200
201 public static com.liferay.portlet.imagegallery.model.IGImage findByGroupId_First(
202 long groupId,
203 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204 throws com.liferay.portal.kernel.exception.SystemException,
205 com.liferay.portlet.imagegallery.NoSuchImageException {
206 return getPersistence().findByGroupId_First(groupId, orderByComparator);
207 }
208
209 public static com.liferay.portlet.imagegallery.model.IGImage findByGroupId_Last(
210 long groupId,
211 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
212 throws com.liferay.portal.kernel.exception.SystemException,
213 com.liferay.portlet.imagegallery.NoSuchImageException {
214 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
215 }
216
217 public static com.liferay.portlet.imagegallery.model.IGImage[] findByGroupId_PrevAndNext(
218 long imageId, 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()
223 .findByGroupId_PrevAndNext(imageId, groupId,
224 orderByComparator);
225 }
226
227 public static com.liferay.portlet.imagegallery.model.IGImage findBySmallImageId(
228 long smallImageId)
229 throws com.liferay.portal.kernel.exception.SystemException,
230 com.liferay.portlet.imagegallery.NoSuchImageException {
231 return getPersistence().findBySmallImageId(smallImageId);
232 }
233
234 public static com.liferay.portlet.imagegallery.model.IGImage fetchBySmallImageId(
235 long smallImageId)
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getPersistence().fetchBySmallImageId(smallImageId);
238 }
239
240 public static com.liferay.portlet.imagegallery.model.IGImage fetchBySmallImageId(
241 long smallImageId, boolean retrieveFromCache)
242 throws com.liferay.portal.kernel.exception.SystemException {
243 return getPersistence()
244 .fetchBySmallImageId(smallImageId, retrieveFromCache);
245 }
246
247 public static com.liferay.portlet.imagegallery.model.IGImage findByLargeImageId(
248 long largeImageId)
249 throws com.liferay.portal.kernel.exception.SystemException,
250 com.liferay.portlet.imagegallery.NoSuchImageException {
251 return getPersistence().findByLargeImageId(largeImageId);
252 }
253
254 public static com.liferay.portlet.imagegallery.model.IGImage fetchByLargeImageId(
255 long largeImageId)
256 throws com.liferay.portal.kernel.exception.SystemException {
257 return getPersistence().fetchByLargeImageId(largeImageId);
258 }
259
260 public static com.liferay.portlet.imagegallery.model.IGImage fetchByLargeImageId(
261 long largeImageId, boolean retrieveFromCache)
262 throws com.liferay.portal.kernel.exception.SystemException {
263 return getPersistence()
264 .fetchByLargeImageId(largeImageId, retrieveFromCache);
265 }
266
267 public static com.liferay.portlet.imagegallery.model.IGImage findByCustom1ImageId(
268 long custom1ImageId)
269 throws com.liferay.portal.kernel.exception.SystemException,
270 com.liferay.portlet.imagegallery.NoSuchImageException {
271 return getPersistence().findByCustom1ImageId(custom1ImageId);
272 }
273
274 public static com.liferay.portlet.imagegallery.model.IGImage fetchByCustom1ImageId(
275 long custom1ImageId)
276 throws com.liferay.portal.kernel.exception.SystemException {
277 return getPersistence().fetchByCustom1ImageId(custom1ImageId);
278 }
279
280 public static com.liferay.portlet.imagegallery.model.IGImage fetchByCustom1ImageId(
281 long custom1ImageId, boolean retrieveFromCache)
282 throws com.liferay.portal.kernel.exception.SystemException {
283 return getPersistence()
284 .fetchByCustom1ImageId(custom1ImageId, retrieveFromCache);
285 }
286
287 public static com.liferay.portlet.imagegallery.model.IGImage findByCustom2ImageId(
288 long custom2ImageId)
289 throws com.liferay.portal.kernel.exception.SystemException,
290 com.liferay.portlet.imagegallery.NoSuchImageException {
291 return getPersistence().findByCustom2ImageId(custom2ImageId);
292 }
293
294 public static com.liferay.portlet.imagegallery.model.IGImage fetchByCustom2ImageId(
295 long custom2ImageId)
296 throws com.liferay.portal.kernel.exception.SystemException {
297 return getPersistence().fetchByCustom2ImageId(custom2ImageId);
298 }
299
300 public static com.liferay.portlet.imagegallery.model.IGImage fetchByCustom2ImageId(
301 long custom2ImageId, boolean retrieveFromCache)
302 throws com.liferay.portal.kernel.exception.SystemException {
303 return getPersistence()
304 .fetchByCustom2ImageId(custom2ImageId, retrieveFromCache);
305 }
306
307 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_U(
308 long groupId, long userId)
309 throws com.liferay.portal.kernel.exception.SystemException {
310 return getPersistence().findByG_U(groupId, userId);
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 throws com.liferay.portal.kernel.exception.SystemException {
316 return getPersistence().findByG_U(groupId, userId, start, end);
317 }
318
319 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_U(
320 long groupId, long userId, int start, int end,
321 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
322 throws com.liferay.portal.kernel.exception.SystemException {
323 return getPersistence()
324 .findByG_U(groupId, userId, start, end, orderByComparator);
325 }
326
327 public static com.liferay.portlet.imagegallery.model.IGImage findByG_U_First(
328 long groupId, long userId,
329 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
330 throws com.liferay.portal.kernel.exception.SystemException,
331 com.liferay.portlet.imagegallery.NoSuchImageException {
332 return getPersistence()
333 .findByG_U_First(groupId, userId, orderByComparator);
334 }
335
336 public static com.liferay.portlet.imagegallery.model.IGImage findByG_U_Last(
337 long groupId, long userId,
338 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
339 throws com.liferay.portal.kernel.exception.SystemException,
340 com.liferay.portlet.imagegallery.NoSuchImageException {
341 return getPersistence()
342 .findByG_U_Last(groupId, userId, orderByComparator);
343 }
344
345 public static com.liferay.portlet.imagegallery.model.IGImage[] findByG_U_PrevAndNext(
346 long imageId, long groupId, long userId,
347 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
348 throws com.liferay.portal.kernel.exception.SystemException,
349 com.liferay.portlet.imagegallery.NoSuchImageException {
350 return getPersistence()
351 .findByG_U_PrevAndNext(imageId, groupId, userId,
352 orderByComparator);
353 }
354
355 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F(
356 long groupId, long folderId)
357 throws com.liferay.portal.kernel.exception.SystemException {
358 return getPersistence().findByG_F(groupId, folderId);
359 }
360
361 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F(
362 long groupId, long folderId, int start, int end)
363 throws com.liferay.portal.kernel.exception.SystemException {
364 return getPersistence().findByG_F(groupId, folderId, start, end);
365 }
366
367 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F(
368 long groupId, long folderId, int start, int end,
369 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
370 throws com.liferay.portal.kernel.exception.SystemException {
371 return getPersistence()
372 .findByG_F(groupId, folderId, start, end, orderByComparator);
373 }
374
375 public static com.liferay.portlet.imagegallery.model.IGImage findByG_F_First(
376 long groupId, long folderId,
377 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
378 throws com.liferay.portal.kernel.exception.SystemException,
379 com.liferay.portlet.imagegallery.NoSuchImageException {
380 return getPersistence()
381 .findByG_F_First(groupId, folderId, orderByComparator);
382 }
383
384 public static com.liferay.portlet.imagegallery.model.IGImage findByG_F_Last(
385 long groupId, long folderId,
386 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
387 throws com.liferay.portal.kernel.exception.SystemException,
388 com.liferay.portlet.imagegallery.NoSuchImageException {
389 return getPersistence()
390 .findByG_F_Last(groupId, folderId, orderByComparator);
391 }
392
393 public static com.liferay.portlet.imagegallery.model.IGImage[] findByG_F_PrevAndNext(
394 long imageId, long groupId, long folderId,
395 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
396 throws com.liferay.portal.kernel.exception.SystemException,
397 com.liferay.portlet.imagegallery.NoSuchImageException {
398 return getPersistence()
399 .findByG_F_PrevAndNext(imageId, groupId, folderId,
400 orderByComparator);
401 }
402
403 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F_N(
404 long groupId, long folderId, java.lang.String name)
405 throws com.liferay.portal.kernel.exception.SystemException {
406 return getPersistence().findByG_F_N(groupId, folderId, name);
407 }
408
409 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F_N(
410 long groupId, long folderId, java.lang.String name, int start, int end)
411 throws com.liferay.portal.kernel.exception.SystemException {
412 return getPersistence().findByG_F_N(groupId, folderId, name, start, end);
413 }
414
415 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F_N(
416 long groupId, long folderId, java.lang.String name, int start, int end,
417 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
418 throws com.liferay.portal.kernel.exception.SystemException {
419 return getPersistence()
420 .findByG_F_N(groupId, folderId, name, start, end,
421 orderByComparator);
422 }
423
424 public static com.liferay.portlet.imagegallery.model.IGImage findByG_F_N_First(
425 long groupId, long folderId, java.lang.String name,
426 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
427 throws com.liferay.portal.kernel.exception.SystemException,
428 com.liferay.portlet.imagegallery.NoSuchImageException {
429 return getPersistence()
430 .findByG_F_N_First(groupId, folderId, name, orderByComparator);
431 }
432
433 public static com.liferay.portlet.imagegallery.model.IGImage findByG_F_N_Last(
434 long groupId, long folderId, java.lang.String name,
435 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
436 throws com.liferay.portal.kernel.exception.SystemException,
437 com.liferay.portlet.imagegallery.NoSuchImageException {
438 return getPersistence()
439 .findByG_F_N_Last(groupId, folderId, name, orderByComparator);
440 }
441
442 public static com.liferay.portlet.imagegallery.model.IGImage[] findByG_F_N_PrevAndNext(
443 long imageId, long groupId, long folderId, java.lang.String name,
444 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
445 throws com.liferay.portal.kernel.exception.SystemException,
446 com.liferay.portlet.imagegallery.NoSuchImageException {
447 return getPersistence()
448 .findByG_F_N_PrevAndNext(imageId, groupId, folderId, name,
449 orderByComparator);
450 }
451
452 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll()
453 throws com.liferay.portal.kernel.exception.SystemException {
454 return getPersistence().findAll();
455 }
456
457 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll(
458 int start, int end)
459 throws com.liferay.portal.kernel.exception.SystemException {
460 return getPersistence().findAll(start, end);
461 }
462
463 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll(
464 int start, int end,
465 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
466 throws com.liferay.portal.kernel.exception.SystemException {
467 return getPersistence().findAll(start, end, orderByComparator);
468 }
469
470 public static void removeByUuid(java.lang.String uuid)
471 throws com.liferay.portal.kernel.exception.SystemException {
472 getPersistence().removeByUuid(uuid);
473 }
474
475 public static void removeByUUID_G(java.lang.String uuid, long groupId)
476 throws com.liferay.portal.kernel.exception.SystemException,
477 com.liferay.portlet.imagegallery.NoSuchImageException {
478 getPersistence().removeByUUID_G(uuid, groupId);
479 }
480
481 public static void removeByGroupId(long groupId)
482 throws com.liferay.portal.kernel.exception.SystemException {
483 getPersistence().removeByGroupId(groupId);
484 }
485
486 public static void removeBySmallImageId(long smallImageId)
487 throws com.liferay.portal.kernel.exception.SystemException,
488 com.liferay.portlet.imagegallery.NoSuchImageException {
489 getPersistence().removeBySmallImageId(smallImageId);
490 }
491
492 public static void removeByLargeImageId(long largeImageId)
493 throws com.liferay.portal.kernel.exception.SystemException,
494 com.liferay.portlet.imagegallery.NoSuchImageException {
495 getPersistence().removeByLargeImageId(largeImageId);
496 }
497
498 public static void removeByCustom1ImageId(long custom1ImageId)
499 throws com.liferay.portal.kernel.exception.SystemException,
500 com.liferay.portlet.imagegallery.NoSuchImageException {
501 getPersistence().removeByCustom1ImageId(custom1ImageId);
502 }
503
504 public static void removeByCustom2ImageId(long custom2ImageId)
505 throws com.liferay.portal.kernel.exception.SystemException,
506 com.liferay.portlet.imagegallery.NoSuchImageException {
507 getPersistence().removeByCustom2ImageId(custom2ImageId);
508 }
509
510 public static void removeByG_U(long groupId, long userId)
511 throws com.liferay.portal.kernel.exception.SystemException {
512 getPersistence().removeByG_U(groupId, userId);
513 }
514
515 public static void removeByG_F(long groupId, long folderId)
516 throws com.liferay.portal.kernel.exception.SystemException {
517 getPersistence().removeByG_F(groupId, folderId);
518 }
519
520 public static void removeByG_F_N(long groupId, long folderId,
521 java.lang.String name)
522 throws com.liferay.portal.kernel.exception.SystemException {
523 getPersistence().removeByG_F_N(groupId, folderId, name);
524 }
525
526 public static void removeAll()
527 throws com.liferay.portal.kernel.exception.SystemException {
528 getPersistence().removeAll();
529 }
530
531 public static int countByUuid(java.lang.String uuid)
532 throws com.liferay.portal.kernel.exception.SystemException {
533 return getPersistence().countByUuid(uuid);
534 }
535
536 public static int countByUUID_G(java.lang.String uuid, long groupId)
537 throws com.liferay.portal.kernel.exception.SystemException {
538 return getPersistence().countByUUID_G(uuid, groupId);
539 }
540
541 public static int countByGroupId(long groupId)
542 throws com.liferay.portal.kernel.exception.SystemException {
543 return getPersistence().countByGroupId(groupId);
544 }
545
546 public static int countBySmallImageId(long smallImageId)
547 throws com.liferay.portal.kernel.exception.SystemException {
548 return getPersistence().countBySmallImageId(smallImageId);
549 }
550
551 public static int countByLargeImageId(long largeImageId)
552 throws com.liferay.portal.kernel.exception.SystemException {
553 return getPersistence().countByLargeImageId(largeImageId);
554 }
555
556 public static int countByCustom1ImageId(long custom1ImageId)
557 throws com.liferay.portal.kernel.exception.SystemException {
558 return getPersistence().countByCustom1ImageId(custom1ImageId);
559 }
560
561 public static int countByCustom2ImageId(long custom2ImageId)
562 throws com.liferay.portal.kernel.exception.SystemException {
563 return getPersistence().countByCustom2ImageId(custom2ImageId);
564 }
565
566 public static int countByG_U(long groupId, long userId)
567 throws com.liferay.portal.kernel.exception.SystemException {
568 return getPersistence().countByG_U(groupId, userId);
569 }
570
571 public static int countByG_F(long groupId, long folderId)
572 throws com.liferay.portal.kernel.exception.SystemException {
573 return getPersistence().countByG_F(groupId, folderId);
574 }
575
576 public static int countByG_F_N(long groupId, long folderId,
577 java.lang.String name)
578 throws com.liferay.portal.kernel.exception.SystemException {
579 return getPersistence().countByG_F_N(groupId, folderId, name);
580 }
581
582 public static int countAll()
583 throws com.liferay.portal.kernel.exception.SystemException {
584 return getPersistence().countAll();
585 }
586
587 public static IGImagePersistence getPersistence() {
588 if (_persistence == null) {
589 _persistence = (IGImagePersistence)PortalBeanLocatorUtil.locate(IGImagePersistence.class.getName());
590 }
591
592 return _persistence;
593 }
594
595 public void setPersistence(IGImagePersistence persistence) {
596 _persistence = persistence;
597 }
598
599 private static IGImagePersistence _persistence;
600 }