001    /**
002     * Copyright (c) 2000-2012 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            * Caches the document library file version in the entity cache if it is enabled.
042            *
043            * @param dlFileVersion the document library file version
044            */
045            public void cacheResult(
046                    com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion);
047    
048            /**
049            * Caches the document library file versions in the entity cache if it is enabled.
050            *
051            * @param dlFileVersions the document library file versions
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> dlFileVersions);
055    
056            /**
057            * Creates a new document library file version with the primary key. Does not add the document library file version to the database.
058            *
059            * @param fileVersionId the primary key for the new document library file version
060            * @return the new document library file version
061            */
062            public com.liferay.portlet.documentlibrary.model.DLFileVersion create(
063                    long fileVersionId);
064    
065            /**
066            * Removes the document library file version with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param fileVersionId the primary key of the document library file version
069            * @return the document library file version that was removed
070            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portlet.documentlibrary.model.DLFileVersion remove(
074                    long fileVersionId)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
077    
078            public com.liferay.portlet.documentlibrary.model.DLFileVersion updateImpl(
079                    com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
080                    boolean merge)
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    
083            /**
084            * 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.
085            *
086            * @param fileVersionId the primary key of the document library file version
087            * @return the document library file version
088            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
089            * @throws SystemException if a system exception occurred
090            */
091            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByPrimaryKey(
092                    long fileVersionId)
093                    throws com.liferay.portal.kernel.exception.SystemException,
094                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
095    
096            /**
097            * Returns the document library file version with the primary key or returns <code>null</code> if it could not be found.
098            *
099            * @param fileVersionId the primary key of the document library file version
100            * @return the document library file version, or <code>null</code> if a document library file version with the primary key could not be found
101            * @throws SystemException if a system exception occurred
102            */
103            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByPrimaryKey(
104                    long fileVersionId)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            /**
108            * Returns all the document library file versions where fileEntryId = &#63;.
109            *
110            * @param fileEntryId the file entry ID
111            * @return the matching document library file versions
112            * @throws SystemException if a system exception occurred
113            */
114            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByFileEntryId(
115                    long fileEntryId)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns a range of all the document library file versions where fileEntryId = &#63;.
120            *
121            * <p>
122            * 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.
123            * </p>
124            *
125            * @param fileEntryId the file entry ID
126            * @param start the lower bound of the range of document library file versions
127            * @param end the upper bound of the range of document library file versions (not inclusive)
128            * @return the range of matching document library file versions
129            * @throws SystemException if a system exception occurred
130            */
131            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByFileEntryId(
132                    long fileEntryId, int start, int end)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            /**
136            * Returns an ordered range of all the document library file versions where fileEntryId = &#63;.
137            *
138            * <p>
139            * 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.
140            * </p>
141            *
142            * @param fileEntryId the file entry ID
143            * @param start the lower bound of the range of document library file versions
144            * @param end the upper bound of the range of document library file versions (not inclusive)
145            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
146            * @return the ordered range of matching document library file versions
147            * @throws SystemException if a system exception occurred
148            */
149            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByFileEntryId(
150                    long fileEntryId, int start, int end,
151                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152                    throws com.liferay.portal.kernel.exception.SystemException;
153    
154            /**
155            * Returns the first document library file version in the ordered set where fileEntryId = &#63;.
156            *
157            * <p>
158            * 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.
159            * </p>
160            *
161            * @param fileEntryId the file entry ID
162            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
163            * @return the first matching document library file version
164            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
165            * @throws SystemException if a system exception occurred
166            */
167            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByFileEntryId_First(
168                    long fileEntryId,
169                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170                    throws com.liferay.portal.kernel.exception.SystemException,
171                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
172    
173            /**
174            * Returns the last document library file version in the ordered set where fileEntryId = &#63;.
175            *
176            * <p>
177            * 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.
178            * </p>
179            *
180            * @param fileEntryId the file entry ID
181            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
182            * @return the last matching document library file version
183            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
184            * @throws SystemException if a system exception occurred
185            */
186            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByFileEntryId_Last(
187                    long fileEntryId,
188                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189                    throws com.liferay.portal.kernel.exception.SystemException,
190                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
191    
192            /**
193            * Returns the document library file versions before and after the current document library file version in the ordered set where fileEntryId = &#63;.
194            *
195            * <p>
196            * 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.
197            * </p>
198            *
199            * @param fileVersionId the primary key of the current document library file version
200            * @param fileEntryId the file entry ID
201            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
202            * @return the previous, current, and next document library file version
203            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
204            * @throws SystemException if a system exception occurred
205            */
206            public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByFileEntryId_PrevAndNext(
207                    long fileVersionId, long fileEntryId,
208                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209                    throws com.liferay.portal.kernel.exception.SystemException,
210                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
211    
212            /**
213            * 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.
214            *
215            * @param fileEntryId the file entry ID
216            * @param version the version
217            * @return the matching document library file version
218            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
219            * @throws SystemException if a system exception occurred
220            */
221            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_V(
222                    long fileEntryId, java.lang.String version)
223                    throws com.liferay.portal.kernel.exception.SystemException,
224                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
225    
226            /**
227            * 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.
228            *
229            * @param fileEntryId the file entry ID
230            * @param version the version
231            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_V(
235                    long fileEntryId, java.lang.String version)
236                    throws com.liferay.portal.kernel.exception.SystemException;
237    
238            /**
239            * 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.
240            *
241            * @param fileEntryId the file entry ID
242            * @param version the version
243            * @param retrieveFromCache whether to use the finder cache
244            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
245            * @throws SystemException if a system exception occurred
246            */
247            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_V(
248                    long fileEntryId, java.lang.String version, boolean retrieveFromCache)
249                    throws com.liferay.portal.kernel.exception.SystemException;
250    
251            /**
252            * Returns all the document library file versions where fileEntryId = &#63; and status = &#63;.
253            *
254            * @param fileEntryId the file entry ID
255            * @param status the status
256            * @return the matching document library file versions
257            * @throws SystemException if a system exception occurred
258            */
259            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
260                    long fileEntryId, int status)
261                    throws com.liferay.portal.kernel.exception.SystemException;
262    
263            /**
264            * Returns a range of all the document library file versions where fileEntryId = &#63; and status = &#63;.
265            *
266            * <p>
267            * 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.
268            * </p>
269            *
270            * @param fileEntryId the file entry ID
271            * @param status the status
272            * @param start the lower bound of the range of document library file versions
273            * @param end the upper bound of the range of document library file versions (not inclusive)
274            * @return the range of matching document library file versions
275            * @throws SystemException if a system exception occurred
276            */
277            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
278                    long fileEntryId, int status, int start, int end)
279                    throws com.liferay.portal.kernel.exception.SystemException;
280    
281            /**
282            * Returns an ordered range of all the document library file versions where fileEntryId = &#63; and status = &#63;.
283            *
284            * <p>
285            * 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.
286            * </p>
287            *
288            * @param fileEntryId the file entry ID
289            * @param status the status
290            * @param start the lower bound of the range of document library file versions
291            * @param end the upper bound of the range of document library file versions (not inclusive)
292            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
293            * @return the ordered range of matching document library file versions
294            * @throws SystemException if a system exception occurred
295            */
296            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
297                    long fileEntryId, int status, int start, int end,
298                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
299                    throws com.liferay.portal.kernel.exception.SystemException;
300    
301            /**
302            * Returns the first document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
303            *
304            * <p>
305            * 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.
306            * </p>
307            *
308            * @param fileEntryId the file entry ID
309            * @param status the status
310            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
311            * @return the first matching document library file version
312            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
313            * @throws SystemException if a system exception occurred
314            */
315            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_S_First(
316                    long fileEntryId, int status,
317                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
318                    throws com.liferay.portal.kernel.exception.SystemException,
319                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
320    
321            /**
322            * Returns the last document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
323            *
324            * <p>
325            * 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.
326            * </p>
327            *
328            * @param fileEntryId the file entry ID
329            * @param status the status
330            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
331            * @return the last matching document library file version
332            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
333            * @throws SystemException if a system exception occurred
334            */
335            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_S_Last(
336                    long fileEntryId, int status,
337                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
338                    throws com.liferay.portal.kernel.exception.SystemException,
339                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
340    
341            /**
342            * 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;.
343            *
344            * <p>
345            * 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.
346            * </p>
347            *
348            * @param fileVersionId the primary key of the current document library file version
349            * @param fileEntryId the file entry ID
350            * @param status the status
351            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
352            * @return the previous, current, and next document library file version
353            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
354            * @throws SystemException if a system exception occurred
355            */
356            public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByF_S_PrevAndNext(
357                    long fileVersionId, long fileEntryId, int status,
358                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
359                    throws com.liferay.portal.kernel.exception.SystemException,
360                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
361    
362            /**
363            * Returns all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
364            *
365            * @param groupId the group ID
366            * @param folderId the folder ID
367            * @param status the status
368            * @return the matching document library file versions
369            * @throws SystemException if a system exception occurred
370            */
371            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
372                    long groupId, long folderId, int status)
373                    throws com.liferay.portal.kernel.exception.SystemException;
374    
375            /**
376            * Returns a range of all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
377            *
378            * <p>
379            * 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.
380            * </p>
381            *
382            * @param groupId the group ID
383            * @param folderId the folder ID
384            * @param status the status
385            * @param start the lower bound of the range of document library file versions
386            * @param end the upper bound of the range of document library file versions (not inclusive)
387            * @return the range of matching document library file versions
388            * @throws SystemException if a system exception occurred
389            */
390            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
391                    long groupId, long folderId, int status, int start, int end)
392                    throws com.liferay.portal.kernel.exception.SystemException;
393    
394            /**
395            * Returns an ordered range of all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
396            *
397            * <p>
398            * 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.
399            * </p>
400            *
401            * @param groupId the group ID
402            * @param folderId the folder ID
403            * @param status the status
404            * @param start the lower bound of the range of document library file versions
405            * @param end the upper bound of the range of document library file versions (not inclusive)
406            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
407            * @return the ordered range of matching document library file versions
408            * @throws SystemException if a system exception occurred
409            */
410            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
411                    long groupId, long folderId, int status, int start, int end,
412                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
413                    throws com.liferay.portal.kernel.exception.SystemException;
414    
415            /**
416            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
417            *
418            * <p>
419            * 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.
420            * </p>
421            *
422            * @param groupId the group ID
423            * @param folderId the folder ID
424            * @param status the status
425            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
426            * @return the first matching document library file version
427            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
428            * @throws SystemException if a system exception occurred
429            */
430            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_S_First(
431                    long groupId, long folderId, int status,
432                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
433                    throws com.liferay.portal.kernel.exception.SystemException,
434                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
435    
436            /**
437            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
438            *
439            * <p>
440            * 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.
441            * </p>
442            *
443            * @param groupId the group ID
444            * @param folderId the folder ID
445            * @param status the status
446            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
447            * @return the last matching document library file version
448            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
449            * @throws SystemException if a system exception occurred
450            */
451            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_S_Last(
452                    long groupId, long folderId, int status,
453                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
454                    throws com.liferay.portal.kernel.exception.SystemException,
455                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
456    
457            /**
458            * 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;.
459            *
460            * <p>
461            * 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.
462            * </p>
463            *
464            * @param fileVersionId the primary key of the current document library file version
465            * @param groupId the group ID
466            * @param folderId the folder ID
467            * @param status the status
468            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
469            * @return the previous, current, and next document library file version
470            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
471            * @throws SystemException if a system exception occurred
472            */
473            public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_S_PrevAndNext(
474                    long fileVersionId, long groupId, long folderId, int status,
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 all the document library file versions.
481            *
482            * @return the document library file versions
483            * @throws SystemException if a system exception occurred
484            */
485            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll()
486                    throws com.liferay.portal.kernel.exception.SystemException;
487    
488            /**
489            * Returns a range of all the document library file versions.
490            *
491            * <p>
492            * 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.
493            * </p>
494            *
495            * @param start the lower bound of the range of document library file versions
496            * @param end the upper bound of the range of document library file versions (not inclusive)
497            * @return the range of document library file versions
498            * @throws SystemException if a system exception occurred
499            */
500            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
501                    int start, int end)
502                    throws com.liferay.portal.kernel.exception.SystemException;
503    
504            /**
505            * Returns an ordered range of all the document library file versions.
506            *
507            * <p>
508            * 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.
509            * </p>
510            *
511            * @param start the lower bound of the range of document library file versions
512            * @param end the upper bound of the range of document library file versions (not inclusive)
513            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
514            * @return the ordered range of document library file versions
515            * @throws SystemException if a system exception occurred
516            */
517            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
518                    int start, int end,
519                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
520                    throws com.liferay.portal.kernel.exception.SystemException;
521    
522            /**
523            * Removes all the document library file versions where fileEntryId = &#63; from the database.
524            *
525            * @param fileEntryId the file entry ID
526            * @throws SystemException if a system exception occurred
527            */
528            public void removeByFileEntryId(long fileEntryId)
529                    throws com.liferay.portal.kernel.exception.SystemException;
530    
531            /**
532            * Removes the document library file version where fileEntryId = &#63; and version = &#63; from the database.
533            *
534            * @param fileEntryId the file entry ID
535            * @param version the version
536            * @throws SystemException if a system exception occurred
537            */
538            public void removeByF_V(long fileEntryId, java.lang.String version)
539                    throws com.liferay.portal.kernel.exception.SystemException,
540                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
541    
542            /**
543            * Removes all the document library file versions where fileEntryId = &#63; and status = &#63; from the database.
544            *
545            * @param fileEntryId the file entry ID
546            * @param status the status
547            * @throws SystemException if a system exception occurred
548            */
549            public void removeByF_S(long fileEntryId, int status)
550                    throws com.liferay.portal.kernel.exception.SystemException;
551    
552            /**
553            * Removes all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63; from the database.
554            *
555            * @param groupId the group ID
556            * @param folderId the folder ID
557            * @param status the status
558            * @throws SystemException if a system exception occurred
559            */
560            public void removeByG_F_S(long groupId, long folderId, int status)
561                    throws com.liferay.portal.kernel.exception.SystemException;
562    
563            /**
564            * Removes all the document library file versions from the database.
565            *
566            * @throws SystemException if a system exception occurred
567            */
568            public void removeAll()
569                    throws com.liferay.portal.kernel.exception.SystemException;
570    
571            /**
572            * Returns the number of document library file versions where fileEntryId = &#63;.
573            *
574            * @param fileEntryId the file entry ID
575            * @return the number of matching document library file versions
576            * @throws SystemException if a system exception occurred
577            */
578            public int countByFileEntryId(long fileEntryId)
579                    throws com.liferay.portal.kernel.exception.SystemException;
580    
581            /**
582            * Returns the number of document library file versions where fileEntryId = &#63; and version = &#63;.
583            *
584            * @param fileEntryId the file entry ID
585            * @param version the version
586            * @return the number of matching document library file versions
587            * @throws SystemException if a system exception occurred
588            */
589            public int countByF_V(long fileEntryId, java.lang.String version)
590                    throws com.liferay.portal.kernel.exception.SystemException;
591    
592            /**
593            * Returns the number of document library file versions where fileEntryId = &#63; and status = &#63;.
594            *
595            * @param fileEntryId the file entry ID
596            * @param status the status
597            * @return the number of matching document library file versions
598            * @throws SystemException if a system exception occurred
599            */
600            public int countByF_S(long fileEntryId, int status)
601                    throws com.liferay.portal.kernel.exception.SystemException;
602    
603            /**
604            * Returns the number of document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
605            *
606            * @param groupId the group ID
607            * @param folderId the folder ID
608            * @param status the status
609            * @return the number of matching document library file versions
610            * @throws SystemException if a system exception occurred
611            */
612            public int countByG_F_S(long groupId, long folderId, int status)
613                    throws com.liferay.portal.kernel.exception.SystemException;
614    
615            /**
616            * Returns the number of document library file versions.
617            *
618            * @return the number of document library file versions
619            * @throws SystemException if a system exception occurred
620            */
621            public int countAll()
622                    throws com.liferay.portal.kernel.exception.SystemException;
623    }