001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.documentlibrary.service.persistence;
016    
017    import com.liferay.portal.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 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.
386            *
387            * @param fileEntryId the file entry ID
388            * @param version the version
389            * @return the matching document library file version
390            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
391            * @throws SystemException if a system exception occurred
392            */
393            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_V(
394                    long fileEntryId, java.lang.String version)
395                    throws com.liferay.portal.kernel.exception.SystemException,
396                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
397    
398            /**
399            * 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.
400            *
401            * @param fileEntryId the file entry ID
402            * @param version the version
403            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
404            * @throws SystemException if a system exception occurred
405            */
406            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_V(
407                    long fileEntryId, java.lang.String version)
408                    throws com.liferay.portal.kernel.exception.SystemException;
409    
410            /**
411            * 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.
412            *
413            * @param fileEntryId the file entry ID
414            * @param version the version
415            * @param retrieveFromCache whether to use the finder cache
416            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
417            * @throws SystemException if a system exception occurred
418            */
419            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_V(
420                    long fileEntryId, java.lang.String version, boolean retrieveFromCache)
421                    throws com.liferay.portal.kernel.exception.SystemException;
422    
423            /**
424            * Returns all the document library file versions where fileEntryId = &#63; and status = &#63;.
425            *
426            * @param fileEntryId the file entry ID
427            * @param status the status
428            * @return the matching document library file versions
429            * @throws SystemException if a system exception occurred
430            */
431            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
432                    long fileEntryId, int status)
433                    throws com.liferay.portal.kernel.exception.SystemException;
434    
435            /**
436            * Returns a range of all the document library file versions where fileEntryId = &#63; and status = &#63;.
437            *
438            * <p>
439            * 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.
440            * </p>
441            *
442            * @param fileEntryId the file entry ID
443            * @param status the status
444            * @param start the lower bound of the range of document library file versions
445            * @param end the upper bound of the range of document library file versions (not inclusive)
446            * @return the range of matching document library file versions
447            * @throws SystemException if a system exception occurred
448            */
449            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
450                    long fileEntryId, int status, int start, int end)
451                    throws com.liferay.portal.kernel.exception.SystemException;
452    
453            /**
454            * Returns an ordered range of all the document library file versions where fileEntryId = &#63; and status = &#63;.
455            *
456            * <p>
457            * 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.
458            * </p>
459            *
460            * @param fileEntryId the file entry ID
461            * @param status the status
462            * @param start the lower bound of the range of document library file versions
463            * @param end the upper bound of the range of document library file versions (not inclusive)
464            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
465            * @return the ordered range of matching document library file versions
466            * @throws SystemException if a system exception occurred
467            */
468            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
469                    long fileEntryId, int status, int start, int end,
470                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
471                    throws com.liferay.portal.kernel.exception.SystemException;
472    
473            /**
474            * Returns the first document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
475            *
476            * @param fileEntryId the file entry ID
477            * @param status the status
478            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
479            * @return the first matching document library file version
480            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
481            * @throws SystemException if a system exception occurred
482            */
483            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_S_First(
484                    long fileEntryId, int status,
485                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
486                    throws com.liferay.portal.kernel.exception.SystemException,
487                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
488    
489            /**
490            * Returns the first document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
491            *
492            * @param fileEntryId the file entry ID
493            * @param status the status
494            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
495            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
496            * @throws SystemException if a system exception occurred
497            */
498            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_S_First(
499                    long fileEntryId, int status,
500                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
501                    throws com.liferay.portal.kernel.exception.SystemException;
502    
503            /**
504            * Returns the last document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
505            *
506            * @param fileEntryId the file entry ID
507            * @param status the status
508            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
509            * @return the last matching document library file version
510            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
511            * @throws SystemException if a system exception occurred
512            */
513            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_S_Last(
514                    long fileEntryId, int status,
515                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
516                    throws com.liferay.portal.kernel.exception.SystemException,
517                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
518    
519            /**
520            * Returns the last document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
521            *
522            * @param fileEntryId the file entry ID
523            * @param status the status
524            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
525            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
526            * @throws SystemException if a system exception occurred
527            */
528            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_S_Last(
529                    long fileEntryId, int status,
530                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
531                    throws com.liferay.portal.kernel.exception.SystemException;
532    
533            /**
534            * 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;.
535            *
536            * @param fileVersionId the primary key of the current document library file version
537            * @param fileEntryId the file entry ID
538            * @param status the status
539            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
540            * @return the previous, current, and next document library file version
541            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
542            * @throws SystemException if a system exception occurred
543            */
544            public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByF_S_PrevAndNext(
545                    long fileVersionId, long fileEntryId, int status,
546                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
547                    throws com.liferay.portal.kernel.exception.SystemException,
548                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
549    
550            /**
551            * Returns all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
552            *
553            * @param groupId the group ID
554            * @param folderId the folder ID
555            * @param status the status
556            * @return the matching document library file versions
557            * @throws SystemException if a system exception occurred
558            */
559            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
560                    long groupId, long folderId, int status)
561                    throws com.liferay.portal.kernel.exception.SystemException;
562    
563            /**
564            * Returns a range of all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
565            *
566            * <p>
567            * 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.
568            * </p>
569            *
570            * @param groupId the group ID
571            * @param folderId the folder ID
572            * @param status the status
573            * @param start the lower bound of the range of document library file versions
574            * @param end the upper bound of the range of document library file versions (not inclusive)
575            * @return the range of matching document library file versions
576            * @throws SystemException if a system exception occurred
577            */
578            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
579                    long groupId, long folderId, int status, int start, int end)
580                    throws com.liferay.portal.kernel.exception.SystemException;
581    
582            /**
583            * Returns an ordered range of all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
584            *
585            * <p>
586            * 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.
587            * </p>
588            *
589            * @param groupId the group ID
590            * @param folderId the folder ID
591            * @param status the status
592            * @param start the lower bound of the range of document library file versions
593            * @param end the upper bound of the range of document library file versions (not inclusive)
594            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
595            * @return the ordered range of matching document library file versions
596            * @throws SystemException if a system exception occurred
597            */
598            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
599                    long groupId, long folderId, int status, int start, int end,
600                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
601                    throws com.liferay.portal.kernel.exception.SystemException;
602    
603            /**
604            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
605            *
606            * @param groupId the group ID
607            * @param folderId the folder ID
608            * @param status the status
609            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
610            * @return the first matching document library file version
611            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
612            * @throws SystemException if a system exception occurred
613            */
614            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_S_First(
615                    long groupId, long folderId, int status,
616                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
617                    throws com.liferay.portal.kernel.exception.SystemException,
618                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
619    
620            /**
621            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
622            *
623            * @param groupId the group ID
624            * @param folderId the folder ID
625            * @param status the status
626            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
627            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
628            * @throws SystemException if a system exception occurred
629            */
630            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_S_First(
631                    long groupId, long folderId, int status,
632                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
633                    throws com.liferay.portal.kernel.exception.SystemException;
634    
635            /**
636            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
637            *
638            * @param groupId the group ID
639            * @param folderId the folder ID
640            * @param status the status
641            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
642            * @return the last matching document library file version
643            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
644            * @throws SystemException if a system exception occurred
645            */
646            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_S_Last(
647                    long groupId, long folderId, int status,
648                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
649                    throws com.liferay.portal.kernel.exception.SystemException,
650                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
651    
652            /**
653            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
654            *
655            * @param groupId the group ID
656            * @param folderId the folder ID
657            * @param status the status
658            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
659            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
660            * @throws SystemException if a system exception occurred
661            */
662            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_S_Last(
663                    long groupId, long folderId, int status,
664                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
665                    throws com.liferay.portal.kernel.exception.SystemException;
666    
667            /**
668            * 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;.
669            *
670            * @param fileVersionId the primary key of the current document library file version
671            * @param groupId the group ID
672            * @param folderId the folder ID
673            * @param status the status
674            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
675            * @return the previous, current, and next document library file version
676            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
677            * @throws SystemException if a system exception occurred
678            */
679            public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_S_PrevAndNext(
680                    long fileVersionId, long groupId, long folderId, int status,
681                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
682                    throws com.liferay.portal.kernel.exception.SystemException,
683                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
684    
685            /**
686            * Returns all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
687            *
688            * @param groupId the group ID
689            * @param folderId the folder ID
690            * @param title the title
691            * @param version the version
692            * @return the matching document library file versions
693            * @throws SystemException if a system exception occurred
694            */
695            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_T_V(
696                    long groupId, long folderId, java.lang.String title,
697                    java.lang.String version)
698                    throws com.liferay.portal.kernel.exception.SystemException;
699    
700            /**
701            * Returns a range of all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
702            *
703            * <p>
704            * 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.
705            * </p>
706            *
707            * @param groupId the group ID
708            * @param folderId the folder ID
709            * @param title the title
710            * @param version the version
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            * @return the range of matching document library file versions
714            * @throws SystemException if a system exception occurred
715            */
716            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_T_V(
717                    long groupId, long folderId, java.lang.String title,
718                    java.lang.String version, int start, int end)
719                    throws com.liferay.portal.kernel.exception.SystemException;
720    
721            /**
722            * Returns an ordered range of all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
723            *
724            * <p>
725            * 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.
726            * </p>
727            *
728            * @param groupId the group ID
729            * @param folderId the folder ID
730            * @param title the title
731            * @param version the version
732            * @param start the lower bound of the range of document library file versions
733            * @param end the upper bound of the range of document library file versions (not inclusive)
734            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
735            * @return the ordered range of matching document library file versions
736            * @throws SystemException if a system exception occurred
737            */
738            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_T_V(
739                    long groupId, long folderId, java.lang.String title,
740                    java.lang.String version, int start, int end,
741                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
742                    throws com.liferay.portal.kernel.exception.SystemException;
743    
744            /**
745            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
746            *
747            * @param groupId the group ID
748            * @param folderId the folder ID
749            * @param title the title
750            * @param version the version
751            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
752            * @return the first matching document library file version
753            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException 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 findByG_F_T_V_First(
757                    long groupId, long folderId, java.lang.String title,
758                    java.lang.String version,
759                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
760                    throws com.liferay.portal.kernel.exception.SystemException,
761                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
762    
763            /**
764            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
765            *
766            * @param groupId the group ID
767            * @param folderId the folder ID
768            * @param title the title
769            * @param version the version
770            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
771            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
772            * @throws SystemException if a system exception occurred
773            */
774            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_T_V_First(
775                    long groupId, long folderId, java.lang.String title,
776                    java.lang.String version,
777                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
778                    throws com.liferay.portal.kernel.exception.SystemException;
779    
780            /**
781            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
782            *
783            * @param groupId the group ID
784            * @param folderId the folder ID
785            * @param title the title
786            * @param version the version
787            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
788            * @return the last matching document library file version
789            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
790            * @throws SystemException if a system exception occurred
791            */
792            public com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_T_V_Last(
793                    long groupId, long folderId, java.lang.String title,
794                    java.lang.String version,
795                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
796                    throws com.liferay.portal.kernel.exception.SystemException,
797                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
798    
799            /**
800            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
801            *
802            * @param groupId the group ID
803            * @param folderId the folder ID
804            * @param title the title
805            * @param version the version
806            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
807            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
808            * @throws SystemException if a system exception occurred
809            */
810            public com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_T_V_Last(
811                    long groupId, long folderId, java.lang.String title,
812                    java.lang.String version,
813                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
814                    throws com.liferay.portal.kernel.exception.SystemException;
815    
816            /**
817            * 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;.
818            *
819            * @param fileVersionId the primary key of the current document library file version
820            * @param groupId the group ID
821            * @param folderId the folder ID
822            * @param title the title
823            * @param version the version
824            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
825            * @return the previous, current, and next document library file version
826            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
827            * @throws SystemException if a system exception occurred
828            */
829            public com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_T_V_PrevAndNext(
830                    long fileVersionId, long groupId, long folderId,
831                    java.lang.String title, java.lang.String version,
832                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
833                    throws com.liferay.portal.kernel.exception.SystemException,
834                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
835    
836            /**
837            * Returns all the document library file versions.
838            *
839            * @return the document library file versions
840            * @throws SystemException if a system exception occurred
841            */
842            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll()
843                    throws com.liferay.portal.kernel.exception.SystemException;
844    
845            /**
846            * Returns a range of all the document library file versions.
847            *
848            * <p>
849            * 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.
850            * </p>
851            *
852            * @param start the lower bound of the range of document library file versions
853            * @param end the upper bound of the range of document library file versions (not inclusive)
854            * @return the range of document library file versions
855            * @throws SystemException if a system exception occurred
856            */
857            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
858                    int start, int end)
859                    throws com.liferay.portal.kernel.exception.SystemException;
860    
861            /**
862            * Returns an ordered range of all the document library file versions.
863            *
864            * <p>
865            * 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.
866            * </p>
867            *
868            * @param start the lower bound of the range of document library file versions
869            * @param end the upper bound of the range of document library file versions (not inclusive)
870            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
871            * @return the ordered range of document library file versions
872            * @throws SystemException if a system exception occurred
873            */
874            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
875                    int start, int end,
876                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
877                    throws com.liferay.portal.kernel.exception.SystemException;
878    
879            /**
880            * Removes all the document library file versions where uuid = &#63; from the database.
881            *
882            * @param uuid the uuid
883            * @throws SystemException if a system exception occurred
884            */
885            public void removeByUuid(java.lang.String uuid)
886                    throws com.liferay.portal.kernel.exception.SystemException;
887    
888            /**
889            * Removes the document library file version where uuid = &#63; and groupId = &#63; from the database.
890            *
891            * @param uuid the uuid
892            * @param groupId the group ID
893            * @return the document library file version that was removed
894            * @throws SystemException if a system exception occurred
895            */
896            public com.liferay.portlet.documentlibrary.model.DLFileVersion removeByUUID_G(
897                    java.lang.String uuid, long groupId)
898                    throws com.liferay.portal.kernel.exception.SystemException,
899                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
900    
901            /**
902            * Removes all the document library file versions where fileEntryId = &#63; from the database.
903            *
904            * @param fileEntryId the file entry ID
905            * @throws SystemException if a system exception occurred
906            */
907            public void removeByFileEntryId(long fileEntryId)
908                    throws com.liferay.portal.kernel.exception.SystemException;
909    
910            /**
911            * Removes the document library file version where fileEntryId = &#63; and version = &#63; from the database.
912            *
913            * @param fileEntryId the file entry ID
914            * @param version the version
915            * @return the document library file version that was removed
916            * @throws SystemException if a system exception occurred
917            */
918            public com.liferay.portlet.documentlibrary.model.DLFileVersion removeByF_V(
919                    long fileEntryId, java.lang.String version)
920                    throws com.liferay.portal.kernel.exception.SystemException,
921                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException;
922    
923            /**
924            * Removes all the document library file versions where fileEntryId = &#63; and status = &#63; from the database.
925            *
926            * @param fileEntryId the file entry ID
927            * @param status the status
928            * @throws SystemException if a system exception occurred
929            */
930            public void removeByF_S(long fileEntryId, int status)
931                    throws com.liferay.portal.kernel.exception.SystemException;
932    
933            /**
934            * Removes all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63; from the database.
935            *
936            * @param groupId the group ID
937            * @param folderId the folder ID
938            * @param status the status
939            * @throws SystemException if a system exception occurred
940            */
941            public void removeByG_F_S(long groupId, long folderId, int status)
942                    throws com.liferay.portal.kernel.exception.SystemException;
943    
944            /**
945            * Removes all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63; from the database.
946            *
947            * @param groupId the group ID
948            * @param folderId the folder ID
949            * @param title the title
950            * @param version the version
951            * @throws SystemException if a system exception occurred
952            */
953            public void removeByG_F_T_V(long groupId, long folderId,
954                    java.lang.String title, java.lang.String version)
955                    throws com.liferay.portal.kernel.exception.SystemException;
956    
957            /**
958            * Removes all the document library file versions from the database.
959            *
960            * @throws SystemException if a system exception occurred
961            */
962            public void removeAll()
963                    throws com.liferay.portal.kernel.exception.SystemException;
964    
965            /**
966            * Returns the number of document library file versions where uuid = &#63;.
967            *
968            * @param uuid the uuid
969            * @return the number of matching document library file versions
970            * @throws SystemException if a system exception occurred
971            */
972            public int countByUuid(java.lang.String uuid)
973                    throws com.liferay.portal.kernel.exception.SystemException;
974    
975            /**
976            * Returns the number of document library file versions where uuid = &#63; and groupId = &#63;.
977            *
978            * @param uuid the uuid
979            * @param groupId the group ID
980            * @return the number of matching document library file versions
981            * @throws SystemException if a system exception occurred
982            */
983            public int countByUUID_G(java.lang.String uuid, long groupId)
984                    throws com.liferay.portal.kernel.exception.SystemException;
985    
986            /**
987            * Returns the number of document library file versions where fileEntryId = &#63;.
988            *
989            * @param fileEntryId the file entry ID
990            * @return the number of matching document library file versions
991            * @throws SystemException if a system exception occurred
992            */
993            public int countByFileEntryId(long fileEntryId)
994                    throws com.liferay.portal.kernel.exception.SystemException;
995    
996            /**
997            * Returns the number of document library file versions where fileEntryId = &#63; and version = &#63;.
998            *
999            * @param fileEntryId the file entry ID
1000            * @param version the version
1001            * @return the number of matching document library file versions
1002            * @throws SystemException if a system exception occurred
1003            */
1004            public int countByF_V(long fileEntryId, java.lang.String version)
1005                    throws com.liferay.portal.kernel.exception.SystemException;
1006    
1007            /**
1008            * Returns the number of document library file versions where fileEntryId = &#63; and status = &#63;.
1009            *
1010            * @param fileEntryId the file entry ID
1011            * @param status the status
1012            * @return the number of matching document library file versions
1013            * @throws SystemException if a system exception occurred
1014            */
1015            public int countByF_S(long fileEntryId, int status)
1016                    throws com.liferay.portal.kernel.exception.SystemException;
1017    
1018            /**
1019            * Returns the number of document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
1020            *
1021            * @param groupId the group ID
1022            * @param folderId the folder ID
1023            * @param status the status
1024            * @return the number of matching document library file versions
1025            * @throws SystemException if a system exception occurred
1026            */
1027            public int countByG_F_S(long groupId, long folderId, int status)
1028                    throws com.liferay.portal.kernel.exception.SystemException;
1029    
1030            /**
1031            * Returns the number of document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1032            *
1033            * @param groupId the group ID
1034            * @param folderId the folder ID
1035            * @param title the title
1036            * @param version the version
1037            * @return the number of matching document library file versions
1038            * @throws SystemException if a system exception occurred
1039            */
1040            public int countByG_F_T_V(long groupId, long folderId,
1041                    java.lang.String title, java.lang.String version)
1042                    throws com.liferay.portal.kernel.exception.SystemException;
1043    
1044            /**
1045            * Returns the number of document library file versions.
1046            *
1047            * @return the number of document library file versions
1048            * @throws SystemException if a system exception occurred
1049            */
1050            public int countAll()
1051                    throws com.liferay.portal.kernel.exception.SystemException;
1052    }