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