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