001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.documentlibrary.model.DLFileVersion;
020    
021    /**
022     * The persistence interface for the document library file version service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see DLFileVersionPersistenceImpl
030     * @see DLFileVersionUtil
031     * @generated
032     */
033    public interface DLFileVersionPersistence extends BasePersistence<DLFileVersion> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link DLFileVersionUtil} to access the document library file version persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * 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            * @param uuid the uuid
158            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
159            * @return the first matching document library file version
160            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
161            * @throws SystemException if a system exception occurred
162            */
163            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByUuid_First(
164                    java.lang.String uuid,
165                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166                    throws com.liferay.portal.kernel.exception.SystemException,
167                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
168    
169            /**
170            * Returns the first document library file version in the ordered set where uuid = &#63;.
171            *
172            * @param uuid the uuid
173            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
174            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByUuid_First(
178                    java.lang.String uuid,
179                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180                    throws com.liferay.portal.kernel.exception.SystemException;
181    
182            /**
183            * Returns the last document library file version in the ordered set where uuid = &#63;.
184            *
185            * @param uuid the uuid
186            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
187            * @return the last matching document library file version
188            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
189            * @throws SystemException if a system exception occurred
190            */
191            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByUuid_Last(
192                    java.lang.String uuid,
193                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194                    throws com.liferay.portal.kernel.exception.SystemException,
195                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
196    
197            /**
198            * Returns the last document library file version in the ordered set where uuid = &#63;.
199            *
200            * @param uuid the uuid
201            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
202            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
203            * @throws SystemException if a system exception occurred
204            */
205            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByUuid_Last(
206                    java.lang.String uuid,
207                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208                    throws com.liferay.portal.kernel.exception.SystemException;
209    
210            /**
211            * Returns the document library file versions before and after the current document library file version in the ordered set where uuid = &#63;.
212            *
213            * @param fileVersionId the primary key of the current document library file version
214            * @param uuid the uuid
215            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
216            * @return the previous, current, and next document library file version
217            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByUuid_PrevAndNext(
221                    long fileVersionId, java.lang.String uuid,
222                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
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 throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileVersionException} if it could not be found.
228            *
229            * @param uuid the uuid
230            * @param groupId the group ID
231            * @return the matching document library file version
232            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException 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 findByUUID_G(
236                    java.lang.String uuid, long groupId)
237                    throws com.liferay.portal.kernel.exception.SystemException,
238                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
239    
240            /**
241            * 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.
242            *
243            * @param uuid the uuid
244            * @param groupId the group ID
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 fetchByUUID_G(
249                    java.lang.String uuid, long groupId)
250                    throws com.liferay.portal.kernel.exception.SystemException;
251    
252            /**
253            * 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.
254            *
255            * @param uuid the uuid
256            * @param groupId the group ID
257            * @param retrieveFromCache whether to use the finder cache
258            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
259            * @throws SystemException if a system exception occurred
260            */
261            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByUUID_G(
262                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
263                    throws com.liferay.portal.kernel.exception.SystemException;
264    
265            /**
266            * Returns all the document library file versions where fileEntryId = &#63;.
267            *
268            * @param fileEntryId the file entry ID
269            * @return the matching document library file versions
270            * @throws SystemException if a system exception occurred
271            */
272            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByFileEntryId(
273                    long fileEntryId)
274                    throws com.liferay.portal.kernel.exception.SystemException;
275    
276            /**
277            * Returns a range of all the document library file versions where fileEntryId = &#63;.
278            *
279            * <p>
280            * 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.
281            * </p>
282            *
283            * @param fileEntryId the file entry ID
284            * @param start the lower bound of the range of document library file versions
285            * @param end the upper bound of the range of document library file versions (not inclusive)
286            * @return the range of matching document library file versions
287            * @throws SystemException if a system exception occurred
288            */
289            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByFileEntryId(
290                    long fileEntryId, int start, int end)
291                    throws com.liferay.portal.kernel.exception.SystemException;
292    
293            /**
294            * Returns an ordered range of all the document library file versions where fileEntryId = &#63;.
295            *
296            * <p>
297            * 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.
298            * </p>
299            *
300            * @param fileEntryId the file entry ID
301            * @param start the lower bound of the range of document library file versions
302            * @param end the upper bound of the range of document library file versions (not inclusive)
303            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
304            * @return the ordered range of matching document library file versions
305            * @throws SystemException if a system exception occurred
306            */
307            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByFileEntryId(
308                    long fileEntryId, int start, int end,
309                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
310                    throws com.liferay.portal.kernel.exception.SystemException;
311    
312            /**
313            * Returns the first document library file version in the ordered set where fileEntryId = &#63;.
314            *
315            * @param fileEntryId the file entry ID
316            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
317            * @return the first matching document library file version
318            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByFileEntryId_First(
322                    long fileEntryId,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.kernel.exception.SystemException,
325                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
326    
327            /**
328            * Returns the first document library file version in the ordered set where fileEntryId = &#63;.
329            *
330            * @param fileEntryId the file entry ID
331            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
332            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
333            * @throws SystemException if a system exception occurred
334            */
335            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByFileEntryId_First(
336                    long fileEntryId,
337                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
338                    throws com.liferay.portal.kernel.exception.SystemException;
339    
340            /**
341            * Returns the last document library file version in the ordered set where fileEntryId = &#63;.
342            *
343            * @param fileEntryId the file entry ID
344            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
345            * @return the last matching document library file version
346            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
347            * @throws SystemException if a system exception occurred
348            */
349            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByFileEntryId_Last(
350                    long fileEntryId,
351                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
352                    throws com.liferay.portal.kernel.exception.SystemException,
353                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
354    
355            /**
356            * Returns the last document library file version in the ordered set where fileEntryId = &#63;.
357            *
358            * @param fileEntryId the file entry ID
359            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
360            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
361            * @throws SystemException if a system exception occurred
362            */
363            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByFileEntryId_Last(
364                    long fileEntryId,
365                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
366                    throws com.liferay.portal.kernel.exception.SystemException;
367    
368            /**
369            * Returns the document library file versions before and after the current document library file version in the ordered set where fileEntryId = &#63;.
370            *
371            * @param fileVersionId the primary key of the current document library file version
372            * @param fileEntryId the file entry ID
373            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
374            * @return the previous, current, and next document library file version
375            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
376            * @throws SystemException if a system exception occurred
377            */
378            public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByFileEntryId_PrevAndNext(
379                    long fileVersionId, long fileEntryId,
380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381                    throws com.liferay.portal.kernel.exception.SystemException,
382                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
383    
384            /**
385            * Returns all the document library file versions where mimeType = &#63;.
386            *
387            * @param mimeType the mime type
388            * @return the 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> findByMimeType(
392                    java.lang.String mimeType)
393                    throws com.liferay.portal.kernel.exception.SystemException;
394    
395            /**
396            * Returns a range of all the document library file versions where mimeType = &#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 mimeType the mime type
403            * @param start the lower bound of the range of document library file versions
404            * @param end the upper bound of the range of document library file versions (not inclusive)
405            * @return the range of matching document library file versions
406            * @throws SystemException if a system exception occurred
407            */
408            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByMimeType(
409                    java.lang.String mimeType, int start, int end)
410                    throws com.liferay.portal.kernel.exception.SystemException;
411    
412            /**
413            * Returns an ordered range of all the document library file versions where mimeType = &#63;.
414            *
415            * <p>
416            * 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.
417            * </p>
418            *
419            * @param mimeType the mime type
420            * @param start the lower bound of the range of document library file versions
421            * @param end the upper bound of the range of document library file versions (not inclusive)
422            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
423            * @return the ordered range of matching document library file versions
424            * @throws SystemException if a system exception occurred
425            */
426            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByMimeType(
427                    java.lang.String mimeType, int start, int end,
428                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
429                    throws com.liferay.portal.kernel.exception.SystemException;
430    
431            /**
432            * Returns the first document library file version in the ordered set where mimeType = &#63;.
433            *
434            * @param mimeType the mime type
435            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
436            * @return the first matching document library file version
437            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
438            * @throws SystemException if a system exception occurred
439            */
440            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByMimeType_First(
441                    java.lang.String mimeType,
442                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
443                    throws com.liferay.portal.kernel.exception.SystemException,
444                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
445    
446            /**
447            * Returns the first document library file version in the ordered set where mimeType = &#63;.
448            *
449            * @param mimeType the mime type
450            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
451            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
452            * @throws SystemException if a system exception occurred
453            */
454            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByMimeType_First(
455                    java.lang.String mimeType,
456                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
457                    throws com.liferay.portal.kernel.exception.SystemException;
458    
459            /**
460            * Returns the last document library file version in the ordered set where mimeType = &#63;.
461            *
462            * @param mimeType the mime type
463            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
464            * @return the last matching document library file version
465            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
466            * @throws SystemException if a system exception occurred
467            */
468            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByMimeType_Last(
469                    java.lang.String mimeType,
470                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
471                    throws com.liferay.portal.kernel.exception.SystemException,
472                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
473    
474            /**
475            * Returns the last document library file version in the ordered set where mimeType = &#63;.
476            *
477            * @param mimeType the mime type
478            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
479            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
480            * @throws SystemException if a system exception occurred
481            */
482            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByMimeType_Last(
483                    java.lang.String mimeType,
484                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
485                    throws com.liferay.portal.kernel.exception.SystemException;
486    
487            /**
488            * Returns the document library file versions before and after the current document library file version in the ordered set where mimeType = &#63;.
489            *
490            * @param fileVersionId the primary key of the current document library file version
491            * @param mimeType the mime type
492            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
493            * @return the previous, current, and next document library file version
494            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
495            * @throws SystemException if a system exception occurred
496            */
497            public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByMimeType_PrevAndNext(
498                    long fileVersionId, java.lang.String mimeType,
499                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
500                    throws com.liferay.portal.kernel.exception.SystemException,
501                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
502    
503            /**
504            * 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.
505            *
506            * @param fileEntryId the file entry ID
507            * @param version the version
508            * @return the matching document library file version
509            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
510            * @throws SystemException if a system exception occurred
511            */
512            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_V(
513                    long fileEntryId, java.lang.String version)
514                    throws com.liferay.portal.kernel.exception.SystemException,
515                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
516    
517            /**
518            * 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.
519            *
520            * @param fileEntryId the file entry ID
521            * @param version the version
522            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
523            * @throws SystemException if a system exception occurred
524            */
525            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_V(
526                    long fileEntryId, java.lang.String version)
527                    throws com.liferay.portal.kernel.exception.SystemException;
528    
529            /**
530            * 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.
531            *
532            * @param fileEntryId the file entry ID
533            * @param version the version
534            * @param retrieveFromCache whether to use the finder cache
535            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
536            * @throws SystemException if a system exception occurred
537            */
538            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_V(
539                    long fileEntryId, java.lang.String version, boolean retrieveFromCache)
540                    throws com.liferay.portal.kernel.exception.SystemException;
541    
542            /**
543            * Returns all the document library file versions where fileEntryId = &#63; and status = &#63;.
544            *
545            * @param fileEntryId the file entry ID
546            * @param status the status
547            * @return the matching document library file versions
548            * @throws SystemException if a system exception occurred
549            */
550            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
551                    long fileEntryId, int status)
552                    throws com.liferay.portal.kernel.exception.SystemException;
553    
554            /**
555            * Returns a range of all the document library file versions where fileEntryId = &#63; and status = &#63;.
556            *
557            * <p>
558            * 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.
559            * </p>
560            *
561            * @param fileEntryId the file entry ID
562            * @param status the status
563            * @param start the lower bound of the range of document library file versions
564            * @param end the upper bound of the range of document library file versions (not inclusive)
565            * @return the range of matching document library file versions
566            * @throws SystemException if a system exception occurred
567            */
568            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
569                    long fileEntryId, int status, int start, int end)
570                    throws com.liferay.portal.kernel.exception.SystemException;
571    
572            /**
573            * Returns an ordered range of all the document library file versions where fileEntryId = &#63; and status = &#63;.
574            *
575            * <p>
576            * 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.
577            * </p>
578            *
579            * @param fileEntryId the file entry ID
580            * @param status the status
581            * @param start the lower bound of the range of document library file versions
582            * @param end the upper bound of the range of document library file versions (not inclusive)
583            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
584            * @return the ordered range of matching document library file versions
585            * @throws SystemException if a system exception occurred
586            */
587            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
588                    long fileEntryId, int status, int start, int end,
589                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
590                    throws com.liferay.portal.kernel.exception.SystemException;
591    
592            /**
593            * Returns the first document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
594            *
595            * @param fileEntryId the file entry ID
596            * @param status the status
597            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
598            * @return the first matching document library file version
599            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
600            * @throws SystemException if a system exception occurred
601            */
602            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_S_First(
603                    long fileEntryId, int status,
604                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
605                    throws com.liferay.portal.kernel.exception.SystemException,
606                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
607    
608            /**
609            * Returns the first document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
610            *
611            * @param fileEntryId the file entry ID
612            * @param status the status
613            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
614            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
615            * @throws SystemException if a system exception occurred
616            */
617            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_S_First(
618                    long fileEntryId, int status,
619                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
620                    throws com.liferay.portal.kernel.exception.SystemException;
621    
622            /**
623            * Returns the last document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
624            *
625            * @param fileEntryId the file entry ID
626            * @param status the status
627            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
628            * @return the last matching document library file version
629            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
630            * @throws SystemException if a system exception occurred
631            */
632            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_S_Last(
633                    long fileEntryId, int status,
634                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
635                    throws com.liferay.portal.kernel.exception.SystemException,
636                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
637    
638            /**
639            * Returns the last document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
640            *
641            * @param fileEntryId the file entry ID
642            * @param status the status
643            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
644            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
645            * @throws SystemException if a system exception occurred
646            */
647            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_S_Last(
648                    long fileEntryId, int status,
649                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
650                    throws com.liferay.portal.kernel.exception.SystemException;
651    
652            /**
653            * 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;.
654            *
655            * @param fileVersionId the primary key of the current document library file version
656            * @param fileEntryId the file entry ID
657            * @param status the status
658            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
659            * @return the previous, current, and next document library file version
660            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
661            * @throws SystemException if a system exception occurred
662            */
663            public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByF_S_PrevAndNext(
664                    long fileVersionId, long fileEntryId, int status,
665                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
666                    throws com.liferay.portal.kernel.exception.SystemException,
667                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
668    
669            /**
670            * Returns all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
671            *
672            * @param groupId the group ID
673            * @param folderId the folder ID
674            * @param status the status
675            * @return the matching document library file versions
676            * @throws SystemException if a system exception occurred
677            */
678            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
679                    long groupId, long folderId, int status)
680                    throws com.liferay.portal.kernel.exception.SystemException;
681    
682            /**
683            * Returns a range of all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
684            *
685            * <p>
686            * 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.
687            * </p>
688            *
689            * @param groupId the group ID
690            * @param folderId the folder ID
691            * @param status the status
692            * @param start the lower bound of the range of document library file versions
693            * @param end the upper bound of the range of document library file versions (not inclusive)
694            * @return the range of matching document library file versions
695            * @throws SystemException if a system exception occurred
696            */
697            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
698                    long groupId, long folderId, int status, int start, int end)
699                    throws com.liferay.portal.kernel.exception.SystemException;
700    
701            /**
702            * Returns an ordered range of all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
703            *
704            * <p>
705            * 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.
706            * </p>
707            *
708            * @param groupId the group ID
709            * @param folderId the folder ID
710            * @param status the status
711            * @param start the lower bound of the range of document library file versions
712            * @param end the upper bound of the range of document library file versions (not inclusive)
713            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
714            * @return the ordered range of matching document library file versions
715            * @throws SystemException if a system exception occurred
716            */
717            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
718                    long groupId, long folderId, int status, int start, int end,
719                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
720                    throws com.liferay.portal.kernel.exception.SystemException;
721    
722            /**
723            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
724            *
725            * @param groupId the group ID
726            * @param folderId the folder ID
727            * @param status the status
728            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
729            * @return the first matching document library file version
730            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
731            * @throws SystemException if a system exception occurred
732            */
733            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_S_First(
734                    long groupId, long folderId, int status,
735                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
736                    throws com.liferay.portal.kernel.exception.SystemException,
737                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
738    
739            /**
740            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
741            *
742            * @param groupId the group ID
743            * @param folderId the folder ID
744            * @param status the status
745            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
746            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
747            * @throws SystemException if a system exception occurred
748            */
749            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_S_First(
750                    long groupId, long folderId, int status,
751                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
752                    throws com.liferay.portal.kernel.exception.SystemException;
753    
754            /**
755            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
756            *
757            * @param groupId the group ID
758            * @param folderId the folder ID
759            * @param status the status
760            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
761            * @return the last matching document library file version
762            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
763            * @throws SystemException if a system exception occurred
764            */
765            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_S_Last(
766                    long groupId, long folderId, int status,
767                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
768                    throws com.liferay.portal.kernel.exception.SystemException,
769                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
770    
771            /**
772            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
773            *
774            * @param groupId the group ID
775            * @param folderId the folder ID
776            * @param status the status
777            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
778            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
779            * @throws SystemException if a system exception occurred
780            */
781            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_S_Last(
782                    long groupId, long folderId, int status,
783                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
784                    throws com.liferay.portal.kernel.exception.SystemException;
785    
786            /**
787            * 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;.
788            *
789            * @param fileVersionId the primary key of the current document library file version
790            * @param groupId the group ID
791            * @param folderId the folder ID
792            * @param status the status
793            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
794            * @return the previous, current, and next document library file version
795            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
796            * @throws SystemException if a system exception occurred
797            */
798            public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_S_PrevAndNext(
799                    long fileVersionId, long groupId, long folderId, int status,
800                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
801                    throws com.liferay.portal.kernel.exception.SystemException,
802                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
803    
804            /**
805            * Returns all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
806            *
807            * @param groupId the group ID
808            * @param folderId the folder ID
809            * @param title the title
810            * @param version the version
811            * @return the matching document library file versions
812            * @throws SystemException if a system exception occurred
813            */
814            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_T_V(
815                    long groupId, long folderId, java.lang.String title,
816                    java.lang.String version)
817                    throws com.liferay.portal.kernel.exception.SystemException;
818    
819            /**
820            * Returns a range of all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
821            *
822            * <p>
823            * 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.
824            * </p>
825            *
826            * @param groupId the group ID
827            * @param folderId the folder ID
828            * @param title the title
829            * @param version the version
830            * @param start the lower bound of the range of document library file versions
831            * @param end the upper bound of the range of document library file versions (not inclusive)
832            * @return the range of matching document library file versions
833            * @throws SystemException if a system exception occurred
834            */
835            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_T_V(
836                    long groupId, long folderId, java.lang.String title,
837                    java.lang.String version, int start, int end)
838                    throws com.liferay.portal.kernel.exception.SystemException;
839    
840            /**
841            * Returns an ordered range of all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
842            *
843            * <p>
844            * 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.
845            * </p>
846            *
847            * @param groupId the group ID
848            * @param folderId the folder ID
849            * @param title the title
850            * @param version the version
851            * @param start the lower bound of the range of document library file versions
852            * @param end the upper bound of the range of document library file versions (not inclusive)
853            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
854            * @return the ordered range of matching document library file versions
855            * @throws SystemException if a system exception occurred
856            */
857            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_T_V(
858                    long groupId, long folderId, java.lang.String title,
859                    java.lang.String version, int start, int end,
860                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
861                    throws com.liferay.portal.kernel.exception.SystemException;
862    
863            /**
864            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
865            *
866            * @param groupId the group ID
867            * @param folderId the folder ID
868            * @param title the title
869            * @param version the version
870            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
871            * @return the first matching document library file version
872            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
873            * @throws SystemException if a system exception occurred
874            */
875            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_T_V_First(
876                    long groupId, long folderId, java.lang.String title,
877                    java.lang.String version,
878                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
879                    throws com.liferay.portal.kernel.exception.SystemException,
880                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
881    
882            /**
883            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
884            *
885            * @param groupId the group ID
886            * @param folderId the folder ID
887            * @param title the title
888            * @param version the version
889            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
890            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
891            * @throws SystemException if a system exception occurred
892            */
893            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_T_V_First(
894                    long groupId, long folderId, java.lang.String title,
895                    java.lang.String version,
896                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
897                    throws com.liferay.portal.kernel.exception.SystemException;
898    
899            /**
900            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
901            *
902            * @param groupId the group ID
903            * @param folderId the folder ID
904            * @param title the title
905            * @param version the version
906            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
907            * @return the last matching document library file version
908            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
909            * @throws SystemException if a system exception occurred
910            */
911            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_T_V_Last(
912                    long groupId, long folderId, java.lang.String title,
913                    java.lang.String version,
914                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
915                    throws com.liferay.portal.kernel.exception.SystemException,
916                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
917    
918            /**
919            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
920            *
921            * @param groupId the group ID
922            * @param folderId the folder ID
923            * @param title the title
924            * @param version the version
925            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
926            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
927            * @throws SystemException if a system exception occurred
928            */
929            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_T_V_Last(
930                    long groupId, long folderId, java.lang.String title,
931                    java.lang.String version,
932                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
933                    throws com.liferay.portal.kernel.exception.SystemException;
934    
935            /**
936            * Returns the document library file versions before and after the current document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
937            *
938            * @param fileVersionId the primary key of the current document library file version
939            * @param groupId the group ID
940            * @param folderId the folder ID
941            * @param title the title
942            * @param version the version
943            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
944            * @return the previous, current, and next document library file version
945            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
946            * @throws SystemException if a system exception occurred
947            */
948            public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_T_V_PrevAndNext(
949                    long fileVersionId, long groupId, long folderId,
950                    java.lang.String title, java.lang.String version,
951                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
952                    throws com.liferay.portal.kernel.exception.SystemException,
953                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
954    
955            /**
956            * Returns all the document library file versions.
957            *
958            * @return the document library file versions
959            * @throws SystemException if a system exception occurred
960            */
961            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll()
962                    throws com.liferay.portal.kernel.exception.SystemException;
963    
964            /**
965            * Returns a range of all the document library file versions.
966            *
967            * <p>
968            * 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.
969            * </p>
970            *
971            * @param start the lower bound of the range of document library file versions
972            * @param end the upper bound of the range of document library file versions (not inclusive)
973            * @return the range of document library file versions
974            * @throws SystemException if a system exception occurred
975            */
976            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
977                    int start, int end)
978                    throws com.liferay.portal.kernel.exception.SystemException;
979    
980            /**
981            * Returns an ordered range of all the document library file versions.
982            *
983            * <p>
984            * 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.
985            * </p>
986            *
987            * @param start the lower bound of the range of document library file versions
988            * @param end the upper bound of the range of document library file versions (not inclusive)
989            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
990            * @return the ordered range of document library file versions
991            * @throws SystemException if a system exception occurred
992            */
993            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
994                    int start, int end,
995                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
996                    throws com.liferay.portal.kernel.exception.SystemException;
997    
998            /**
999            * Removes all the document library file versions where uuid = &#63; from the database.
1000            *
1001            * @param uuid the uuid
1002            * @throws SystemException if a system exception occurred
1003            */
1004            public void removeByUuid(java.lang.String uuid)
1005                    throws com.liferay.portal.kernel.exception.SystemException;
1006    
1007            /**
1008            * Removes the document library file version where uuid = &#63; and groupId = &#63; from the database.
1009            *
1010            * @param uuid the uuid
1011            * @param groupId the group ID
1012            * @return the document library file version that was removed
1013            * @throws SystemException if a system exception occurred
1014            */
1015            public com.liferay.portlet.documentlibrary.model.DLFileVersion removeByUUID_G(
1016                    java.lang.String uuid, long groupId)
1017                    throws com.liferay.portal.kernel.exception.SystemException,
1018                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
1019    
1020            /**
1021            * Removes all the document library file versions where fileEntryId = &#63; from the database.
1022            *
1023            * @param fileEntryId the file entry ID
1024            * @throws SystemException if a system exception occurred
1025            */
1026            public void removeByFileEntryId(long fileEntryId)
1027                    throws com.liferay.portal.kernel.exception.SystemException;
1028    
1029            /**
1030            * Removes all the document library file versions where mimeType = &#63; from the database.
1031            *
1032            * @param mimeType the mime type
1033            * @throws SystemException if a system exception occurred
1034            */
1035            public void removeByMimeType(java.lang.String mimeType)
1036                    throws com.liferay.portal.kernel.exception.SystemException;
1037    
1038            /**
1039            * Removes the document library file version where fileEntryId = &#63; and version = &#63; from the database.
1040            *
1041            * @param fileEntryId the file entry ID
1042            * @param version the version
1043            * @return the document library file version that was removed
1044            * @throws SystemException if a system exception occurred
1045            */
1046            public com.liferay.portlet.documentlibrary.model.DLFileVersion removeByF_V(
1047                    long fileEntryId, java.lang.String version)
1048                    throws com.liferay.portal.kernel.exception.SystemException,
1049                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
1050    
1051            /**
1052            * Removes all the document library file versions where fileEntryId = &#63; and status = &#63; from the database.
1053            *
1054            * @param fileEntryId the file entry ID
1055            * @param status the status
1056            * @throws SystemException if a system exception occurred
1057            */
1058            public void removeByF_S(long fileEntryId, int status)
1059                    throws com.liferay.portal.kernel.exception.SystemException;
1060    
1061            /**
1062            * Removes all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63; from the database.
1063            *
1064            * @param groupId the group ID
1065            * @param folderId the folder ID
1066            * @param status the status
1067            * @throws SystemException if a system exception occurred
1068            */
1069            public void removeByG_F_S(long groupId, long folderId, int status)
1070                    throws com.liferay.portal.kernel.exception.SystemException;
1071    
1072            /**
1073            * Removes all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63; from the database.
1074            *
1075            * @param groupId the group ID
1076            * @param folderId the folder ID
1077            * @param title the title
1078            * @param version the version
1079            * @throws SystemException if a system exception occurred
1080            */
1081            public void removeByG_F_T_V(long groupId, long folderId,
1082                    java.lang.String title, java.lang.String version)
1083                    throws com.liferay.portal.kernel.exception.SystemException;
1084    
1085            /**
1086            * Removes all the document library file versions from the database.
1087            *
1088            * @throws SystemException if a system exception occurred
1089            */
1090            public void removeAll()
1091                    throws com.liferay.portal.kernel.exception.SystemException;
1092    
1093            /**
1094            * Returns the number of document library file versions where uuid = &#63;.
1095            *
1096            * @param uuid the uuid
1097            * @return the number of matching document library file versions
1098            * @throws SystemException if a system exception occurred
1099            */
1100            public int countByUuid(java.lang.String uuid)
1101                    throws com.liferay.portal.kernel.exception.SystemException;
1102    
1103            /**
1104            * Returns the number of document library file versions where uuid = &#63; and groupId = &#63;.
1105            *
1106            * @param uuid the uuid
1107            * @param groupId the group ID
1108            * @return the number of matching document library file versions
1109            * @throws SystemException if a system exception occurred
1110            */
1111            public int countByUUID_G(java.lang.String uuid, long groupId)
1112                    throws com.liferay.portal.kernel.exception.SystemException;
1113    
1114            /**
1115            * Returns the number of document library file versions where fileEntryId = &#63;.
1116            *
1117            * @param fileEntryId the file entry ID
1118            * @return the number of matching document library file versions
1119            * @throws SystemException if a system exception occurred
1120            */
1121            public int countByFileEntryId(long fileEntryId)
1122                    throws com.liferay.portal.kernel.exception.SystemException;
1123    
1124            /**
1125            * Returns the number of document library file versions where mimeType = &#63;.
1126            *
1127            * @param mimeType the mime type
1128            * @return the number of matching document library file versions
1129            * @throws SystemException if a system exception occurred
1130            */
1131            public int countByMimeType(java.lang.String mimeType)
1132                    throws com.liferay.portal.kernel.exception.SystemException;
1133    
1134            /**
1135            * Returns the number of document library file versions where fileEntryId = &#63; and version = &#63;.
1136            *
1137            * @param fileEntryId the file entry ID
1138            * @param version the version
1139            * @return the number of matching document library file versions
1140            * @throws SystemException if a system exception occurred
1141            */
1142            public int countByF_V(long fileEntryId, java.lang.String version)
1143                    throws com.liferay.portal.kernel.exception.SystemException;
1144    
1145            /**
1146            * Returns the number of document library file versions where fileEntryId = &#63; and status = &#63;.
1147            *
1148            * @param fileEntryId the file entry ID
1149            * @param status the status
1150            * @return the number of matching document library file versions
1151            * @throws SystemException if a system exception occurred
1152            */
1153            public int countByF_S(long fileEntryId, int status)
1154                    throws com.liferay.portal.kernel.exception.SystemException;
1155    
1156            /**
1157            * Returns the number of document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
1158            *
1159            * @param groupId the group ID
1160            * @param folderId the folder ID
1161            * @param status the status
1162            * @return the number of matching document library file versions
1163            * @throws SystemException if a system exception occurred
1164            */
1165            public int countByG_F_S(long groupId, long folderId, int status)
1166                    throws com.liferay.portal.kernel.exception.SystemException;
1167    
1168            /**
1169            * Returns the number of document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1170            *
1171            * @param groupId the group ID
1172            * @param folderId the folder ID
1173            * @param title the title
1174            * @param version the version
1175            * @return the number of matching document library file versions
1176            * @throws SystemException if a system exception occurred
1177            */
1178            public int countByG_F_T_V(long groupId, long folderId,
1179                    java.lang.String title, java.lang.String version)
1180                    throws com.liferay.portal.kernel.exception.SystemException;
1181    
1182            /**
1183            * Returns the number of document library file versions.
1184            *
1185            * @return the number of document library file versions
1186            * @throws SystemException if a system exception occurred
1187            */
1188            public int countAll()
1189                    throws com.liferay.portal.kernel.exception.SystemException;
1190    }