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