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