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