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 obc)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence().findByUuid(uuid, start, end, obc);
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 obc)
142 throws com.liferay.portal.kernel.exception.SystemException,
143 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
144 return getPersistence().findByUuid_First(uuid, obc);
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 obc)
150 throws com.liferay.portal.kernel.exception.SystemException,
151 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
152 return getPersistence().findByUuid_Last(uuid, obc);
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 obc)
158 throws com.liferay.portal.kernel.exception.SystemException,
159 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
160 return getPersistence().findByUuid_PrevAndNext(fileEntryId, uuid, obc);
161 }
162
163 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUUID_G(
164 java.lang.String uuid, long groupId)
165 throws com.liferay.portal.kernel.exception.SystemException,
166 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
167 return getPersistence().findByUUID_G(uuid, groupId);
168 }
169
170 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUUID_G(
171 java.lang.String uuid, long groupId)
172 throws com.liferay.portal.kernel.exception.SystemException {
173 return getPersistence().fetchByUUID_G(uuid, groupId);
174 }
175
176 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUUID_G(
177 java.lang.String uuid, long groupId, boolean retrieveFromCache)
178 throws com.liferay.portal.kernel.exception.SystemException {
179 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
180 }
181
182 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByGroupId(
183 long groupId)
184 throws com.liferay.portal.kernel.exception.SystemException {
185 return getPersistence().findByGroupId(groupId);
186 }
187
188 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByGroupId(
189 long groupId, int start, int end)
190 throws com.liferay.portal.kernel.exception.SystemException {
191 return getPersistence().findByGroupId(groupId, start, end);
192 }
193
194 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByGroupId(
195 long groupId, int start, int end,
196 com.liferay.portal.kernel.util.OrderByComparator obc)
197 throws com.liferay.portal.kernel.exception.SystemException {
198 return getPersistence().findByGroupId(groupId, start, end, obc);
199 }
200
201 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByGroupId_First(
202 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
203 throws com.liferay.portal.kernel.exception.SystemException,
204 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
205 return getPersistence().findByGroupId_First(groupId, obc);
206 }
207
208 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByGroupId_Last(
209 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
210 throws com.liferay.portal.kernel.exception.SystemException,
211 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
212 return getPersistence().findByGroupId_Last(groupId, obc);
213 }
214
215 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByGroupId_PrevAndNext(
216 long fileEntryId, long groupId,
217 com.liferay.portal.kernel.util.OrderByComparator obc)
218 throws com.liferay.portal.kernel.exception.SystemException,
219 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
220 return getPersistence()
221 .findByGroupId_PrevAndNext(fileEntryId, groupId, obc);
222 }
223
224 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
225 long companyId)
226 throws com.liferay.portal.kernel.exception.SystemException {
227 return getPersistence().findByCompanyId(companyId);
228 }
229
230 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
231 long companyId, int start, int end)
232 throws com.liferay.portal.kernel.exception.SystemException {
233 return getPersistence().findByCompanyId(companyId, start, end);
234 }
235
236 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
237 long companyId, int start, int end,
238 com.liferay.portal.kernel.util.OrderByComparator obc)
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return getPersistence().findByCompanyId(companyId, start, end, obc);
241 }
242
243 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByCompanyId_First(
244 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
245 throws com.liferay.portal.kernel.exception.SystemException,
246 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
247 return getPersistence().findByCompanyId_First(companyId, obc);
248 }
249
250 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByCompanyId_Last(
251 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
252 throws com.liferay.portal.kernel.exception.SystemException,
253 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
254 return getPersistence().findByCompanyId_Last(companyId, obc);
255 }
256
257 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByCompanyId_PrevAndNext(
258 long fileEntryId, long companyId,
259 com.liferay.portal.kernel.util.OrderByComparator obc)
260 throws com.liferay.portal.kernel.exception.SystemException,
261 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
262 return getPersistence()
263 .findByCompanyId_PrevAndNext(fileEntryId, companyId, obc);
264 }
265
266 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
267 long groupId, long userId)
268 throws com.liferay.portal.kernel.exception.SystemException {
269 return getPersistence().findByG_U(groupId, userId);
270 }
271
272 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
273 long groupId, long userId, int start, int end)
274 throws com.liferay.portal.kernel.exception.SystemException {
275 return getPersistence().findByG_U(groupId, userId, start, end);
276 }
277
278 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
279 long groupId, long userId, int start, int end,
280 com.liferay.portal.kernel.util.OrderByComparator obc)
281 throws com.liferay.portal.kernel.exception.SystemException {
282 return getPersistence().findByG_U(groupId, userId, start, end, obc);
283 }
284
285 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_U_First(
286 long groupId, long userId,
287 com.liferay.portal.kernel.util.OrderByComparator obc)
288 throws com.liferay.portal.kernel.exception.SystemException,
289 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
290 return getPersistence().findByG_U_First(groupId, userId, obc);
291 }
292
293 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_U_Last(
294 long groupId, long userId,
295 com.liferay.portal.kernel.util.OrderByComparator obc)
296 throws com.liferay.portal.kernel.exception.SystemException,
297 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
298 return getPersistence().findByG_U_Last(groupId, userId, obc);
299 }
300
301 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByG_U_PrevAndNext(
302 long fileEntryId, long groupId, long userId,
303 com.liferay.portal.kernel.util.OrderByComparator obc)
304 throws com.liferay.portal.kernel.exception.SystemException,
305 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
306 return getPersistence()
307 .findByG_U_PrevAndNext(fileEntryId, groupId, userId, obc);
308 }
309
310 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F(
311 long groupId, long folderId)
312 throws com.liferay.portal.kernel.exception.SystemException {
313 return getPersistence().findByG_F(groupId, folderId);
314 }
315
316 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F(
317 long groupId, long folderId, int start, int end)
318 throws com.liferay.portal.kernel.exception.SystemException {
319 return getPersistence().findByG_F(groupId, folderId, start, end);
320 }
321
322 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F(
323 long groupId, long folderId, int start, int end,
324 com.liferay.portal.kernel.util.OrderByComparator obc)
325 throws com.liferay.portal.kernel.exception.SystemException {
326 return getPersistence().findByG_F(groupId, folderId, start, end, obc);
327 }
328
329 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_First(
330 long groupId, long folderId,
331 com.liferay.portal.kernel.util.OrderByComparator obc)
332 throws com.liferay.portal.kernel.exception.SystemException,
333 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
334 return getPersistence().findByG_F_First(groupId, folderId, obc);
335 }
336
337 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_Last(
338 long groupId, long folderId,
339 com.liferay.portal.kernel.util.OrderByComparator obc)
340 throws com.liferay.portal.kernel.exception.SystemException,
341 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
342 return getPersistence().findByG_F_Last(groupId, folderId, obc);
343 }
344
345 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByG_F_PrevAndNext(
346 long fileEntryId, long groupId, long folderId,
347 com.liferay.portal.kernel.util.OrderByComparator obc)
348 throws com.liferay.portal.kernel.exception.SystemException,
349 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
350 return getPersistence()
351 .findByG_F_PrevAndNext(fileEntryId, groupId, folderId, obc);
352 }
353
354 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_N(
355 long groupId, long folderId, java.lang.String name)
356 throws com.liferay.portal.kernel.exception.SystemException,
357 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
358 return getPersistence().findByG_F_N(groupId, folderId, name);
359 }
360
361 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_N(
362 long groupId, long folderId, java.lang.String name)
363 throws com.liferay.portal.kernel.exception.SystemException {
364 return getPersistence().fetchByG_F_N(groupId, folderId, name);
365 }
366
367 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_N(
368 long groupId, long folderId, java.lang.String name,
369 boolean retrieveFromCache)
370 throws com.liferay.portal.kernel.exception.SystemException {
371 return getPersistence()
372 .fetchByG_F_N(groupId, folderId, name, retrieveFromCache);
373 }
374
375 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_T(
376 long groupId, long folderId, java.lang.String title)
377 throws com.liferay.portal.kernel.exception.SystemException,
378 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
379 return getPersistence().findByG_F_T(groupId, folderId, title);
380 }
381
382 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_T(
383 long groupId, long folderId, java.lang.String title)
384 throws com.liferay.portal.kernel.exception.SystemException {
385 return getPersistence().fetchByG_F_T(groupId, folderId, title);
386 }
387
388 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_T(
389 long groupId, long folderId, java.lang.String title,
390 boolean retrieveFromCache)
391 throws com.liferay.portal.kernel.exception.SystemException {
392 return getPersistence()
393 .fetchByG_F_T(groupId, folderId, title, retrieveFromCache);
394 }
395
396 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll()
397 throws com.liferay.portal.kernel.exception.SystemException {
398 return getPersistence().findAll();
399 }
400
401 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll(
402 int start, int end)
403 throws com.liferay.portal.kernel.exception.SystemException {
404 return getPersistence().findAll(start, end);
405 }
406
407 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll(
408 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
409 throws com.liferay.portal.kernel.exception.SystemException {
410 return getPersistence().findAll(start, end, obc);
411 }
412
413 public static void removeByUuid(java.lang.String uuid)
414 throws com.liferay.portal.kernel.exception.SystemException {
415 getPersistence().removeByUuid(uuid);
416 }
417
418 public static void removeByUUID_G(java.lang.String uuid, long groupId)
419 throws com.liferay.portal.kernel.exception.SystemException,
420 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
421 getPersistence().removeByUUID_G(uuid, groupId);
422 }
423
424 public static void removeByGroupId(long groupId)
425 throws com.liferay.portal.kernel.exception.SystemException {
426 getPersistence().removeByGroupId(groupId);
427 }
428
429 public static void removeByCompanyId(long companyId)
430 throws com.liferay.portal.kernel.exception.SystemException {
431 getPersistence().removeByCompanyId(companyId);
432 }
433
434 public static void removeByG_U(long groupId, long userId)
435 throws com.liferay.portal.kernel.exception.SystemException {
436 getPersistence().removeByG_U(groupId, userId);
437 }
438
439 public static void removeByG_F(long groupId, long folderId)
440 throws com.liferay.portal.kernel.exception.SystemException {
441 getPersistence().removeByG_F(groupId, folderId);
442 }
443
444 public static void removeByG_F_N(long groupId, long folderId,
445 java.lang.String name)
446 throws com.liferay.portal.kernel.exception.SystemException,
447 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
448 getPersistence().removeByG_F_N(groupId, folderId, name);
449 }
450
451 public static void removeByG_F_T(long groupId, long folderId,
452 java.lang.String title)
453 throws com.liferay.portal.kernel.exception.SystemException,
454 com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
455 getPersistence().removeByG_F_T(groupId, folderId, title);
456 }
457
458 public static void removeAll()
459 throws com.liferay.portal.kernel.exception.SystemException {
460 getPersistence().removeAll();
461 }
462
463 public static int countByUuid(java.lang.String uuid)
464 throws com.liferay.portal.kernel.exception.SystemException {
465 return getPersistence().countByUuid(uuid);
466 }
467
468 public static int countByUUID_G(java.lang.String uuid, long groupId)
469 throws com.liferay.portal.kernel.exception.SystemException {
470 return getPersistence().countByUUID_G(uuid, groupId);
471 }
472
473 public static int countByGroupId(long groupId)
474 throws com.liferay.portal.kernel.exception.SystemException {
475 return getPersistence().countByGroupId(groupId);
476 }
477
478 public static int countByCompanyId(long companyId)
479 throws com.liferay.portal.kernel.exception.SystemException {
480 return getPersistence().countByCompanyId(companyId);
481 }
482
483 public static int countByG_U(long groupId, long userId)
484 throws com.liferay.portal.kernel.exception.SystemException {
485 return getPersistence().countByG_U(groupId, userId);
486 }
487
488 public static int countByG_F(long groupId, long folderId)
489 throws com.liferay.portal.kernel.exception.SystemException {
490 return getPersistence().countByG_F(groupId, folderId);
491 }
492
493 public static int countByG_F_N(long groupId, long folderId,
494 java.lang.String name)
495 throws com.liferay.portal.kernel.exception.SystemException {
496 return getPersistence().countByG_F_N(groupId, folderId, name);
497 }
498
499 public static int countByG_F_T(long groupId, long folderId,
500 java.lang.String title)
501 throws com.liferay.portal.kernel.exception.SystemException {
502 return getPersistence().countByG_F_T(groupId, folderId, title);
503 }
504
505 public static int countAll()
506 throws com.liferay.portal.kernel.exception.SystemException {
507 return getPersistence().countAll();
508 }
509
510 public static DLFileEntryPersistence getPersistence() {
511 if (_persistence == null) {
512 _persistence = (DLFileEntryPersistence)PortalBeanLocatorUtil.locate(DLFileEntryPersistence.class.getName());
513 }
514
515 return _persistence;
516 }
517
518 public void setPersistence(DLFileEntryPersistence persistence) {
519 _persistence = persistence;
520 }
521
522 private static DLFileEntryPersistence _persistence;
523 }