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