1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
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  /**
26   * <a href="DLFileEntryUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       DLFileEntryPersistence
35   * @see       DLFileEntryPersistenceImpl
36   * @generated
37   */
38  public class DLFileEntryUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
48       */
49      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50          throws SystemException {
51          return getPersistence().findWithDynamicQuery(dynamicQuery);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
56       */
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      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
64       */
65      public static DLFileEntry remove(DLFileEntry dlFileEntry)
66          throws SystemException {
67          return getPersistence().remove(dlFileEntry);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
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     /**
101      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
102      */
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 obc)
141         throws com.liferay.portal.SystemException {
142         return getPersistence().findByUuid(uuid, start, end, obc);
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 obc)
148         throws com.liferay.portal.SystemException,
149             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
150         return getPersistence().findByUuid_First(uuid, obc);
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 obc)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
158         return getPersistence().findByUuid_Last(uuid, obc);
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 obc)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
166         return getPersistence().findByUuid_PrevAndNext(fileEntryId, uuid, obc);
167     }
168 
169     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUUID_G(
170         java.lang.String uuid, long groupId)
171         throws com.liferay.portal.SystemException,
172             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
173         return getPersistence().findByUUID_G(uuid, groupId);
174     }
175 
176     public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUUID_G(
177         java.lang.String uuid, long groupId)
178         throws com.liferay.portal.SystemException {
179         return getPersistence().fetchByUUID_G(uuid, groupId);
180     }
181 
182     public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUUID_G(
183         java.lang.String uuid, long groupId, boolean retrieveFromCache)
184         throws com.liferay.portal.SystemException {
185         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
186     }
187 
188     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByGroupId(
189         long groupId) throws com.liferay.portal.SystemException {
190         return getPersistence().findByGroupId(groupId);
191     }
192 
193     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByGroupId(
194         long groupId, int start, int end)
195         throws com.liferay.portal.SystemException {
196         return getPersistence().findByGroupId(groupId, start, end);
197     }
198 
199     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByGroupId(
200         long groupId, int start, int end,
201         com.liferay.portal.kernel.util.OrderByComparator obc)
202         throws com.liferay.portal.SystemException {
203         return getPersistence().findByGroupId(groupId, start, end, obc);
204     }
205 
206     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByGroupId_First(
207         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
208         throws com.liferay.portal.SystemException,
209             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
210         return getPersistence().findByGroupId_First(groupId, obc);
211     }
212 
213     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByGroupId_Last(
214         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
215         throws com.liferay.portal.SystemException,
216             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
217         return getPersistence().findByGroupId_Last(groupId, obc);
218     }
219 
220     public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByGroupId_PrevAndNext(
221         long fileEntryId, long groupId,
222         com.liferay.portal.kernel.util.OrderByComparator obc)
223         throws com.liferay.portal.SystemException,
224             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
225         return getPersistence()
226                    .findByGroupId_PrevAndNext(fileEntryId, groupId, obc);
227     }
228 
229     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
230         long companyId) throws com.liferay.portal.SystemException {
231         return getPersistence().findByCompanyId(companyId);
232     }
233 
234     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
235         long companyId, int start, int end)
236         throws com.liferay.portal.SystemException {
237         return getPersistence().findByCompanyId(companyId, start, end);
238     }
239 
240     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
241         long companyId, int start, int end,
242         com.liferay.portal.kernel.util.OrderByComparator obc)
243         throws com.liferay.portal.SystemException {
244         return getPersistence().findByCompanyId(companyId, start, end, obc);
245     }
246 
247     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByCompanyId_First(
248         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
249         throws com.liferay.portal.SystemException,
250             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
251         return getPersistence().findByCompanyId_First(companyId, obc);
252     }
253 
254     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByCompanyId_Last(
255         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
256         throws com.liferay.portal.SystemException,
257             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
258         return getPersistence().findByCompanyId_Last(companyId, obc);
259     }
260 
261     public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByCompanyId_PrevAndNext(
262         long fileEntryId, long companyId,
263         com.liferay.portal.kernel.util.OrderByComparator obc)
264         throws com.liferay.portal.SystemException,
265             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
266         return getPersistence()
267                    .findByCompanyId_PrevAndNext(fileEntryId, companyId, obc);
268     }
269 
270     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByFolderId(
271         long folderId) throws com.liferay.portal.SystemException {
272         return getPersistence().findByFolderId(folderId);
273     }
274 
275     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByFolderId(
276         long folderId, int start, int end)
277         throws com.liferay.portal.SystemException {
278         return getPersistence().findByFolderId(folderId, start, end);
279     }
280 
281     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByFolderId(
282         long folderId, int start, int end,
283         com.liferay.portal.kernel.util.OrderByComparator obc)
284         throws com.liferay.portal.SystemException {
285         return getPersistence().findByFolderId(folderId, start, end, obc);
286     }
287 
288     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByFolderId_First(
289         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
290         throws com.liferay.portal.SystemException,
291             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
292         return getPersistence().findByFolderId_First(folderId, obc);
293     }
294 
295     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByFolderId_Last(
296         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
297         throws com.liferay.portal.SystemException,
298             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
299         return getPersistence().findByFolderId_Last(folderId, obc);
300     }
301 
302     public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByFolderId_PrevAndNext(
303         long fileEntryId, long folderId,
304         com.liferay.portal.kernel.util.OrderByComparator obc)
305         throws com.liferay.portal.SystemException,
306             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
307         return getPersistence()
308                    .findByFolderId_PrevAndNext(fileEntryId, folderId, obc);
309     }
310 
311     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
312         long groupId, long userId) throws com.liferay.portal.SystemException {
313         return getPersistence().findByG_U(groupId, userId);
314     }
315 
316     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
317         long groupId, long userId, int start, int end)
318         throws com.liferay.portal.SystemException {
319         return getPersistence().findByG_U(groupId, userId, start, end);
320     }
321 
322     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
323         long groupId, long userId, int start, int end,
324         com.liferay.portal.kernel.util.OrderByComparator obc)
325         throws com.liferay.portal.SystemException {
326         return getPersistence().findByG_U(groupId, userId, start, end, obc);
327     }
328 
329     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_U_First(
330         long groupId, long userId,
331         com.liferay.portal.kernel.util.OrderByComparator obc)
332         throws com.liferay.portal.SystemException,
333             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
334         return getPersistence().findByG_U_First(groupId, userId, obc);
335     }
336 
337     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_U_Last(
338         long groupId, long userId,
339         com.liferay.portal.kernel.util.OrderByComparator obc)
340         throws com.liferay.portal.SystemException,
341             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
342         return getPersistence().findByG_U_Last(groupId, userId, obc);
343     }
344 
345     public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByG_U_PrevAndNext(
346         long fileEntryId, long groupId, long userId,
347         com.liferay.portal.kernel.util.OrderByComparator obc)
348         throws com.liferay.portal.SystemException,
349             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
350         return getPersistence()
351                    .findByG_U_PrevAndNext(fileEntryId, groupId, userId, obc);
352     }
353 
354     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_N(
355         long folderId, java.lang.String name)
356         throws com.liferay.portal.SystemException,
357             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
358         return getPersistence().findByF_N(folderId, name);
359     }
360 
361     public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByF_N(
362         long folderId, java.lang.String name)
363         throws com.liferay.portal.SystemException {
364         return getPersistence().fetchByF_N(folderId, name);
365     }
366 
367     public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByF_N(
368         long folderId, java.lang.String name, boolean retrieveFromCache)
369         throws com.liferay.portal.SystemException {
370         return getPersistence().fetchByF_N(folderId, name, retrieveFromCache);
371     }
372 
373     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByF_T(
374         long folderId, java.lang.String title)
375         throws com.liferay.portal.SystemException {
376         return getPersistence().findByF_T(folderId, title);
377     }
378 
379     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByF_T(
380         long folderId, java.lang.String title, int start, int end)
381         throws com.liferay.portal.SystemException {
382         return getPersistence().findByF_T(folderId, title, start, end);
383     }
384 
385     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByF_T(
386         long folderId, java.lang.String title, int start, int end,
387         com.liferay.portal.kernel.util.OrderByComparator obc)
388         throws com.liferay.portal.SystemException {
389         return getPersistence().findByF_T(folderId, title, start, end, obc);
390     }
391 
392     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_T_First(
393         long folderId, java.lang.String title,
394         com.liferay.portal.kernel.util.OrderByComparator obc)
395         throws com.liferay.portal.SystemException,
396             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
397         return getPersistence().findByF_T_First(folderId, title, obc);
398     }
399 
400     public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_T_Last(
401         long folderId, java.lang.String title,
402         com.liferay.portal.kernel.util.OrderByComparator obc)
403         throws com.liferay.portal.SystemException,
404             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
405         return getPersistence().findByF_T_Last(folderId, title, obc);
406     }
407 
408     public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByF_T_PrevAndNext(
409         long fileEntryId, long folderId, java.lang.String title,
410         com.liferay.portal.kernel.util.OrderByComparator obc)
411         throws com.liferay.portal.SystemException,
412             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
413         return getPersistence()
414                    .findByF_T_PrevAndNext(fileEntryId, folderId, title, obc);
415     }
416 
417     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll()
418         throws com.liferay.portal.SystemException {
419         return getPersistence().findAll();
420     }
421 
422     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll(
423         int start, int end) throws com.liferay.portal.SystemException {
424         return getPersistence().findAll(start, end);
425     }
426 
427     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll(
428         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
429         throws com.liferay.portal.SystemException {
430         return getPersistence().findAll(start, end, obc);
431     }
432 
433     public static void removeByUuid(java.lang.String uuid)
434         throws com.liferay.portal.SystemException {
435         getPersistence().removeByUuid(uuid);
436     }
437 
438     public static void removeByUUID_G(java.lang.String uuid, long groupId)
439         throws com.liferay.portal.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.SystemException {
446         getPersistence().removeByGroupId(groupId);
447     }
448 
449     public static void removeByCompanyId(long companyId)
450         throws com.liferay.portal.SystemException {
451         getPersistence().removeByCompanyId(companyId);
452     }
453 
454     public static void removeByFolderId(long folderId)
455         throws com.liferay.portal.SystemException {
456         getPersistence().removeByFolderId(folderId);
457     }
458 
459     public static void removeByG_U(long groupId, long userId)
460         throws com.liferay.portal.SystemException {
461         getPersistence().removeByG_U(groupId, userId);
462     }
463 
464     public static void removeByF_N(long folderId, java.lang.String name)
465         throws com.liferay.portal.SystemException,
466             com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
467         getPersistence().removeByF_N(folderId, name);
468     }
469 
470     public static void removeByF_T(long folderId, java.lang.String title)
471         throws com.liferay.portal.SystemException {
472         getPersistence().removeByF_T(folderId, title);
473     }
474 
475     public static void removeAll() throws com.liferay.portal.SystemException {
476         getPersistence().removeAll();
477     }
478 
479     public static int countByUuid(java.lang.String uuid)
480         throws com.liferay.portal.SystemException {
481         return getPersistence().countByUuid(uuid);
482     }
483 
484     public static int countByUUID_G(java.lang.String uuid, long groupId)
485         throws com.liferay.portal.SystemException {
486         return getPersistence().countByUUID_G(uuid, groupId);
487     }
488 
489     public static int countByGroupId(long groupId)
490         throws com.liferay.portal.SystemException {
491         return getPersistence().countByGroupId(groupId);
492     }
493 
494     public static int countByCompanyId(long companyId)
495         throws com.liferay.portal.SystemException {
496         return getPersistence().countByCompanyId(companyId);
497     }
498 
499     public static int countByFolderId(long folderId)
500         throws com.liferay.portal.SystemException {
501         return getPersistence().countByFolderId(folderId);
502     }
503 
504     public static int countByG_U(long groupId, long userId)
505         throws com.liferay.portal.SystemException {
506         return getPersistence().countByG_U(groupId, userId);
507     }
508 
509     public static int countByF_N(long folderId, java.lang.String name)
510         throws com.liferay.portal.SystemException {
511         return getPersistence().countByF_N(folderId, name);
512     }
513 
514     public static int countByF_T(long folderId, java.lang.String title)
515         throws com.liferay.portal.SystemException {
516         return getPersistence().countByF_T(folderId, title);
517     }
518 
519     public static int countAll() throws com.liferay.portal.SystemException {
520         return getPersistence().countAll();
521     }
522 
523     public static DLFileEntryPersistence getPersistence() {
524         if (_persistence == null) {
525             _persistence = (DLFileEntryPersistence)PortalBeanLocatorUtil.locate(DLFileEntryPersistence.class.getName());
526         }
527 
528         return _persistence;
529     }
530 
531     public void setPersistence(DLFileEntryPersistence persistence) {
532         _persistence = persistence;
533     }
534 
535     private static DLFileEntryPersistence _persistence;
536 }