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