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 obc)
140 throws com.liferay.portal.SystemException {
141 return getPersistence().findByUuid(uuid, start, end, obc);
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 obc)
147 throws com.liferay.portal.SystemException,
148 com.liferay.portlet.documentlibrary.NoSuchFolderException {
149 return getPersistence().findByUuid_First(uuid, obc);
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 obc)
155 throws com.liferay.portal.SystemException,
156 com.liferay.portlet.documentlibrary.NoSuchFolderException {
157 return getPersistence().findByUuid_Last(uuid, obc);
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 obc)
163 throws com.liferay.portal.SystemException,
164 com.liferay.portlet.documentlibrary.NoSuchFolderException {
165 return getPersistence().findByUuid_PrevAndNext(folderId, uuid, obc);
166 }
167
168 public static com.liferay.portlet.documentlibrary.model.DLFolder findByUUID_G(
169 java.lang.String uuid, long groupId)
170 throws com.liferay.portal.SystemException,
171 com.liferay.portlet.documentlibrary.NoSuchFolderException {
172 return getPersistence().findByUUID_G(uuid, groupId);
173 }
174
175 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G(
176 java.lang.String uuid, long groupId)
177 throws com.liferay.portal.SystemException {
178 return getPersistence().fetchByUUID_G(uuid, groupId);
179 }
180
181 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByUUID_G(
182 java.lang.String uuid, long groupId, boolean retrieveFromCache)
183 throws com.liferay.portal.SystemException {
184 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
185 }
186
187 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
188 long groupId) throws com.liferay.portal.SystemException {
189 return getPersistence().findByGroupId(groupId);
190 }
191
192 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
193 long groupId, int start, int end)
194 throws com.liferay.portal.SystemException {
195 return getPersistence().findByGroupId(groupId, start, end);
196 }
197
198 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByGroupId(
199 long groupId, int start, int end,
200 com.liferay.portal.kernel.util.OrderByComparator obc)
201 throws com.liferay.portal.SystemException {
202 return getPersistence().findByGroupId(groupId, start, end, obc);
203 }
204
205 public static com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_First(
206 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
207 throws com.liferay.portal.SystemException,
208 com.liferay.portlet.documentlibrary.NoSuchFolderException {
209 return getPersistence().findByGroupId_First(groupId, obc);
210 }
211
212 public static com.liferay.portlet.documentlibrary.model.DLFolder findByGroupId_Last(
213 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
214 throws com.liferay.portal.SystemException,
215 com.liferay.portlet.documentlibrary.NoSuchFolderException {
216 return getPersistence().findByGroupId_Last(groupId, obc);
217 }
218
219 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByGroupId_PrevAndNext(
220 long folderId, long groupId,
221 com.liferay.portal.kernel.util.OrderByComparator obc)
222 throws com.liferay.portal.SystemException,
223 com.liferay.portlet.documentlibrary.NoSuchFolderException {
224 return getPersistence().findByGroupId_PrevAndNext(folderId, groupId, obc);
225 }
226
227 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
228 long companyId) throws com.liferay.portal.SystemException {
229 return getPersistence().findByCompanyId(companyId);
230 }
231
232 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
233 long companyId, int start, int end)
234 throws com.liferay.portal.SystemException {
235 return getPersistence().findByCompanyId(companyId, start, end);
236 }
237
238 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByCompanyId(
239 long companyId, int start, int end,
240 com.liferay.portal.kernel.util.OrderByComparator obc)
241 throws com.liferay.portal.SystemException {
242 return getPersistence().findByCompanyId(companyId, start, end, obc);
243 }
244
245 public static com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_First(
246 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
247 throws com.liferay.portal.SystemException,
248 com.liferay.portlet.documentlibrary.NoSuchFolderException {
249 return getPersistence().findByCompanyId_First(companyId, obc);
250 }
251
252 public static com.liferay.portlet.documentlibrary.model.DLFolder findByCompanyId_Last(
253 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
254 throws com.liferay.portal.SystemException,
255 com.liferay.portlet.documentlibrary.NoSuchFolderException {
256 return getPersistence().findByCompanyId_Last(companyId, obc);
257 }
258
259 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByCompanyId_PrevAndNext(
260 long folderId, long companyId,
261 com.liferay.portal.kernel.util.OrderByComparator obc)
262 throws com.liferay.portal.SystemException,
263 com.liferay.portlet.documentlibrary.NoSuchFolderException {
264 return getPersistence()
265 .findByCompanyId_PrevAndNext(folderId, companyId, obc);
266 }
267
268 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
269 long groupId, long parentFolderId)
270 throws com.liferay.portal.SystemException {
271 return getPersistence().findByG_P(groupId, parentFolderId);
272 }
273
274 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
275 long groupId, long parentFolderId, int start, int end)
276 throws com.liferay.portal.SystemException {
277 return getPersistence().findByG_P(groupId, parentFolderId, start, end);
278 }
279
280 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByG_P(
281 long groupId, long parentFolderId, int start, int end,
282 com.liferay.portal.kernel.util.OrderByComparator obc)
283 throws com.liferay.portal.SystemException {
284 return getPersistence()
285 .findByG_P(groupId, parentFolderId, start, end, obc);
286 }
287
288 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_First(
289 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().findByG_P_First(groupId, parentFolderId, obc);
294 }
295
296 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_Last(
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_Last(groupId, parentFolderId, obc);
302 }
303
304 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByG_P_PrevAndNext(
305 long folderId, 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()
310 .findByG_P_PrevAndNext(folderId, groupId, parentFolderId, obc);
311 }
312
313 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
314 long parentFolderId, java.lang.String name)
315 throws com.liferay.portal.SystemException {
316 return getPersistence().findByP_N(parentFolderId, name);
317 }
318
319 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
320 long parentFolderId, java.lang.String name, int start, int end)
321 throws com.liferay.portal.SystemException {
322 return getPersistence().findByP_N(parentFolderId, name, start, end);
323 }
324
325 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findByP_N(
326 long parentFolderId, java.lang.String name, int start, int end,
327 com.liferay.portal.kernel.util.OrderByComparator obc)
328 throws com.liferay.portal.SystemException {
329 return getPersistence().findByP_N(parentFolderId, name, start, end, obc);
330 }
331
332 public static com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_First(
333 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().findByP_N_First(parentFolderId, name, obc);
338 }
339
340 public static com.liferay.portlet.documentlibrary.model.DLFolder findByP_N_Last(
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_Last(parentFolderId, name, obc);
346 }
347
348 public static com.liferay.portlet.documentlibrary.model.DLFolder[] findByP_N_PrevAndNext(
349 long folderId, 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()
354 .findByP_N_PrevAndNext(folderId, parentFolderId, name, obc);
355 }
356
357 public static com.liferay.portlet.documentlibrary.model.DLFolder findByG_P_N(
358 long groupId, long parentFolderId, java.lang.String name)
359 throws com.liferay.portal.SystemException,
360 com.liferay.portlet.documentlibrary.NoSuchFolderException {
361 return getPersistence().findByG_P_N(groupId, parentFolderId, name);
362 }
363
364 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N(
365 long groupId, long parentFolderId, java.lang.String name)
366 throws com.liferay.portal.SystemException {
367 return getPersistence().fetchByG_P_N(groupId, parentFolderId, name);
368 }
369
370 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchByG_P_N(
371 long groupId, long parentFolderId, java.lang.String name,
372 boolean retrieveFromCache) throws com.liferay.portal.SystemException {
373 return getPersistence()
374 .fetchByG_P_N(groupId, parentFolderId, name,
375 retrieveFromCache);
376 }
377
378 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll()
379 throws com.liferay.portal.SystemException {
380 return getPersistence().findAll();
381 }
382
383 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
384 int start, int end) throws com.liferay.portal.SystemException {
385 return getPersistence().findAll(start, end);
386 }
387
388 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> findAll(
389 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
390 throws com.liferay.portal.SystemException {
391 return getPersistence().findAll(start, end, obc);
392 }
393
394 public static void removeByUuid(java.lang.String uuid)
395 throws com.liferay.portal.SystemException {
396 getPersistence().removeByUuid(uuid);
397 }
398
399 public static void removeByUUID_G(java.lang.String uuid, long groupId)
400 throws com.liferay.portal.SystemException,
401 com.liferay.portlet.documentlibrary.NoSuchFolderException {
402 getPersistence().removeByUUID_G(uuid, groupId);
403 }
404
405 public static void removeByGroupId(long groupId)
406 throws com.liferay.portal.SystemException {
407 getPersistence().removeByGroupId(groupId);
408 }
409
410 public static void removeByCompanyId(long companyId)
411 throws com.liferay.portal.SystemException {
412 getPersistence().removeByCompanyId(companyId);
413 }
414
415 public static void removeByG_P(long groupId, long parentFolderId)
416 throws com.liferay.portal.SystemException {
417 getPersistence().removeByG_P(groupId, parentFolderId);
418 }
419
420 public static void removeByP_N(long parentFolderId, java.lang.String name)
421 throws com.liferay.portal.SystemException {
422 getPersistence().removeByP_N(parentFolderId, name);
423 }
424
425 public static void removeByG_P_N(long groupId, long parentFolderId,
426 java.lang.String name)
427 throws com.liferay.portal.SystemException,
428 com.liferay.portlet.documentlibrary.NoSuchFolderException {
429 getPersistence().removeByG_P_N(groupId, parentFolderId, name);
430 }
431
432 public static void removeAll() throws com.liferay.portal.SystemException {
433 getPersistence().removeAll();
434 }
435
436 public static int countByUuid(java.lang.String uuid)
437 throws com.liferay.portal.SystemException {
438 return getPersistence().countByUuid(uuid);
439 }
440
441 public static int countByUUID_G(java.lang.String uuid, long groupId)
442 throws com.liferay.portal.SystemException {
443 return getPersistence().countByUUID_G(uuid, groupId);
444 }
445
446 public static int countByGroupId(long groupId)
447 throws com.liferay.portal.SystemException {
448 return getPersistence().countByGroupId(groupId);
449 }
450
451 public static int countByCompanyId(long companyId)
452 throws com.liferay.portal.SystemException {
453 return getPersistence().countByCompanyId(companyId);
454 }
455
456 public static int countByG_P(long groupId, long parentFolderId)
457 throws com.liferay.portal.SystemException {
458 return getPersistence().countByG_P(groupId, parentFolderId);
459 }
460
461 public static int countByP_N(long parentFolderId, java.lang.String name)
462 throws com.liferay.portal.SystemException {
463 return getPersistence().countByP_N(parentFolderId, name);
464 }
465
466 public static int countByG_P_N(long groupId, long parentFolderId,
467 java.lang.String name) throws com.liferay.portal.SystemException {
468 return getPersistence().countByG_P_N(groupId, parentFolderId, name);
469 }
470
471 public static int countAll() throws com.liferay.portal.SystemException {
472 return getPersistence().countAll();
473 }
474
475 public static DLFolderPersistence getPersistence() {
476 if (_persistence == null) {
477 _persistence = (DLFolderPersistence)PortalBeanLocatorUtil.locate(DLFolderPersistence.class.getName());
478 }
479
480 return _persistence;
481 }
482
483 public void setPersistence(DLFolderPersistence persistence) {
484 _persistence = persistence;
485 }
486
487 private static DLFolderPersistence _persistence;
488 }