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