001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021    import com.liferay.portal.kernel.util.OrderByComparator;
022    import com.liferay.portal.kernel.util.ReferenceRegistry;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata;
026    
027    import java.util.List;
028    
029    /**
030     * The persistence utility for the document library file entry metadata service. This utility wraps {@link com.liferay.portlet.documentlibrary.service.persistence.impl.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.
031     *
032     * <p>
033     * Caching information and settings can be found in <code>portal.properties</code>
034     * </p>
035     *
036     * @author Brian Wing Shun Chan
037     * @see DLFileEntryMetadataPersistence
038     * @see com.liferay.portlet.documentlibrary.service.persistence.impl.DLFileEntryMetadataPersistenceImpl
039     * @generated
040     */
041    @ProviderType
042    public class DLFileEntryMetadataUtil {
043            /*
044             * NOTE FOR DEVELOPERS:
045             *
046             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
047             */
048    
049            /**
050             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
051             */
052            public static void clearCache() {
053                    getPersistence().clearCache();
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
058             */
059            public static void clearCache(DLFileEntryMetadata dlFileEntryMetadata) {
060                    getPersistence().clearCache(dlFileEntryMetadata);
061            }
062    
063            /**
064             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
065             */
066            public static long countWithDynamicQuery(DynamicQuery dynamicQuery) {
067                    return getPersistence().countWithDynamicQuery(dynamicQuery);
068            }
069    
070            /**
071             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
072             */
073            public static List<DLFileEntryMetadata> findWithDynamicQuery(
074                    DynamicQuery dynamicQuery) {
075                    return getPersistence().findWithDynamicQuery(dynamicQuery);
076            }
077    
078            /**
079             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
080             */
081            public static List<DLFileEntryMetadata> findWithDynamicQuery(
082                    DynamicQuery dynamicQuery, int start, int end) {
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<DLFileEntryMetadata> orderByComparator) {
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) {
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                    return getPersistence().update(dlFileEntryMetadata, serviceContext);
111            }
112    
113            /**
114            * Returns all the document library file entry metadatas where uuid = &#63;.
115            *
116            * @param uuid the uuid
117            * @return the matching document library file entry metadatas
118            */
119            public static List<DLFileEntryMetadata> findByUuid(java.lang.String uuid) {
120                    return getPersistence().findByUuid(uuid);
121            }
122    
123            /**
124            * Returns a range of all the document library file entry metadatas where uuid = &#63;.
125            *
126            * <p>
127            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
128            * </p>
129            *
130            * @param uuid the uuid
131            * @param start the lower bound of the range of document library file entry metadatas
132            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
133            * @return the range of matching document library file entry metadatas
134            */
135            public static List<DLFileEntryMetadata> findByUuid(java.lang.String uuid,
136                    int start, int end) {
137                    return getPersistence().findByUuid(uuid, start, end);
138            }
139    
140            /**
141            * Returns an ordered range of all the document library file entry metadatas where uuid = &#63;.
142            *
143            * <p>
144            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
145            * </p>
146            *
147            * @param uuid the uuid
148            * @param start the lower bound of the range of document library file entry metadatas
149            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
150            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
151            * @return the ordered range of matching document library file entry metadatas
152            */
153            public static List<DLFileEntryMetadata> findByUuid(java.lang.String uuid,
154                    int start, int end,
155                    OrderByComparator<DLFileEntryMetadata> orderByComparator) {
156                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
157            }
158    
159            /**
160            * Returns the first document library file entry metadata in the ordered set where uuid = &#63;.
161            *
162            * @param uuid the uuid
163            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
164            * @return the first matching document library file entry metadata
165            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
166            */
167            public static DLFileEntryMetadata findByUuid_First(java.lang.String uuid,
168                    OrderByComparator<DLFileEntryMetadata> orderByComparator)
169                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
170                    return getPersistence().findByUuid_First(uuid, orderByComparator);
171            }
172    
173            /**
174            * Returns the first document library file entry metadata in the ordered set where uuid = &#63;.
175            *
176            * @param uuid the uuid
177            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
178            * @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
179            */
180            public static DLFileEntryMetadata fetchByUuid_First(java.lang.String uuid,
181                    OrderByComparator<DLFileEntryMetadata> orderByComparator) {
182                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
183            }
184    
185            /**
186            * Returns the last document library file entry metadata in the ordered set where uuid = &#63;.
187            *
188            * @param uuid the uuid
189            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
190            * @return the last matching document library file entry metadata
191            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
192            */
193            public static DLFileEntryMetadata findByUuid_Last(java.lang.String uuid,
194                    OrderByComparator<DLFileEntryMetadata> orderByComparator)
195                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
196                    return getPersistence().findByUuid_Last(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, or <code>null</code> if a matching document library file entry metadata could not be found
205            */
206            public static DLFileEntryMetadata fetchByUuid_Last(java.lang.String uuid,
207                    OrderByComparator<DLFileEntryMetadata> orderByComparator) {
208                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
209            }
210    
211            /**
212            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where uuid = &#63;.
213            *
214            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
215            * @param uuid the uuid
216            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
217            * @return the previous, current, and next document library file entry metadata
218            * @throws NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
219            */
220            public static DLFileEntryMetadata[] findByUuid_PrevAndNext(
221                    long fileEntryMetadataId, java.lang.String uuid,
222                    OrderByComparator<DLFileEntryMetadata> orderByComparator)
223                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
224                    return getPersistence()
225                                       .findByUuid_PrevAndNext(fileEntryMetadataId, uuid,
226                            orderByComparator);
227            }
228    
229            /**
230            * Removes all the document library file entry metadatas where uuid = &#63; from the database.
231            *
232            * @param uuid the uuid
233            */
234            public static void removeByUuid(java.lang.String uuid) {
235                    getPersistence().removeByUuid(uuid);
236            }
237    
238            /**
239            * Returns the number of document library file entry metadatas where uuid = &#63;.
240            *
241            * @param uuid the uuid
242            * @return the number of matching document library file entry metadatas
243            */
244            public static int countByUuid(java.lang.String uuid) {
245                    return getPersistence().countByUuid(uuid);
246            }
247    
248            /**
249            * Returns all the document library file entry metadatas where fileEntryId = &#63;.
250            *
251            * @param fileEntryId the file entry ID
252            * @return the matching document library file entry metadatas
253            */
254            public static List<DLFileEntryMetadata> findByFileEntryId(long fileEntryId) {
255                    return getPersistence().findByFileEntryId(fileEntryId);
256            }
257    
258            /**
259            * Returns a range of all the document library file entry metadatas where fileEntryId = &#63;.
260            *
261            * <p>
262            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
263            * </p>
264            *
265            * @param fileEntryId the file entry ID
266            * @param start the lower bound of the range of document library file entry metadatas
267            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
268            * @return the range of matching document library file entry metadatas
269            */
270            public static List<DLFileEntryMetadata> findByFileEntryId(
271                    long fileEntryId, int start, int end) {
272                    return getPersistence().findByFileEntryId(fileEntryId, start, end);
273            }
274    
275            /**
276            * Returns an ordered range of all the document library file entry metadatas where fileEntryId = &#63;.
277            *
278            * <p>
279            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
280            * </p>
281            *
282            * @param fileEntryId the file entry ID
283            * @param start the lower bound of the range of document library file entry metadatas
284            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
285            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
286            * @return the ordered range of matching document library file entry metadatas
287            */
288            public static List<DLFileEntryMetadata> findByFileEntryId(
289                    long fileEntryId, int start, int end,
290                    OrderByComparator<DLFileEntryMetadata> orderByComparator) {
291                    return getPersistence()
292                                       .findByFileEntryId(fileEntryId, start, end, orderByComparator);
293            }
294    
295            /**
296            * Returns the first document library file entry metadata in the ordered set where fileEntryId = &#63;.
297            *
298            * @param fileEntryId the file entry ID
299            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
300            * @return the first matching document library file entry metadata
301            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
302            */
303            public static DLFileEntryMetadata findByFileEntryId_First(
304                    long fileEntryId,
305                    OrderByComparator<DLFileEntryMetadata> orderByComparator)
306                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
307                    return getPersistence()
308                                       .findByFileEntryId_First(fileEntryId, orderByComparator);
309            }
310    
311            /**
312            * Returns the first document library file entry metadata in the ordered set where fileEntryId = &#63;.
313            *
314            * @param fileEntryId the file entry ID
315            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
316            * @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
317            */
318            public static DLFileEntryMetadata fetchByFileEntryId_First(
319                    long fileEntryId,
320                    OrderByComparator<DLFileEntryMetadata> orderByComparator) {
321                    return getPersistence()
322                                       .fetchByFileEntryId_First(fileEntryId, orderByComparator);
323            }
324    
325            /**
326            * Returns the last document library file entry metadata in the ordered set where fileEntryId = &#63;.
327            *
328            * @param fileEntryId the file entry ID
329            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
330            * @return the last matching document library file entry metadata
331            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
332            */
333            public static DLFileEntryMetadata findByFileEntryId_Last(long fileEntryId,
334                    OrderByComparator<DLFileEntryMetadata> orderByComparator)
335                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
336                    return getPersistence()
337                                       .findByFileEntryId_Last(fileEntryId, orderByComparator);
338            }
339    
340            /**
341            * Returns the last document library file entry metadata in the ordered set where fileEntryId = &#63;.
342            *
343            * @param fileEntryId the file entry ID
344            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
345            * @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
346            */
347            public static DLFileEntryMetadata fetchByFileEntryId_Last(
348                    long fileEntryId,
349                    OrderByComparator<DLFileEntryMetadata> orderByComparator) {
350                    return getPersistence()
351                                       .fetchByFileEntryId_Last(fileEntryId, orderByComparator);
352            }
353    
354            /**
355            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryId = &#63;.
356            *
357            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
358            * @param fileEntryId the file entry ID
359            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
360            * @return the previous, current, and next document library file entry metadata
361            * @throws NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
362            */
363            public static DLFileEntryMetadata[] findByFileEntryId_PrevAndNext(
364                    long fileEntryMetadataId, long fileEntryId,
365                    OrderByComparator<DLFileEntryMetadata> orderByComparator)
366                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
367                    return getPersistence()
368                                       .findByFileEntryId_PrevAndNext(fileEntryMetadataId,
369                            fileEntryId, orderByComparator);
370            }
371    
372            /**
373            * Removes all the document library file entry metadatas where fileEntryId = &#63; from the database.
374            *
375            * @param fileEntryId the file entry ID
376            */
377            public static void removeByFileEntryId(long fileEntryId) {
378                    getPersistence().removeByFileEntryId(fileEntryId);
379            }
380    
381            /**
382            * Returns the number of document library file entry metadatas where fileEntryId = &#63;.
383            *
384            * @param fileEntryId the file entry ID
385            * @return the number of matching document library file entry metadatas
386            */
387            public static int countByFileEntryId(long fileEntryId) {
388                    return getPersistence().countByFileEntryId(fileEntryId);
389            }
390    
391            /**
392            * Returns all the document library file entry metadatas where fileVersionId = &#63;.
393            *
394            * @param fileVersionId the file version ID
395            * @return the matching document library file entry metadatas
396            */
397            public static List<DLFileEntryMetadata> findByFileVersionId(
398                    long fileVersionId) {
399                    return getPersistence().findByFileVersionId(fileVersionId);
400            }
401    
402            /**
403            * Returns a range of all the document library file entry metadatas where fileVersionId = &#63;.
404            *
405            * <p>
406            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
407            * </p>
408            *
409            * @param fileVersionId the file version ID
410            * @param start the lower bound of the range of document library file entry metadatas
411            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
412            * @return the range of matching document library file entry metadatas
413            */
414            public static List<DLFileEntryMetadata> findByFileVersionId(
415                    long fileVersionId, int start, int end) {
416                    return getPersistence().findByFileVersionId(fileVersionId, start, end);
417            }
418    
419            /**
420            * Returns an ordered range of all the document library file entry metadatas where fileVersionId = &#63;.
421            *
422            * <p>
423            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
424            * </p>
425            *
426            * @param fileVersionId the file version ID
427            * @param start the lower bound of the range of document library file entry metadatas
428            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
429            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
430            * @return the ordered range of matching document library file entry metadatas
431            */
432            public static List<DLFileEntryMetadata> findByFileVersionId(
433                    long fileVersionId, int start, int end,
434                    OrderByComparator<DLFileEntryMetadata> orderByComparator) {
435                    return getPersistence()
436                                       .findByFileVersionId(fileVersionId, start, end,
437                            orderByComparator);
438            }
439    
440            /**
441            * Returns the first document library file entry metadata in the ordered set where fileVersionId = &#63;.
442            *
443            * @param fileVersionId the file version ID
444            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
445            * @return the first matching document library file entry metadata
446            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
447            */
448            public static DLFileEntryMetadata findByFileVersionId_First(
449                    long fileVersionId,
450                    OrderByComparator<DLFileEntryMetadata> orderByComparator)
451                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
452                    return getPersistence()
453                                       .findByFileVersionId_First(fileVersionId, orderByComparator);
454            }
455    
456            /**
457            * Returns the first document library file entry metadata in the ordered set where fileVersionId = &#63;.
458            *
459            * @param fileVersionId the file version ID
460            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
461            * @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
462            */
463            public static DLFileEntryMetadata fetchByFileVersionId_First(
464                    long fileVersionId,
465                    OrderByComparator<DLFileEntryMetadata> orderByComparator) {
466                    return getPersistence()
467                                       .fetchByFileVersionId_First(fileVersionId, orderByComparator);
468            }
469    
470            /**
471            * Returns the last document library file entry metadata in the ordered set where fileVersionId = &#63;.
472            *
473            * @param fileVersionId the file version ID
474            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
475            * @return the last matching document library file entry metadata
476            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
477            */
478            public static DLFileEntryMetadata findByFileVersionId_Last(
479                    long fileVersionId,
480                    OrderByComparator<DLFileEntryMetadata> orderByComparator)
481                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
482                    return getPersistence()
483                                       .findByFileVersionId_Last(fileVersionId, orderByComparator);
484            }
485    
486            /**
487            * Returns the last document library file entry metadata in the ordered set where fileVersionId = &#63;.
488            *
489            * @param fileVersionId the file version ID
490            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
491            * @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
492            */
493            public static DLFileEntryMetadata fetchByFileVersionId_Last(
494                    long fileVersionId,
495                    OrderByComparator<DLFileEntryMetadata> orderByComparator) {
496                    return getPersistence()
497                                       .fetchByFileVersionId_Last(fileVersionId, orderByComparator);
498            }
499    
500            /**
501            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileVersionId = &#63;.
502            *
503            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
504            * @param fileVersionId the file version ID
505            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
506            * @return the previous, current, and next document library file entry metadata
507            * @throws NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
508            */
509            public static DLFileEntryMetadata[] findByFileVersionId_PrevAndNext(
510                    long fileEntryMetadataId, long fileVersionId,
511                    OrderByComparator<DLFileEntryMetadata> orderByComparator)
512                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
513                    return getPersistence()
514                                       .findByFileVersionId_PrevAndNext(fileEntryMetadataId,
515                            fileVersionId, orderByComparator);
516            }
517    
518            /**
519            * Removes all the document library file entry metadatas where fileVersionId = &#63; from the database.
520            *
521            * @param fileVersionId the file version ID
522            */
523            public static void removeByFileVersionId(long fileVersionId) {
524                    getPersistence().removeByFileVersionId(fileVersionId);
525            }
526    
527            /**
528            * Returns the number of document library file entry metadatas where fileVersionId = &#63;.
529            *
530            * @param fileVersionId the file version ID
531            * @return the number of matching document library file entry metadatas
532            */
533            public static int countByFileVersionId(long fileVersionId) {
534                    return getPersistence().countByFileVersionId(fileVersionId);
535            }
536    
537            /**
538            * Returns the document library file entry metadata where DDMStructureId = &#63; and fileVersionId = &#63; or throws a {@link NoSuchFileEntryMetadataException} if it could not be found.
539            *
540            * @param DDMStructureId the d d m structure ID
541            * @param fileVersionId the file version ID
542            * @return the matching document library file entry metadata
543            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
544            */
545            public static DLFileEntryMetadata findByD_F(long DDMStructureId,
546                    long fileVersionId)
547                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
548                    return getPersistence().findByD_F(DDMStructureId, fileVersionId);
549            }
550    
551            /**
552            * 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.
553            *
554            * @param DDMStructureId the d d m structure ID
555            * @param fileVersionId the file version ID
556            * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
557            */
558            public static DLFileEntryMetadata fetchByD_F(long DDMStructureId,
559                    long fileVersionId) {
560                    return getPersistence().fetchByD_F(DDMStructureId, fileVersionId);
561            }
562    
563            /**
564            * 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.
565            *
566            * @param DDMStructureId the d d m structure ID
567            * @param fileVersionId the file version ID
568            * @param retrieveFromCache whether to use the finder cache
569            * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
570            */
571            public static DLFileEntryMetadata fetchByD_F(long DDMStructureId,
572                    long fileVersionId, boolean retrieveFromCache) {
573                    return getPersistence()
574                                       .fetchByD_F(DDMStructureId, fileVersionId, retrieveFromCache);
575            }
576    
577            /**
578            * Removes the document library file entry metadata where DDMStructureId = &#63; and fileVersionId = &#63; from the database.
579            *
580            * @param DDMStructureId the d d m structure ID
581            * @param fileVersionId the file version ID
582            * @return the document library file entry metadata that was removed
583            */
584            public static DLFileEntryMetadata removeByD_F(long DDMStructureId,
585                    long fileVersionId)
586                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
587                    return getPersistence().removeByD_F(DDMStructureId, fileVersionId);
588            }
589    
590            /**
591            * Returns the number of document library file entry metadatas where DDMStructureId = &#63; and fileVersionId = &#63;.
592            *
593            * @param DDMStructureId the d d m structure ID
594            * @param fileVersionId the file version ID
595            * @return the number of matching document library file entry metadatas
596            */
597            public static int countByD_F(long DDMStructureId, long fileVersionId) {
598                    return getPersistence().countByD_F(DDMStructureId, fileVersionId);
599            }
600    
601            /**
602            * Caches the document library file entry metadata in the entity cache if it is enabled.
603            *
604            * @param dlFileEntryMetadata the document library file entry metadata
605            */
606            public static void cacheResult(DLFileEntryMetadata dlFileEntryMetadata) {
607                    getPersistence().cacheResult(dlFileEntryMetadata);
608            }
609    
610            /**
611            * Caches the document library file entry metadatas in the entity cache if it is enabled.
612            *
613            * @param dlFileEntryMetadatas the document library file entry metadatas
614            */
615            public static void cacheResult(
616                    List<DLFileEntryMetadata> dlFileEntryMetadatas) {
617                    getPersistence().cacheResult(dlFileEntryMetadatas);
618            }
619    
620            /**
621            * Creates a new document library file entry metadata with the primary key. Does not add the document library file entry metadata to the database.
622            *
623            * @param fileEntryMetadataId the primary key for the new document library file entry metadata
624            * @return the new document library file entry metadata
625            */
626            public static DLFileEntryMetadata create(long fileEntryMetadataId) {
627                    return getPersistence().create(fileEntryMetadataId);
628            }
629    
630            /**
631            * Removes the document library file entry metadata with the primary key from the database. Also notifies the appropriate model listeners.
632            *
633            * @param fileEntryMetadataId the primary key of the document library file entry metadata
634            * @return the document library file entry metadata that was removed
635            * @throws NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
636            */
637            public static DLFileEntryMetadata remove(long fileEntryMetadataId)
638                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
639                    return getPersistence().remove(fileEntryMetadataId);
640            }
641    
642            public static DLFileEntryMetadata updateImpl(
643                    DLFileEntryMetadata dlFileEntryMetadata) {
644                    return getPersistence().updateImpl(dlFileEntryMetadata);
645            }
646    
647            /**
648            * Returns the document library file entry metadata with the primary key or throws a {@link NoSuchFileEntryMetadataException} if it could not be found.
649            *
650            * @param fileEntryMetadataId the primary key of the document library file entry metadata
651            * @return the document library file entry metadata
652            * @throws NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
653            */
654            public static DLFileEntryMetadata findByPrimaryKey(long fileEntryMetadataId)
655                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException {
656                    return getPersistence().findByPrimaryKey(fileEntryMetadataId);
657            }
658    
659            /**
660            * Returns the document library file entry metadata with the primary key or returns <code>null</code> if it could not be found.
661            *
662            * @param fileEntryMetadataId the primary key of the document library file entry metadata
663            * @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
664            */
665            public static DLFileEntryMetadata fetchByPrimaryKey(
666                    long fileEntryMetadataId) {
667                    return getPersistence().fetchByPrimaryKey(fileEntryMetadataId);
668            }
669    
670            public static java.util.Map<java.io.Serializable, DLFileEntryMetadata> fetchByPrimaryKeys(
671                    java.util.Set<java.io.Serializable> primaryKeys) {
672                    return getPersistence().fetchByPrimaryKeys(primaryKeys);
673            }
674    
675            /**
676            * Returns all the document library file entry metadatas.
677            *
678            * @return the document library file entry metadatas
679            */
680            public static List<DLFileEntryMetadata> findAll() {
681                    return getPersistence().findAll();
682            }
683    
684            /**
685            * Returns a range of all the document library file entry metadatas.
686            *
687            * <p>
688            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
689            * </p>
690            *
691            * @param start the lower bound of the range of document library file entry metadatas
692            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
693            * @return the range of document library file entry metadatas
694            */
695            public static List<DLFileEntryMetadata> findAll(int start, int end) {
696                    return getPersistence().findAll(start, end);
697            }
698    
699            /**
700            * Returns an ordered range of all the document library file entry metadatas.
701            *
702            * <p>
703            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
704            * </p>
705            *
706            * @param start the lower bound of the range of document library file entry metadatas
707            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
708            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
709            * @return the ordered range of document library file entry metadatas
710            */
711            public static List<DLFileEntryMetadata> findAll(int start, int end,
712                    OrderByComparator<DLFileEntryMetadata> orderByComparator) {
713                    return getPersistence().findAll(start, end, orderByComparator);
714            }
715    
716            /**
717            * Removes all the document library file entry metadatas from the database.
718            */
719            public static void removeAll() {
720                    getPersistence().removeAll();
721            }
722    
723            /**
724            * Returns the number of document library file entry metadatas.
725            *
726            * @return the number of document library file entry metadatas
727            */
728            public static int countAll() {
729                    return getPersistence().countAll();
730            }
731    
732            public static DLFileEntryMetadataPersistence getPersistence() {
733                    if (_persistence == null) {
734                            _persistence = (DLFileEntryMetadataPersistence)PortalBeanLocatorUtil.locate(DLFileEntryMetadataPersistence.class.getName());
735    
736                            ReferenceRegistry.registerReference(DLFileEntryMetadataUtil.class,
737                                    "_persistence");
738                    }
739    
740                    return _persistence;
741            }
742    
743            /**
744             * @deprecated As of 6.2.0
745             */
746            @Deprecated
747            public void setPersistence(DLFileEntryMetadataPersistence persistence) {
748            }
749    
750            private static DLFileEntryMetadataPersistence _persistence;
751    }