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