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