001
014
015 package com.liferay.portlet.imagegallery.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.service.ServiceContext;
022
023 import com.liferay.portlet.imagegallery.model.IGFolder;
024
025 import java.util.List;
026
027
033 public class IGFolderUtil {
034
037 public static void clearCache() {
038 getPersistence().clearCache();
039 }
040
041
044 public static void clearCache(IGFolder igFolder) {
045 getPersistence().clearCache(igFolder);
046 }
047
048
051 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052 throws SystemException {
053 return getPersistence().countWithDynamicQuery(dynamicQuery);
054 }
055
056
059 public static List<IGFolder> findWithDynamicQuery(DynamicQuery dynamicQuery)
060 throws SystemException {
061 return getPersistence().findWithDynamicQuery(dynamicQuery);
062 }
063
064
067 public static List<IGFolder> findWithDynamicQuery(
068 DynamicQuery dynamicQuery, int start, int end)
069 throws SystemException {
070 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071 }
072
073
076 public static List<IGFolder> findWithDynamicQuery(
077 DynamicQuery dynamicQuery, int start, int end,
078 OrderByComparator orderByComparator) throws SystemException {
079 return getPersistence()
080 .findWithDynamicQuery(dynamicQuery, start, end,
081 orderByComparator);
082 }
083
084
087 public static IGFolder remove(IGFolder igFolder) throws SystemException {
088 return getPersistence().remove(igFolder);
089 }
090
091
094 public static IGFolder update(IGFolder igFolder, boolean merge)
095 throws SystemException {
096 return getPersistence().update(igFolder, merge);
097 }
098
099
102 public static IGFolder update(IGFolder igFolder, boolean merge,
103 ServiceContext serviceContext) throws SystemException {
104 return getPersistence().update(igFolder, merge, serviceContext);
105 }
106
107 public static void cacheResult(
108 com.liferay.portlet.imagegallery.model.IGFolder igFolder) {
109 getPersistence().cacheResult(igFolder);
110 }
111
112 public static void cacheResult(
113 java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> igFolders) {
114 getPersistence().cacheResult(igFolders);
115 }
116
117 public static com.liferay.portlet.imagegallery.model.IGFolder create(
118 long folderId) {
119 return getPersistence().create(folderId);
120 }
121
122 public static com.liferay.portlet.imagegallery.model.IGFolder remove(
123 long folderId)
124 throws com.liferay.portal.kernel.exception.SystemException,
125 com.liferay.portlet.imagegallery.NoSuchFolderException {
126 return getPersistence().remove(folderId);
127 }
128
129 public static com.liferay.portlet.imagegallery.model.IGFolder updateImpl(
130 com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
131 throws com.liferay.portal.kernel.exception.SystemException {
132 return getPersistence().updateImpl(igFolder, merge);
133 }
134
135 public static com.liferay.portlet.imagegallery.model.IGFolder findByPrimaryKey(
136 long folderId)
137 throws com.liferay.portal.kernel.exception.SystemException,
138 com.liferay.portlet.imagegallery.NoSuchFolderException {
139 return getPersistence().findByPrimaryKey(folderId);
140 }
141
142 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByPrimaryKey(
143 long folderId)
144 throws com.liferay.portal.kernel.exception.SystemException {
145 return getPersistence().fetchByPrimaryKey(folderId);
146 }
147
148 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid(
149 java.lang.String uuid)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getPersistence().findByUuid(uuid);
152 }
153
154 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid(
155 java.lang.String uuid, int start, int end)
156 throws com.liferay.portal.kernel.exception.SystemException {
157 return getPersistence().findByUuid(uuid, start, end);
158 }
159
160 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid(
161 java.lang.String uuid, int start, int end,
162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
165 }
166
167 public static com.liferay.portlet.imagegallery.model.IGFolder findByUuid_First(
168 java.lang.String uuid,
169 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170 throws com.liferay.portal.kernel.exception.SystemException,
171 com.liferay.portlet.imagegallery.NoSuchFolderException {
172 return getPersistence().findByUuid_First(uuid, orderByComparator);
173 }
174
175 public static com.liferay.portlet.imagegallery.model.IGFolder findByUuid_Last(
176 java.lang.String uuid,
177 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178 throws com.liferay.portal.kernel.exception.SystemException,
179 com.liferay.portlet.imagegallery.NoSuchFolderException {
180 return getPersistence().findByUuid_Last(uuid, orderByComparator);
181 }
182
183 public static com.liferay.portlet.imagegallery.model.IGFolder[] findByUuid_PrevAndNext(
184 long folderId, java.lang.String uuid,
185 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186 throws com.liferay.portal.kernel.exception.SystemException,
187 com.liferay.portlet.imagegallery.NoSuchFolderException {
188 return getPersistence()
189 .findByUuid_PrevAndNext(folderId, uuid, orderByComparator);
190 }
191
192 public static com.liferay.portlet.imagegallery.model.IGFolder findByUUID_G(
193 java.lang.String uuid, long groupId)
194 throws com.liferay.portal.kernel.exception.SystemException,
195 com.liferay.portlet.imagegallery.NoSuchFolderException {
196 return getPersistence().findByUUID_G(uuid, groupId);
197 }
198
199 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByUUID_G(
200 java.lang.String uuid, long groupId)
201 throws com.liferay.portal.kernel.exception.SystemException {
202 return getPersistence().fetchByUUID_G(uuid, groupId);
203 }
204
205 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByUUID_G(
206 java.lang.String uuid, long groupId, boolean retrieveFromCache)
207 throws com.liferay.portal.kernel.exception.SystemException {
208 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
209 }
210
211 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
212 long groupId)
213 throws com.liferay.portal.kernel.exception.SystemException {
214 return getPersistence().findByGroupId(groupId);
215 }
216
217 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
218 long groupId, int start, int end)
219 throws com.liferay.portal.kernel.exception.SystemException {
220 return getPersistence().findByGroupId(groupId, start, end);
221 }
222
223 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
224 long groupId, int start, int end,
225 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226 throws com.liferay.portal.kernel.exception.SystemException {
227 return getPersistence()
228 .findByGroupId(groupId, start, end, orderByComparator);
229 }
230
231 public static com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_First(
232 long groupId,
233 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234 throws com.liferay.portal.kernel.exception.SystemException,
235 com.liferay.portlet.imagegallery.NoSuchFolderException {
236 return getPersistence().findByGroupId_First(groupId, orderByComparator);
237 }
238
239 public static com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_Last(
240 long groupId,
241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
242 throws com.liferay.portal.kernel.exception.SystemException,
243 com.liferay.portlet.imagegallery.NoSuchFolderException {
244 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
245 }
246
247 public static com.liferay.portlet.imagegallery.model.IGFolder[] findByGroupId_PrevAndNext(
248 long folderId, long groupId,
249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
250 throws com.liferay.portal.kernel.exception.SystemException,
251 com.liferay.portlet.imagegallery.NoSuchFolderException {
252 return getPersistence()
253 .findByGroupId_PrevAndNext(folderId, groupId,
254 orderByComparator);
255 }
256
257 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByGroupId(
258 long groupId)
259 throws com.liferay.portal.kernel.exception.SystemException {
260 return getPersistence().filterFindByGroupId(groupId);
261 }
262
263 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByGroupId(
264 long groupId, int start, int end)
265 throws com.liferay.portal.kernel.exception.SystemException {
266 return getPersistence().filterFindByGroupId(groupId, start, end);
267 }
268
269 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByGroupId(
270 long groupId, int start, int end,
271 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
272 throws com.liferay.portal.kernel.exception.SystemException {
273 return getPersistence()
274 .filterFindByGroupId(groupId, start, end, orderByComparator);
275 }
276
277 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
278 long companyId)
279 throws com.liferay.portal.kernel.exception.SystemException {
280 return getPersistence().findByCompanyId(companyId);
281 }
282
283 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
284 long companyId, int start, int end)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 return getPersistence().findByCompanyId(companyId, start, end);
287 }
288
289 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
290 long companyId, int start, int end,
291 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292 throws com.liferay.portal.kernel.exception.SystemException {
293 return getPersistence()
294 .findByCompanyId(companyId, start, end, orderByComparator);
295 }
296
297 public static com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_First(
298 long companyId,
299 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
300 throws com.liferay.portal.kernel.exception.SystemException,
301 com.liferay.portlet.imagegallery.NoSuchFolderException {
302 return getPersistence()
303 .findByCompanyId_First(companyId, orderByComparator);
304 }
305
306 public static com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_Last(
307 long companyId,
308 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
309 throws com.liferay.portal.kernel.exception.SystemException,
310 com.liferay.portlet.imagegallery.NoSuchFolderException {
311 return getPersistence()
312 .findByCompanyId_Last(companyId, orderByComparator);
313 }
314
315 public static com.liferay.portlet.imagegallery.model.IGFolder[] findByCompanyId_PrevAndNext(
316 long folderId, long companyId,
317 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
318 throws com.liferay.portal.kernel.exception.SystemException,
319 com.liferay.portlet.imagegallery.NoSuchFolderException {
320 return getPersistence()
321 .findByCompanyId_PrevAndNext(folderId, companyId,
322 orderByComparator);
323 }
324
325 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
326 long groupId, long parentFolderId)
327 throws com.liferay.portal.kernel.exception.SystemException {
328 return getPersistence().findByG_P(groupId, parentFolderId);
329 }
330
331 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
332 long groupId, long parentFolderId, int start, int end)
333 throws com.liferay.portal.kernel.exception.SystemException {
334 return getPersistence().findByG_P(groupId, parentFolderId, start, end);
335 }
336
337 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
338 long groupId, long parentFolderId, int start, int end,
339 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
340 throws com.liferay.portal.kernel.exception.SystemException {
341 return getPersistence()
342 .findByG_P(groupId, parentFolderId, start, end,
343 orderByComparator);
344 }
345
346 public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_First(
347 long groupId, long parentFolderId,
348 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
349 throws com.liferay.portal.kernel.exception.SystemException,
350 com.liferay.portlet.imagegallery.NoSuchFolderException {
351 return getPersistence()
352 .findByG_P_First(groupId, parentFolderId, orderByComparator);
353 }
354
355 public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_Last(
356 long groupId, long parentFolderId,
357 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
358 throws com.liferay.portal.kernel.exception.SystemException,
359 com.liferay.portlet.imagegallery.NoSuchFolderException {
360 return getPersistence()
361 .findByG_P_Last(groupId, parentFolderId, orderByComparator);
362 }
363
364 public static com.liferay.portlet.imagegallery.model.IGFolder[] findByG_P_PrevAndNext(
365 long folderId, long groupId, long parentFolderId,
366 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
367 throws com.liferay.portal.kernel.exception.SystemException,
368 com.liferay.portlet.imagegallery.NoSuchFolderException {
369 return getPersistence()
370 .findByG_P_PrevAndNext(folderId, groupId, parentFolderId,
371 orderByComparator);
372 }
373
374 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByG_P(
375 long groupId, long parentFolderId)
376 throws com.liferay.portal.kernel.exception.SystemException {
377 return getPersistence().filterFindByG_P(groupId, parentFolderId);
378 }
379
380 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByG_P(
381 long groupId, long parentFolderId, int start, int end)
382 throws com.liferay.portal.kernel.exception.SystemException {
383 return getPersistence()
384 .filterFindByG_P(groupId, parentFolderId, start, end);
385 }
386
387 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByG_P(
388 long groupId, long parentFolderId, int start, int end,
389 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
390 throws com.liferay.portal.kernel.exception.SystemException {
391 return getPersistence()
392 .filterFindByG_P(groupId, parentFolderId, start, end,
393 orderByComparator);
394 }
395
396 public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_N(
397 long groupId, long parentFolderId, java.lang.String name)
398 throws com.liferay.portal.kernel.exception.SystemException,
399 com.liferay.portlet.imagegallery.NoSuchFolderException {
400 return getPersistence().findByG_P_N(groupId, parentFolderId, name);
401 }
402
403 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N(
404 long groupId, long parentFolderId, java.lang.String name)
405 throws com.liferay.portal.kernel.exception.SystemException {
406 return getPersistence().fetchByG_P_N(groupId, parentFolderId, name);
407 }
408
409 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N(
410 long groupId, long parentFolderId, java.lang.String name,
411 boolean retrieveFromCache)
412 throws com.liferay.portal.kernel.exception.SystemException {
413 return getPersistence()
414 .fetchByG_P_N(groupId, parentFolderId, name,
415 retrieveFromCache);
416 }
417
418 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll()
419 throws com.liferay.portal.kernel.exception.SystemException {
420 return getPersistence().findAll();
421 }
422
423 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll(
424 int start, int end)
425 throws com.liferay.portal.kernel.exception.SystemException {
426 return getPersistence().findAll(start, end);
427 }
428
429 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll(
430 int start, int end,
431 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
432 throws com.liferay.portal.kernel.exception.SystemException {
433 return getPersistence().findAll(start, end, orderByComparator);
434 }
435
436 public static void removeByUuid(java.lang.String uuid)
437 throws com.liferay.portal.kernel.exception.SystemException {
438 getPersistence().removeByUuid(uuid);
439 }
440
441 public static void removeByUUID_G(java.lang.String uuid, long groupId)
442 throws com.liferay.portal.kernel.exception.SystemException,
443 com.liferay.portlet.imagegallery.NoSuchFolderException {
444 getPersistence().removeByUUID_G(uuid, groupId);
445 }
446
447 public static void removeByGroupId(long groupId)
448 throws com.liferay.portal.kernel.exception.SystemException {
449 getPersistence().removeByGroupId(groupId);
450 }
451
452 public static void removeByCompanyId(long companyId)
453 throws com.liferay.portal.kernel.exception.SystemException {
454 getPersistence().removeByCompanyId(companyId);
455 }
456
457 public static void removeByG_P(long groupId, long parentFolderId)
458 throws com.liferay.portal.kernel.exception.SystemException {
459 getPersistence().removeByG_P(groupId, parentFolderId);
460 }
461
462 public static void removeByG_P_N(long groupId, long parentFolderId,
463 java.lang.String name)
464 throws com.liferay.portal.kernel.exception.SystemException,
465 com.liferay.portlet.imagegallery.NoSuchFolderException {
466 getPersistence().removeByG_P_N(groupId, parentFolderId, name);
467 }
468
469 public static void removeAll()
470 throws com.liferay.portal.kernel.exception.SystemException {
471 getPersistence().removeAll();
472 }
473
474 public static int countByUuid(java.lang.String uuid)
475 throws com.liferay.portal.kernel.exception.SystemException {
476 return getPersistence().countByUuid(uuid);
477 }
478
479 public static int countByUUID_G(java.lang.String uuid, long groupId)
480 throws com.liferay.portal.kernel.exception.SystemException {
481 return getPersistence().countByUUID_G(uuid, groupId);
482 }
483
484 public static int countByGroupId(long groupId)
485 throws com.liferay.portal.kernel.exception.SystemException {
486 return getPersistence().countByGroupId(groupId);
487 }
488
489 public static int filterCountByGroupId(long groupId)
490 throws com.liferay.portal.kernel.exception.SystemException {
491 return getPersistence().filterCountByGroupId(groupId);
492 }
493
494 public static int countByCompanyId(long companyId)
495 throws com.liferay.portal.kernel.exception.SystemException {
496 return getPersistence().countByCompanyId(companyId);
497 }
498
499 public static int countByG_P(long groupId, long parentFolderId)
500 throws com.liferay.portal.kernel.exception.SystemException {
501 return getPersistence().countByG_P(groupId, parentFolderId);
502 }
503
504 public static int filterCountByG_P(long groupId, long parentFolderId)
505 throws com.liferay.portal.kernel.exception.SystemException {
506 return getPersistence().filterCountByG_P(groupId, parentFolderId);
507 }
508
509 public static int countByG_P_N(long groupId, long parentFolderId,
510 java.lang.String name)
511 throws com.liferay.portal.kernel.exception.SystemException {
512 return getPersistence().countByG_P_N(groupId, parentFolderId, name);
513 }
514
515 public static int filterCountByG_P_N(long groupId, long parentFolderId,
516 java.lang.String name)
517 throws com.liferay.portal.kernel.exception.SystemException {
518 return getPersistence().filterCountByG_P_N(groupId, parentFolderId, name);
519 }
520
521 public static int countAll()
522 throws com.liferay.portal.kernel.exception.SystemException {
523 return getPersistence().countAll();
524 }
525
526 public static IGFolderPersistence getPersistence() {
527 if (_persistence == null) {
528 _persistence = (IGFolderPersistence)PortalBeanLocatorUtil.locate(IGFolderPersistence.class.getName());
529 }
530
531 return _persistence;
532 }
533
534 public void setPersistence(IGFolderPersistence persistence) {
535 _persistence = persistence;
536 }
537
538 private static IGFolderPersistence _persistence;
539 }