1
14
15 package com.liferay.portlet.documentlibrary.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
20
21 import com.liferay.portlet.documentlibrary.model.DLFileEntry;
22
23 import java.util.List;
24
25
38 public class DLFileEntryUtil {
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 DLFileEntry remove(DLFileEntry dlFileEntry)
66 throws SystemException {
67 return getPersistence().remove(dlFileEntry);
68 }
69
70
73 public static DLFileEntry update(DLFileEntry dlFileEntry, boolean merge)
74 throws SystemException {
75 return getPersistence().update(dlFileEntry, merge);
76 }
77
78 public static void cacheResult(
79 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry) {
80 getPersistence().cacheResult(dlFileEntry);
81 }
82
83 public static void cacheResult(
84 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> dlFileEntries) {
85 getPersistence().cacheResult(dlFileEntries);
86 }
87
88 public static com.liferay.portlet.documentlibrary.model.DLFileEntry create(
89 long fileEntryId) {
90 return getPersistence().create(fileEntryId);
91 }
92
93 public static com.liferay.portlet.documentlibrary.model.DLFileEntry remove(
94 long fileEntryId)
95 throws com.liferay.portal.kernel.exception.SystemException,
96 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
97 return getPersistence().remove(fileEntryId);
98 }
99
100 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateImpl(
101 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
102 boolean merge)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getPersistence().updateImpl(dlFileEntry, merge);
105 }
106
107 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByPrimaryKey(
108 long fileEntryId)
109 throws com.liferay.portal.kernel.exception.SystemException,
110 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
111 return getPersistence().findByPrimaryKey(fileEntryId);
112 }
113
114 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByPrimaryKey(
115 long fileEntryId)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getPersistence().fetchByPrimaryKey(fileEntryId);
118 }
119
120 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid(
121 java.lang.String uuid)
122 throws com.liferay.portal.kernel.exception.SystemException {
123 return getPersistence().findByUuid(uuid);
124 }
125
126 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid(
127 java.lang.String uuid, int start, int end)
128 throws com.liferay.portal.kernel.exception.SystemException {
129 return getPersistence().findByUuid(uuid, start, end);
130 }
131
132 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid(
133 java.lang.String uuid, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
137 }
138
139 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_First(
140 java.lang.String uuid,
141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142 throws com.liferay.portal.kernel.exception.SystemException,
143 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
144 return getPersistence().findByUuid_First(uuid, orderByComparator);
145 }
146
147 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_Last(
148 java.lang.String uuid,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException,
151 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
152 return getPersistence().findByUuid_Last(uuid, orderByComparator);
153 }
154
155 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByUuid_PrevAndNext(
156 long fileEntryId, java.lang.String uuid,
157 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158 throws com.liferay.portal.kernel.exception.SystemException,
159 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
160 return getPersistence()
161 .findByUuid_PrevAndNext(fileEntryId, uuid, orderByComparator);
162 }
163
164 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUUID_G(
165 java.lang.String uuid, long groupId)
166 throws com.liferay.portal.kernel.exception.SystemException,
167 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
168 return getPersistence().findByUUID_G(uuid, groupId);
169 }
170
171 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUUID_G(
172 java.lang.String uuid, long groupId)
173 throws com.liferay.portal.kernel.exception.SystemException {
174 return getPersistence().fetchByUUID_G(uuid, groupId);
175 }
176
177 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUUID_G(
178 java.lang.String uuid, long groupId, boolean retrieveFromCache)
179 throws com.liferay.portal.kernel.exception.SystemException {
180 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
181 }
182
183 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByGroupId(
184 long groupId)
185 throws com.liferay.portal.kernel.exception.SystemException {
186 return getPersistence().findByGroupId(groupId);
187 }
188
189 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByGroupId(
190 long groupId, int start, int end)
191 throws com.liferay.portal.kernel.exception.SystemException {
192 return getPersistence().findByGroupId(groupId, start, end);
193 }
194
195 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByGroupId(
196 long groupId, int start, int end,
197 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
198 throws com.liferay.portal.kernel.exception.SystemException {
199 return getPersistence()
200 .findByGroupId(groupId, start, end, orderByComparator);
201 }
202
203 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByGroupId_First(
204 long groupId,
205 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
206 throws com.liferay.portal.kernel.exception.SystemException,
207 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
208 return getPersistence().findByGroupId_First(groupId, orderByComparator);
209 }
210
211 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByGroupId_Last(
212 long groupId,
213 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214 throws com.liferay.portal.kernel.exception.SystemException,
215 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
216 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
217 }
218
219 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByGroupId_PrevAndNext(
220 long fileEntryId, long groupId,
221 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222 throws com.liferay.portal.kernel.exception.SystemException,
223 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
224 return getPersistence()
225 .findByGroupId_PrevAndNext(fileEntryId, groupId,
226 orderByComparator);
227 }
228
229 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
230 long companyId)
231 throws com.liferay.portal.kernel.exception.SystemException {
232 return getPersistence().findByCompanyId(companyId);
233 }
234
235 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
236 long companyId, int start, int end)
237 throws com.liferay.portal.kernel.exception.SystemException {
238 return getPersistence().findByCompanyId(companyId, start, end);
239 }
240
241 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
242 long companyId, int start, int end,
243 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244 throws com.liferay.portal.kernel.exception.SystemException {
245 return getPersistence()
246 .findByCompanyId(companyId, start, end, orderByComparator);
247 }
248
249 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByCompanyId_First(
250 long companyId,
251 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
252 throws com.liferay.portal.kernel.exception.SystemException,
253 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
254 return getPersistence()
255 .findByCompanyId_First(companyId, orderByComparator);
256 }
257
258 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByCompanyId_Last(
259 long companyId,
260 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
261 throws com.liferay.portal.kernel.exception.SystemException,
262 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
263 return getPersistence()
264 .findByCompanyId_Last(companyId, orderByComparator);
265 }
266
267 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByCompanyId_PrevAndNext(
268 long fileEntryId, long companyId,
269 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
270 throws com.liferay.portal.kernel.exception.SystemException,
271 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
272 return getPersistence()
273 .findByCompanyId_PrevAndNext(fileEntryId, companyId,
274 orderByComparator);
275 }
276
277 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
278 long groupId, long userId)
279 throws com.liferay.portal.kernel.exception.SystemException {
280 return getPersistence().findByG_U(groupId, userId);
281 }
282
283 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
284 long groupId, long userId, int start, int end)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 return getPersistence().findByG_U(groupId, userId, start, end);
287 }
288
289 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
290 long groupId, long userId, int start, int end,
291 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292 throws com.liferay.portal.kernel.exception.SystemException {
293 return getPersistence()
294 .findByG_U(groupId, userId, start, end, orderByComparator);
295 }
296
297 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_U_First(
298 long groupId, long userId,
299 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
300 throws com.liferay.portal.kernel.exception.SystemException,
301 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
302 return getPersistence()
303 .findByG_U_First(groupId, userId, orderByComparator);
304 }
305
306 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_U_Last(
307 long groupId, long userId,
308 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
309 throws com.liferay.portal.kernel.exception.SystemException,
310 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
311 return getPersistence()
312 .findByG_U_Last(groupId, userId, orderByComparator);
313 }
314
315 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByG_U_PrevAndNext(
316 long fileEntryId, long groupId, long userId,
317 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
318 throws com.liferay.portal.kernel.exception.SystemException,
319 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
320 return getPersistence()
321 .findByG_U_PrevAndNext(fileEntryId, groupId, userId,
322 orderByComparator);
323 }
324
325 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F(
326 long groupId, long folderId)
327 throws com.liferay.portal.kernel.exception.SystemException {
328 return getPersistence().findByG_F(groupId, folderId);
329 }
330
331 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F(
332 long groupId, long folderId, int start, int end)
333 throws com.liferay.portal.kernel.exception.SystemException {
334 return getPersistence().findByG_F(groupId, folderId, start, end);
335 }
336
337 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F(
338 long groupId, long folderId, int start, int end,
339 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
340 throws com.liferay.portal.kernel.exception.SystemException {
341 return getPersistence()
342 .findByG_F(groupId, folderId, start, end, orderByComparator);
343 }
344
345 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_First(
346 long groupId, long folderId,
347 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
348 throws com.liferay.portal.kernel.exception.SystemException,
349 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
350 return getPersistence()
351 .findByG_F_First(groupId, folderId, orderByComparator);
352 }
353
354 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_Last(
355 long groupId, long folderId,
356 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
357 throws com.liferay.portal.kernel.exception.SystemException,
358 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
359 return getPersistence()
360 .findByG_F_Last(groupId, folderId, orderByComparator);
361 }
362
363 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByG_F_PrevAndNext(
364 long fileEntryId, long groupId, long folderId,
365 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
366 throws com.liferay.portal.kernel.exception.SystemException,
367 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
368 return getPersistence()
369 .findByG_F_PrevAndNext(fileEntryId, groupId, folderId,
370 orderByComparator);
371 }
372
373 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_N(
374 long groupId, long folderId, java.lang.String name)
375 throws com.liferay.portal.kernel.exception.SystemException,
376 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
377 return getPersistence().findByG_F_N(groupId, folderId, name);
378 }
379
380 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_N(
381 long groupId, long folderId, java.lang.String name)
382 throws com.liferay.portal.kernel.exception.SystemException {
383 return getPersistence().fetchByG_F_N(groupId, folderId, name);
384 }
385
386 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_N(
387 long groupId, long folderId, java.lang.String name,
388 boolean retrieveFromCache)
389 throws com.liferay.portal.kernel.exception.SystemException {
390 return getPersistence()
391 .fetchByG_F_N(groupId, folderId, name, retrieveFromCache);
392 }
393
394 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_T(
395 long groupId, long folderId, java.lang.String title)
396 throws com.liferay.portal.kernel.exception.SystemException,
397 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
398 return getPersistence().findByG_F_T(groupId, folderId, title);
399 }
400
401 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_T(
402 long groupId, long folderId, java.lang.String title)
403 throws com.liferay.portal.kernel.exception.SystemException {
404 return getPersistence().fetchByG_F_T(groupId, folderId, title);
405 }
406
407 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_T(
408 long groupId, long folderId, java.lang.String title,
409 boolean retrieveFromCache)
410 throws com.liferay.portal.kernel.exception.SystemException {
411 return getPersistence()
412 .fetchByG_F_T(groupId, folderId, title, retrieveFromCache);
413 }
414
415 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll()
416 throws com.liferay.portal.kernel.exception.SystemException {
417 return getPersistence().findAll();
418 }
419
420 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll(
421 int start, int end)
422 throws com.liferay.portal.kernel.exception.SystemException {
423 return getPersistence().findAll(start, end);
424 }
425
426 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll(
427 int start, int end,
428 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
429 throws com.liferay.portal.kernel.exception.SystemException {
430 return getPersistence().findAll(start, end, orderByComparator);
431 }
432
433 public static void removeByUuid(java.lang.String uuid)
434 throws com.liferay.portal.kernel.exception.SystemException {
435 getPersistence().removeByUuid(uuid);
436 }
437
438 public static void removeByUUID_G(java.lang.String uuid, long groupId)
439 throws com.liferay.portal.kernel.exception.SystemException,
440 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
441 getPersistence().removeByUUID_G(uuid, groupId);
442 }
443
444 public static void removeByGroupId(long groupId)
445 throws com.liferay.portal.kernel.exception.SystemException {
446 getPersistence().removeByGroupId(groupId);
447 }
448
449 public static void removeByCompanyId(long companyId)
450 throws com.liferay.portal.kernel.exception.SystemException {
451 getPersistence().removeByCompanyId(companyId);
452 }
453
454 public static void removeByG_U(long groupId, long userId)
455 throws com.liferay.portal.kernel.exception.SystemException {
456 getPersistence().removeByG_U(groupId, userId);
457 }
458
459 public static void removeByG_F(long groupId, long folderId)
460 throws com.liferay.portal.kernel.exception.SystemException {
461 getPersistence().removeByG_F(groupId, folderId);
462 }
463
464 public static void removeByG_F_N(long groupId, long folderId,
465 java.lang.String name)
466 throws com.liferay.portal.kernel.exception.SystemException,
467 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
468 getPersistence().removeByG_F_N(groupId, folderId, name);
469 }
470
471 public static void removeByG_F_T(long groupId, long folderId,
472 java.lang.String title)
473 throws com.liferay.portal.kernel.exception.SystemException,
474 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
475 getPersistence().removeByG_F_T(groupId, folderId, title);
476 }
477
478 public static void removeAll()
479 throws com.liferay.portal.kernel.exception.SystemException {
480 getPersistence().removeAll();
481 }
482
483 public static int countByUuid(java.lang.String uuid)
484 throws com.liferay.portal.kernel.exception.SystemException {
485 return getPersistence().countByUuid(uuid);
486 }
487
488 public static int countByUUID_G(java.lang.String uuid, long groupId)
489 throws com.liferay.portal.kernel.exception.SystemException {
490 return getPersistence().countByUUID_G(uuid, groupId);
491 }
492
493 public static int countByGroupId(long groupId)
494 throws com.liferay.portal.kernel.exception.SystemException {
495 return getPersistence().countByGroupId(groupId);
496 }
497
498 public static int countByCompanyId(long companyId)
499 throws com.liferay.portal.kernel.exception.SystemException {
500 return getPersistence().countByCompanyId(companyId);
501 }
502
503 public static int countByG_U(long groupId, long userId)
504 throws com.liferay.portal.kernel.exception.SystemException {
505 return getPersistence().countByG_U(groupId, userId);
506 }
507
508 public static int countByG_F(long groupId, long folderId)
509 throws com.liferay.portal.kernel.exception.SystemException {
510 return getPersistence().countByG_F(groupId, folderId);
511 }
512
513 public static int countByG_F_N(long groupId, long folderId,
514 java.lang.String name)
515 throws com.liferay.portal.kernel.exception.SystemException {
516 return getPersistence().countByG_F_N(groupId, folderId, name);
517 }
518
519 public static int countByG_F_T(long groupId, long folderId,
520 java.lang.String title)
521 throws com.liferay.portal.kernel.exception.SystemException {
522 return getPersistence().countByG_F_T(groupId, folderId, title);
523 }
524
525 public static int countAll()
526 throws com.liferay.portal.kernel.exception.SystemException {
527 return getPersistence().countAll();
528 }
529
530 public static DLFileEntryPersistence getPersistence() {
531 if (_persistence == null) {
532 _persistence = (DLFileEntryPersistence)PortalBeanLocatorUtil.locate(DLFileEntryPersistence.class.getName());
533 }
534
535 return _persistence;
536 }
537
538 public void setPersistence(DLFileEntryPersistence persistence) {
539 _persistence = persistence;
540 }
541
542 private static DLFileEntryPersistence _persistence;
543 }