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