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