001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the document library file entry metadata service. This utility wraps {@link DLFileEntryMetadataPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see DLFileEntryMetadataPersistence
037     * @see DLFileEntryMetadataPersistenceImpl
038     * @generated
039     */
040    public class DLFileEntryMetadataUtil {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
045             */
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
049             */
050            public static void clearCache() {
051                    getPersistence().clearCache();
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
056             */
057            public static void clearCache(DLFileEntryMetadata dlFileEntryMetadata) {
058                    getPersistence().clearCache(dlFileEntryMetadata);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
063             */
064            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
065                    throws SystemException {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<DLFileEntryMetadata> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) throws SystemException {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<DLFileEntryMetadata> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end)
082                    throws SystemException {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<DLFileEntryMetadata> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator orderByComparator) throws SystemException {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
099             */
100            public static DLFileEntryMetadata update(
101                    DLFileEntryMetadata dlFileEntryMetadata) throws SystemException {
102                    return getPersistence().update(dlFileEntryMetadata);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
107             */
108            public static DLFileEntryMetadata update(
109                    DLFileEntryMetadata dlFileEntryMetadata, ServiceContext serviceContext)
110                    throws SystemException {
111                    return getPersistence().update(dlFileEntryMetadata, serviceContext);
112            }
113    
114            /**
115            * Caches the document library file entry metadata in the entity cache if it is enabled.
116            *
117            * @param dlFileEntryMetadata the document library file entry metadata
118            */
119            public static void cacheResult(
120                    com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata dlFileEntryMetadata) {
121                    getPersistence().cacheResult(dlFileEntryMetadata);
122            }
123    
124            /**
125            * Caches the document library file entry metadatas in the entity cache if it is enabled.
126            *
127            * @param dlFileEntryMetadatas the document library file entry metadatas
128            */
129            public static void cacheResult(
130                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> dlFileEntryMetadatas) {
131                    getPersistence().cacheResult(dlFileEntryMetadatas);
132            }
133    
134            /**
135            * Creates a new document library file entry metadata with the primary key. Does not add the document library file entry metadata to the database.
136            *
137            * @param fileEntryMetadataId the primary key for the new document library file entry metadata
138            * @return the new document library file entry metadata
139            */
140            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata create(
141                    long fileEntryMetadataId) {
142                    return getPersistence().create(fileEntryMetadataId);
143            }
144    
145            /**
146            * Removes the document library file entry metadata with the primary key from the database. Also notifies the appropriate model listeners.
147            *
148            * @param fileEntryMetadataId the primary key of the document library file entry metadata
149            * @return the document library file entry metadata that was removed
150            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
151            * @throws SystemException if a system exception occurred
152            */
153            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata remove(
154                    long fileEntryMetadataId)
155                    throws com.liferay.portal.kernel.exception.SystemException,
156                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
157                    return getPersistence().remove(fileEntryMetadataId);
158            }
159    
160            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata updateImpl(
161                    com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata dlFileEntryMetadata)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getPersistence().updateImpl(dlFileEntryMetadata);
164            }
165    
166            /**
167            * Returns the document library file entry metadata with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException} if it could not be found.
168            *
169            * @param fileEntryMetadataId the primary key of the document library file entry metadata
170            * @return the document library file entry metadata
171            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByPrimaryKey(
175                    long fileEntryMetadataId)
176                    throws com.liferay.portal.kernel.exception.SystemException,
177                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
178                    return getPersistence().findByPrimaryKey(fileEntryMetadataId);
179            }
180    
181            /**
182            * Returns the document library file entry metadata with the primary key or returns <code>null</code> if it could not be found.
183            *
184            * @param fileEntryMetadataId the primary key of the document library file entry metadata
185            * @return the document library file entry metadata, or <code>null</code> if a document library file entry metadata with the primary key could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByPrimaryKey(
189                    long fileEntryMetadataId)
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return getPersistence().fetchByPrimaryKey(fileEntryMetadataId);
192            }
193    
194            /**
195            * Returns all the document library file entry metadatas where uuid = &#63;.
196            *
197            * @param uuid the uuid
198            * @return the matching document library file entry metadatas
199            * @throws SystemException if a system exception occurred
200            */
201            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByUuid(
202                    java.lang.String uuid)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return getPersistence().findByUuid(uuid);
205            }
206    
207            /**
208            * Returns a range of all the document library file entry metadatas where uuid = &#63;.
209            *
210            * <p>
211            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
212            * </p>
213            *
214            * @param uuid the uuid
215            * @param start the lower bound of the range of document library file entry metadatas
216            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
217            * @return the range of matching document library file entry metadatas
218            * @throws SystemException if a system exception occurred
219            */
220            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByUuid(
221                    java.lang.String uuid, int start, int end)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return getPersistence().findByUuid(uuid, start, end);
224            }
225    
226            /**
227            * Returns an ordered range of all the document library file entry metadatas where uuid = &#63;.
228            *
229            * <p>
230            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
231            * </p>
232            *
233            * @param uuid the uuid
234            * @param start the lower bound of the range of document library file entry metadatas
235            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
236            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
237            * @return the ordered range of matching document library file entry metadatas
238            * @throws SystemException if a system exception occurred
239            */
240            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByUuid(
241                    java.lang.String uuid, int start, int end,
242                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
245            }
246    
247            /**
248            * Returns the first document library file entry metadata in the ordered set where uuid = &#63;.
249            *
250            * @param uuid the uuid
251            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
252            * @return the first matching document library file entry metadata
253            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
254            * @throws SystemException if a system exception occurred
255            */
256            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByUuid_First(
257                    java.lang.String uuid,
258                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259                    throws com.liferay.portal.kernel.exception.SystemException,
260                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
261                    return getPersistence().findByUuid_First(uuid, orderByComparator);
262            }
263    
264            /**
265            * Returns the first document library file entry metadata in the ordered set where uuid = &#63;.
266            *
267            * @param uuid the uuid
268            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
269            * @return the first matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
270            * @throws SystemException if a system exception occurred
271            */
272            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByUuid_First(
273                    java.lang.String uuid,
274                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
277            }
278    
279            /**
280            * Returns the last document library file entry metadata in the ordered set where uuid = &#63;.
281            *
282            * @param uuid the uuid
283            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
284            * @return the last matching document library file entry metadata
285            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
286            * @throws SystemException if a system exception occurred
287            */
288            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByUuid_Last(
289                    java.lang.String uuid,
290                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291                    throws com.liferay.portal.kernel.exception.SystemException,
292                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
293                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
294            }
295    
296            /**
297            * Returns the last document library file entry metadata in the ordered set where uuid = &#63;.
298            *
299            * @param uuid the uuid
300            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
301            * @return the last matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
302            * @throws SystemException if a system exception occurred
303            */
304            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByUuid_Last(
305                    java.lang.String uuid,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
309            }
310    
311            /**
312            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where uuid = &#63;.
313            *
314            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
315            * @param uuid the uuid
316            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
317            * @return the previous, current, and next document library file entry metadata
318            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByUuid_PrevAndNext(
322                    long fileEntryMetadataId, java.lang.String uuid,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.kernel.exception.SystemException,
325                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
326                    return getPersistence()
327                                       .findByUuid_PrevAndNext(fileEntryMetadataId, uuid,
328                            orderByComparator);
329            }
330    
331            /**
332            * Returns all the document library file entry metadatas where fileEntryTypeId = &#63;.
333            *
334            * @param fileEntryTypeId the file entry type ID
335            * @return the matching document library file entry metadatas
336            * @throws SystemException if a system exception occurred
337            */
338            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryTypeId(
339                    long fileEntryTypeId)
340                    throws com.liferay.portal.kernel.exception.SystemException {
341                    return getPersistence().findByFileEntryTypeId(fileEntryTypeId);
342            }
343    
344            /**
345            * Returns a range of all the document library file entry metadatas where fileEntryTypeId = &#63;.
346            *
347            * <p>
348            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
349            * </p>
350            *
351            * @param fileEntryTypeId the file entry type ID
352            * @param start the lower bound of the range of document library file entry metadatas
353            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
354            * @return the range of matching document library file entry metadatas
355            * @throws SystemException if a system exception occurred
356            */
357            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryTypeId(
358                    long fileEntryTypeId, int start, int end)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return getPersistence()
361                                       .findByFileEntryTypeId(fileEntryTypeId, start, end);
362            }
363    
364            /**
365            * Returns an ordered range of all the document library file entry metadatas where fileEntryTypeId = &#63;.
366            *
367            * <p>
368            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
369            * </p>
370            *
371            * @param fileEntryTypeId the file entry type ID
372            * @param start the lower bound of the range of document library file entry metadatas
373            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
374            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
375            * @return the ordered range of matching document library file entry metadatas
376            * @throws SystemException if a system exception occurred
377            */
378            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryTypeId(
379                    long fileEntryTypeId, int start, int end,
380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    return getPersistence()
383                                       .findByFileEntryTypeId(fileEntryTypeId, start, end,
384                            orderByComparator);
385            }
386    
387            /**
388            * Returns the first document library file entry metadata in the ordered set where fileEntryTypeId = &#63;.
389            *
390            * @param fileEntryTypeId the file entry type ID
391            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
392            * @return the first matching document library file entry metadata
393            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
394            * @throws SystemException if a system exception occurred
395            */
396            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryTypeId_First(
397                    long fileEntryTypeId,
398                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
399                    throws com.liferay.portal.kernel.exception.SystemException,
400                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
401                    return getPersistence()
402                                       .findByFileEntryTypeId_First(fileEntryTypeId,
403                            orderByComparator);
404            }
405    
406            /**
407            * Returns the first document library file entry metadata in the ordered set where fileEntryTypeId = &#63;.
408            *
409            * @param fileEntryTypeId the file entry type ID
410            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
411            * @return the first matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
412            * @throws SystemException if a system exception occurred
413            */
414            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileEntryTypeId_First(
415                    long fileEntryTypeId,
416                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
417                    throws com.liferay.portal.kernel.exception.SystemException {
418                    return getPersistence()
419                                       .fetchByFileEntryTypeId_First(fileEntryTypeId,
420                            orderByComparator);
421            }
422    
423            /**
424            * Returns the last document library file entry metadata in the ordered set where fileEntryTypeId = &#63;.
425            *
426            * @param fileEntryTypeId the file entry type ID
427            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
428            * @return the last matching document library file entry metadata
429            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
430            * @throws SystemException if a system exception occurred
431            */
432            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryTypeId_Last(
433                    long fileEntryTypeId,
434                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435                    throws com.liferay.portal.kernel.exception.SystemException,
436                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
437                    return getPersistence()
438                                       .findByFileEntryTypeId_Last(fileEntryTypeId,
439                            orderByComparator);
440            }
441    
442            /**
443            * Returns the last document library file entry metadata in the ordered set where fileEntryTypeId = &#63;.
444            *
445            * @param fileEntryTypeId the file entry type ID
446            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
447            * @return the last matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
448            * @throws SystemException if a system exception occurred
449            */
450            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileEntryTypeId_Last(
451                    long fileEntryTypeId,
452                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
453                    throws com.liferay.portal.kernel.exception.SystemException {
454                    return getPersistence()
455                                       .fetchByFileEntryTypeId_Last(fileEntryTypeId,
456                            orderByComparator);
457            }
458    
459            /**
460            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryTypeId = &#63;.
461            *
462            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
463            * @param fileEntryTypeId the file entry type ID
464            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
465            * @return the previous, current, and next document library file entry metadata
466            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
467            * @throws SystemException if a system exception occurred
468            */
469            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByFileEntryTypeId_PrevAndNext(
470                    long fileEntryMetadataId, long fileEntryTypeId,
471                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
472                    throws com.liferay.portal.kernel.exception.SystemException,
473                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
474                    return getPersistence()
475                                       .findByFileEntryTypeId_PrevAndNext(fileEntryMetadataId,
476                            fileEntryTypeId, orderByComparator);
477            }
478    
479            /**
480            * Returns all the document library file entry metadatas where fileEntryId = &#63;.
481            *
482            * @param fileEntryId the file entry ID
483            * @return the matching document library file entry metadatas
484            * @throws SystemException if a system exception occurred
485            */
486            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryId(
487                    long fileEntryId)
488                    throws com.liferay.portal.kernel.exception.SystemException {
489                    return getPersistence().findByFileEntryId(fileEntryId);
490            }
491    
492            /**
493            * Returns a range of all the document library file entry metadatas where fileEntryId = &#63;.
494            *
495            * <p>
496            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
497            * </p>
498            *
499            * @param fileEntryId the file entry ID
500            * @param start the lower bound of the range of document library file entry metadatas
501            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
502            * @return the range of matching document library file entry metadatas
503            * @throws SystemException if a system exception occurred
504            */
505            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryId(
506                    long fileEntryId, int start, int end)
507                    throws com.liferay.portal.kernel.exception.SystemException {
508                    return getPersistence().findByFileEntryId(fileEntryId, start, end);
509            }
510    
511            /**
512            * Returns an ordered range of all the document library file entry metadatas where fileEntryId = &#63;.
513            *
514            * <p>
515            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
516            * </p>
517            *
518            * @param fileEntryId the file entry ID
519            * @param start the lower bound of the range of document library file entry metadatas
520            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
521            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
522            * @return the ordered range of matching document library file entry metadatas
523            * @throws SystemException if a system exception occurred
524            */
525            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryId(
526                    long fileEntryId, int start, int end,
527                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
528                    throws com.liferay.portal.kernel.exception.SystemException {
529                    return getPersistence()
530                                       .findByFileEntryId(fileEntryId, start, end, orderByComparator);
531            }
532    
533            /**
534            * Returns the first document library file entry metadata in the ordered set where fileEntryId = &#63;.
535            *
536            * @param fileEntryId the file entry ID
537            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
538            * @return the first matching document library file entry metadata
539            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
540            * @throws SystemException if a system exception occurred
541            */
542            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryId_First(
543                    long fileEntryId,
544                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
545                    throws com.liferay.portal.kernel.exception.SystemException,
546                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
547                    return getPersistence()
548                                       .findByFileEntryId_First(fileEntryId, orderByComparator);
549            }
550    
551            /**
552            * Returns the first document library file entry metadata in the ordered set where fileEntryId = &#63;.
553            *
554            * @param fileEntryId the file entry ID
555            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
556            * @return the first matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
557            * @throws SystemException if a system exception occurred
558            */
559            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileEntryId_First(
560                    long fileEntryId,
561                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
562                    throws com.liferay.portal.kernel.exception.SystemException {
563                    return getPersistence()
564                                       .fetchByFileEntryId_First(fileEntryId, orderByComparator);
565            }
566    
567            /**
568            * Returns the last document library file entry metadata in the ordered set where fileEntryId = &#63;.
569            *
570            * @param fileEntryId the file entry ID
571            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
572            * @return the last matching document library file entry metadata
573            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
574            * @throws SystemException if a system exception occurred
575            */
576            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryId_Last(
577                    long fileEntryId,
578                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
579                    throws com.liferay.portal.kernel.exception.SystemException,
580                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
581                    return getPersistence()
582                                       .findByFileEntryId_Last(fileEntryId, orderByComparator);
583            }
584    
585            /**
586            * Returns the last document library file entry metadata in the ordered set where fileEntryId = &#63;.
587            *
588            * @param fileEntryId the file entry ID
589            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
590            * @return the last matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
591            * @throws SystemException if a system exception occurred
592            */
593            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileEntryId_Last(
594                    long fileEntryId,
595                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
596                    throws com.liferay.portal.kernel.exception.SystemException {
597                    return getPersistence()
598                                       .fetchByFileEntryId_Last(fileEntryId, orderByComparator);
599            }
600    
601            /**
602            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryId = &#63;.
603            *
604            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
605            * @param fileEntryId the file entry ID
606            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
607            * @return the previous, current, and next document library file entry metadata
608            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
609            * @throws SystemException if a system exception occurred
610            */
611            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByFileEntryId_PrevAndNext(
612                    long fileEntryMetadataId, long fileEntryId,
613                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
614                    throws com.liferay.portal.kernel.exception.SystemException,
615                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
616                    return getPersistence()
617                                       .findByFileEntryId_PrevAndNext(fileEntryMetadataId,
618                            fileEntryId, orderByComparator);
619            }
620    
621            /**
622            * Returns all the document library file entry metadatas where fileVersionId = &#63;.
623            *
624            * @param fileVersionId the file version ID
625            * @return the matching document library file entry metadatas
626            * @throws SystemException if a system exception occurred
627            */
628            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileVersionId(
629                    long fileVersionId)
630                    throws com.liferay.portal.kernel.exception.SystemException {
631                    return getPersistence().findByFileVersionId(fileVersionId);
632            }
633    
634            /**
635            * Returns a range of all the document library file entry metadatas where fileVersionId = &#63;.
636            *
637            * <p>
638            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
639            * </p>
640            *
641            * @param fileVersionId the file version ID
642            * @param start the lower bound of the range of document library file entry metadatas
643            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
644            * @return the range of matching document library file entry metadatas
645            * @throws SystemException if a system exception occurred
646            */
647            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileVersionId(
648                    long fileVersionId, int start, int end)
649                    throws com.liferay.portal.kernel.exception.SystemException {
650                    return getPersistence().findByFileVersionId(fileVersionId, start, end);
651            }
652    
653            /**
654            * Returns an ordered range of all the document library file entry metadatas where fileVersionId = &#63;.
655            *
656            * <p>
657            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
658            * </p>
659            *
660            * @param fileVersionId the file version ID
661            * @param start the lower bound of the range of document library file entry metadatas
662            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
663            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
664            * @return the ordered range of matching document library file entry metadatas
665            * @throws SystemException if a system exception occurred
666            */
667            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileVersionId(
668                    long fileVersionId, int start, int end,
669                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
670                    throws com.liferay.portal.kernel.exception.SystemException {
671                    return getPersistence()
672                                       .findByFileVersionId(fileVersionId, start, end,
673                            orderByComparator);
674            }
675    
676            /**
677            * Returns the first document library file entry metadata in the ordered set where fileVersionId = &#63;.
678            *
679            * @param fileVersionId the file version ID
680            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
681            * @return the first matching document library file entry metadata
682            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
683            * @throws SystemException if a system exception occurred
684            */
685            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileVersionId_First(
686                    long fileVersionId,
687                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
688                    throws com.liferay.portal.kernel.exception.SystemException,
689                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
690                    return getPersistence()
691                                       .findByFileVersionId_First(fileVersionId, orderByComparator);
692            }
693    
694            /**
695            * Returns the first document library file entry metadata in the ordered set where fileVersionId = &#63;.
696            *
697            * @param fileVersionId the file version ID
698            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
699            * @return the first matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
700            * @throws SystemException if a system exception occurred
701            */
702            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileVersionId_First(
703                    long fileVersionId,
704                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
705                    throws com.liferay.portal.kernel.exception.SystemException {
706                    return getPersistence()
707                                       .fetchByFileVersionId_First(fileVersionId, orderByComparator);
708            }
709    
710            /**
711            * Returns the last document library file entry metadata in the ordered set where fileVersionId = &#63;.
712            *
713            * @param fileVersionId the file version ID
714            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
715            * @return the last matching document library file entry metadata
716            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
717            * @throws SystemException if a system exception occurred
718            */
719            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileVersionId_Last(
720                    long fileVersionId,
721                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
722                    throws com.liferay.portal.kernel.exception.SystemException,
723                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
724                    return getPersistence()
725                                       .findByFileVersionId_Last(fileVersionId, orderByComparator);
726            }
727    
728            /**
729            * Returns the last document library file entry metadata in the ordered set where fileVersionId = &#63;.
730            *
731            * @param fileVersionId the file version ID
732            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
733            * @return the last matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
734            * @throws SystemException if a system exception occurred
735            */
736            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileVersionId_Last(
737                    long fileVersionId,
738                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
739                    throws com.liferay.portal.kernel.exception.SystemException {
740                    return getPersistence()
741                                       .fetchByFileVersionId_Last(fileVersionId, orderByComparator);
742            }
743    
744            /**
745            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileVersionId = &#63;.
746            *
747            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
748            * @param fileVersionId the file version ID
749            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
750            * @return the previous, current, and next document library file entry metadata
751            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
752            * @throws SystemException if a system exception occurred
753            */
754            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByFileVersionId_PrevAndNext(
755                    long fileEntryMetadataId, long fileVersionId,
756                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
757                    throws com.liferay.portal.kernel.exception.SystemException,
758                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
759                    return getPersistence()
760                                       .findByFileVersionId_PrevAndNext(fileEntryMetadataId,
761                            fileVersionId, orderByComparator);
762            }
763    
764            /**
765            * Returns the document library file entry metadata where DDMStructureId = &#63; and fileVersionId = &#63; or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException} if it could not be found.
766            *
767            * @param DDMStructureId the d d m structure ID
768            * @param fileVersionId the file version ID
769            * @return the matching document library file entry metadata
770            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
771            * @throws SystemException if a system exception occurred
772            */
773            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByD_F(
774                    long DDMStructureId, long fileVersionId)
775                    throws com.liferay.portal.kernel.exception.SystemException,
776                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
777                    return getPersistence().findByD_F(DDMStructureId, fileVersionId);
778            }
779    
780            /**
781            * Returns the document library file entry metadata where DDMStructureId = &#63; and fileVersionId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
782            *
783            * @param DDMStructureId the d d m structure ID
784            * @param fileVersionId the file version ID
785            * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
786            * @throws SystemException if a system exception occurred
787            */
788            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByD_F(
789                    long DDMStructureId, long fileVersionId)
790                    throws com.liferay.portal.kernel.exception.SystemException {
791                    return getPersistence().fetchByD_F(DDMStructureId, fileVersionId);
792            }
793    
794            /**
795            * Returns the document library file entry metadata where DDMStructureId = &#63; and fileVersionId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
796            *
797            * @param DDMStructureId the d d m structure ID
798            * @param fileVersionId the file version ID
799            * @param retrieveFromCache whether to use the finder cache
800            * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
801            * @throws SystemException if a system exception occurred
802            */
803            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByD_F(
804                    long DDMStructureId, long fileVersionId, boolean retrieveFromCache)
805                    throws com.liferay.portal.kernel.exception.SystemException {
806                    return getPersistence()
807                                       .fetchByD_F(DDMStructureId, fileVersionId, retrieveFromCache);
808            }
809    
810            /**
811            * Returns all the document library file entry metadatas.
812            *
813            * @return the document library file entry metadatas
814            * @throws SystemException if a system exception occurred
815            */
816            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findAll()
817                    throws com.liferay.portal.kernel.exception.SystemException {
818                    return getPersistence().findAll();
819            }
820    
821            /**
822            * Returns a range of all the document library file entry metadatas.
823            *
824            * <p>
825            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
826            * </p>
827            *
828            * @param start the lower bound of the range of document library file entry metadatas
829            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
830            * @return the range of document library file entry metadatas
831            * @throws SystemException if a system exception occurred
832            */
833            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findAll(
834                    int start, int end)
835                    throws com.liferay.portal.kernel.exception.SystemException {
836                    return getPersistence().findAll(start, end);
837            }
838    
839            /**
840            * Returns an ordered range of all the document library file entry metadatas.
841            *
842            * <p>
843            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
844            * </p>
845            *
846            * @param start the lower bound of the range of document library file entry metadatas
847            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
848            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
849            * @return the ordered range of document library file entry metadatas
850            * @throws SystemException if a system exception occurred
851            */
852            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findAll(
853                    int start, int end,
854                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
855                    throws com.liferay.portal.kernel.exception.SystemException {
856                    return getPersistence().findAll(start, end, orderByComparator);
857            }
858    
859            /**
860            * Removes all the document library file entry metadatas where uuid = &#63; from the database.
861            *
862            * @param uuid the uuid
863            * @throws SystemException if a system exception occurred
864            */
865            public static void removeByUuid(java.lang.String uuid)
866                    throws com.liferay.portal.kernel.exception.SystemException {
867                    getPersistence().removeByUuid(uuid);
868            }
869    
870            /**
871            * Removes all the document library file entry metadatas where fileEntryTypeId = &#63; from the database.
872            *
873            * @param fileEntryTypeId the file entry type ID
874            * @throws SystemException if a system exception occurred
875            */
876            public static void removeByFileEntryTypeId(long fileEntryTypeId)
877                    throws com.liferay.portal.kernel.exception.SystemException {
878                    getPersistence().removeByFileEntryTypeId(fileEntryTypeId);
879            }
880    
881            /**
882            * Removes all the document library file entry metadatas where fileEntryId = &#63; from the database.
883            *
884            * @param fileEntryId the file entry ID
885            * @throws SystemException if a system exception occurred
886            */
887            public static void removeByFileEntryId(long fileEntryId)
888                    throws com.liferay.portal.kernel.exception.SystemException {
889                    getPersistence().removeByFileEntryId(fileEntryId);
890            }
891    
892            /**
893            * Removes all the document library file entry metadatas where fileVersionId = &#63; from the database.
894            *
895            * @param fileVersionId the file version ID
896            * @throws SystemException if a system exception occurred
897            */
898            public static void removeByFileVersionId(long fileVersionId)
899                    throws com.liferay.portal.kernel.exception.SystemException {
900                    getPersistence().removeByFileVersionId(fileVersionId);
901            }
902    
903            /**
904            * Removes the document library file entry metadata where DDMStructureId = &#63; and fileVersionId = &#63; from the database.
905            *
906            * @param DDMStructureId the d d m structure ID
907            * @param fileVersionId the file version ID
908            * @return the document library file entry metadata that was removed
909            * @throws SystemException if a system exception occurred
910            */
911            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata removeByD_F(
912                    long DDMStructureId, long fileVersionId)
913                    throws com.liferay.portal.kernel.exception.SystemException,
914                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
915                    return getPersistence().removeByD_F(DDMStructureId, fileVersionId);
916            }
917    
918            /**
919            * Removes all the document library file entry metadatas from the database.
920            *
921            * @throws SystemException if a system exception occurred
922            */
923            public static void removeAll()
924                    throws com.liferay.portal.kernel.exception.SystemException {
925                    getPersistence().removeAll();
926            }
927    
928            /**
929            * Returns the number of document library file entry metadatas where uuid = &#63;.
930            *
931            * @param uuid the uuid
932            * @return the number of matching document library file entry metadatas
933            * @throws SystemException if a system exception occurred
934            */
935            public static int countByUuid(java.lang.String uuid)
936                    throws com.liferay.portal.kernel.exception.SystemException {
937                    return getPersistence().countByUuid(uuid);
938            }
939    
940            /**
941            * Returns the number of document library file entry metadatas where fileEntryTypeId = &#63;.
942            *
943            * @param fileEntryTypeId the file entry type ID
944            * @return the number of matching document library file entry metadatas
945            * @throws SystemException if a system exception occurred
946            */
947            public static int countByFileEntryTypeId(long fileEntryTypeId)
948                    throws com.liferay.portal.kernel.exception.SystemException {
949                    return getPersistence().countByFileEntryTypeId(fileEntryTypeId);
950            }
951    
952            /**
953            * Returns the number of document library file entry metadatas where fileEntryId = &#63;.
954            *
955            * @param fileEntryId the file entry ID
956            * @return the number of matching document library file entry metadatas
957            * @throws SystemException if a system exception occurred
958            */
959            public static int countByFileEntryId(long fileEntryId)
960                    throws com.liferay.portal.kernel.exception.SystemException {
961                    return getPersistence().countByFileEntryId(fileEntryId);
962            }
963    
964            /**
965            * Returns the number of document library file entry metadatas where fileVersionId = &#63;.
966            *
967            * @param fileVersionId the file version ID
968            * @return the number of matching document library file entry metadatas
969            * @throws SystemException if a system exception occurred
970            */
971            public static int countByFileVersionId(long fileVersionId)
972                    throws com.liferay.portal.kernel.exception.SystemException {
973                    return getPersistence().countByFileVersionId(fileVersionId);
974            }
975    
976            /**
977            * Returns the number of document library file entry metadatas where DDMStructureId = &#63; and fileVersionId = &#63;.
978            *
979            * @param DDMStructureId the d d m structure ID
980            * @param fileVersionId the file version ID
981            * @return the number of matching document library file entry metadatas
982            * @throws SystemException if a system exception occurred
983            */
984            public static int countByD_F(long DDMStructureId, long fileVersionId)
985                    throws com.liferay.portal.kernel.exception.SystemException {
986                    return getPersistence().countByD_F(DDMStructureId, fileVersionId);
987            }
988    
989            /**
990            * Returns the number of document library file entry metadatas.
991            *
992            * @return the number of document library file entry metadatas
993            * @throws SystemException if a system exception occurred
994            */
995            public static int countAll()
996                    throws com.liferay.portal.kernel.exception.SystemException {
997                    return getPersistence().countAll();
998            }
999    
1000            public static DLFileEntryMetadataPersistence getPersistence() {
1001                    if (_persistence == null) {
1002                            _persistence = (DLFileEntryMetadataPersistence)PortalBeanLocatorUtil.locate(DLFileEntryMetadataPersistence.class.getName());
1003    
1004                            ReferenceRegistry.registerReference(DLFileEntryMetadataUtil.class,
1005                                    "_persistence");
1006                    }
1007    
1008                    return _persistence;
1009            }
1010    
1011            /**
1012             * @deprecated
1013             */
1014            public void setPersistence(DLFileEntryMetadataPersistence persistence) {
1015            }
1016    
1017            private static DLFileEntryMetadataPersistence _persistence;
1018    }