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