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 static 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 companyId = &#63;.
523            *
524            * @param companyId the company 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> findByCompanyId(
529                    long companyId)
530                    throws com.liferay.portal.kernel.exception.SystemException {
531                    return getPersistence().findByCompanyId(companyId);
532            }
533    
534            /**
535            * Returns a range of all the document library file versions where companyId = &#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 companyId the company 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> findByCompanyId(
548                    long companyId, int start, int end)
549                    throws com.liferay.portal.kernel.exception.SystemException {
550                    return getPersistence().findByCompanyId(companyId, start, end);
551            }
552    
553            /**
554            * Returns an ordered range of all the document library file versions where companyId = &#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 companyId the company 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> findByCompanyId(
568                    long companyId, int start, int end,
569                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
570                    throws com.liferay.portal.kernel.exception.SystemException {
571                    return getPersistence()
572                                       .findByCompanyId(companyId, start, end, orderByComparator);
573            }
574    
575            /**
576            * Returns the first document library file version in the ordered set where companyId = &#63;.
577            *
578            * @param companyId the company 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 findByCompanyId_First(
585                    long companyId,
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                                       .findByCompanyId_First(companyId, orderByComparator);
591            }
592    
593            /**
594            * Returns the first document library file version in the ordered set where companyId = &#63;.
595            *
596            * @param companyId the company 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 fetchByCompanyId_First(
602                    long companyId,
603                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
604                    throws com.liferay.portal.kernel.exception.SystemException {
605                    return getPersistence()
606                                       .fetchByCompanyId_First(companyId, orderByComparator);
607            }
608    
609            /**
610            * Returns the last document library file version in the ordered set where companyId = &#63;.
611            *
612            * @param companyId the company 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 findByCompanyId_Last(
619                    long companyId,
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                                       .findByCompanyId_Last(companyId, orderByComparator);
625            }
626    
627            /**
628            * Returns the last document library file version in the ordered set where companyId = &#63;.
629            *
630            * @param companyId the company 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 fetchByCompanyId_Last(
636                    long companyId,
637                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
638                    throws com.liferay.portal.kernel.exception.SystemException {
639                    return getPersistence()
640                                       .fetchByCompanyId_Last(companyId, 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 companyId = &#63;.
645            *
646            * @param fileVersionId the primary key of the current document library file version
647            * @param companyId the company 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[] findByCompanyId_PrevAndNext(
654                    long fileVersionId, long companyId,
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                                       .findByCompanyId_PrevAndNext(fileVersionId, companyId,
660                            orderByComparator);
661            }
662    
663            /**
664            * Removes all the document library file versions where companyId = &#63; from the database.
665            *
666            * @param companyId the company ID
667            * @throws SystemException if a system exception occurred
668            */
669            public static void removeByCompanyId(long companyId)
670                    throws com.liferay.portal.kernel.exception.SystemException {
671                    getPersistence().removeByCompanyId(companyId);
672            }
673    
674            /**
675            * Returns the number of document library file versions where companyId = &#63;.
676            *
677            * @param companyId the company ID
678            * @return the number of matching document library file versions
679            * @throws SystemException if a system exception occurred
680            */
681            public static int countByCompanyId(long companyId)
682                    throws com.liferay.portal.kernel.exception.SystemException {
683                    return getPersistence().countByCompanyId(companyId);
684            }
685    
686            /**
687            * Returns all the document library file versions where fileEntryId = &#63;.
688            *
689            * @param fileEntryId the file entry ID
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> findByFileEntryId(
694                    long fileEntryId)
695                    throws com.liferay.portal.kernel.exception.SystemException {
696                    return getPersistence().findByFileEntryId(fileEntryId);
697            }
698    
699            /**
700            * Returns a range of all the document library file versions where fileEntryId = &#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 fileEntryId the file entry ID
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> findByFileEntryId(
713                    long fileEntryId, int start, int end)
714                    throws com.liferay.portal.kernel.exception.SystemException {
715                    return getPersistence().findByFileEntryId(fileEntryId, start, end);
716            }
717    
718            /**
719            * Returns an ordered range of all the document library file versions where fileEntryId = &#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 fileEntryId the file entry ID
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> findByFileEntryId(
733                    long fileEntryId, int start, int end,
734                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
735                    throws com.liferay.portal.kernel.exception.SystemException {
736                    return getPersistence()
737                                       .findByFileEntryId(fileEntryId, start, end, orderByComparator);
738            }
739    
740            /**
741            * Returns the first document library file version in the ordered set where fileEntryId = &#63;.
742            *
743            * @param fileEntryId the file entry ID
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 findByFileEntryId_First(
750                    long fileEntryId,
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()
755                                       .findByFileEntryId_First(fileEntryId, orderByComparator);
756            }
757    
758            /**
759            * Returns the first document library file version in the ordered set where fileEntryId = &#63;.
760            *
761            * @param fileEntryId the file entry ID
762            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
763            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
764            * @throws SystemException if a system exception occurred
765            */
766            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByFileEntryId_First(
767                    long fileEntryId,
768                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
769                    throws com.liferay.portal.kernel.exception.SystemException {
770                    return getPersistence()
771                                       .fetchByFileEntryId_First(fileEntryId, orderByComparator);
772            }
773    
774            /**
775            * Returns the last document library file version in the ordered set where fileEntryId = &#63;.
776            *
777            * @param fileEntryId the file entry ID
778            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
779            * @return the last matching document library file version
780            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
781            * @throws SystemException if a system exception occurred
782            */
783            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByFileEntryId_Last(
784                    long fileEntryId,
785                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
786                    throws com.liferay.portal.kernel.exception.SystemException,
787                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
788                    return getPersistence()
789                                       .findByFileEntryId_Last(fileEntryId, orderByComparator);
790            }
791    
792            /**
793            * Returns the last document library file version in the ordered set where fileEntryId = &#63;.
794            *
795            * @param fileEntryId the file entry ID
796            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
797            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
798            * @throws SystemException if a system exception occurred
799            */
800            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByFileEntryId_Last(
801                    long fileEntryId,
802                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
803                    throws com.liferay.portal.kernel.exception.SystemException {
804                    return getPersistence()
805                                       .fetchByFileEntryId_Last(fileEntryId, orderByComparator);
806            }
807    
808            /**
809            * Returns the document library file versions before and after the current document library file version in the ordered set where fileEntryId = &#63;.
810            *
811            * @param fileVersionId the primary key of the current document library file version
812            * @param fileEntryId the file entry ID
813            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
814            * @return the previous, current, and next document library file version
815            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
816            * @throws SystemException if a system exception occurred
817            */
818            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByFileEntryId_PrevAndNext(
819                    long fileVersionId, long fileEntryId,
820                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
821                    throws com.liferay.portal.kernel.exception.SystemException,
822                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
823                    return getPersistence()
824                                       .findByFileEntryId_PrevAndNext(fileVersionId, fileEntryId,
825                            orderByComparator);
826            }
827    
828            /**
829            * Removes all the document library file versions where fileEntryId = &#63; from the database.
830            *
831            * @param fileEntryId the file entry ID
832            * @throws SystemException if a system exception occurred
833            */
834            public static void removeByFileEntryId(long fileEntryId)
835                    throws com.liferay.portal.kernel.exception.SystemException {
836                    getPersistence().removeByFileEntryId(fileEntryId);
837            }
838    
839            /**
840            * Returns the number of document library file versions where fileEntryId = &#63;.
841            *
842            * @param fileEntryId the file entry ID
843            * @return the number of matching document library file versions
844            * @throws SystemException if a system exception occurred
845            */
846            public static int countByFileEntryId(long fileEntryId)
847                    throws com.liferay.portal.kernel.exception.SystemException {
848                    return getPersistence().countByFileEntryId(fileEntryId);
849            }
850    
851            /**
852            * Returns all the document library file versions where mimeType = &#63;.
853            *
854            * @param mimeType the mime type
855            * @return the matching document library file versions
856            * @throws SystemException if a system exception occurred
857            */
858            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByMimeType(
859                    java.lang.String mimeType)
860                    throws com.liferay.portal.kernel.exception.SystemException {
861                    return getPersistence().findByMimeType(mimeType);
862            }
863    
864            /**
865            * Returns a range of all the document library file versions where mimeType = &#63;.
866            *
867            * <p>
868            * 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.
869            * </p>
870            *
871            * @param mimeType the mime type
872            * @param start the lower bound of the range of document library file versions
873            * @param end the upper bound of the range of document library file versions (not inclusive)
874            * @return the range of matching document library file versions
875            * @throws SystemException if a system exception occurred
876            */
877            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByMimeType(
878                    java.lang.String mimeType, int start, int end)
879                    throws com.liferay.portal.kernel.exception.SystemException {
880                    return getPersistence().findByMimeType(mimeType, start, end);
881            }
882    
883            /**
884            * Returns an ordered range of all the document library file versions where mimeType = &#63;.
885            *
886            * <p>
887            * 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.
888            * </p>
889            *
890            * @param mimeType the mime type
891            * @param start the lower bound of the range of document library file versions
892            * @param end the upper bound of the range of document library file versions (not inclusive)
893            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
894            * @return the ordered range of matching document library file versions
895            * @throws SystemException if a system exception occurred
896            */
897            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByMimeType(
898                    java.lang.String mimeType, int start, int end,
899                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
900                    throws com.liferay.portal.kernel.exception.SystemException {
901                    return getPersistence()
902                                       .findByMimeType(mimeType, start, end, orderByComparator);
903            }
904    
905            /**
906            * Returns the first document library file version in the ordered set where mimeType = &#63;.
907            *
908            * @param mimeType the mime type
909            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
910            * @return the first matching document library file version
911            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
912            * @throws SystemException if a system exception occurred
913            */
914            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByMimeType_First(
915                    java.lang.String mimeType,
916                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
917                    throws com.liferay.portal.kernel.exception.SystemException,
918                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
919                    return getPersistence().findByMimeType_First(mimeType, orderByComparator);
920            }
921    
922            /**
923            * Returns the first document library file version in the ordered set where mimeType = &#63;.
924            *
925            * @param mimeType the mime type
926            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
927            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
928            * @throws SystemException if a system exception occurred
929            */
930            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByMimeType_First(
931                    java.lang.String mimeType,
932                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
933                    throws com.liferay.portal.kernel.exception.SystemException {
934                    return getPersistence()
935                                       .fetchByMimeType_First(mimeType, orderByComparator);
936            }
937    
938            /**
939            * Returns the last document library file version in the ordered set where mimeType = &#63;.
940            *
941            * @param mimeType the mime type
942            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
943            * @return the last matching document library file version
944            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
945            * @throws SystemException if a system exception occurred
946            */
947            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByMimeType_Last(
948                    java.lang.String mimeType,
949                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
950                    throws com.liferay.portal.kernel.exception.SystemException,
951                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
952                    return getPersistence().findByMimeType_Last(mimeType, orderByComparator);
953            }
954    
955            /**
956            * Returns the last document library file version in the ordered set where mimeType = &#63;.
957            *
958            * @param mimeType the mime type
959            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
960            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
961            * @throws SystemException if a system exception occurred
962            */
963            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByMimeType_Last(
964                    java.lang.String mimeType,
965                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
966                    throws com.liferay.portal.kernel.exception.SystemException {
967                    return getPersistence().fetchByMimeType_Last(mimeType, orderByComparator);
968            }
969    
970            /**
971            * Returns the document library file versions before and after the current document library file version in the ordered set where mimeType = &#63;.
972            *
973            * @param fileVersionId the primary key of the current document library file version
974            * @param mimeType the mime type
975            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
976            * @return the previous, current, and next document library file version
977            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
978            * @throws SystemException if a system exception occurred
979            */
980            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByMimeType_PrevAndNext(
981                    long fileVersionId, java.lang.String mimeType,
982                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
983                    throws com.liferay.portal.kernel.exception.SystemException,
984                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
985                    return getPersistence()
986                                       .findByMimeType_PrevAndNext(fileVersionId, mimeType,
987                            orderByComparator);
988            }
989    
990            /**
991            * Removes all the document library file versions where mimeType = &#63; from the database.
992            *
993            * @param mimeType the mime type
994            * @throws SystemException if a system exception occurred
995            */
996            public static void removeByMimeType(java.lang.String mimeType)
997                    throws com.liferay.portal.kernel.exception.SystemException {
998                    getPersistence().removeByMimeType(mimeType);
999            }
1000    
1001            /**
1002            * Returns the number of document library file versions where mimeType = &#63;.
1003            *
1004            * @param mimeType the mime type
1005            * @return the number of matching document library file versions
1006            * @throws SystemException if a system exception occurred
1007            */
1008            public static int countByMimeType(java.lang.String mimeType)
1009                    throws com.liferay.portal.kernel.exception.SystemException {
1010                    return getPersistence().countByMimeType(mimeType);
1011            }
1012    
1013            /**
1014            * Returns all the document library file versions where companyId = &#63; and status &ne; &#63;.
1015            *
1016            * @param companyId the company ID
1017            * @param status the status
1018            * @return the matching document library file versions
1019            * @throws SystemException if a system exception occurred
1020            */
1021            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByC_NotS(
1022                    long companyId, int status)
1023                    throws com.liferay.portal.kernel.exception.SystemException {
1024                    return getPersistence().findByC_NotS(companyId, status);
1025            }
1026    
1027            /**
1028            * Returns a range of all the document library file versions where companyId = &#63; and status &ne; &#63;.
1029            *
1030            * <p>
1031            * 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.
1032            * </p>
1033            *
1034            * @param companyId the company ID
1035            * @param status the status
1036            * @param start the lower bound of the range of document library file versions
1037            * @param end the upper bound of the range of document library file versions (not inclusive)
1038            * @return the range of matching document library file versions
1039            * @throws SystemException if a system exception occurred
1040            */
1041            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByC_NotS(
1042                    long companyId, int status, int start, int end)
1043                    throws com.liferay.portal.kernel.exception.SystemException {
1044                    return getPersistence().findByC_NotS(companyId, status, start, end);
1045            }
1046    
1047            /**
1048            * Returns an ordered range of all the document library file versions where companyId = &#63; and status &ne; &#63;.
1049            *
1050            * <p>
1051            * 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.
1052            * </p>
1053            *
1054            * @param companyId the company ID
1055            * @param status the status
1056            * @param start the lower bound of the range of document library file versions
1057            * @param end the upper bound of the range of document library file versions (not inclusive)
1058            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1059            * @return the ordered range of matching document library file versions
1060            * @throws SystemException if a system exception occurred
1061            */
1062            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByC_NotS(
1063                    long companyId, int status, int start, int end,
1064                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1065                    throws com.liferay.portal.kernel.exception.SystemException {
1066                    return getPersistence()
1067                                       .findByC_NotS(companyId, status, start, end,
1068                            orderByComparator);
1069            }
1070    
1071            /**
1072            * Returns the first document library file version in the ordered set where companyId = &#63; and status &ne; &#63;.
1073            *
1074            * @param companyId the company ID
1075            * @param status the status
1076            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1077            * @return the first matching document library file version
1078            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
1079            * @throws SystemException if a system exception occurred
1080            */
1081            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByC_NotS_First(
1082                    long companyId, int status,
1083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1084                    throws com.liferay.portal.kernel.exception.SystemException,
1085                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1086                    return getPersistence()
1087                                       .findByC_NotS_First(companyId, status, orderByComparator);
1088            }
1089    
1090            /**
1091            * Returns the first document library file version in the ordered set where companyId = &#63; and status &ne; &#63;.
1092            *
1093            * @param companyId the company ID
1094            * @param status the status
1095            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1096            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
1097            * @throws SystemException if a system exception occurred
1098            */
1099            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByC_NotS_First(
1100                    long companyId, int status,
1101                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1102                    throws com.liferay.portal.kernel.exception.SystemException {
1103                    return getPersistence()
1104                                       .fetchByC_NotS_First(companyId, status, orderByComparator);
1105            }
1106    
1107            /**
1108            * Returns the last document library file version in the ordered set where companyId = &#63; and status &ne; &#63;.
1109            *
1110            * @param companyId the company ID
1111            * @param status the status
1112            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1113            * @return the last matching document library file version
1114            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
1115            * @throws SystemException if a system exception occurred
1116            */
1117            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByC_NotS_Last(
1118                    long companyId, int status,
1119                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1120                    throws com.liferay.portal.kernel.exception.SystemException,
1121                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1122                    return getPersistence()
1123                                       .findByC_NotS_Last(companyId, status, orderByComparator);
1124            }
1125    
1126            /**
1127            * Returns the last document library file version in the ordered set where companyId = &#63; and status &ne; &#63;.
1128            *
1129            * @param companyId the company ID
1130            * @param status the status
1131            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1132            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
1133            * @throws SystemException if a system exception occurred
1134            */
1135            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByC_NotS_Last(
1136                    long companyId, int status,
1137                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1138                    throws com.liferay.portal.kernel.exception.SystemException {
1139                    return getPersistence()
1140                                       .fetchByC_NotS_Last(companyId, status, orderByComparator);
1141            }
1142    
1143            /**
1144            * Returns the document library file versions before and after the current document library file version in the ordered set where companyId = &#63; and status &ne; &#63;.
1145            *
1146            * @param fileVersionId the primary key of the current document library file version
1147            * @param companyId the company ID
1148            * @param status the status
1149            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1150            * @return the previous, current, and next document library file version
1151            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
1152            * @throws SystemException if a system exception occurred
1153            */
1154            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByC_NotS_PrevAndNext(
1155                    long fileVersionId, long companyId, int status,
1156                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1157                    throws com.liferay.portal.kernel.exception.SystemException,
1158                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1159                    return getPersistence()
1160                                       .findByC_NotS_PrevAndNext(fileVersionId, companyId, status,
1161                            orderByComparator);
1162            }
1163    
1164            /**
1165            * Removes all the document library file versions where companyId = &#63; and status &ne; &#63; from the database.
1166            *
1167            * @param companyId the company ID
1168            * @param status the status
1169            * @throws SystemException if a system exception occurred
1170            */
1171            public static void removeByC_NotS(long companyId, int status)
1172                    throws com.liferay.portal.kernel.exception.SystemException {
1173                    getPersistence().removeByC_NotS(companyId, status);
1174            }
1175    
1176            /**
1177            * Returns the number of document library file versions where companyId = &#63; and status &ne; &#63;.
1178            *
1179            * @param companyId the company ID
1180            * @param status the status
1181            * @return the number of matching document library file versions
1182            * @throws SystemException if a system exception occurred
1183            */
1184            public static int countByC_NotS(long companyId, int status)
1185                    throws com.liferay.portal.kernel.exception.SystemException {
1186                    return getPersistence().countByC_NotS(companyId, status);
1187            }
1188    
1189            /**
1190            * 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.
1191            *
1192            * @param fileEntryId the file entry ID
1193            * @param version the version
1194            * @return the matching document library file version
1195            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
1196            * @throws SystemException if a system exception occurred
1197            */
1198            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_V(
1199                    long fileEntryId, java.lang.String version)
1200                    throws com.liferay.portal.kernel.exception.SystemException,
1201                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1202                    return getPersistence().findByF_V(fileEntryId, version);
1203            }
1204    
1205            /**
1206            * 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.
1207            *
1208            * @param fileEntryId the file entry ID
1209            * @param version the version
1210            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
1211            * @throws SystemException if a system exception occurred
1212            */
1213            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_V(
1214                    long fileEntryId, java.lang.String version)
1215                    throws com.liferay.portal.kernel.exception.SystemException {
1216                    return getPersistence().fetchByF_V(fileEntryId, version);
1217            }
1218    
1219            /**
1220            * 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.
1221            *
1222            * @param fileEntryId the file entry ID
1223            * @param version the version
1224            * @param retrieveFromCache whether to use the finder cache
1225            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
1226            * @throws SystemException if a system exception occurred
1227            */
1228            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_V(
1229                    long fileEntryId, java.lang.String version, boolean retrieveFromCache)
1230                    throws com.liferay.portal.kernel.exception.SystemException {
1231                    return getPersistence()
1232                                       .fetchByF_V(fileEntryId, version, retrieveFromCache);
1233            }
1234    
1235            /**
1236            * Removes the document library file version where fileEntryId = &#63; and version = &#63; from the database.
1237            *
1238            * @param fileEntryId the file entry ID
1239            * @param version the version
1240            * @return the document library file version that was removed
1241            * @throws SystemException if a system exception occurred
1242            */
1243            public static com.liferay.portlet.documentlibrary.model.DLFileVersion removeByF_V(
1244                    long fileEntryId, java.lang.String version)
1245                    throws com.liferay.portal.kernel.exception.SystemException,
1246                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1247                    return getPersistence().removeByF_V(fileEntryId, version);
1248            }
1249    
1250            /**
1251            * Returns the number of document library file versions where fileEntryId = &#63; and version = &#63;.
1252            *
1253            * @param fileEntryId the file entry ID
1254            * @param version the version
1255            * @return the number of matching document library file versions
1256            * @throws SystemException if a system exception occurred
1257            */
1258            public static int countByF_V(long fileEntryId, java.lang.String version)
1259                    throws com.liferay.portal.kernel.exception.SystemException {
1260                    return getPersistence().countByF_V(fileEntryId, version);
1261            }
1262    
1263            /**
1264            * Returns all the document library file versions where fileEntryId = &#63; and status = &#63;.
1265            *
1266            * @param fileEntryId the file entry ID
1267            * @param status the status
1268            * @return the matching document library file versions
1269            * @throws SystemException if a system exception occurred
1270            */
1271            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
1272                    long fileEntryId, int status)
1273                    throws com.liferay.portal.kernel.exception.SystemException {
1274                    return getPersistence().findByF_S(fileEntryId, status);
1275            }
1276    
1277            /**
1278            * Returns a range of all the document library file versions where fileEntryId = &#63; and status = &#63;.
1279            *
1280            * <p>
1281            * 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.
1282            * </p>
1283            *
1284            * @param fileEntryId the file entry ID
1285            * @param status the status
1286            * @param start the lower bound of the range of document library file versions
1287            * @param end the upper bound of the range of document library file versions (not inclusive)
1288            * @return the range of matching document library file versions
1289            * @throws SystemException if a system exception occurred
1290            */
1291            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
1292                    long fileEntryId, int status, int start, int end)
1293                    throws com.liferay.portal.kernel.exception.SystemException {
1294                    return getPersistence().findByF_S(fileEntryId, status, start, end);
1295            }
1296    
1297            /**
1298            * Returns an ordered range of all the document library file versions where fileEntryId = &#63; and status = &#63;.
1299            *
1300            * <p>
1301            * 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.
1302            * </p>
1303            *
1304            * @param fileEntryId the file entry ID
1305            * @param status the status
1306            * @param start the lower bound of the range of document library file versions
1307            * @param end the upper bound of the range of document library file versions (not inclusive)
1308            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1309            * @return the ordered range of matching document library file versions
1310            * @throws SystemException if a system exception occurred
1311            */
1312            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
1313                    long fileEntryId, int status, int start, int end,
1314                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1315                    throws com.liferay.portal.kernel.exception.SystemException {
1316                    return getPersistence()
1317                                       .findByF_S(fileEntryId, status, start, end, orderByComparator);
1318            }
1319    
1320            /**
1321            * Returns the first document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
1322            *
1323            * @param fileEntryId the file entry ID
1324            * @param status the status
1325            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1326            * @return the first matching document library file version
1327            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
1328            * @throws SystemException if a system exception occurred
1329            */
1330            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_S_First(
1331                    long fileEntryId, int status,
1332                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1333                    throws com.liferay.portal.kernel.exception.SystemException,
1334                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1335                    return getPersistence()
1336                                       .findByF_S_First(fileEntryId, status, orderByComparator);
1337            }
1338    
1339            /**
1340            * Returns the first document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
1341            *
1342            * @param fileEntryId the file entry ID
1343            * @param status the status
1344            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1345            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
1346            * @throws SystemException if a system exception occurred
1347            */
1348            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_S_First(
1349                    long fileEntryId, int status,
1350                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1351                    throws com.liferay.portal.kernel.exception.SystemException {
1352                    return getPersistence()
1353                                       .fetchByF_S_First(fileEntryId, status, orderByComparator);
1354            }
1355    
1356            /**
1357            * Returns the last document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
1358            *
1359            * @param fileEntryId the file entry ID
1360            * @param status the status
1361            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1362            * @return the last matching document library file version
1363            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
1364            * @throws SystemException if a system exception occurred
1365            */
1366            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_S_Last(
1367                    long fileEntryId, int status,
1368                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1369                    throws com.liferay.portal.kernel.exception.SystemException,
1370                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1371                    return getPersistence()
1372                                       .findByF_S_Last(fileEntryId, status, orderByComparator);
1373            }
1374    
1375            /**
1376            * Returns the last document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
1377            *
1378            * @param fileEntryId the file entry ID
1379            * @param status the status
1380            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1381            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
1382            * @throws SystemException if a system exception occurred
1383            */
1384            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_S_Last(
1385                    long fileEntryId, int status,
1386                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1387                    throws com.liferay.portal.kernel.exception.SystemException {
1388                    return getPersistence()
1389                                       .fetchByF_S_Last(fileEntryId, status, orderByComparator);
1390            }
1391    
1392            /**
1393            * 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;.
1394            *
1395            * @param fileVersionId the primary key of the current document library file version
1396            * @param fileEntryId the file entry ID
1397            * @param status the status
1398            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1399            * @return the previous, current, and next document library file version
1400            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
1401            * @throws SystemException if a system exception occurred
1402            */
1403            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByF_S_PrevAndNext(
1404                    long fileVersionId, long fileEntryId, int status,
1405                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1406                    throws com.liferay.portal.kernel.exception.SystemException,
1407                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1408                    return getPersistence()
1409                                       .findByF_S_PrevAndNext(fileVersionId, fileEntryId, status,
1410                            orderByComparator);
1411            }
1412    
1413            /**
1414            * Removes all the document library file versions where fileEntryId = &#63; and status = &#63; from the database.
1415            *
1416            * @param fileEntryId the file entry ID
1417            * @param status the status
1418            * @throws SystemException if a system exception occurred
1419            */
1420            public static void removeByF_S(long fileEntryId, int status)
1421                    throws com.liferay.portal.kernel.exception.SystemException {
1422                    getPersistence().removeByF_S(fileEntryId, status);
1423            }
1424    
1425            /**
1426            * Returns the number of document library file versions where fileEntryId = &#63; and status = &#63;.
1427            *
1428            * @param fileEntryId the file entry ID
1429            * @param status the status
1430            * @return the number of matching document library file versions
1431            * @throws SystemException if a system exception occurred
1432            */
1433            public static int countByF_S(long fileEntryId, int status)
1434                    throws com.liferay.portal.kernel.exception.SystemException {
1435                    return getPersistence().countByF_S(fileEntryId, status);
1436            }
1437    
1438            /**
1439            * Returns all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
1440            *
1441            * @param groupId the group ID
1442            * @param folderId the folder ID
1443            * @param status the status
1444            * @return the matching document library file versions
1445            * @throws SystemException if a system exception occurred
1446            */
1447            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
1448                    long groupId, long folderId, int status)
1449                    throws com.liferay.portal.kernel.exception.SystemException {
1450                    return getPersistence().findByG_F_S(groupId, folderId, status);
1451            }
1452    
1453            /**
1454            * Returns a range of all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
1455            *
1456            * <p>
1457            * 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.
1458            * </p>
1459            *
1460            * @param groupId the group ID
1461            * @param folderId the folder ID
1462            * @param status the status
1463            * @param start the lower bound of the range of document library file versions
1464            * @param end the upper bound of the range of document library file versions (not inclusive)
1465            * @return the range of matching document library file versions
1466            * @throws SystemException if a system exception occurred
1467            */
1468            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
1469                    long groupId, long folderId, int status, int start, int end)
1470                    throws com.liferay.portal.kernel.exception.SystemException {
1471                    return getPersistence()
1472                                       .findByG_F_S(groupId, folderId, status, start, end);
1473            }
1474    
1475            /**
1476            * Returns an ordered range of all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
1477            *
1478            * <p>
1479            * 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.
1480            * </p>
1481            *
1482            * @param groupId the group ID
1483            * @param folderId the folder ID
1484            * @param status the status
1485            * @param start the lower bound of the range of document library file versions
1486            * @param end the upper bound of the range of document library file versions (not inclusive)
1487            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1488            * @return the ordered range of matching document library file versions
1489            * @throws SystemException if a system exception occurred
1490            */
1491            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
1492                    long groupId, long folderId, int status, int start, int end,
1493                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1494                    throws com.liferay.portal.kernel.exception.SystemException {
1495                    return getPersistence()
1496                                       .findByG_F_S(groupId, folderId, status, start, end,
1497                            orderByComparator);
1498            }
1499    
1500            /**
1501            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
1502            *
1503            * @param groupId the group ID
1504            * @param folderId the folder ID
1505            * @param status the status
1506            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1507            * @return the first matching document library file version
1508            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
1509            * @throws SystemException if a system exception occurred
1510            */
1511            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_S_First(
1512                    long groupId, long folderId, int status,
1513                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1514                    throws com.liferay.portal.kernel.exception.SystemException,
1515                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1516                    return getPersistence()
1517                                       .findByG_F_S_First(groupId, folderId, status,
1518                            orderByComparator);
1519            }
1520    
1521            /**
1522            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
1523            *
1524            * @param groupId the group ID
1525            * @param folderId the folder ID
1526            * @param status the status
1527            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1528            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
1529            * @throws SystemException if a system exception occurred
1530            */
1531            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_S_First(
1532                    long groupId, long folderId, int status,
1533                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1534                    throws com.liferay.portal.kernel.exception.SystemException {
1535                    return getPersistence()
1536                                       .fetchByG_F_S_First(groupId, folderId, status,
1537                            orderByComparator);
1538            }
1539    
1540            /**
1541            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
1542            *
1543            * @param groupId the group ID
1544            * @param folderId the folder ID
1545            * @param status the status
1546            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1547            * @return the last matching document library file version
1548            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
1549            * @throws SystemException if a system exception occurred
1550            */
1551            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_S_Last(
1552                    long groupId, long folderId, int status,
1553                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1554                    throws com.liferay.portal.kernel.exception.SystemException,
1555                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1556                    return getPersistence()
1557                                       .findByG_F_S_Last(groupId, folderId, status,
1558                            orderByComparator);
1559            }
1560    
1561            /**
1562            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
1563            *
1564            * @param groupId the group ID
1565            * @param folderId the folder ID
1566            * @param status the status
1567            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1568            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
1569            * @throws SystemException if a system exception occurred
1570            */
1571            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_S_Last(
1572                    long groupId, long folderId, int status,
1573                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1574                    throws com.liferay.portal.kernel.exception.SystemException {
1575                    return getPersistence()
1576                                       .fetchByG_F_S_Last(groupId, folderId, status,
1577                            orderByComparator);
1578            }
1579    
1580            /**
1581            * 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;.
1582            *
1583            * @param fileVersionId the primary key of the current document library file version
1584            * @param groupId the group ID
1585            * @param folderId the folder ID
1586            * @param status the status
1587            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1588            * @return the previous, current, and next document library file version
1589            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
1590            * @throws SystemException if a system exception occurred
1591            */
1592            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_S_PrevAndNext(
1593                    long fileVersionId, long groupId, long folderId, int status,
1594                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1595                    throws com.liferay.portal.kernel.exception.SystemException,
1596                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1597                    return getPersistence()
1598                                       .findByG_F_S_PrevAndNext(fileVersionId, groupId, folderId,
1599                            status, orderByComparator);
1600            }
1601    
1602            /**
1603            * Removes all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63; from the database.
1604            *
1605            * @param groupId the group ID
1606            * @param folderId the folder ID
1607            * @param status the status
1608            * @throws SystemException if a system exception occurred
1609            */
1610            public static void removeByG_F_S(long groupId, long folderId, int status)
1611                    throws com.liferay.portal.kernel.exception.SystemException {
1612                    getPersistence().removeByG_F_S(groupId, folderId, status);
1613            }
1614    
1615            /**
1616            * Returns the number of document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
1617            *
1618            * @param groupId the group ID
1619            * @param folderId the folder ID
1620            * @param status the status
1621            * @return the number of matching document library file versions
1622            * @throws SystemException if a system exception occurred
1623            */
1624            public static int countByG_F_S(long groupId, long folderId, int status)
1625                    throws com.liferay.portal.kernel.exception.SystemException {
1626                    return getPersistence().countByG_F_S(groupId, folderId, status);
1627            }
1628    
1629            /**
1630            * Returns all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1631            *
1632            * @param groupId the group ID
1633            * @param folderId the folder ID
1634            * @param title the title
1635            * @param version the version
1636            * @return the matching document library file versions
1637            * @throws SystemException if a system exception occurred
1638            */
1639            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_T_V(
1640                    long groupId, long folderId, java.lang.String title,
1641                    java.lang.String version)
1642                    throws com.liferay.portal.kernel.exception.SystemException {
1643                    return getPersistence().findByG_F_T_V(groupId, folderId, title, version);
1644            }
1645    
1646            /**
1647            * Returns a range of all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1648            *
1649            * <p>
1650            * 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.
1651            * </p>
1652            *
1653            * @param groupId the group ID
1654            * @param folderId the folder ID
1655            * @param title the title
1656            * @param version the version
1657            * @param start the lower bound of the range of document library file versions
1658            * @param end the upper bound of the range of document library file versions (not inclusive)
1659            * @return the range of matching document library file versions
1660            * @throws SystemException if a system exception occurred
1661            */
1662            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_T_V(
1663                    long groupId, long folderId, java.lang.String title,
1664                    java.lang.String version, int start, int end)
1665                    throws com.liferay.portal.kernel.exception.SystemException {
1666                    return getPersistence()
1667                                       .findByG_F_T_V(groupId, folderId, title, version, start, end);
1668            }
1669    
1670            /**
1671            * Returns an ordered range of all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1672            *
1673            * <p>
1674            * 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.
1675            * </p>
1676            *
1677            * @param groupId the group ID
1678            * @param folderId the folder ID
1679            * @param title the title
1680            * @param version the version
1681            * @param start the lower bound of the range of document library file versions
1682            * @param end the upper bound of the range of document library file versions (not inclusive)
1683            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1684            * @return the ordered range of matching document library file versions
1685            * @throws SystemException if a system exception occurred
1686            */
1687            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_T_V(
1688                    long groupId, long folderId, java.lang.String title,
1689                    java.lang.String version, int start, int end,
1690                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1691                    throws com.liferay.portal.kernel.exception.SystemException {
1692                    return getPersistence()
1693                                       .findByG_F_T_V(groupId, folderId, title, version, start,
1694                            end, orderByComparator);
1695            }
1696    
1697            /**
1698            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1699            *
1700            * @param groupId the group ID
1701            * @param folderId the folder ID
1702            * @param title the title
1703            * @param version the version
1704            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1705            * @return the first matching document library file version
1706            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
1707            * @throws SystemException if a system exception occurred
1708            */
1709            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_T_V_First(
1710                    long groupId, long folderId, java.lang.String title,
1711                    java.lang.String version,
1712                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1713                    throws com.liferay.portal.kernel.exception.SystemException,
1714                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1715                    return getPersistence()
1716                                       .findByG_F_T_V_First(groupId, folderId, title, version,
1717                            orderByComparator);
1718            }
1719    
1720            /**
1721            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1722            *
1723            * @param groupId the group ID
1724            * @param folderId the folder ID
1725            * @param title the title
1726            * @param version the version
1727            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1728            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
1729            * @throws SystemException if a system exception occurred
1730            */
1731            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_T_V_First(
1732                    long groupId, long folderId, java.lang.String title,
1733                    java.lang.String version,
1734                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1735                    throws com.liferay.portal.kernel.exception.SystemException {
1736                    return getPersistence()
1737                                       .fetchByG_F_T_V_First(groupId, folderId, title, version,
1738                            orderByComparator);
1739            }
1740    
1741            /**
1742            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1743            *
1744            * @param groupId the group ID
1745            * @param folderId the folder ID
1746            * @param title the title
1747            * @param version the version
1748            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1749            * @return the last matching document library file version
1750            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
1751            * @throws SystemException if a system exception occurred
1752            */
1753            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_T_V_Last(
1754                    long groupId, long folderId, java.lang.String title,
1755                    java.lang.String version,
1756                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1757                    throws com.liferay.portal.kernel.exception.SystemException,
1758                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1759                    return getPersistence()
1760                                       .findByG_F_T_V_Last(groupId, folderId, title, version,
1761                            orderByComparator);
1762            }
1763    
1764            /**
1765            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1766            *
1767            * @param groupId the group ID
1768            * @param folderId the folder ID
1769            * @param title the title
1770            * @param version the version
1771            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1772            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
1773            * @throws SystemException if a system exception occurred
1774            */
1775            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_T_V_Last(
1776                    long groupId, long folderId, java.lang.String title,
1777                    java.lang.String version,
1778                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1779                    throws com.liferay.portal.kernel.exception.SystemException {
1780                    return getPersistence()
1781                                       .fetchByG_F_T_V_Last(groupId, folderId, title, version,
1782                            orderByComparator);
1783            }
1784    
1785            /**
1786            * 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;.
1787            *
1788            * @param fileVersionId the primary key of the current document library file version
1789            * @param groupId the group ID
1790            * @param folderId the folder ID
1791            * @param title the title
1792            * @param version the version
1793            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1794            * @return the previous, current, and next document library file version
1795            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
1796            * @throws SystemException if a system exception occurred
1797            */
1798            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_T_V_PrevAndNext(
1799                    long fileVersionId, long groupId, long folderId,
1800                    java.lang.String title, java.lang.String version,
1801                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1802                    throws com.liferay.portal.kernel.exception.SystemException,
1803                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1804                    return getPersistence()
1805                                       .findByG_F_T_V_PrevAndNext(fileVersionId, groupId, folderId,
1806                            title, version, orderByComparator);
1807            }
1808    
1809            /**
1810            * Removes all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63; from the database.
1811            *
1812            * @param groupId the group ID
1813            * @param folderId the folder ID
1814            * @param title the title
1815            * @param version the version
1816            * @throws SystemException if a system exception occurred
1817            */
1818            public static void removeByG_F_T_V(long groupId, long folderId,
1819                    java.lang.String title, java.lang.String version)
1820                    throws com.liferay.portal.kernel.exception.SystemException {
1821                    getPersistence().removeByG_F_T_V(groupId, folderId, title, version);
1822            }
1823    
1824            /**
1825            * Returns the number of document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1826            *
1827            * @param groupId the group ID
1828            * @param folderId the folder ID
1829            * @param title the title
1830            * @param version the version
1831            * @return the number of matching document library file versions
1832            * @throws SystemException if a system exception occurred
1833            */
1834            public static int countByG_F_T_V(long groupId, long folderId,
1835                    java.lang.String title, java.lang.String version)
1836                    throws com.liferay.portal.kernel.exception.SystemException {
1837                    return getPersistence().countByG_F_T_V(groupId, folderId, title, version);
1838            }
1839    
1840            /**
1841            * Caches the document library file version in the entity cache if it is enabled.
1842            *
1843            * @param dlFileVersion the document library file version
1844            */
1845            public static void cacheResult(
1846                    com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion) {
1847                    getPersistence().cacheResult(dlFileVersion);
1848            }
1849    
1850            /**
1851            * Caches the document library file versions in the entity cache if it is enabled.
1852            *
1853            * @param dlFileVersions the document library file versions
1854            */
1855            public static void cacheResult(
1856                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> dlFileVersions) {
1857                    getPersistence().cacheResult(dlFileVersions);
1858            }
1859    
1860            /**
1861            * Creates a new document library file version with the primary key. Does not add the document library file version to the database.
1862            *
1863            * @param fileVersionId the primary key for the new document library file version
1864            * @return the new document library file version
1865            */
1866            public static com.liferay.portlet.documentlibrary.model.DLFileVersion create(
1867                    long fileVersionId) {
1868                    return getPersistence().create(fileVersionId);
1869            }
1870    
1871            /**
1872            * Removes the document library file version with the primary key from the database. Also notifies the appropriate model listeners.
1873            *
1874            * @param fileVersionId the primary key of the document library file version
1875            * @return the document library file version that was removed
1876            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
1877            * @throws SystemException if a system exception occurred
1878            */
1879            public static com.liferay.portlet.documentlibrary.model.DLFileVersion remove(
1880                    long fileVersionId)
1881                    throws com.liferay.portal.kernel.exception.SystemException,
1882                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1883                    return getPersistence().remove(fileVersionId);
1884            }
1885    
1886            public static com.liferay.portlet.documentlibrary.model.DLFileVersion updateImpl(
1887                    com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion)
1888                    throws com.liferay.portal.kernel.exception.SystemException {
1889                    return getPersistence().updateImpl(dlFileVersion);
1890            }
1891    
1892            /**
1893            * 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.
1894            *
1895            * @param fileVersionId the primary key of the document library file version
1896            * @return the document library file version
1897            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
1898            * @throws SystemException if a system exception occurred
1899            */
1900            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByPrimaryKey(
1901                    long fileVersionId)
1902                    throws com.liferay.portal.kernel.exception.SystemException,
1903                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1904                    return getPersistence().findByPrimaryKey(fileVersionId);
1905            }
1906    
1907            /**
1908            * Returns the document library file version with the primary key or returns <code>null</code> if it could not be found.
1909            *
1910            * @param fileVersionId the primary key of the document library file version
1911            * @return the document library file version, or <code>null</code> if a document library file version with the primary key could not be found
1912            * @throws SystemException if a system exception occurred
1913            */
1914            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByPrimaryKey(
1915                    long fileVersionId)
1916                    throws com.liferay.portal.kernel.exception.SystemException {
1917                    return getPersistence().fetchByPrimaryKey(fileVersionId);
1918            }
1919    
1920            /**
1921            * Returns all the document library file versions.
1922            *
1923            * @return the document library file versions
1924            * @throws SystemException if a system exception occurred
1925            */
1926            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll()
1927                    throws com.liferay.portal.kernel.exception.SystemException {
1928                    return getPersistence().findAll();
1929            }
1930    
1931            /**
1932            * Returns a range of all the document library file versions.
1933            *
1934            * <p>
1935            * 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.
1936            * </p>
1937            *
1938            * @param start the lower bound of the range of document library file versions
1939            * @param end the upper bound of the range of document library file versions (not inclusive)
1940            * @return the range of document library file versions
1941            * @throws SystemException if a system exception occurred
1942            */
1943            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
1944                    int start, int end)
1945                    throws com.liferay.portal.kernel.exception.SystemException {
1946                    return getPersistence().findAll(start, end);
1947            }
1948    
1949            /**
1950            * Returns an ordered range of all the document library file versions.
1951            *
1952            * <p>
1953            * 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.
1954            * </p>
1955            *
1956            * @param start the lower bound of the range of document library file versions
1957            * @param end the upper bound of the range of document library file versions (not inclusive)
1958            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1959            * @return the ordered range of document library file versions
1960            * @throws SystemException if a system exception occurred
1961            */
1962            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
1963                    int start, int end,
1964                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1965                    throws com.liferay.portal.kernel.exception.SystemException {
1966                    return getPersistence().findAll(start, end, orderByComparator);
1967            }
1968    
1969            /**
1970            * Removes all the document library file versions from the database.
1971            *
1972            * @throws SystemException if a system exception occurred
1973            */
1974            public static void removeAll()
1975                    throws com.liferay.portal.kernel.exception.SystemException {
1976                    getPersistence().removeAll();
1977            }
1978    
1979            /**
1980            * Returns the number of document library file versions.
1981            *
1982            * @return the number of document library file versions
1983            * @throws SystemException if a system exception occurred
1984            */
1985            public static int countAll()
1986                    throws com.liferay.portal.kernel.exception.SystemException {
1987                    return getPersistence().countAll();
1988            }
1989    
1990            public static DLFileVersionPersistence getPersistence() {
1991                    if (_persistence == null) {
1992                            _persistence = (DLFileVersionPersistence)PortalBeanLocatorUtil.locate(DLFileVersionPersistence.class.getName());
1993    
1994                            ReferenceRegistry.registerReference(DLFileVersionUtil.class,
1995                                    "_persistence");
1996                    }
1997    
1998                    return _persistence;
1999            }
2000    
2001            /**
2002             * @deprecated As of 6.2.0
2003             */
2004            public void setPersistence(DLFileVersionPersistence persistence) {
2005            }
2006    
2007            private static DLFileVersionPersistence _persistence;
2008    }