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