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