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