001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021    import com.liferay.portal.kernel.util.OrderByComparator;
022    import com.liferay.portal.kernel.util.ReferenceRegistry;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import com.liferay.portlet.documentlibrary.model.DLFileVersion;
026    
027    import java.util.List;
028    
029    /**
030     * The persistence utility for the document library file version service. This utility wraps {@link DLFileVersionPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
031     *
032     * <p>
033     * Caching information and settings can be found in <code>portal.properties</code>
034     * </p>
035     *
036     * @author Brian Wing Shun Chan
037     * @see DLFileVersionPersistence
038     * @see DLFileVersionPersistenceImpl
039     * @generated
040     */
041    @ProviderType
042    public class DLFileVersionUtil {
043            /*
044             * NOTE FOR DEVELOPERS:
045             *
046             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
047             */
048    
049            /**
050             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
051             */
052            public static void clearCache() {
053                    getPersistence().clearCache();
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
058             */
059            public static void clearCache(DLFileVersion dlFileVersion) {
060                    getPersistence().clearCache(dlFileVersion);
061            }
062    
063            /**
064             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
065             */
066            public static long countWithDynamicQuery(DynamicQuery dynamicQuery) {
067                    return getPersistence().countWithDynamicQuery(dynamicQuery);
068            }
069    
070            /**
071             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
072             */
073            public static List<DLFileVersion> findWithDynamicQuery(
074                    DynamicQuery dynamicQuery) {
075                    return getPersistence().findWithDynamicQuery(dynamicQuery);
076            }
077    
078            /**
079             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
080             */
081            public static List<DLFileVersion> findWithDynamicQuery(
082                    DynamicQuery dynamicQuery, int start, int end) {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<DLFileVersion> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator<DLFileVersion> orderByComparator) {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
099             */
100            public static DLFileVersion update(DLFileVersion dlFileVersion) {
101                    return getPersistence().update(dlFileVersion);
102            }
103    
104            /**
105             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
106             */
107            public static DLFileVersion update(DLFileVersion dlFileVersion,
108                    ServiceContext serviceContext) {
109                    return getPersistence().update(dlFileVersion, serviceContext);
110            }
111    
112            /**
113            * Returns all the document library file versions where uuid = &#63;.
114            *
115            * @param uuid the uuid
116            * @return the matching document library file versions
117            */
118            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByUuid(
119                    java.lang.String uuid) {
120                    return getPersistence().findByUuid(uuid);
121            }
122    
123            /**
124            * Returns a range of all the document library file versions where uuid = &#63;.
125            *
126            * <p>
127            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
128            * </p>
129            *
130            * @param uuid the uuid
131            * @param start the lower bound of the range of document library file versions
132            * @param end the upper bound of the range of document library file versions (not inclusive)
133            * @return the range of matching document library file versions
134            */
135            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByUuid(
136                    java.lang.String uuid, int start, int end) {
137                    return getPersistence().findByUuid(uuid, start, end);
138            }
139    
140            /**
141            * Returns an ordered range of all the document library file versions where uuid = &#63;.
142            *
143            * <p>
144            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
145            * </p>
146            *
147            * @param uuid the uuid
148            * @param start the lower bound of the range of document library file versions
149            * @param end the upper bound of the range of document library file versions (not inclusive)
150            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
151            * @return the ordered range of matching document library file versions
152            */
153            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByUuid(
154                    java.lang.String uuid, int start, int end,
155                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
156                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
157            }
158    
159            /**
160            * Returns the first document library file version in the ordered set where uuid = &#63;.
161            *
162            * @param uuid the uuid
163            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
164            * @return the first matching document library file version
165            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
166            */
167            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByUuid_First(
168                    java.lang.String uuid,
169                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
170                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
171                    return getPersistence().findByUuid_First(uuid, orderByComparator);
172            }
173    
174            /**
175            * Returns the first document library file version in the ordered set where uuid = &#63;.
176            *
177            * @param uuid the uuid
178            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
179            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
180            */
181            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByUuid_First(
182                    java.lang.String uuid,
183                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
184                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
185            }
186    
187            /**
188            * Returns the last document library file version in the ordered set where uuid = &#63;.
189            *
190            * @param uuid the uuid
191            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
192            * @return the last matching document library file version
193            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
194            */
195            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByUuid_Last(
196                    java.lang.String uuid,
197                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
198                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
199                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
200            }
201    
202            /**
203            * Returns the last document library file version in the ordered set where uuid = &#63;.
204            *
205            * @param uuid the uuid
206            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
207            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
208            */
209            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByUuid_Last(
210                    java.lang.String uuid,
211                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
212                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
213            }
214    
215            /**
216            * Returns the document library file versions before and after the current document library file version in the ordered set where uuid = &#63;.
217            *
218            * @param fileVersionId the primary key of the current document library file version
219            * @param uuid the uuid
220            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
221            * @return the previous, current, and next document library file version
222            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
223            */
224            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByUuid_PrevAndNext(
225                    long fileVersionId, java.lang.String uuid,
226                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
227                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
228                    return getPersistence()
229                                       .findByUuid_PrevAndNext(fileVersionId, uuid,
230                            orderByComparator);
231            }
232    
233            /**
234            * Removes all the document library file versions where uuid = &#63; from the database.
235            *
236            * @param uuid the uuid
237            */
238            public static void removeByUuid(java.lang.String uuid) {
239                    getPersistence().removeByUuid(uuid);
240            }
241    
242            /**
243            * Returns the number of document library file versions where uuid = &#63;.
244            *
245            * @param uuid the uuid
246            * @return the number of matching document library file versions
247            */
248            public static int countByUuid(java.lang.String uuid) {
249                    return getPersistence().countByUuid(uuid);
250            }
251    
252            /**
253            * Returns the document library file version where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileVersionException} if it could not be found.
254            *
255            * @param uuid the uuid
256            * @param groupId the group ID
257            * @return the matching document library file version
258            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
259            */
260            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByUUID_G(
261                    java.lang.String uuid, long groupId)
262                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
263                    return getPersistence().findByUUID_G(uuid, groupId);
264            }
265    
266            /**
267            * Returns the document library file version where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
268            *
269            * @param uuid the uuid
270            * @param groupId the group ID
271            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
272            */
273            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByUUID_G(
274                    java.lang.String uuid, long groupId) {
275                    return getPersistence().fetchByUUID_G(uuid, groupId);
276            }
277    
278            /**
279            * Returns the document library file version where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
280            *
281            * @param uuid the uuid
282            * @param groupId the group ID
283            * @param retrieveFromCache whether to use the finder cache
284            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
285            */
286            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByUUID_G(
287                    java.lang.String uuid, long groupId, boolean retrieveFromCache) {
288                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
289            }
290    
291            /**
292            * Removes the document library file version where uuid = &#63; and groupId = &#63; from the database.
293            *
294            * @param uuid the uuid
295            * @param groupId the group ID
296            * @return the document library file version that was removed
297            */
298            public static com.liferay.portlet.documentlibrary.model.DLFileVersion removeByUUID_G(
299                    java.lang.String uuid, long groupId)
300                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
301                    return getPersistence().removeByUUID_G(uuid, groupId);
302            }
303    
304            /**
305            * Returns the number of document library file versions where uuid = &#63; and groupId = &#63;.
306            *
307            * @param uuid the uuid
308            * @param groupId the group ID
309            * @return the number of matching document library file versions
310            */
311            public static int countByUUID_G(java.lang.String uuid, long groupId) {
312                    return getPersistence().countByUUID_G(uuid, groupId);
313            }
314    
315            /**
316            * Returns all the document library file versions where uuid = &#63; and companyId = &#63;.
317            *
318            * @param uuid the uuid
319            * @param companyId the company ID
320            * @return the matching document library file versions
321            */
322            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByUuid_C(
323                    java.lang.String uuid, long companyId) {
324                    return getPersistence().findByUuid_C(uuid, companyId);
325            }
326    
327            /**
328            * Returns a range of all the document library file versions where uuid = &#63; and companyId = &#63;.
329            *
330            * <p>
331            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
332            * </p>
333            *
334            * @param uuid the uuid
335            * @param companyId the company ID
336            * @param start the lower bound of the range of document library file versions
337            * @param end the upper bound of the range of document library file versions (not inclusive)
338            * @return the range of matching document library file versions
339            */
340            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByUuid_C(
341                    java.lang.String uuid, long companyId, int start, int end) {
342                    return getPersistence().findByUuid_C(uuid, companyId, start, end);
343            }
344    
345            /**
346            * Returns an ordered range of all the document library file versions where uuid = &#63; and companyId = &#63;.
347            *
348            * <p>
349            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
350            * </p>
351            *
352            * @param uuid the uuid
353            * @param companyId the company ID
354            * @param start the lower bound of the range of document library file versions
355            * @param end the upper bound of the range of document library file versions (not inclusive)
356            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
357            * @return the ordered range of matching document library file versions
358            */
359            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByUuid_C(
360                    java.lang.String uuid, long companyId, int start, int end,
361                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
362                    return getPersistence()
363                                       .findByUuid_C(uuid, companyId, start, end, orderByComparator);
364            }
365    
366            /**
367            * Returns the first document library file version in the ordered set where uuid = &#63; and companyId = &#63;.
368            *
369            * @param uuid the uuid
370            * @param companyId the company ID
371            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
372            * @return the first matching document library file version
373            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
374            */
375            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByUuid_C_First(
376                    java.lang.String uuid, long companyId,
377                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
378                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
379                    return getPersistence()
380                                       .findByUuid_C_First(uuid, companyId, orderByComparator);
381            }
382    
383            /**
384            * Returns the first document library file version in the ordered set where uuid = &#63; and companyId = &#63;.
385            *
386            * @param uuid the uuid
387            * @param companyId the company ID
388            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
389            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
390            */
391            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByUuid_C_First(
392                    java.lang.String uuid, long companyId,
393                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
394                    return getPersistence()
395                                       .fetchByUuid_C_First(uuid, companyId, orderByComparator);
396            }
397    
398            /**
399            * Returns the last document library file version in the ordered set where uuid = &#63; and companyId = &#63;.
400            *
401            * @param uuid the uuid
402            * @param companyId the company ID
403            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
404            * @return the last matching document library file version
405            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
406            */
407            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByUuid_C_Last(
408                    java.lang.String uuid, long companyId,
409                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
410                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
411                    return getPersistence()
412                                       .findByUuid_C_Last(uuid, companyId, orderByComparator);
413            }
414    
415            /**
416            * Returns the last document library file version in the ordered set where uuid = &#63; and companyId = &#63;.
417            *
418            * @param uuid the uuid
419            * @param companyId the company ID
420            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
421            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
422            */
423            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByUuid_C_Last(
424                    java.lang.String uuid, long companyId,
425                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
426                    return getPersistence()
427                                       .fetchByUuid_C_Last(uuid, companyId, orderByComparator);
428            }
429    
430            /**
431            * Returns the document library file versions before and after the current document library file version in the ordered set where uuid = &#63; and companyId = &#63;.
432            *
433            * @param fileVersionId the primary key of the current document library file version
434            * @param uuid the uuid
435            * @param companyId the company ID
436            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
437            * @return the previous, current, and next document library file version
438            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
439            */
440            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByUuid_C_PrevAndNext(
441                    long fileVersionId, java.lang.String uuid, long companyId,
442                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
443                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
444                    return getPersistence()
445                                       .findByUuid_C_PrevAndNext(fileVersionId, uuid, companyId,
446                            orderByComparator);
447            }
448    
449            /**
450            * Removes all the document library file versions where uuid = &#63; and companyId = &#63; from the database.
451            *
452            * @param uuid the uuid
453            * @param companyId the company ID
454            */
455            public static void removeByUuid_C(java.lang.String uuid, long companyId) {
456                    getPersistence().removeByUuid_C(uuid, companyId);
457            }
458    
459            /**
460            * Returns the number of document library file versions where uuid = &#63; and companyId = &#63;.
461            *
462            * @param uuid the uuid
463            * @param companyId the company ID
464            * @return the number of matching document library file versions
465            */
466            public static int countByUuid_C(java.lang.String uuid, long companyId) {
467                    return getPersistence().countByUuid_C(uuid, companyId);
468            }
469    
470            /**
471            * Returns all the document library file versions where companyId = &#63;.
472            *
473            * @param companyId the company ID
474            * @return the matching document library file versions
475            */
476            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByCompanyId(
477                    long companyId) {
478                    return getPersistence().findByCompanyId(companyId);
479            }
480    
481            /**
482            * Returns a range of all the document library file versions where companyId = &#63;.
483            *
484            * <p>
485            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
486            * </p>
487            *
488            * @param companyId the company ID
489            * @param start the lower bound of the range of document library file versions
490            * @param end the upper bound of the range of document library file versions (not inclusive)
491            * @return the range of matching document library file versions
492            */
493            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByCompanyId(
494                    long companyId, int start, int end) {
495                    return getPersistence().findByCompanyId(companyId, start, end);
496            }
497    
498            /**
499            * Returns an ordered range of all the document library file versions where companyId = &#63;.
500            *
501            * <p>
502            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
503            * </p>
504            *
505            * @param companyId the company ID
506            * @param start the lower bound of the range of document library file versions
507            * @param end the upper bound of the range of document library file versions (not inclusive)
508            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
509            * @return the ordered range of matching document library file versions
510            */
511            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByCompanyId(
512                    long companyId, int start, int end,
513                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
514                    return getPersistence()
515                                       .findByCompanyId(companyId, start, end, orderByComparator);
516            }
517    
518            /**
519            * Returns the first document library file version in the ordered set where companyId = &#63;.
520            *
521            * @param companyId the company ID
522            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
523            * @return the first matching document library file version
524            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
525            */
526            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByCompanyId_First(
527                    long companyId,
528                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
529                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
530                    return getPersistence()
531                                       .findByCompanyId_First(companyId, orderByComparator);
532            }
533    
534            /**
535            * Returns the first document library file version in the ordered set where companyId = &#63;.
536            *
537            * @param companyId the company ID
538            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
539            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
540            */
541            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByCompanyId_First(
542                    long companyId,
543                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
544                    return getPersistence()
545                                       .fetchByCompanyId_First(companyId, orderByComparator);
546            }
547    
548            /**
549            * Returns the last document library file version in the ordered set where companyId = &#63;.
550            *
551            * @param companyId the company ID
552            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
553            * @return the last matching document library file version
554            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
555            */
556            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByCompanyId_Last(
557                    long companyId,
558                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
559                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
560                    return getPersistence()
561                                       .findByCompanyId_Last(companyId, orderByComparator);
562            }
563    
564            /**
565            * Returns the last document library file version in the ordered set where companyId = &#63;.
566            *
567            * @param companyId the company ID
568            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
569            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
570            */
571            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByCompanyId_Last(
572                    long companyId,
573                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
574                    return getPersistence()
575                                       .fetchByCompanyId_Last(companyId, orderByComparator);
576            }
577    
578            /**
579            * Returns the document library file versions before and after the current document library file version in the ordered set where companyId = &#63;.
580            *
581            * @param fileVersionId the primary key of the current document library file version
582            * @param companyId the company ID
583            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
584            * @return the previous, current, and next document library file version
585            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
586            */
587            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByCompanyId_PrevAndNext(
588                    long fileVersionId, long companyId,
589                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
590                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
591                    return getPersistence()
592                                       .findByCompanyId_PrevAndNext(fileVersionId, companyId,
593                            orderByComparator);
594            }
595    
596            /**
597            * Removes all the document library file versions where companyId = &#63; from the database.
598            *
599            * @param companyId the company ID
600            */
601            public static void removeByCompanyId(long companyId) {
602                    getPersistence().removeByCompanyId(companyId);
603            }
604    
605            /**
606            * Returns the number of document library file versions where companyId = &#63;.
607            *
608            * @param companyId the company ID
609            * @return the number of matching document library file versions
610            */
611            public static int countByCompanyId(long companyId) {
612                    return getPersistence().countByCompanyId(companyId);
613            }
614    
615            /**
616            * Returns all the document library file versions where fileEntryId = &#63;.
617            *
618            * @param fileEntryId the file entry ID
619            * @return the matching document library file versions
620            */
621            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByFileEntryId(
622                    long fileEntryId) {
623                    return getPersistence().findByFileEntryId(fileEntryId);
624            }
625    
626            /**
627            * Returns a range of all the document library file versions where fileEntryId = &#63;.
628            *
629            * <p>
630            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
631            * </p>
632            *
633            * @param fileEntryId the file entry ID
634            * @param start the lower bound of the range of document library file versions
635            * @param end the upper bound of the range of document library file versions (not inclusive)
636            * @return the range of matching document library file versions
637            */
638            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByFileEntryId(
639                    long fileEntryId, int start, int end) {
640                    return getPersistence().findByFileEntryId(fileEntryId, start, end);
641            }
642    
643            /**
644            * Returns an ordered range of all the document library file versions where fileEntryId = &#63;.
645            *
646            * <p>
647            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
648            * </p>
649            *
650            * @param fileEntryId the file entry ID
651            * @param start the lower bound of the range of document library file versions
652            * @param end the upper bound of the range of document library file versions (not inclusive)
653            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
654            * @return the ordered range of matching document library file versions
655            */
656            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByFileEntryId(
657                    long fileEntryId, int start, int end,
658                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
659                    return getPersistence()
660                                       .findByFileEntryId(fileEntryId, start, end, orderByComparator);
661            }
662    
663            /**
664            * Returns the first document library file version in the ordered set where fileEntryId = &#63;.
665            *
666            * @param fileEntryId the file entry ID
667            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
668            * @return the first matching document library file version
669            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
670            */
671            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByFileEntryId_First(
672                    long fileEntryId,
673                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
674                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
675                    return getPersistence()
676                                       .findByFileEntryId_First(fileEntryId, orderByComparator);
677            }
678    
679            /**
680            * Returns the first document library file version in the ordered set where fileEntryId = &#63;.
681            *
682            * @param fileEntryId the file entry ID
683            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
684            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
685            */
686            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByFileEntryId_First(
687                    long fileEntryId,
688                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
689                    return getPersistence()
690                                       .fetchByFileEntryId_First(fileEntryId, orderByComparator);
691            }
692    
693            /**
694            * Returns the last document library file version in the ordered set where fileEntryId = &#63;.
695            *
696            * @param fileEntryId the file entry ID
697            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
698            * @return the last matching document library file version
699            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
700            */
701            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByFileEntryId_Last(
702                    long fileEntryId,
703                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
704                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
705                    return getPersistence()
706                                       .findByFileEntryId_Last(fileEntryId, orderByComparator);
707            }
708    
709            /**
710            * Returns the last document library file version in the ordered set where fileEntryId = &#63;.
711            *
712            * @param fileEntryId the file entry ID
713            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
714            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
715            */
716            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByFileEntryId_Last(
717                    long fileEntryId,
718                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
719                    return getPersistence()
720                                       .fetchByFileEntryId_Last(fileEntryId, orderByComparator);
721            }
722    
723            /**
724            * Returns the document library file versions before and after the current document library file version in the ordered set where fileEntryId = &#63;.
725            *
726            * @param fileVersionId the primary key of the current document library file version
727            * @param fileEntryId the file entry ID
728            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
729            * @return the previous, current, and next document library file version
730            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
731            */
732            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByFileEntryId_PrevAndNext(
733                    long fileVersionId, long fileEntryId,
734                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
735                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
736                    return getPersistence()
737                                       .findByFileEntryId_PrevAndNext(fileVersionId, fileEntryId,
738                            orderByComparator);
739            }
740    
741            /**
742            * Removes all the document library file versions where fileEntryId = &#63; from the database.
743            *
744            * @param fileEntryId the file entry ID
745            */
746            public static void removeByFileEntryId(long fileEntryId) {
747                    getPersistence().removeByFileEntryId(fileEntryId);
748            }
749    
750            /**
751            * Returns the number of document library file versions where fileEntryId = &#63;.
752            *
753            * @param fileEntryId the file entry ID
754            * @return the number of matching document library file versions
755            */
756            public static int countByFileEntryId(long fileEntryId) {
757                    return getPersistence().countByFileEntryId(fileEntryId);
758            }
759    
760            /**
761            * Returns all the document library file versions where mimeType = &#63;.
762            *
763            * @param mimeType the mime type
764            * @return the matching document library file versions
765            */
766            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByMimeType(
767                    java.lang.String mimeType) {
768                    return getPersistence().findByMimeType(mimeType);
769            }
770    
771            /**
772            * Returns a range of all the document library file versions where mimeType = &#63;.
773            *
774            * <p>
775            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
776            * </p>
777            *
778            * @param mimeType the mime type
779            * @param start the lower bound of the range of document library file versions
780            * @param end the upper bound of the range of document library file versions (not inclusive)
781            * @return the range of matching document library file versions
782            */
783            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByMimeType(
784                    java.lang.String mimeType, int start, int end) {
785                    return getPersistence().findByMimeType(mimeType, start, end);
786            }
787    
788            /**
789            * Returns an ordered range of all the document library file versions where mimeType = &#63;.
790            *
791            * <p>
792            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
793            * </p>
794            *
795            * @param mimeType the mime type
796            * @param start the lower bound of the range of document library file versions
797            * @param end the upper bound of the range of document library file versions (not inclusive)
798            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
799            * @return the ordered range of matching document library file versions
800            */
801            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByMimeType(
802                    java.lang.String mimeType, int start, int end,
803                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
804                    return getPersistence()
805                                       .findByMimeType(mimeType, start, end, orderByComparator);
806            }
807    
808            /**
809            * Returns the first document library file version in the ordered set where mimeType = &#63;.
810            *
811            * @param mimeType the mime type
812            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
813            * @return the first matching document library file version
814            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
815            */
816            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByMimeType_First(
817                    java.lang.String mimeType,
818                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
819                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
820                    return getPersistence().findByMimeType_First(mimeType, orderByComparator);
821            }
822    
823            /**
824            * Returns the first document library file version in the ordered set where mimeType = &#63;.
825            *
826            * @param mimeType the mime type
827            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
828            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
829            */
830            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByMimeType_First(
831                    java.lang.String mimeType,
832                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
833                    return getPersistence()
834                                       .fetchByMimeType_First(mimeType, orderByComparator);
835            }
836    
837            /**
838            * Returns the last document library file version in the ordered set where mimeType = &#63;.
839            *
840            * @param mimeType the mime type
841            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
842            * @return the last matching document library file version
843            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
844            */
845            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByMimeType_Last(
846                    java.lang.String mimeType,
847                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
848                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
849                    return getPersistence().findByMimeType_Last(mimeType, orderByComparator);
850            }
851    
852            /**
853            * Returns the last document library file version in the ordered set where mimeType = &#63;.
854            *
855            * @param mimeType the mime type
856            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
857            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
858            */
859            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByMimeType_Last(
860                    java.lang.String mimeType,
861                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
862                    return getPersistence().fetchByMimeType_Last(mimeType, orderByComparator);
863            }
864    
865            /**
866            * Returns the document library file versions before and after the current document library file version in the ordered set where mimeType = &#63;.
867            *
868            * @param fileVersionId the primary key of the current document library file version
869            * @param mimeType the mime type
870            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
871            * @return the previous, current, and next document library file version
872            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
873            */
874            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByMimeType_PrevAndNext(
875                    long fileVersionId, java.lang.String mimeType,
876                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
877                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
878                    return getPersistence()
879                                       .findByMimeType_PrevAndNext(fileVersionId, mimeType,
880                            orderByComparator);
881            }
882    
883            /**
884            * Removes all the document library file versions where mimeType = &#63; from the database.
885            *
886            * @param mimeType the mime type
887            */
888            public static void removeByMimeType(java.lang.String mimeType) {
889                    getPersistence().removeByMimeType(mimeType);
890            }
891    
892            /**
893            * Returns the number of document library file versions where mimeType = &#63;.
894            *
895            * @param mimeType the mime type
896            * @return the number of matching document library file versions
897            */
898            public static int countByMimeType(java.lang.String mimeType) {
899                    return getPersistence().countByMimeType(mimeType);
900            }
901    
902            /**
903            * Returns all the document library file versions where companyId = &#63; and status &ne; &#63;.
904            *
905            * @param companyId the company ID
906            * @param status the status
907            * @return the matching document library file versions
908            */
909            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByC_NotS(
910                    long companyId, int status) {
911                    return getPersistence().findByC_NotS(companyId, status);
912            }
913    
914            /**
915            * Returns a range of all the document library file versions where companyId = &#63; and status &ne; &#63;.
916            *
917            * <p>
918            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
919            * </p>
920            *
921            * @param companyId the company ID
922            * @param status the status
923            * @param start the lower bound of the range of document library file versions
924            * @param end the upper bound of the range of document library file versions (not inclusive)
925            * @return the range of matching document library file versions
926            */
927            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByC_NotS(
928                    long companyId, int status, int start, int end) {
929                    return getPersistence().findByC_NotS(companyId, status, start, end);
930            }
931    
932            /**
933            * Returns an ordered range of all the document library file versions where companyId = &#63; and status &ne; &#63;.
934            *
935            * <p>
936            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
937            * </p>
938            *
939            * @param companyId the company ID
940            * @param status the status
941            * @param start the lower bound of the range of document library file versions
942            * @param end the upper bound of the range of document library file versions (not inclusive)
943            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
944            * @return the ordered range of matching document library file versions
945            */
946            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByC_NotS(
947                    long companyId, int status, int start, int end,
948                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
949                    return getPersistence()
950                                       .findByC_NotS(companyId, status, start, end,
951                            orderByComparator);
952            }
953    
954            /**
955            * Returns the first document library file version in the ordered set where companyId = &#63; and status &ne; &#63;.
956            *
957            * @param companyId the company ID
958            * @param status the status
959            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
960            * @return the first matching document library file version
961            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
962            */
963            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByC_NotS_First(
964                    long companyId, int status,
965                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
966                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
967                    return getPersistence()
968                                       .findByC_NotS_First(companyId, status, orderByComparator);
969            }
970    
971            /**
972            * Returns the first document library file version in the ordered set where companyId = &#63; and status &ne; &#63;.
973            *
974            * @param companyId the company ID
975            * @param status the status
976            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
977            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
978            */
979            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByC_NotS_First(
980                    long companyId, int status,
981                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
982                    return getPersistence()
983                                       .fetchByC_NotS_First(companyId, status, orderByComparator);
984            }
985    
986            /**
987            * Returns the last document library file version in the ordered set where companyId = &#63; and status &ne; &#63;.
988            *
989            * @param companyId the company ID
990            * @param status the status
991            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
992            * @return the last matching document library file version
993            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
994            */
995            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByC_NotS_Last(
996                    long companyId, int status,
997                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
998                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
999                    return getPersistence()
1000                                       .findByC_NotS_Last(companyId, status, orderByComparator);
1001            }
1002    
1003            /**
1004            * Returns the last document library file version in the ordered set where companyId = &#63; and status &ne; &#63;.
1005            *
1006            * @param companyId the company ID
1007            * @param status the status
1008            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1009            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
1010            */
1011            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByC_NotS_Last(
1012                    long companyId, int status,
1013                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
1014                    return getPersistence()
1015                                       .fetchByC_NotS_Last(companyId, status, orderByComparator);
1016            }
1017    
1018            /**
1019            * Returns the document library file versions before and after the current document library file version in the ordered set where companyId = &#63; and status &ne; &#63;.
1020            *
1021            * @param fileVersionId the primary key of the current document library file version
1022            * @param companyId the company ID
1023            * @param status the status
1024            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1025            * @return the previous, current, and next document library file version
1026            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
1027            */
1028            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByC_NotS_PrevAndNext(
1029                    long fileVersionId, long companyId, int status,
1030                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
1031                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1032                    return getPersistence()
1033                                       .findByC_NotS_PrevAndNext(fileVersionId, companyId, status,
1034                            orderByComparator);
1035            }
1036    
1037            /**
1038            * Removes all the document library file versions where companyId = &#63; and status &ne; &#63; from the database.
1039            *
1040            * @param companyId the company ID
1041            * @param status the status
1042            */
1043            public static void removeByC_NotS(long companyId, int status) {
1044                    getPersistence().removeByC_NotS(companyId, status);
1045            }
1046    
1047            /**
1048            * Returns the number of document library file versions where companyId = &#63; and status &ne; &#63;.
1049            *
1050            * @param companyId the company ID
1051            * @param status the status
1052            * @return the number of matching document library file versions
1053            */
1054            public static int countByC_NotS(long companyId, int status) {
1055                    return getPersistence().countByC_NotS(companyId, status);
1056            }
1057    
1058            /**
1059            * Returns the document library file version where fileEntryId = &#63; and version = &#63; or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileVersionException} if it could not be found.
1060            *
1061            * @param fileEntryId the file entry ID
1062            * @param version the version
1063            * @return the matching document library file version
1064            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
1065            */
1066            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_V(
1067                    long fileEntryId, java.lang.String version)
1068                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1069                    return getPersistence().findByF_V(fileEntryId, version);
1070            }
1071    
1072            /**
1073            * Returns the document library file version where fileEntryId = &#63; and version = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
1074            *
1075            * @param fileEntryId the file entry ID
1076            * @param version the version
1077            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
1078            */
1079            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_V(
1080                    long fileEntryId, java.lang.String version) {
1081                    return getPersistence().fetchByF_V(fileEntryId, version);
1082            }
1083    
1084            /**
1085            * Returns the document library file version where fileEntryId = &#63; and version = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
1086            *
1087            * @param fileEntryId the file entry ID
1088            * @param version the version
1089            * @param retrieveFromCache whether to use the finder cache
1090            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
1091            */
1092            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_V(
1093                    long fileEntryId, java.lang.String version, boolean retrieveFromCache) {
1094                    return getPersistence()
1095                                       .fetchByF_V(fileEntryId, version, retrieveFromCache);
1096            }
1097    
1098            /**
1099            * Removes the document library file version where fileEntryId = &#63; and version = &#63; from the database.
1100            *
1101            * @param fileEntryId the file entry ID
1102            * @param version the version
1103            * @return the document library file version that was removed
1104            */
1105            public static com.liferay.portlet.documentlibrary.model.DLFileVersion removeByF_V(
1106                    long fileEntryId, java.lang.String version)
1107                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1108                    return getPersistence().removeByF_V(fileEntryId, version);
1109            }
1110    
1111            /**
1112            * Returns the number of document library file versions where fileEntryId = &#63; and version = &#63;.
1113            *
1114            * @param fileEntryId the file entry ID
1115            * @param version the version
1116            * @return the number of matching document library file versions
1117            */
1118            public static int countByF_V(long fileEntryId, java.lang.String version) {
1119                    return getPersistence().countByF_V(fileEntryId, version);
1120            }
1121    
1122            /**
1123            * Returns all the document library file versions where fileEntryId = &#63; and status = &#63;.
1124            *
1125            * @param fileEntryId the file entry ID
1126            * @param status the status
1127            * @return the matching document library file versions
1128            */
1129            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
1130                    long fileEntryId, int status) {
1131                    return getPersistence().findByF_S(fileEntryId, status);
1132            }
1133    
1134            /**
1135            * Returns a range of all the document library file versions where fileEntryId = &#63; and status = &#63;.
1136            *
1137            * <p>
1138            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1139            * </p>
1140            *
1141            * @param fileEntryId the file entry ID
1142            * @param status the status
1143            * @param start the lower bound of the range of document library file versions
1144            * @param end the upper bound of the range of document library file versions (not inclusive)
1145            * @return the range of matching document library file versions
1146            */
1147            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
1148                    long fileEntryId, int status, int start, int end) {
1149                    return getPersistence().findByF_S(fileEntryId, status, start, end);
1150            }
1151    
1152            /**
1153            * Returns an ordered range of all the document library file versions where fileEntryId = &#63; and status = &#63;.
1154            *
1155            * <p>
1156            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1157            * </p>
1158            *
1159            * @param fileEntryId the file entry ID
1160            * @param status the status
1161            * @param start the lower bound of the range of document library file versions
1162            * @param end the upper bound of the range of document library file versions (not inclusive)
1163            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1164            * @return the ordered range of matching document library file versions
1165            */
1166            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
1167                    long fileEntryId, int status, int start, int end,
1168                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
1169                    return getPersistence()
1170                                       .findByF_S(fileEntryId, status, start, end, orderByComparator);
1171            }
1172    
1173            /**
1174            * Returns the first document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
1175            *
1176            * @param fileEntryId the file entry ID
1177            * @param status the status
1178            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1179            * @return the first matching document library file version
1180            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
1181            */
1182            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_S_First(
1183                    long fileEntryId, int status,
1184                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
1185                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1186                    return getPersistence()
1187                                       .findByF_S_First(fileEntryId, status, orderByComparator);
1188            }
1189    
1190            /**
1191            * Returns the first document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
1192            *
1193            * @param fileEntryId the file entry ID
1194            * @param status the status
1195            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1196            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
1197            */
1198            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_S_First(
1199                    long fileEntryId, int status,
1200                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
1201                    return getPersistence()
1202                                       .fetchByF_S_First(fileEntryId, status, orderByComparator);
1203            }
1204    
1205            /**
1206            * Returns the last document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
1207            *
1208            * @param fileEntryId the file entry ID
1209            * @param status the status
1210            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1211            * @return the last matching document library file version
1212            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
1213            */
1214            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_S_Last(
1215                    long fileEntryId, int status,
1216                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
1217                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1218                    return getPersistence()
1219                                       .findByF_S_Last(fileEntryId, status, orderByComparator);
1220            }
1221    
1222            /**
1223            * Returns the last document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
1224            *
1225            * @param fileEntryId the file entry ID
1226            * @param status the status
1227            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1228            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
1229            */
1230            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_S_Last(
1231                    long fileEntryId, int status,
1232                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
1233                    return getPersistence()
1234                                       .fetchByF_S_Last(fileEntryId, status, orderByComparator);
1235            }
1236    
1237            /**
1238            * Returns the document library file versions before and after the current document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
1239            *
1240            * @param fileVersionId the primary key of the current document library file version
1241            * @param fileEntryId the file entry ID
1242            * @param status the status
1243            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1244            * @return the previous, current, and next document library file version
1245            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
1246            */
1247            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByF_S_PrevAndNext(
1248                    long fileVersionId, long fileEntryId, int status,
1249                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
1250                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1251                    return getPersistence()
1252                                       .findByF_S_PrevAndNext(fileVersionId, fileEntryId, status,
1253                            orderByComparator);
1254            }
1255    
1256            /**
1257            * Removes all the document library file versions where fileEntryId = &#63; and status = &#63; from the database.
1258            *
1259            * @param fileEntryId the file entry ID
1260            * @param status the status
1261            */
1262            public static void removeByF_S(long fileEntryId, int status) {
1263                    getPersistence().removeByF_S(fileEntryId, status);
1264            }
1265    
1266            /**
1267            * Returns the number of document library file versions where fileEntryId = &#63; and status = &#63;.
1268            *
1269            * @param fileEntryId the file entry ID
1270            * @param status the status
1271            * @return the number of matching document library file versions
1272            */
1273            public static int countByF_S(long fileEntryId, int status) {
1274                    return getPersistence().countByF_S(fileEntryId, status);
1275            }
1276    
1277            /**
1278            * Returns all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
1279            *
1280            * @param groupId the group ID
1281            * @param folderId the folder ID
1282            * @param status the status
1283            * @return the matching document library file versions
1284            */
1285            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
1286                    long groupId, long folderId, int status) {
1287                    return getPersistence().findByG_F_S(groupId, folderId, status);
1288            }
1289    
1290            /**
1291            * Returns a range of all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
1292            *
1293            * <p>
1294            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1295            * </p>
1296            *
1297            * @param groupId the group ID
1298            * @param folderId the folder ID
1299            * @param status the status
1300            * @param start the lower bound of the range of document library file versions
1301            * @param end the upper bound of the range of document library file versions (not inclusive)
1302            * @return the range of matching document library file versions
1303            */
1304            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
1305                    long groupId, long folderId, int status, int start, int end) {
1306                    return getPersistence()
1307                                       .findByG_F_S(groupId, folderId, status, start, end);
1308            }
1309    
1310            /**
1311            * Returns an ordered range of all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
1312            *
1313            * <p>
1314            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1315            * </p>
1316            *
1317            * @param groupId the group ID
1318            * @param folderId the folder ID
1319            * @param status the status
1320            * @param start the lower bound of the range of document library file versions
1321            * @param end the upper bound of the range of document library file versions (not inclusive)
1322            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1323            * @return the ordered range of matching document library file versions
1324            */
1325            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
1326                    long groupId, long folderId, int status, int start, int end,
1327                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
1328                    return getPersistence()
1329                                       .findByG_F_S(groupId, folderId, status, start, end,
1330                            orderByComparator);
1331            }
1332    
1333            /**
1334            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
1335            *
1336            * @param groupId the group ID
1337            * @param folderId the folder ID
1338            * @param status the status
1339            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1340            * @return the first matching document library file version
1341            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
1342            */
1343            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_S_First(
1344                    long groupId, long folderId, int status,
1345                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
1346                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1347                    return getPersistence()
1348                                       .findByG_F_S_First(groupId, folderId, status,
1349                            orderByComparator);
1350            }
1351    
1352            /**
1353            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
1354            *
1355            * @param groupId the group ID
1356            * @param folderId the folder ID
1357            * @param status the status
1358            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1359            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
1360            */
1361            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_S_First(
1362                    long groupId, long folderId, int status,
1363                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
1364                    return getPersistence()
1365                                       .fetchByG_F_S_First(groupId, folderId, status,
1366                            orderByComparator);
1367            }
1368    
1369            /**
1370            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
1371            *
1372            * @param groupId the group ID
1373            * @param folderId the folder ID
1374            * @param status the status
1375            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1376            * @return the last matching document library file version
1377            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
1378            */
1379            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_S_Last(
1380                    long groupId, long folderId, int status,
1381                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
1382                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1383                    return getPersistence()
1384                                       .findByG_F_S_Last(groupId, folderId, status,
1385                            orderByComparator);
1386            }
1387    
1388            /**
1389            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
1390            *
1391            * @param groupId the group ID
1392            * @param folderId the folder ID
1393            * @param status the status
1394            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1395            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
1396            */
1397            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_S_Last(
1398                    long groupId, long folderId, int status,
1399                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
1400                    return getPersistence()
1401                                       .fetchByG_F_S_Last(groupId, folderId, status,
1402                            orderByComparator);
1403            }
1404    
1405            /**
1406            * Returns the document library file versions before and after the current document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
1407            *
1408            * @param fileVersionId the primary key of the current document library file version
1409            * @param groupId the group ID
1410            * @param folderId the folder ID
1411            * @param status the status
1412            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1413            * @return the previous, current, and next document library file version
1414            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
1415            */
1416            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_S_PrevAndNext(
1417                    long fileVersionId, long groupId, long folderId, int status,
1418                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
1419                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1420                    return getPersistence()
1421                                       .findByG_F_S_PrevAndNext(fileVersionId, groupId, folderId,
1422                            status, orderByComparator);
1423            }
1424    
1425            /**
1426            * Removes all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63; from the database.
1427            *
1428            * @param groupId the group ID
1429            * @param folderId the folder ID
1430            * @param status the status
1431            */
1432            public static void removeByG_F_S(long groupId, long folderId, int status) {
1433                    getPersistence().removeByG_F_S(groupId, folderId, status);
1434            }
1435    
1436            /**
1437            * Returns the number of document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
1438            *
1439            * @param groupId the group ID
1440            * @param folderId the folder ID
1441            * @param status the status
1442            * @return the number of matching document library file versions
1443            */
1444            public static int countByG_F_S(long groupId, long folderId, int status) {
1445                    return getPersistence().countByG_F_S(groupId, folderId, status);
1446            }
1447    
1448            /**
1449            * Returns all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1450            *
1451            * @param groupId the group ID
1452            * @param folderId the folder ID
1453            * @param title the title
1454            * @param version the version
1455            * @return the matching document library file versions
1456            */
1457            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_T_V(
1458                    long groupId, long folderId, java.lang.String title,
1459                    java.lang.String version) {
1460                    return getPersistence().findByG_F_T_V(groupId, folderId, title, version);
1461            }
1462    
1463            /**
1464            * Returns a range of all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1465            *
1466            * <p>
1467            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1468            * </p>
1469            *
1470            * @param groupId the group ID
1471            * @param folderId the folder ID
1472            * @param title the title
1473            * @param version the version
1474            * @param start the lower bound of the range of document library file versions
1475            * @param end the upper bound of the range of document library file versions (not inclusive)
1476            * @return the range of matching document library file versions
1477            */
1478            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_T_V(
1479                    long groupId, long folderId, java.lang.String title,
1480                    java.lang.String version, int start, int end) {
1481                    return getPersistence()
1482                                       .findByG_F_T_V(groupId, folderId, title, version, start, end);
1483            }
1484    
1485            /**
1486            * Returns an ordered range of all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1487            *
1488            * <p>
1489            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1490            * </p>
1491            *
1492            * @param groupId the group ID
1493            * @param folderId the folder ID
1494            * @param title the title
1495            * @param version the version
1496            * @param start the lower bound of the range of document library file versions
1497            * @param end the upper bound of the range of document library file versions (not inclusive)
1498            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1499            * @return the ordered range of matching document library file versions
1500            */
1501            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_T_V(
1502                    long groupId, long folderId, java.lang.String title,
1503                    java.lang.String version, int start, int end,
1504                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
1505                    return getPersistence()
1506                                       .findByG_F_T_V(groupId, folderId, title, version, start,
1507                            end, orderByComparator);
1508            }
1509    
1510            /**
1511            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1512            *
1513            * @param groupId the group ID
1514            * @param folderId the folder ID
1515            * @param title the title
1516            * @param version the version
1517            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1518            * @return the first matching document library file version
1519            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
1520            */
1521            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_T_V_First(
1522                    long groupId, long folderId, java.lang.String title,
1523                    java.lang.String version,
1524                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
1525                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1526                    return getPersistence()
1527                                       .findByG_F_T_V_First(groupId, folderId, title, version,
1528                            orderByComparator);
1529            }
1530    
1531            /**
1532            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1533            *
1534            * @param groupId the group ID
1535            * @param folderId the folder ID
1536            * @param title the title
1537            * @param version the version
1538            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1539            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
1540            */
1541            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_T_V_First(
1542                    long groupId, long folderId, java.lang.String title,
1543                    java.lang.String version,
1544                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
1545                    return getPersistence()
1546                                       .fetchByG_F_T_V_First(groupId, folderId, title, version,
1547                            orderByComparator);
1548            }
1549    
1550            /**
1551            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1552            *
1553            * @param groupId the group ID
1554            * @param folderId the folder ID
1555            * @param title the title
1556            * @param version the version
1557            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1558            * @return the last matching document library file version
1559            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
1560            */
1561            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_T_V_Last(
1562                    long groupId, long folderId, java.lang.String title,
1563                    java.lang.String version,
1564                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
1565                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1566                    return getPersistence()
1567                                       .findByG_F_T_V_Last(groupId, folderId, title, version,
1568                            orderByComparator);
1569            }
1570    
1571            /**
1572            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1573            *
1574            * @param groupId the group ID
1575            * @param folderId the folder ID
1576            * @param title the title
1577            * @param version the version
1578            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1579            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
1580            */
1581            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_T_V_Last(
1582                    long groupId, long folderId, java.lang.String title,
1583                    java.lang.String version,
1584                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
1585                    return getPersistence()
1586                                       .fetchByG_F_T_V_Last(groupId, folderId, title, version,
1587                            orderByComparator);
1588            }
1589    
1590            /**
1591            * Returns the document library file versions before and after the current document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1592            *
1593            * @param fileVersionId the primary key of the current document library file version
1594            * @param groupId the group ID
1595            * @param folderId the folder ID
1596            * @param title the title
1597            * @param version the version
1598            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1599            * @return the previous, current, and next document library file version
1600            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
1601            */
1602            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_T_V_PrevAndNext(
1603                    long fileVersionId, long groupId, long folderId,
1604                    java.lang.String title, java.lang.String version,
1605                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator)
1606                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1607                    return getPersistence()
1608                                       .findByG_F_T_V_PrevAndNext(fileVersionId, groupId, folderId,
1609                            title, version, orderByComparator);
1610            }
1611    
1612            /**
1613            * Removes all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63; from the database.
1614            *
1615            * @param groupId the group ID
1616            * @param folderId the folder ID
1617            * @param title the title
1618            * @param version the version
1619            */
1620            public static void removeByG_F_T_V(long groupId, long folderId,
1621                    java.lang.String title, java.lang.String version) {
1622                    getPersistence().removeByG_F_T_V(groupId, folderId, title, version);
1623            }
1624    
1625            /**
1626            * Returns the number of document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1627            *
1628            * @param groupId the group ID
1629            * @param folderId the folder ID
1630            * @param title the title
1631            * @param version the version
1632            * @return the number of matching document library file versions
1633            */
1634            public static int countByG_F_T_V(long groupId, long folderId,
1635                    java.lang.String title, java.lang.String version) {
1636                    return getPersistence().countByG_F_T_V(groupId, folderId, title, version);
1637            }
1638    
1639            /**
1640            * Caches the document library file version in the entity cache if it is enabled.
1641            *
1642            * @param dlFileVersion the document library file version
1643            */
1644            public static void cacheResult(
1645                    com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion) {
1646                    getPersistence().cacheResult(dlFileVersion);
1647            }
1648    
1649            /**
1650            * Caches the document library file versions in the entity cache if it is enabled.
1651            *
1652            * @param dlFileVersions the document library file versions
1653            */
1654            public static void cacheResult(
1655                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> dlFileVersions) {
1656                    getPersistence().cacheResult(dlFileVersions);
1657            }
1658    
1659            /**
1660            * Creates a new document library file version with the primary key. Does not add the document library file version to the database.
1661            *
1662            * @param fileVersionId the primary key for the new document library file version
1663            * @return the new document library file version
1664            */
1665            public static com.liferay.portlet.documentlibrary.model.DLFileVersion create(
1666                    long fileVersionId) {
1667                    return getPersistence().create(fileVersionId);
1668            }
1669    
1670            /**
1671            * Removes the document library file version with the primary key from the database. Also notifies the appropriate model listeners.
1672            *
1673            * @param fileVersionId the primary key of the document library file version
1674            * @return the document library file version that was removed
1675            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
1676            */
1677            public static com.liferay.portlet.documentlibrary.model.DLFileVersion remove(
1678                    long fileVersionId)
1679                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1680                    return getPersistence().remove(fileVersionId);
1681            }
1682    
1683            public static com.liferay.portlet.documentlibrary.model.DLFileVersion updateImpl(
1684                    com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion) {
1685                    return getPersistence().updateImpl(dlFileVersion);
1686            }
1687    
1688            /**
1689            * Returns the document library file version with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileVersionException} if it could not be found.
1690            *
1691            * @param fileVersionId the primary key of the document library file version
1692            * @return the document library file version
1693            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
1694            */
1695            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByPrimaryKey(
1696                    long fileVersionId)
1697                    throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1698                    return getPersistence().findByPrimaryKey(fileVersionId);
1699            }
1700    
1701            /**
1702            * Returns the document library file version with the primary key or returns <code>null</code> if it could not be found.
1703            *
1704            * @param fileVersionId the primary key of the document library file version
1705            * @return the document library file version, or <code>null</code> if a document library file version with the primary key could not be found
1706            */
1707            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByPrimaryKey(
1708                    long fileVersionId) {
1709                    return getPersistence().fetchByPrimaryKey(fileVersionId);
1710            }
1711    
1712            public static java.util.Map<java.io.Serializable, com.liferay.portlet.documentlibrary.model.DLFileVersion> fetchByPrimaryKeys(
1713                    java.util.Set<java.io.Serializable> primaryKeys) {
1714                    return getPersistence().fetchByPrimaryKeys(primaryKeys);
1715            }
1716    
1717            /**
1718            * Returns all the document library file versions.
1719            *
1720            * @return the document library file versions
1721            */
1722            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll() {
1723                    return getPersistence().findAll();
1724            }
1725    
1726            /**
1727            * Returns a range of all the document library file versions.
1728            *
1729            * <p>
1730            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1731            * </p>
1732            *
1733            * @param start the lower bound of the range of document library file versions
1734            * @param end the upper bound of the range of document library file versions (not inclusive)
1735            * @return the range of document library file versions
1736            */
1737            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
1738                    int start, int end) {
1739                    return getPersistence().findAll(start, end);
1740            }
1741    
1742            /**
1743            * Returns an ordered range of all the document library file versions.
1744            *
1745            * <p>
1746            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1747            * </p>
1748            *
1749            * @param start the lower bound of the range of document library file versions
1750            * @param end the upper bound of the range of document library file versions (not inclusive)
1751            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1752            * @return the ordered range of document library file versions
1753            */
1754            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
1755                    int start, int end,
1756                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileVersion> orderByComparator) {
1757                    return getPersistence().findAll(start, end, orderByComparator);
1758            }
1759    
1760            /**
1761            * Removes all the document library file versions from the database.
1762            */
1763            public static void removeAll() {
1764                    getPersistence().removeAll();
1765            }
1766    
1767            /**
1768            * Returns the number of document library file versions.
1769            *
1770            * @return the number of document library file versions
1771            */
1772            public static int countAll() {
1773                    return getPersistence().countAll();
1774            }
1775    
1776            public static DLFileVersionPersistence getPersistence() {
1777                    if (_persistence == null) {
1778                            _persistence = (DLFileVersionPersistence)PortalBeanLocatorUtil.locate(DLFileVersionPersistence.class.getName());
1779    
1780                            ReferenceRegistry.registerReference(DLFileVersionUtil.class,
1781                                    "_persistence");
1782                    }
1783    
1784                    return _persistence;
1785            }
1786    
1787            /**
1788             * @deprecated As of 6.2.0
1789             */
1790            @Deprecated
1791            public void setPersistence(DLFileVersionPersistence persistence) {
1792            }
1793    
1794            private static DLFileVersionPersistence _persistence;
1795    }