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 uuid = &#63;.
109            *
110            * @param uuid the uuid
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> findByUuid(
115                    java.lang.String uuid)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns a range of all the document library file versions where uuid = &#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 uuid the uuid
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> findByUuid(
132                    java.lang.String uuid, 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 uuid = &#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 uuid the uuid
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> findByUuid(
150                    java.lang.String uuid, 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 uuid = &#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 uuid the uuid
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 findByUuid_First(
168                    java.lang.String uuid,
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 uuid = &#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 uuid the uuid
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 findByUuid_Last(
187                    java.lang.String uuid,
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 uuid = &#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 uuid the uuid
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[] findByUuid_PrevAndNext(
207                    long fileVersionId, java.lang.String uuid,
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 uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileVersionException} if it could not be found.
214            *
215            * @param uuid the uuid
216            * @param groupId the group ID
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 findByUUID_G(
222                    java.lang.String uuid, long groupId)
223                    throws com.liferay.portal.kernel.exception.SystemException,
224                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
225    
226            /**
227            * 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.
228            *
229            * @param uuid the uuid
230            * @param groupId the group ID
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 fetchByUUID_G(
235                    java.lang.String uuid, long groupId)
236                    throws com.liferay.portal.kernel.exception.SystemException;
237    
238            /**
239            * 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.
240            *
241            * @param uuid the uuid
242            * @param groupId the group ID
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 fetchByUUID_G(
248                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
249                    throws com.liferay.portal.kernel.exception.SystemException;
250    
251            /**
252            * Returns all the document library file versions where fileEntryId = &#63;.
253            *
254            * @param fileEntryId the file entry ID
255            * @return the matching document library file versions
256            * @throws SystemException if a system exception occurred
257            */
258            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByFileEntryId(
259                    long fileEntryId)
260                    throws com.liferay.portal.kernel.exception.SystemException;
261    
262            /**
263            * Returns a range of all the document library file versions where fileEntryId = &#63;.
264            *
265            * <p>
266            * 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.
267            * </p>
268            *
269            * @param fileEntryId the file entry ID
270            * @param start the lower bound of the range of document library file versions
271            * @param end the upper bound of the range of document library file versions (not inclusive)
272            * @return the range of matching document library file versions
273            * @throws SystemException if a system exception occurred
274            */
275            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByFileEntryId(
276                    long fileEntryId, int start, int end)
277                    throws com.liferay.portal.kernel.exception.SystemException;
278    
279            /**
280            * Returns an ordered range of all the document library file versions where fileEntryId = &#63;.
281            *
282            * <p>
283            * 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.
284            * </p>
285            *
286            * @param fileEntryId the file entry ID
287            * @param start the lower bound of the range of document library file versions
288            * @param end the upper bound of the range of document library file versions (not inclusive)
289            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
290            * @return the ordered range of matching document library file versions
291            * @throws SystemException if a system exception occurred
292            */
293            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByFileEntryId(
294                    long fileEntryId, int start, int end,
295                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
296                    throws com.liferay.portal.kernel.exception.SystemException;
297    
298            /**
299            * Returns the first document library file version in the ordered set where fileEntryId = &#63;.
300            *
301            * <p>
302            * 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.
303            * </p>
304            *
305            * @param fileEntryId the file entry ID
306            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
307            * @return the first matching document library file version
308            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
309            * @throws SystemException if a system exception occurred
310            */
311            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByFileEntryId_First(
312                    long fileEntryId,
313                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
314                    throws com.liferay.portal.kernel.exception.SystemException,
315                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
316    
317            /**
318            * Returns the last document library file version in the ordered set where fileEntryId = &#63;.
319            *
320            * <p>
321            * 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.
322            * </p>
323            *
324            * @param fileEntryId the file entry ID
325            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
326            * @return the last matching document library file version
327            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
328            * @throws SystemException if a system exception occurred
329            */
330            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByFileEntryId_Last(
331                    long fileEntryId,
332                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
333                    throws com.liferay.portal.kernel.exception.SystemException,
334                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
335    
336            /**
337            * Returns the document library file versions before and after the current document library file version in the ordered set where fileEntryId = &#63;.
338            *
339            * <p>
340            * 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.
341            * </p>
342            *
343            * @param fileVersionId the primary key of the current document library file version
344            * @param fileEntryId the file entry ID
345            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
346            * @return the previous, current, and next document library file version
347            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
348            * @throws SystemException if a system exception occurred
349            */
350            public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByFileEntryId_PrevAndNext(
351                    long fileVersionId, long fileEntryId,
352                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
353                    throws com.liferay.portal.kernel.exception.SystemException,
354                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
355    
356            /**
357            * 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.
358            *
359            * @param fileEntryId the file entry ID
360            * @param version the version
361            * @return the matching document library file version
362            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
363            * @throws SystemException if a system exception occurred
364            */
365            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_V(
366                    long fileEntryId, java.lang.String version)
367                    throws com.liferay.portal.kernel.exception.SystemException,
368                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
369    
370            /**
371            * 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.
372            *
373            * @param fileEntryId the file entry ID
374            * @param version the version
375            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
376            * @throws SystemException if a system exception occurred
377            */
378            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_V(
379                    long fileEntryId, java.lang.String version)
380                    throws com.liferay.portal.kernel.exception.SystemException;
381    
382            /**
383            * 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.
384            *
385            * @param fileEntryId the file entry ID
386            * @param version the version
387            * @param retrieveFromCache whether to use the finder cache
388            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
389            * @throws SystemException if a system exception occurred
390            */
391            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_V(
392                    long fileEntryId, java.lang.String version, boolean retrieveFromCache)
393                    throws com.liferay.portal.kernel.exception.SystemException;
394    
395            /**
396            * Returns all the document library file versions where fileEntryId = &#63; and status = &#63;.
397            *
398            * @param fileEntryId the file entry ID
399            * @param status the status
400            * @return the matching document library file versions
401            * @throws SystemException if a system exception occurred
402            */
403            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
404                    long fileEntryId, int status)
405                    throws com.liferay.portal.kernel.exception.SystemException;
406    
407            /**
408            * Returns a range of all the document library file versions where fileEntryId = &#63; and status = &#63;.
409            *
410            * <p>
411            * 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.
412            * </p>
413            *
414            * @param fileEntryId the file entry ID
415            * @param status the status
416            * @param start the lower bound of the range of document library file versions
417            * @param end the upper bound of the range of document library file versions (not inclusive)
418            * @return the range of matching document library file versions
419            * @throws SystemException if a system exception occurred
420            */
421            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
422                    long fileEntryId, int status, int start, int end)
423                    throws com.liferay.portal.kernel.exception.SystemException;
424    
425            /**
426            * Returns an ordered range of all the document library file versions where fileEntryId = &#63; and status = &#63;.
427            *
428            * <p>
429            * 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.
430            * </p>
431            *
432            * @param fileEntryId the file entry ID
433            * @param status the status
434            * @param start the lower bound of the range of document library file versions
435            * @param end the upper bound of the range of document library file versions (not inclusive)
436            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
437            * @return the ordered range of matching document library file versions
438            * @throws SystemException if a system exception occurred
439            */
440            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
441                    long fileEntryId, int status, int start, int end,
442                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
443                    throws com.liferay.portal.kernel.exception.SystemException;
444    
445            /**
446            * Returns the first document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
447            *
448            * <p>
449            * 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.
450            * </p>
451            *
452            * @param fileEntryId the file entry ID
453            * @param status the status
454            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
455            * @return the first matching document library file version
456            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException 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 findByF_S_First(
460                    long fileEntryId, int status,
461                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
462                    throws com.liferay.portal.kernel.exception.SystemException,
463                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
464    
465            /**
466            * Returns the last document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
467            *
468            * <p>
469            * 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.
470            * </p>
471            *
472            * @param fileEntryId the file entry ID
473            * @param status the status
474            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
475            * @return the last matching document library file version
476            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
477            * @throws SystemException if a system exception occurred
478            */
479            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_S_Last(
480                    long fileEntryId, int status,
481                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
482                    throws com.liferay.portal.kernel.exception.SystemException,
483                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
484    
485            /**
486            * 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;.
487            *
488            * <p>
489            * 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.
490            * </p>
491            *
492            * @param fileVersionId the primary key of the current document library file version
493            * @param fileEntryId the file entry ID
494            * @param status the status
495            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
496            * @return the previous, current, and next document library file version
497            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
498            * @throws SystemException if a system exception occurred
499            */
500            public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByF_S_PrevAndNext(
501                    long fileVersionId, long fileEntryId, int status,
502                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
503                    throws com.liferay.portal.kernel.exception.SystemException,
504                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
505    
506            /**
507            * Returns all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
508            *
509            * @param groupId the group ID
510            * @param folderId the folder ID
511            * @param status the status
512            * @return the matching document library file versions
513            * @throws SystemException if a system exception occurred
514            */
515            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
516                    long groupId, long folderId, int status)
517                    throws com.liferay.portal.kernel.exception.SystemException;
518    
519            /**
520            * Returns a range of all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
521            *
522            * <p>
523            * 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.
524            * </p>
525            *
526            * @param groupId the group ID
527            * @param folderId the folder ID
528            * @param status the status
529            * @param start the lower bound of the range of document library file versions
530            * @param end the upper bound of the range of document library file versions (not inclusive)
531            * @return the range of 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> findByG_F_S(
535                    long groupId, long folderId, int status, int start, int end)
536                    throws com.liferay.portal.kernel.exception.SystemException;
537    
538            /**
539            * Returns an ordered range of all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#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.
543            * </p>
544            *
545            * @param groupId the group ID
546            * @param folderId the folder ID
547            * @param status the status
548            * @param start the lower bound of the range of document library file versions
549            * @param end the upper bound of the range of document library file versions (not inclusive)
550            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
551            * @return the ordered range of matching document library file versions
552            * @throws SystemException if a system exception occurred
553            */
554            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
555                    long groupId, long folderId, int status, int start, int end,
556                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
557                    throws com.liferay.portal.kernel.exception.SystemException;
558    
559            /**
560            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
561            *
562            * <p>
563            * 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.
564            * </p>
565            *
566            * @param groupId the group ID
567            * @param folderId the folder ID
568            * @param status the status
569            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
570            * @return the first matching document library file version
571            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
572            * @throws SystemException if a system exception occurred
573            */
574            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_S_First(
575                    long groupId, long folderId, int status,
576                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
577                    throws com.liferay.portal.kernel.exception.SystemException,
578                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
579    
580            /**
581            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
582            *
583            * <p>
584            * 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.
585            * </p>
586            *
587            * @param groupId the group ID
588            * @param folderId the folder ID
589            * @param status the status
590            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
591            * @return the last matching document library file version
592            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
593            * @throws SystemException if a system exception occurred
594            */
595            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_S_Last(
596                    long groupId, long folderId, int status,
597                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
598                    throws com.liferay.portal.kernel.exception.SystemException,
599                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
600    
601            /**
602            * 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;.
603            *
604            * <p>
605            * 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.
606            * </p>
607            *
608            * @param fileVersionId the primary key of the current document library file version
609            * @param groupId the group ID
610            * @param folderId the folder ID
611            * @param status the status
612            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
613            * @return the previous, current, and next document library file version
614            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
615            * @throws SystemException if a system exception occurred
616            */
617            public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_S_PrevAndNext(
618                    long fileVersionId, long groupId, long folderId, int status,
619                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
620                    throws com.liferay.portal.kernel.exception.SystemException,
621                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
622    
623            /**
624            * Returns all the document library file versions.
625            *
626            * @return the document library file versions
627            * @throws SystemException if a system exception occurred
628            */
629            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll()
630                    throws com.liferay.portal.kernel.exception.SystemException;
631    
632            /**
633            * Returns a range of all the document library file versions.
634            *
635            * <p>
636            * 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.
637            * </p>
638            *
639            * @param start the lower bound of the range of document library file versions
640            * @param end the upper bound of the range of document library file versions (not inclusive)
641            * @return the range of document library file versions
642            * @throws SystemException if a system exception occurred
643            */
644            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
645                    int start, int end)
646                    throws com.liferay.portal.kernel.exception.SystemException;
647    
648            /**
649            * Returns an ordered range of all the document library file versions.
650            *
651            * <p>
652            * 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.
653            * </p>
654            *
655            * @param start the lower bound of the range of document library file versions
656            * @param end the upper bound of the range of document library file versions (not inclusive)
657            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
658            * @return the ordered range of document library file versions
659            * @throws SystemException if a system exception occurred
660            */
661            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
662                    int start, int end,
663                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
664                    throws com.liferay.portal.kernel.exception.SystemException;
665    
666            /**
667            * Removes all the document library file versions where uuid = &#63; from the database.
668            *
669            * @param uuid the uuid
670            * @throws SystemException if a system exception occurred
671            */
672            public void removeByUuid(java.lang.String uuid)
673                    throws com.liferay.portal.kernel.exception.SystemException;
674    
675            /**
676            * Removes the document library file version where uuid = &#63; and groupId = &#63; from the database.
677            *
678            * @param uuid the uuid
679            * @param groupId the group ID
680            * @throws SystemException if a system exception occurred
681            */
682            public void removeByUUID_G(java.lang.String uuid, long groupId)
683                    throws com.liferay.portal.kernel.exception.SystemException,
684                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
685    
686            /**
687            * Removes all the document library file versions where fileEntryId = &#63; from the database.
688            *
689            * @param fileEntryId the file entry ID
690            * @throws SystemException if a system exception occurred
691            */
692            public void removeByFileEntryId(long fileEntryId)
693                    throws com.liferay.portal.kernel.exception.SystemException;
694    
695            /**
696            * Removes the document library file version where fileEntryId = &#63; and version = &#63; from the database.
697            *
698            * @param fileEntryId the file entry ID
699            * @param version the version
700            * @throws SystemException if a system exception occurred
701            */
702            public void removeByF_V(long fileEntryId, java.lang.String version)
703                    throws com.liferay.portal.kernel.exception.SystemException,
704                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
705    
706            /**
707            * Removes all the document library file versions where fileEntryId = &#63; and status = &#63; from the database.
708            *
709            * @param fileEntryId the file entry ID
710            * @param status the status
711            * @throws SystemException if a system exception occurred
712            */
713            public void removeByF_S(long fileEntryId, int status)
714                    throws com.liferay.portal.kernel.exception.SystemException;
715    
716            /**
717            * Removes all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63; from the database.
718            *
719            * @param groupId the group ID
720            * @param folderId the folder ID
721            * @param status the status
722            * @throws SystemException if a system exception occurred
723            */
724            public void removeByG_F_S(long groupId, long folderId, int status)
725                    throws com.liferay.portal.kernel.exception.SystemException;
726    
727            /**
728            * Removes all the document library file versions from the database.
729            *
730            * @throws SystemException if a system exception occurred
731            */
732            public void removeAll()
733                    throws com.liferay.portal.kernel.exception.SystemException;
734    
735            /**
736            * Returns the number of document library file versions where uuid = &#63;.
737            *
738            * @param uuid the uuid
739            * @return the number of matching document library file versions
740            * @throws SystemException if a system exception occurred
741            */
742            public int countByUuid(java.lang.String uuid)
743                    throws com.liferay.portal.kernel.exception.SystemException;
744    
745            /**
746            * Returns the number of document library file versions where uuid = &#63; and groupId = &#63;.
747            *
748            * @param uuid the uuid
749            * @param groupId the group ID
750            * @return the number of matching document library file versions
751            * @throws SystemException if a system exception occurred
752            */
753            public int countByUUID_G(java.lang.String uuid, long groupId)
754                    throws com.liferay.portal.kernel.exception.SystemException;
755    
756            /**
757            * Returns the number of document library file versions where fileEntryId = &#63;.
758            *
759            * @param fileEntryId the file entry ID
760            * @return the number of matching document library file versions
761            * @throws SystemException if a system exception occurred
762            */
763            public int countByFileEntryId(long fileEntryId)
764                    throws com.liferay.portal.kernel.exception.SystemException;
765    
766            /**
767            * Returns the number of document library file versions where fileEntryId = &#63; and version = &#63;.
768            *
769            * @param fileEntryId the file entry ID
770            * @param version the version
771            * @return the number of matching document library file versions
772            * @throws SystemException if a system exception occurred
773            */
774            public int countByF_V(long fileEntryId, java.lang.String version)
775                    throws com.liferay.portal.kernel.exception.SystemException;
776    
777            /**
778            * Returns the number of document library file versions where fileEntryId = &#63; and status = &#63;.
779            *
780            * @param fileEntryId the file entry ID
781            * @param status the status
782            * @return the number of matching document library file versions
783            * @throws SystemException if a system exception occurred
784            */
785            public int countByF_S(long fileEntryId, int status)
786                    throws com.liferay.portal.kernel.exception.SystemException;
787    
788            /**
789            * Returns the number of document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
790            *
791            * @param groupId the group ID
792            * @param folderId the folder ID
793            * @param status the status
794            * @return the number of matching document library file versions
795            * @throws SystemException if a system exception occurred
796            */
797            public int countByG_F_S(long groupId, long folderId, int status)
798                    throws com.liferay.portal.kernel.exception.SystemException;
799    
800            /**
801            * Returns the number of document library file versions.
802            *
803            * @return the number of document library file versions
804            * @throws SystemException if a system exception occurred
805            */
806            public int countAll()
807                    throws com.liferay.portal.kernel.exception.SystemException;
808    }