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