001    /**
002     * Copyright (c) 2000-2013 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            * Returns all the document library file entry metadatas where uuid = &#63;.
116            *
117            * @param uuid the uuid
118            * @return the matching document library file entry metadatas
119            * @throws SystemException if a system exception occurred
120            */
121            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByUuid(
122                    java.lang.String uuid)
123                    throws com.liferay.portal.kernel.exception.SystemException {
124                    return getPersistence().findByUuid(uuid);
125            }
126    
127            /**
128            * Returns a range of all the document library file entry metadatas where uuid = &#63;.
129            *
130            * <p>
131            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
132            * </p>
133            *
134            * @param uuid the uuid
135            * @param start the lower bound of the range of document library file entry metadatas
136            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
137            * @return the range of matching document library file entry metadatas
138            * @throws SystemException if a system exception occurred
139            */
140            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByUuid(
141                    java.lang.String uuid, int start, int end)
142                    throws com.liferay.portal.kernel.exception.SystemException {
143                    return getPersistence().findByUuid(uuid, start, end);
144            }
145    
146            /**
147            * Returns an ordered range of all the document library file entry metadatas where uuid = &#63;.
148            *
149            * <p>
150            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
151            * </p>
152            *
153            * @param uuid the uuid
154            * @param start the lower bound of the range of document library file entry metadatas
155            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
156            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
157            * @return the ordered range of matching document library file entry metadatas
158            * @throws SystemException if a system exception occurred
159            */
160            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByUuid(
161                    java.lang.String uuid, int start, int end,
162                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163                    throws com.liferay.portal.kernel.exception.SystemException {
164                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
165            }
166    
167            /**
168            * Returns the first document library file entry metadata in the ordered set where uuid = &#63;.
169            *
170            * @param uuid the uuid
171            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
172            * @return the first matching document library file entry metadata
173            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByUuid_First(
177                    java.lang.String uuid,
178                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179                    throws com.liferay.portal.kernel.exception.SystemException,
180                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
181                    return getPersistence().findByUuid_First(uuid, orderByComparator);
182            }
183    
184            /**
185            * Returns the first document library file entry metadata in the ordered set where uuid = &#63;.
186            *
187            * @param uuid the uuid
188            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
189            * @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
190            * @throws SystemException if a system exception occurred
191            */
192            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByUuid_First(
193                    java.lang.String uuid,
194                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
195                    throws com.liferay.portal.kernel.exception.SystemException {
196                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
197            }
198    
199            /**
200            * Returns the last document library file entry metadata in the ordered set where uuid = &#63;.
201            *
202            * @param uuid the uuid
203            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
204            * @return the last matching document library file entry metadata
205            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
206            * @throws SystemException if a system exception occurred
207            */
208            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByUuid_Last(
209                    java.lang.String uuid,
210                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211                    throws com.liferay.portal.kernel.exception.SystemException,
212                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
213                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
214            }
215    
216            /**
217            * Returns the last document library file entry metadata in the ordered set where uuid = &#63;.
218            *
219            * @param uuid the uuid
220            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
221            * @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
222            * @throws SystemException if a system exception occurred
223            */
224            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByUuid_Last(
225                    java.lang.String uuid,
226                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227                    throws com.liferay.portal.kernel.exception.SystemException {
228                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
229            }
230    
231            /**
232            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where uuid = &#63;.
233            *
234            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
235            * @param uuid the uuid
236            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
237            * @return the previous, current, and next document library file entry metadata
238            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
239            * @throws SystemException if a system exception occurred
240            */
241            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByUuid_PrevAndNext(
242                    long fileEntryMetadataId, java.lang.String uuid,
243                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244                    throws com.liferay.portal.kernel.exception.SystemException,
245                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
246                    return getPersistence()
247                                       .findByUuid_PrevAndNext(fileEntryMetadataId, uuid,
248                            orderByComparator);
249            }
250    
251            /**
252            * Removes all the document library file entry metadatas where uuid = &#63; from the database.
253            *
254            * @param uuid the uuid
255            * @throws SystemException if a system exception occurred
256            */
257            public static void removeByUuid(java.lang.String uuid)
258                    throws com.liferay.portal.kernel.exception.SystemException {
259                    getPersistence().removeByUuid(uuid);
260            }
261    
262            /**
263            * Returns the number of document library file entry metadatas where uuid = &#63;.
264            *
265            * @param uuid the uuid
266            * @return the number of matching document library file entry metadatas
267            * @throws SystemException if a system exception occurred
268            */
269            public static int countByUuid(java.lang.String uuid)
270                    throws com.liferay.portal.kernel.exception.SystemException {
271                    return getPersistence().countByUuid(uuid);
272            }
273    
274            /**
275            * Returns all the document library file entry metadatas where fileEntryTypeId = &#63;.
276            *
277            * @param fileEntryTypeId the file entry type ID
278            * @return the matching document library file entry metadatas
279            * @throws SystemException if a system exception occurred
280            */
281            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryTypeId(
282                    long fileEntryTypeId)
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    return getPersistence().findByFileEntryTypeId(fileEntryTypeId);
285            }
286    
287            /**
288            * Returns a range of all the document library file entry metadatas where fileEntryTypeId = &#63;.
289            *
290            * <p>
291            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
292            * </p>
293            *
294            * @param fileEntryTypeId the file entry type ID
295            * @param start the lower bound of the range of document library file entry metadatas
296            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
297            * @return the range of matching document library file entry metadatas
298            * @throws SystemException if a system exception occurred
299            */
300            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryTypeId(
301                    long fileEntryTypeId, int start, int end)
302                    throws com.liferay.portal.kernel.exception.SystemException {
303                    return getPersistence()
304                                       .findByFileEntryTypeId(fileEntryTypeId, start, end);
305            }
306    
307            /**
308            * Returns an ordered range of all the document library file entry metadatas where fileEntryTypeId = &#63;.
309            *
310            * <p>
311            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
312            * </p>
313            *
314            * @param fileEntryTypeId the file entry type ID
315            * @param start the lower bound of the range of document library file entry metadatas
316            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
317            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
318            * @return the ordered range of matching document library file entry metadatas
319            * @throws SystemException if a system exception occurred
320            */
321            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryTypeId(
322                    long fileEntryTypeId, int start, int end,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return getPersistence()
326                                       .findByFileEntryTypeId(fileEntryTypeId, start, end,
327                            orderByComparator);
328            }
329    
330            /**
331            * Returns the first document library file entry metadata in the ordered set where fileEntryTypeId = &#63;.
332            *
333            * @param fileEntryTypeId the file entry type ID
334            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
335            * @return the first matching document library file entry metadata
336            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
337            * @throws SystemException if a system exception occurred
338            */
339            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryTypeId_First(
340                    long fileEntryTypeId,
341                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
342                    throws com.liferay.portal.kernel.exception.SystemException,
343                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
344                    return getPersistence()
345                                       .findByFileEntryTypeId_First(fileEntryTypeId,
346                            orderByComparator);
347            }
348    
349            /**
350            * Returns the first document library file entry metadata in the ordered set where fileEntryTypeId = &#63;.
351            *
352            * @param fileEntryTypeId the file entry type ID
353            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
354            * @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
355            * @throws SystemException if a system exception occurred
356            */
357            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileEntryTypeId_First(
358                    long fileEntryTypeId,
359                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    return getPersistence()
362                                       .fetchByFileEntryTypeId_First(fileEntryTypeId,
363                            orderByComparator);
364            }
365    
366            /**
367            * Returns the last document library file entry metadata in the ordered set where fileEntryTypeId = &#63;.
368            *
369            * @param fileEntryTypeId the file entry type ID
370            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
371            * @return the last matching document library file entry metadata
372            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
373            * @throws SystemException if a system exception occurred
374            */
375            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryTypeId_Last(
376                    long fileEntryTypeId,
377                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
378                    throws com.liferay.portal.kernel.exception.SystemException,
379                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
380                    return getPersistence()
381                                       .findByFileEntryTypeId_Last(fileEntryTypeId,
382                            orderByComparator);
383            }
384    
385            /**
386            * Returns the last document library file entry metadata in the ordered set where fileEntryTypeId = &#63;.
387            *
388            * @param fileEntryTypeId the file entry type ID
389            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
390            * @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
391            * @throws SystemException if a system exception occurred
392            */
393            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileEntryTypeId_Last(
394                    long fileEntryTypeId,
395                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
396                    throws com.liferay.portal.kernel.exception.SystemException {
397                    return getPersistence()
398                                       .fetchByFileEntryTypeId_Last(fileEntryTypeId,
399                            orderByComparator);
400            }
401    
402            /**
403            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryTypeId = &#63;.
404            *
405            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
406            * @param fileEntryTypeId the file entry type ID
407            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
408            * @return the previous, current, and next document library file entry metadata
409            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
410            * @throws SystemException if a system exception occurred
411            */
412            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByFileEntryTypeId_PrevAndNext(
413                    long fileEntryMetadataId, long fileEntryTypeId,
414                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
415                    throws com.liferay.portal.kernel.exception.SystemException,
416                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
417                    return getPersistence()
418                                       .findByFileEntryTypeId_PrevAndNext(fileEntryMetadataId,
419                            fileEntryTypeId, orderByComparator);
420            }
421    
422            /**
423            * Removes all the document library file entry metadatas where fileEntryTypeId = &#63; from the database.
424            *
425            * @param fileEntryTypeId the file entry type ID
426            * @throws SystemException if a system exception occurred
427            */
428            public static void removeByFileEntryTypeId(long fileEntryTypeId)
429                    throws com.liferay.portal.kernel.exception.SystemException {
430                    getPersistence().removeByFileEntryTypeId(fileEntryTypeId);
431            }
432    
433            /**
434            * Returns the number of document library file entry metadatas where fileEntryTypeId = &#63;.
435            *
436            * @param fileEntryTypeId the file entry type ID
437            * @return the number of matching document library file entry metadatas
438            * @throws SystemException if a system exception occurred
439            */
440            public static int countByFileEntryTypeId(long fileEntryTypeId)
441                    throws com.liferay.portal.kernel.exception.SystemException {
442                    return getPersistence().countByFileEntryTypeId(fileEntryTypeId);
443            }
444    
445            /**
446            * Returns all the document library file entry metadatas where fileEntryId = &#63;.
447            *
448            * @param fileEntryId the file entry ID
449            * @return the matching document library file entry metadatas
450            * @throws SystemException if a system exception occurred
451            */
452            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryId(
453                    long fileEntryId)
454                    throws com.liferay.portal.kernel.exception.SystemException {
455                    return getPersistence().findByFileEntryId(fileEntryId);
456            }
457    
458            /**
459            * Returns a range of all the document library file entry metadatas where fileEntryId = &#63;.
460            *
461            * <p>
462            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
463            * </p>
464            *
465            * @param fileEntryId the file entry ID
466            * @param start the lower bound of the range of document library file entry metadatas
467            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
468            * @return the range of matching document library file entry metadatas
469            * @throws SystemException if a system exception occurred
470            */
471            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryId(
472                    long fileEntryId, int start, int end)
473                    throws com.liferay.portal.kernel.exception.SystemException {
474                    return getPersistence().findByFileEntryId(fileEntryId, start, end);
475            }
476    
477            /**
478            * Returns an ordered range of all the document library file entry metadatas where fileEntryId = &#63;.
479            *
480            * <p>
481            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
482            * </p>
483            *
484            * @param fileEntryId the file entry ID
485            * @param start the lower bound of the range of document library file entry metadatas
486            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
487            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
488            * @return the ordered range of matching document library file entry metadatas
489            * @throws SystemException if a system exception occurred
490            */
491            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryId(
492                    long fileEntryId, int start, int end,
493                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
494                    throws com.liferay.portal.kernel.exception.SystemException {
495                    return getPersistence()
496                                       .findByFileEntryId(fileEntryId, start, end, orderByComparator);
497            }
498    
499            /**
500            * Returns the first document library file entry metadata in the ordered set where fileEntryId = &#63;.
501            *
502            * @param fileEntryId the file entry ID
503            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
504            * @return the first matching document library file entry metadata
505            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
506            * @throws SystemException if a system exception occurred
507            */
508            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryId_First(
509                    long fileEntryId,
510                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
511                    throws com.liferay.portal.kernel.exception.SystemException,
512                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
513                    return getPersistence()
514                                       .findByFileEntryId_First(fileEntryId, orderByComparator);
515            }
516    
517            /**
518            * Returns the first document library file entry metadata in the ordered set where fileEntryId = &#63;.
519            *
520            * @param fileEntryId the file entry ID
521            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
522            * @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
523            * @throws SystemException if a system exception occurred
524            */
525            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileEntryId_First(
526                    long fileEntryId,
527                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
528                    throws com.liferay.portal.kernel.exception.SystemException {
529                    return getPersistence()
530                                       .fetchByFileEntryId_First(fileEntryId, orderByComparator);
531            }
532    
533            /**
534            * Returns the last 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 last 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_Last(
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_Last(fileEntryId, orderByComparator);
549            }
550    
551            /**
552            * Returns the last 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 last 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_Last(
560                    long fileEntryId,
561                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
562                    throws com.liferay.portal.kernel.exception.SystemException {
563                    return getPersistence()
564                                       .fetchByFileEntryId_Last(fileEntryId, orderByComparator);
565            }
566    
567            /**
568            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryId = &#63;.
569            *
570            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
571            * @param fileEntryId the file entry ID
572            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
573            * @return the previous, current, and next document library file entry metadata
574            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
575            * @throws SystemException if a system exception occurred
576            */
577            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByFileEntryId_PrevAndNext(
578                    long fileEntryMetadataId, long fileEntryId,
579                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
580                    throws com.liferay.portal.kernel.exception.SystemException,
581                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
582                    return getPersistence()
583                                       .findByFileEntryId_PrevAndNext(fileEntryMetadataId,
584                            fileEntryId, orderByComparator);
585            }
586    
587            /**
588            * Removes all the document library file entry metadatas where fileEntryId = &#63; from the database.
589            *
590            * @param fileEntryId the file entry ID
591            * @throws SystemException if a system exception occurred
592            */
593            public static void removeByFileEntryId(long fileEntryId)
594                    throws com.liferay.portal.kernel.exception.SystemException {
595                    getPersistence().removeByFileEntryId(fileEntryId);
596            }
597    
598            /**
599            * Returns the number of document library file entry metadatas where fileEntryId = &#63;.
600            *
601            * @param fileEntryId the file entry ID
602            * @return the number of matching document library file entry metadatas
603            * @throws SystemException if a system exception occurred
604            */
605            public static int countByFileEntryId(long fileEntryId)
606                    throws com.liferay.portal.kernel.exception.SystemException {
607                    return getPersistence().countByFileEntryId(fileEntryId);
608            }
609    
610            /**
611            * Returns all the document library file entry metadatas where fileVersionId = &#63;.
612            *
613            * @param fileVersionId the file version ID
614            * @return the matching document library file entry metadatas
615            * @throws SystemException if a system exception occurred
616            */
617            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileVersionId(
618                    long fileVersionId)
619                    throws com.liferay.portal.kernel.exception.SystemException {
620                    return getPersistence().findByFileVersionId(fileVersionId);
621            }
622    
623            /**
624            * Returns a range of all the document library file entry metadatas where fileVersionId = &#63;.
625            *
626            * <p>
627            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
628            * </p>
629            *
630            * @param fileVersionId the file version ID
631            * @param start the lower bound of the range of document library file entry metadatas
632            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
633            * @return the range of matching document library file entry metadatas
634            * @throws SystemException if a system exception occurred
635            */
636            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileVersionId(
637                    long fileVersionId, int start, int end)
638                    throws com.liferay.portal.kernel.exception.SystemException {
639                    return getPersistence().findByFileVersionId(fileVersionId, start, end);
640            }
641    
642            /**
643            * Returns an ordered range of all the document library file entry metadatas where fileVersionId = &#63;.
644            *
645            * <p>
646            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
647            * </p>
648            *
649            * @param fileVersionId the file version ID
650            * @param start the lower bound of the range of document library file entry metadatas
651            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
652            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
653            * @return the ordered range of matching document library file entry metadatas
654            * @throws SystemException if a system exception occurred
655            */
656            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileVersionId(
657                    long fileVersionId, int start, int end,
658                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
659                    throws com.liferay.portal.kernel.exception.SystemException {
660                    return getPersistence()
661                                       .findByFileVersionId(fileVersionId, start, end,
662                            orderByComparator);
663            }
664    
665            /**
666            * Returns the first document library file entry metadata in the ordered set where fileVersionId = &#63;.
667            *
668            * @param fileVersionId the file version ID
669            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
670            * @return the first matching document library file entry metadata
671            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
672            * @throws SystemException if a system exception occurred
673            */
674            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileVersionId_First(
675                    long fileVersionId,
676                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
677                    throws com.liferay.portal.kernel.exception.SystemException,
678                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
679                    return getPersistence()
680                                       .findByFileVersionId_First(fileVersionId, orderByComparator);
681            }
682    
683            /**
684            * Returns the first document library file entry metadata in the ordered set where fileVersionId = &#63;.
685            *
686            * @param fileVersionId the file version ID
687            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
688            * @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
689            * @throws SystemException if a system exception occurred
690            */
691            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileVersionId_First(
692                    long fileVersionId,
693                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
694                    throws com.liferay.portal.kernel.exception.SystemException {
695                    return getPersistence()
696                                       .fetchByFileVersionId_First(fileVersionId, orderByComparator);
697            }
698    
699            /**
700            * Returns the last document library file entry metadata in the ordered set where fileVersionId = &#63;.
701            *
702            * @param fileVersionId the file version ID
703            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
704            * @return the last matching document library file entry metadata
705            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
706            * @throws SystemException if a system exception occurred
707            */
708            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileVersionId_Last(
709                    long fileVersionId,
710                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
711                    throws com.liferay.portal.kernel.exception.SystemException,
712                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
713                    return getPersistence()
714                                       .findByFileVersionId_Last(fileVersionId, orderByComparator);
715            }
716    
717            /**
718            * Returns the last document library file entry metadata in the ordered set where fileVersionId = &#63;.
719            *
720            * @param fileVersionId the file version ID
721            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
722            * @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
723            * @throws SystemException if a system exception occurred
724            */
725            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileVersionId_Last(
726                    long fileVersionId,
727                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
728                    throws com.liferay.portal.kernel.exception.SystemException {
729                    return getPersistence()
730                                       .fetchByFileVersionId_Last(fileVersionId, orderByComparator);
731            }
732    
733            /**
734            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileVersionId = &#63;.
735            *
736            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
737            * @param fileVersionId the file version ID
738            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
739            * @return the previous, current, and next document library file entry metadata
740            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
741            * @throws SystemException if a system exception occurred
742            */
743            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByFileVersionId_PrevAndNext(
744                    long fileEntryMetadataId, long fileVersionId,
745                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
746                    throws com.liferay.portal.kernel.exception.SystemException,
747                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
748                    return getPersistence()
749                                       .findByFileVersionId_PrevAndNext(fileEntryMetadataId,
750                            fileVersionId, orderByComparator);
751            }
752    
753            /**
754            * Removes all the document library file entry metadatas where fileVersionId = &#63; from the database.
755            *
756            * @param fileVersionId the file version ID
757            * @throws SystemException if a system exception occurred
758            */
759            public static void removeByFileVersionId(long fileVersionId)
760                    throws com.liferay.portal.kernel.exception.SystemException {
761                    getPersistence().removeByFileVersionId(fileVersionId);
762            }
763    
764            /**
765            * Returns the number of document library file entry metadatas where fileVersionId = &#63;.
766            *
767            * @param fileVersionId the file version ID
768            * @return the number of matching document library file entry metadatas
769            * @throws SystemException if a system exception occurred
770            */
771            public static int countByFileVersionId(long fileVersionId)
772                    throws com.liferay.portal.kernel.exception.SystemException {
773                    return getPersistence().countByFileVersionId(fileVersionId);
774            }
775    
776            /**
777            * 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.
778            *
779            * @param DDMStructureId the d d m structure ID
780            * @param fileVersionId the file version ID
781            * @return the matching document library file entry metadata
782            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
783            * @throws SystemException if a system exception occurred
784            */
785            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByD_F(
786                    long DDMStructureId, long fileVersionId)
787                    throws com.liferay.portal.kernel.exception.SystemException,
788                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
789                    return getPersistence().findByD_F(DDMStructureId, fileVersionId);
790            }
791    
792            /**
793            * 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.
794            *
795            * @param DDMStructureId the d d m structure ID
796            * @param fileVersionId the file version ID
797            * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
798            * @throws SystemException if a system exception occurred
799            */
800            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByD_F(
801                    long DDMStructureId, long fileVersionId)
802                    throws com.liferay.portal.kernel.exception.SystemException {
803                    return getPersistence().fetchByD_F(DDMStructureId, fileVersionId);
804            }
805    
806            /**
807            * 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.
808            *
809            * @param DDMStructureId the d d m structure ID
810            * @param fileVersionId the file version ID
811            * @param retrieveFromCache whether to use the finder cache
812            * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
813            * @throws SystemException if a system exception occurred
814            */
815            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByD_F(
816                    long DDMStructureId, long fileVersionId, boolean retrieveFromCache)
817                    throws com.liferay.portal.kernel.exception.SystemException {
818                    return getPersistence()
819                                       .fetchByD_F(DDMStructureId, fileVersionId, retrieveFromCache);
820            }
821    
822            /**
823            * Removes the document library file entry metadata where DDMStructureId = &#63; and fileVersionId = &#63; from the database.
824            *
825            * @param DDMStructureId the d d m structure ID
826            * @param fileVersionId the file version ID
827            * @return the document library file entry metadata that was removed
828            * @throws SystemException if a system exception occurred
829            */
830            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata removeByD_F(
831                    long DDMStructureId, long fileVersionId)
832                    throws com.liferay.portal.kernel.exception.SystemException,
833                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
834                    return getPersistence().removeByD_F(DDMStructureId, fileVersionId);
835            }
836    
837            /**
838            * Returns the number of document library file entry metadatas where DDMStructureId = &#63; and fileVersionId = &#63;.
839            *
840            * @param DDMStructureId the d d m structure ID
841            * @param fileVersionId the file version ID
842            * @return the number of matching document library file entry metadatas
843            * @throws SystemException if a system exception occurred
844            */
845            public static int countByD_F(long DDMStructureId, long fileVersionId)
846                    throws com.liferay.portal.kernel.exception.SystemException {
847                    return getPersistence().countByD_F(DDMStructureId, fileVersionId);
848            }
849    
850            /**
851            * Caches the document library file entry metadata in the entity cache if it is enabled.
852            *
853            * @param dlFileEntryMetadata the document library file entry metadata
854            */
855            public static void cacheResult(
856                    com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata dlFileEntryMetadata) {
857                    getPersistence().cacheResult(dlFileEntryMetadata);
858            }
859    
860            /**
861            * Caches the document library file entry metadatas in the entity cache if it is enabled.
862            *
863            * @param dlFileEntryMetadatas the document library file entry metadatas
864            */
865            public static void cacheResult(
866                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> dlFileEntryMetadatas) {
867                    getPersistence().cacheResult(dlFileEntryMetadatas);
868            }
869    
870            /**
871            * Creates a new document library file entry metadata with the primary key. Does not add the document library file entry metadata to the database.
872            *
873            * @param fileEntryMetadataId the primary key for the new document library file entry metadata
874            * @return the new document library file entry metadata
875            */
876            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata create(
877                    long fileEntryMetadataId) {
878                    return getPersistence().create(fileEntryMetadataId);
879            }
880    
881            /**
882            * Removes the document library file entry metadata with the primary key from the database. Also notifies the appropriate model listeners.
883            *
884            * @param fileEntryMetadataId the primary key of the document library file entry metadata
885            * @return the document library file entry metadata that was removed
886            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
887            * @throws SystemException if a system exception occurred
888            */
889            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata remove(
890                    long fileEntryMetadataId)
891                    throws com.liferay.portal.kernel.exception.SystemException,
892                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
893                    return getPersistence().remove(fileEntryMetadataId);
894            }
895    
896            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata updateImpl(
897                    com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata dlFileEntryMetadata)
898                    throws com.liferay.portal.kernel.exception.SystemException {
899                    return getPersistence().updateImpl(dlFileEntryMetadata);
900            }
901    
902            /**
903            * 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.
904            *
905            * @param fileEntryMetadataId the primary key of the document library file entry metadata
906            * @return the document library file entry metadata
907            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
908            * @throws SystemException if a system exception occurred
909            */
910            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByPrimaryKey(
911                    long fileEntryMetadataId)
912                    throws com.liferay.portal.kernel.exception.SystemException,
913                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
914                    return getPersistence().findByPrimaryKey(fileEntryMetadataId);
915            }
916    
917            /**
918            * Returns the document library file entry metadata with the primary key or returns <code>null</code> if it could not be found.
919            *
920            * @param fileEntryMetadataId the primary key of the document library file entry metadata
921            * @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
922            * @throws SystemException if a system exception occurred
923            */
924            public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByPrimaryKey(
925                    long fileEntryMetadataId)
926                    throws com.liferay.portal.kernel.exception.SystemException {
927                    return getPersistence().fetchByPrimaryKey(fileEntryMetadataId);
928            }
929    
930            /**
931            * Returns all the document library file entry metadatas.
932            *
933            * @return the document library file entry metadatas
934            * @throws SystemException if a system exception occurred
935            */
936            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findAll()
937                    throws com.liferay.portal.kernel.exception.SystemException {
938                    return getPersistence().findAll();
939            }
940    
941            /**
942            * Returns a range of all the document library file entry metadatas.
943            *
944            * <p>
945            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
946            * </p>
947            *
948            * @param start the lower bound of the range of document library file entry metadatas
949            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
950            * @return the range of document library file entry metadatas
951            * @throws SystemException if a system exception occurred
952            */
953            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findAll(
954                    int start, int end)
955                    throws com.liferay.portal.kernel.exception.SystemException {
956                    return getPersistence().findAll(start, end);
957            }
958    
959            /**
960            * Returns an ordered range of all the document library file entry metadatas.
961            *
962            * <p>
963            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
964            * </p>
965            *
966            * @param start the lower bound of the range of document library file entry metadatas
967            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
968            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
969            * @return the ordered range of document library file entry metadatas
970            * @throws SystemException if a system exception occurred
971            */
972            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findAll(
973                    int start, int end,
974                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
975                    throws com.liferay.portal.kernel.exception.SystemException {
976                    return getPersistence().findAll(start, end, orderByComparator);
977            }
978    
979            /**
980            * Removes all the document library file entry metadatas from the database.
981            *
982            * @throws SystemException if a system exception occurred
983            */
984            public static void removeAll()
985                    throws com.liferay.portal.kernel.exception.SystemException {
986                    getPersistence().removeAll();
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 As of 6.2.0
1013             */
1014            public void setPersistence(DLFileEntryMetadataPersistence persistence) {
1015            }
1016    
1017            private static DLFileEntryMetadataPersistence _persistence;
1018    }