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