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