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