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