1
14
15 package com.liferay.portlet.imagegallery.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
20
21 import com.liferay.portlet.imagegallery.model.IGFolder;
22
23 import java.util.List;
24
25
38 public class IGFolderUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(IGFolder igFolder) {
50 getPersistence().clearCache(igFolder);
51 }
52
53
56 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<IGFolder> findWithDynamicQuery(DynamicQuery dynamicQuery)
65 throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<IGFolder> findWithDynamicQuery(
73 DynamicQuery dynamicQuery, int start, int end)
74 throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static IGFolder remove(IGFolder igFolder) throws SystemException {
82 return getPersistence().remove(igFolder);
83 }
84
85
88 public static IGFolder update(IGFolder igFolder, boolean merge)
89 throws SystemException {
90 return getPersistence().update(igFolder, merge);
91 }
92
93 public static void cacheResult(
94 com.liferay.portlet.imagegallery.model.IGFolder igFolder) {
95 getPersistence().cacheResult(igFolder);
96 }
97
98 public static void cacheResult(
99 java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> igFolders) {
100 getPersistence().cacheResult(igFolders);
101 }
102
103 public static com.liferay.portlet.imagegallery.model.IGFolder create(
104 long folderId) {
105 return getPersistence().create(folderId);
106 }
107
108 public static com.liferay.portlet.imagegallery.model.IGFolder remove(
109 long folderId)
110 throws com.liferay.portal.kernel.exception.SystemException,
111 com.liferay.portlet.imagegallery.NoSuchFolderException {
112 return getPersistence().remove(folderId);
113 }
114
115 public static com.liferay.portlet.imagegallery.model.IGFolder updateImpl(
116 com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
117 throws com.liferay.portal.kernel.exception.SystemException {
118 return getPersistence().updateImpl(igFolder, merge);
119 }
120
121 public static com.liferay.portlet.imagegallery.model.IGFolder findByPrimaryKey(
122 long folderId)
123 throws com.liferay.portal.kernel.exception.SystemException,
124 com.liferay.portlet.imagegallery.NoSuchFolderException {
125 return getPersistence().findByPrimaryKey(folderId);
126 }
127
128 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByPrimaryKey(
129 long folderId)
130 throws com.liferay.portal.kernel.exception.SystemException {
131 return getPersistence().fetchByPrimaryKey(folderId);
132 }
133
134 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid(
135 java.lang.String uuid)
136 throws com.liferay.portal.kernel.exception.SystemException {
137 return getPersistence().findByUuid(uuid);
138 }
139
140 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid(
141 java.lang.String uuid, int start, int end)
142 throws com.liferay.portal.kernel.exception.SystemException {
143 return getPersistence().findByUuid(uuid, start, end);
144 }
145
146 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid(
147 java.lang.String uuid, int start, int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
151 }
152
153 public static com.liferay.portlet.imagegallery.model.IGFolder findByUuid_First(
154 java.lang.String uuid,
155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156 throws com.liferay.portal.kernel.exception.SystemException,
157 com.liferay.portlet.imagegallery.NoSuchFolderException {
158 return getPersistence().findByUuid_First(uuid, orderByComparator);
159 }
160
161 public static com.liferay.portlet.imagegallery.model.IGFolder findByUuid_Last(
162 java.lang.String uuid,
163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164 throws com.liferay.portal.kernel.exception.SystemException,
165 com.liferay.portlet.imagegallery.NoSuchFolderException {
166 return getPersistence().findByUuid_Last(uuid, orderByComparator);
167 }
168
169 public static com.liferay.portlet.imagegallery.model.IGFolder[] findByUuid_PrevAndNext(
170 long folderId, java.lang.String uuid,
171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172 throws com.liferay.portal.kernel.exception.SystemException,
173 com.liferay.portlet.imagegallery.NoSuchFolderException {
174 return getPersistence()
175 .findByUuid_PrevAndNext(folderId, uuid, orderByComparator);
176 }
177
178 public static com.liferay.portlet.imagegallery.model.IGFolder findByUUID_G(
179 java.lang.String uuid, long groupId)
180 throws com.liferay.portal.kernel.exception.SystemException,
181 com.liferay.portlet.imagegallery.NoSuchFolderException {
182 return getPersistence().findByUUID_G(uuid, groupId);
183 }
184
185 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByUUID_G(
186 java.lang.String uuid, long groupId)
187 throws com.liferay.portal.kernel.exception.SystemException {
188 return getPersistence().fetchByUUID_G(uuid, groupId);
189 }
190
191 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByUUID_G(
192 java.lang.String uuid, long groupId, boolean retrieveFromCache)
193 throws com.liferay.portal.kernel.exception.SystemException {
194 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
195 }
196
197 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
198 long groupId)
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return getPersistence().findByGroupId(groupId);
201 }
202
203 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
204 long groupId, int start, int end)
205 throws com.liferay.portal.kernel.exception.SystemException {
206 return getPersistence().findByGroupId(groupId, start, end);
207 }
208
209 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
210 long groupId, int start, int end,
211 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
212 throws com.liferay.portal.kernel.exception.SystemException {
213 return getPersistence()
214 .findByGroupId(groupId, start, end, orderByComparator);
215 }
216
217 public static com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_First(
218 long groupId,
219 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220 throws com.liferay.portal.kernel.exception.SystemException,
221 com.liferay.portlet.imagegallery.NoSuchFolderException {
222 return getPersistence().findByGroupId_First(groupId, orderByComparator);
223 }
224
225 public static com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_Last(
226 long groupId,
227 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228 throws com.liferay.portal.kernel.exception.SystemException,
229 com.liferay.portlet.imagegallery.NoSuchFolderException {
230 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
231 }
232
233 public static com.liferay.portlet.imagegallery.model.IGFolder[] findByGroupId_PrevAndNext(
234 long folderId, long groupId,
235 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
236 throws com.liferay.portal.kernel.exception.SystemException,
237 com.liferay.portlet.imagegallery.NoSuchFolderException {
238 return getPersistence()
239 .findByGroupId_PrevAndNext(folderId, groupId,
240 orderByComparator);
241 }
242
243 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByGroupId(
244 long groupId)
245 throws com.liferay.portal.kernel.exception.SystemException {
246 return getPersistence().filterFindByGroupId(groupId);
247 }
248
249 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByGroupId(
250 long groupId, int start, int end)
251 throws com.liferay.portal.kernel.exception.SystemException {
252 return getPersistence().filterFindByGroupId(groupId, start, end);
253 }
254
255 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByGroupId(
256 long groupId, int start, int end,
257 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258 throws com.liferay.portal.kernel.exception.SystemException {
259 return getPersistence()
260 .filterFindByGroupId(groupId, start, end, orderByComparator);
261 }
262
263 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
264 long companyId)
265 throws com.liferay.portal.kernel.exception.SystemException {
266 return getPersistence().findByCompanyId(companyId);
267 }
268
269 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
270 long companyId, int start, int end)
271 throws com.liferay.portal.kernel.exception.SystemException {
272 return getPersistence().findByCompanyId(companyId, start, end);
273 }
274
275 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
276 long companyId, int start, int end,
277 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
278 throws com.liferay.portal.kernel.exception.SystemException {
279 return getPersistence()
280 .findByCompanyId(companyId, start, end, orderByComparator);
281 }
282
283 public static com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_First(
284 long companyId,
285 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
286 throws com.liferay.portal.kernel.exception.SystemException,
287 com.liferay.portlet.imagegallery.NoSuchFolderException {
288 return getPersistence()
289 .findByCompanyId_First(companyId, orderByComparator);
290 }
291
292 public static com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_Last(
293 long companyId,
294 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
295 throws com.liferay.portal.kernel.exception.SystemException,
296 com.liferay.portlet.imagegallery.NoSuchFolderException {
297 return getPersistence()
298 .findByCompanyId_Last(companyId, orderByComparator);
299 }
300
301 public static com.liferay.portlet.imagegallery.model.IGFolder[] findByCompanyId_PrevAndNext(
302 long folderId, long companyId,
303 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
304 throws com.liferay.portal.kernel.exception.SystemException,
305 com.liferay.portlet.imagegallery.NoSuchFolderException {
306 return getPersistence()
307 .findByCompanyId_PrevAndNext(folderId, companyId,
308 orderByComparator);
309 }
310
311 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
312 long groupId, long parentFolderId)
313 throws com.liferay.portal.kernel.exception.SystemException {
314 return getPersistence().findByG_P(groupId, parentFolderId);
315 }
316
317 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
318 long groupId, long parentFolderId, int start, int end)
319 throws com.liferay.portal.kernel.exception.SystemException {
320 return getPersistence().findByG_P(groupId, parentFolderId, start, end);
321 }
322
323 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
324 long groupId, long parentFolderId, int start, int end,
325 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
326 throws com.liferay.portal.kernel.exception.SystemException {
327 return getPersistence()
328 .findByG_P(groupId, parentFolderId, start, end,
329 orderByComparator);
330 }
331
332 public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_First(
333 long groupId, long parentFolderId,
334 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
335 throws com.liferay.portal.kernel.exception.SystemException,
336 com.liferay.portlet.imagegallery.NoSuchFolderException {
337 return getPersistence()
338 .findByG_P_First(groupId, parentFolderId, orderByComparator);
339 }
340
341 public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_Last(
342 long groupId, long parentFolderId,
343 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
344 throws com.liferay.portal.kernel.exception.SystemException,
345 com.liferay.portlet.imagegallery.NoSuchFolderException {
346 return getPersistence()
347 .findByG_P_Last(groupId, parentFolderId, orderByComparator);
348 }
349
350 public static com.liferay.portlet.imagegallery.model.IGFolder[] findByG_P_PrevAndNext(
351 long folderId, long groupId, long parentFolderId,
352 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
353 throws com.liferay.portal.kernel.exception.SystemException,
354 com.liferay.portlet.imagegallery.NoSuchFolderException {
355 return getPersistence()
356 .findByG_P_PrevAndNext(folderId, groupId, parentFolderId,
357 orderByComparator);
358 }
359
360 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByG_P(
361 long groupId, long parentFolderId)
362 throws com.liferay.portal.kernel.exception.SystemException {
363 return getPersistence().filterFindByG_P(groupId, parentFolderId);
364 }
365
366 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByG_P(
367 long groupId, long parentFolderId, int start, int end)
368 throws com.liferay.portal.kernel.exception.SystemException {
369 return getPersistence()
370 .filterFindByG_P(groupId, parentFolderId, start, end);
371 }
372
373 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByG_P(
374 long groupId, long parentFolderId, int start, int end,
375 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
376 throws com.liferay.portal.kernel.exception.SystemException {
377 return getPersistence()
378 .filterFindByG_P(groupId, parentFolderId, start, end,
379 orderByComparator);
380 }
381
382 public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_N(
383 long groupId, long parentFolderId, java.lang.String name)
384 throws com.liferay.portal.kernel.exception.SystemException,
385 com.liferay.portlet.imagegallery.NoSuchFolderException {
386 return getPersistence().findByG_P_N(groupId, parentFolderId, name);
387 }
388
389 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N(
390 long groupId, long parentFolderId, java.lang.String name)
391 throws com.liferay.portal.kernel.exception.SystemException {
392 return getPersistence().fetchByG_P_N(groupId, parentFolderId, name);
393 }
394
395 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N(
396 long groupId, long parentFolderId, java.lang.String name,
397 boolean retrieveFromCache)
398 throws com.liferay.portal.kernel.exception.SystemException {
399 return getPersistence()
400 .fetchByG_P_N(groupId, parentFolderId, name,
401 retrieveFromCache);
402 }
403
404 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll()
405 throws com.liferay.portal.kernel.exception.SystemException {
406 return getPersistence().findAll();
407 }
408
409 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll(
410 int start, int end)
411 throws com.liferay.portal.kernel.exception.SystemException {
412 return getPersistence().findAll(start, end);
413 }
414
415 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll(
416 int start, int end,
417 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
418 throws com.liferay.portal.kernel.exception.SystemException {
419 return getPersistence().findAll(start, end, orderByComparator);
420 }
421
422 public static void removeByUuid(java.lang.String uuid)
423 throws com.liferay.portal.kernel.exception.SystemException {
424 getPersistence().removeByUuid(uuid);
425 }
426
427 public static void removeByUUID_G(java.lang.String uuid, long groupId)
428 throws com.liferay.portal.kernel.exception.SystemException,
429 com.liferay.portlet.imagegallery.NoSuchFolderException {
430 getPersistence().removeByUUID_G(uuid, groupId);
431 }
432
433 public static void removeByGroupId(long groupId)
434 throws com.liferay.portal.kernel.exception.SystemException {
435 getPersistence().removeByGroupId(groupId);
436 }
437
438 public static void removeByCompanyId(long companyId)
439 throws com.liferay.portal.kernel.exception.SystemException {
440 getPersistence().removeByCompanyId(companyId);
441 }
442
443 public static void removeByG_P(long groupId, long parentFolderId)
444 throws com.liferay.portal.kernel.exception.SystemException {
445 getPersistence().removeByG_P(groupId, parentFolderId);
446 }
447
448 public static void removeByG_P_N(long groupId, long parentFolderId,
449 java.lang.String name)
450 throws com.liferay.portal.kernel.exception.SystemException,
451 com.liferay.portlet.imagegallery.NoSuchFolderException {
452 getPersistence().removeByG_P_N(groupId, parentFolderId, name);
453 }
454
455 public static void removeAll()
456 throws com.liferay.portal.kernel.exception.SystemException {
457 getPersistence().removeAll();
458 }
459
460 public static int countByUuid(java.lang.String uuid)
461 throws com.liferay.portal.kernel.exception.SystemException {
462 return getPersistence().countByUuid(uuid);
463 }
464
465 public static int countByUUID_G(java.lang.String uuid, long groupId)
466 throws com.liferay.portal.kernel.exception.SystemException {
467 return getPersistence().countByUUID_G(uuid, groupId);
468 }
469
470 public static int countByGroupId(long groupId)
471 throws com.liferay.portal.kernel.exception.SystemException {
472 return getPersistence().countByGroupId(groupId);
473 }
474
475 public static int filterCountByGroupId(long groupId)
476 throws com.liferay.portal.kernel.exception.SystemException {
477 return getPersistence().filterCountByGroupId(groupId);
478 }
479
480 public static int countByCompanyId(long companyId)
481 throws com.liferay.portal.kernel.exception.SystemException {
482 return getPersistence().countByCompanyId(companyId);
483 }
484
485 public static int countByG_P(long groupId, long parentFolderId)
486 throws com.liferay.portal.kernel.exception.SystemException {
487 return getPersistence().countByG_P(groupId, parentFolderId);
488 }
489
490 public static int filterCountByG_P(long groupId, long parentFolderId)
491 throws com.liferay.portal.kernel.exception.SystemException {
492 return getPersistence().filterCountByG_P(groupId, parentFolderId);
493 }
494
495 public static int countByG_P_N(long groupId, long parentFolderId,
496 java.lang.String name)
497 throws com.liferay.portal.kernel.exception.SystemException {
498 return getPersistence().countByG_P_N(groupId, parentFolderId, name);
499 }
500
501 public static int filterCountByG_P_N(long groupId, long parentFolderId,
502 java.lang.String name)
503 throws com.liferay.portal.kernel.exception.SystemException {
504 return getPersistence().filterCountByG_P_N(groupId, parentFolderId, name);
505 }
506
507 public static int countAll()
508 throws com.liferay.portal.kernel.exception.SystemException {
509 return getPersistence().countAll();
510 }
511
512 public static IGFolderPersistence getPersistence() {
513 if (_persistence == null) {
514 _persistence = (IGFolderPersistence)PortalBeanLocatorUtil.locate(IGFolderPersistence.class.getName());
515 }
516
517 return _persistence;
518 }
519
520 public void setPersistence(IGFolderPersistence persistence) {
521 _persistence = persistence;
522 }
523
524 private static IGFolderPersistence _persistence;
525 }