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