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