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.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.documentlibrary.model.DLFileVersion;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the document library file version service. This utility wraps {@link DLFileVersionPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see DLFileVersionPersistence
037     * @see DLFileVersionPersistenceImpl
038     * @generated
039     */
040    public class DLFileVersionUtil {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
045             */
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
049             */
050            public static void clearCache() {
051                    getPersistence().clearCache();
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
056             */
057            public static void clearCache(DLFileVersion dlFileVersion) {
058                    getPersistence().clearCache(dlFileVersion);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
063             */
064            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
065                    throws SystemException {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<DLFileVersion> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) throws SystemException {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<DLFileVersion> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end)
082                    throws SystemException {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<DLFileVersion> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator orderByComparator) throws SystemException {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
099             */
100            public static DLFileVersion update(DLFileVersion dlFileVersion,
101                    boolean merge) throws SystemException {
102                    return getPersistence().update(dlFileVersion, merge);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
107             */
108            public static DLFileVersion update(DLFileVersion dlFileVersion,
109                    boolean merge, ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(dlFileVersion, merge, serviceContext);
111            }
112    
113            /**
114            * Caches the document library file version in the entity cache if it is enabled.
115            *
116            * @param dlFileVersion the document library file version
117            */
118            public static void cacheResult(
119                    com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion) {
120                    getPersistence().cacheResult(dlFileVersion);
121            }
122    
123            /**
124            * Caches the document library file versions in the entity cache if it is enabled.
125            *
126            * @param dlFileVersions the document library file versions
127            */
128            public static void cacheResult(
129                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> dlFileVersions) {
130                    getPersistence().cacheResult(dlFileVersions);
131            }
132    
133            /**
134            * Creates a new document library file version with the primary key. Does not add the document library file version to the database.
135            *
136            * @param fileVersionId the primary key for the new document library file version
137            * @return the new document library file version
138            */
139            public static com.liferay.portlet.documentlibrary.model.DLFileVersion create(
140                    long fileVersionId) {
141                    return getPersistence().create(fileVersionId);
142            }
143    
144            /**
145            * Removes the document library file version with the primary key from the database. Also notifies the appropriate model listeners.
146            *
147            * @param fileVersionId the primary key of the document library file version
148            * @return the document library file version that was removed
149            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
150            * @throws SystemException if a system exception occurred
151            */
152            public static com.liferay.portlet.documentlibrary.model.DLFileVersion remove(
153                    long fileVersionId)
154                    throws com.liferay.portal.kernel.exception.SystemException,
155                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
156                    return getPersistence().remove(fileVersionId);
157            }
158    
159            public static com.liferay.portlet.documentlibrary.model.DLFileVersion updateImpl(
160                    com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
161                    boolean merge)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getPersistence().updateImpl(dlFileVersion, merge);
164            }
165    
166            /**
167            * 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.
168            *
169            * @param fileVersionId the primary key of the document library file version
170            * @return the document library file version
171            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByPrimaryKey(
175                    long fileVersionId)
176                    throws com.liferay.portal.kernel.exception.SystemException,
177                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
178                    return getPersistence().findByPrimaryKey(fileVersionId);
179            }
180    
181            /**
182            * Returns the document library file version with the primary key or returns <code>null</code> if it could not be found.
183            *
184            * @param fileVersionId the primary key of the document library file version
185            * @return the document library file version, or <code>null</code> if a document library file version with the primary key could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByPrimaryKey(
189                    long fileVersionId)
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return getPersistence().fetchByPrimaryKey(fileVersionId);
192            }
193    
194            /**
195            * Returns all the document library file versions where uuid = &#63;.
196            *
197            * @param uuid the uuid
198            * @return the matching document library file versions
199            * @throws SystemException if a system exception occurred
200            */
201            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByUuid(
202                    java.lang.String uuid)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return getPersistence().findByUuid(uuid);
205            }
206    
207            /**
208            * Returns a range of all the document library file versions where uuid = &#63;.
209            *
210            * <p>
211            * 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.
212            * </p>
213            *
214            * @param uuid the uuid
215            * @param start the lower bound of the range of document library file versions
216            * @param end the upper bound of the range of document library file versions (not inclusive)
217            * @return the range of matching document library file versions
218            * @throws SystemException if a system exception occurred
219            */
220            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByUuid(
221                    java.lang.String uuid, int start, int end)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return getPersistence().findByUuid(uuid, start, end);
224            }
225    
226            /**
227            * Returns an ordered range of all the document library file versions where uuid = &#63;.
228            *
229            * <p>
230            * 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.
231            * </p>
232            *
233            * @param uuid the uuid
234            * @param start the lower bound of the range of document library file versions
235            * @param end the upper bound of the range of document library file versions (not inclusive)
236            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
237            * @return the ordered range of matching document library file versions
238            * @throws SystemException if a system exception occurred
239            */
240            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByUuid(
241                    java.lang.String uuid, int start, int end,
242                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
245            }
246    
247            /**
248            * Returns the first document library file version in the ordered set where uuid = &#63;.
249            *
250            * @param uuid the uuid
251            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
252            * @return the first matching document library file version
253            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
254            * @throws SystemException if a system exception occurred
255            */
256            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByUuid_First(
257                    java.lang.String uuid,
258                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259                    throws com.liferay.portal.kernel.exception.SystemException,
260                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
261                    return getPersistence().findByUuid_First(uuid, orderByComparator);
262            }
263    
264            /**
265            * Returns the first document library file version in the ordered set where uuid = &#63;.
266            *
267            * @param uuid the uuid
268            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
269            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
270            * @throws SystemException if a system exception occurred
271            */
272            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByUuid_First(
273                    java.lang.String uuid,
274                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
277            }
278    
279            /**
280            * Returns the last document library file version in the ordered set where uuid = &#63;.
281            *
282            * @param uuid the uuid
283            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
284            * @return the last matching document library file version
285            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
286            * @throws SystemException if a system exception occurred
287            */
288            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByUuid_Last(
289                    java.lang.String uuid,
290                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291                    throws com.liferay.portal.kernel.exception.SystemException,
292                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
293                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
294            }
295    
296            /**
297            * Returns the last document library file version in the ordered set where uuid = &#63;.
298            *
299            * @param uuid the uuid
300            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
301            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
302            * @throws SystemException if a system exception occurred
303            */
304            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByUuid_Last(
305                    java.lang.String uuid,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
309            }
310    
311            /**
312            * Returns the document library file versions before and after the current document library file version in the ordered set where uuid = &#63;.
313            *
314            * @param fileVersionId the primary key of the current document library file version
315            * @param uuid the uuid
316            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
317            * @return the previous, current, and next document library file version
318            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByUuid_PrevAndNext(
322                    long fileVersionId, java.lang.String uuid,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.kernel.exception.SystemException,
325                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
326                    return getPersistence()
327                                       .findByUuid_PrevAndNext(fileVersionId, uuid,
328                            orderByComparator);
329            }
330    
331            /**
332            * 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.
333            *
334            * @param uuid the uuid
335            * @param groupId the group ID
336            * @return the matching document library file version
337            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
338            * @throws SystemException if a system exception occurred
339            */
340            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByUUID_G(
341                    java.lang.String uuid, long groupId)
342                    throws com.liferay.portal.kernel.exception.SystemException,
343                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
344                    return getPersistence().findByUUID_G(uuid, groupId);
345            }
346    
347            /**
348            * 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.
349            *
350            * @param uuid the uuid
351            * @param groupId the group ID
352            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
353            * @throws SystemException if a system exception occurred
354            */
355            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByUUID_G(
356                    java.lang.String uuid, long groupId)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    return getPersistence().fetchByUUID_G(uuid, groupId);
359            }
360    
361            /**
362            * 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.
363            *
364            * @param uuid the uuid
365            * @param groupId the group ID
366            * @param retrieveFromCache whether to use the finder cache
367            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
368            * @throws SystemException if a system exception occurred
369            */
370            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByUUID_G(
371                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
374            }
375    
376            /**
377            * Returns all the document library file versions where fileEntryId = &#63;.
378            *
379            * @param fileEntryId the file entry ID
380            * @return the matching document library file versions
381            * @throws SystemException if a system exception occurred
382            */
383            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByFileEntryId(
384                    long fileEntryId)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return getPersistence().findByFileEntryId(fileEntryId);
387            }
388    
389            /**
390            * Returns a range of all the document library file versions where fileEntryId = &#63;.
391            *
392            * <p>
393            * 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.
394            * </p>
395            *
396            * @param fileEntryId the file entry ID
397            * @param start the lower bound of the range of document library file versions
398            * @param end the upper bound of the range of document library file versions (not inclusive)
399            * @return the range of matching document library file versions
400            * @throws SystemException if a system exception occurred
401            */
402            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByFileEntryId(
403                    long fileEntryId, int start, int end)
404                    throws com.liferay.portal.kernel.exception.SystemException {
405                    return getPersistence().findByFileEntryId(fileEntryId, start, end);
406            }
407    
408            /**
409            * Returns an ordered range of all the document library file versions where fileEntryId = &#63;.
410            *
411            * <p>
412            * 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.
413            * </p>
414            *
415            * @param fileEntryId the file entry ID
416            * @param start the lower bound of the range of document library file versions
417            * @param end the upper bound of the range of document library file versions (not inclusive)
418            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
419            * @return the ordered range of matching document library file versions
420            * @throws SystemException if a system exception occurred
421            */
422            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByFileEntryId(
423                    long fileEntryId, int start, int end,
424                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
425                    throws com.liferay.portal.kernel.exception.SystemException {
426                    return getPersistence()
427                                       .findByFileEntryId(fileEntryId, start, end, orderByComparator);
428            }
429    
430            /**
431            * Returns the first document library file version in the ordered set where fileEntryId = &#63;.
432            *
433            * @param fileEntryId the file entry ID
434            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
435            * @return the first matching document library file version
436            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
437            * @throws SystemException if a system exception occurred
438            */
439            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByFileEntryId_First(
440                    long fileEntryId,
441                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
442                    throws com.liferay.portal.kernel.exception.SystemException,
443                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
444                    return getPersistence()
445                                       .findByFileEntryId_First(fileEntryId, orderByComparator);
446            }
447    
448            /**
449            * Returns the first document library file version in the ordered set where fileEntryId = &#63;.
450            *
451            * @param fileEntryId the file entry ID
452            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
453            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
454            * @throws SystemException if a system exception occurred
455            */
456            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByFileEntryId_First(
457                    long fileEntryId,
458                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
459                    throws com.liferay.portal.kernel.exception.SystemException {
460                    return getPersistence()
461                                       .fetchByFileEntryId_First(fileEntryId, orderByComparator);
462            }
463    
464            /**
465            * Returns the last document library file version in the ordered set where fileEntryId = &#63;.
466            *
467            * @param fileEntryId the file entry ID
468            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
469            * @return the last matching document library file version
470            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
471            * @throws SystemException if a system exception occurred
472            */
473            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByFileEntryId_Last(
474                    long fileEntryId,
475                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
476                    throws com.liferay.portal.kernel.exception.SystemException,
477                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
478                    return getPersistence()
479                                       .findByFileEntryId_Last(fileEntryId, orderByComparator);
480            }
481    
482            /**
483            * Returns the last document library file version in the ordered set where fileEntryId = &#63;.
484            *
485            * @param fileEntryId the file entry ID
486            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
487            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
488            * @throws SystemException if a system exception occurred
489            */
490            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByFileEntryId_Last(
491                    long fileEntryId,
492                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
493                    throws com.liferay.portal.kernel.exception.SystemException {
494                    return getPersistence()
495                                       .fetchByFileEntryId_Last(fileEntryId, orderByComparator);
496            }
497    
498            /**
499            * Returns the document library file versions before and after the current document library file version in the ordered set where fileEntryId = &#63;.
500            *
501            * @param fileVersionId the primary key of the current document library file version
502            * @param fileEntryId the file entry ID
503            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
504            * @return the previous, current, and next document library file version
505            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
506            * @throws SystemException if a system exception occurred
507            */
508            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByFileEntryId_PrevAndNext(
509                    long fileVersionId, long fileEntryId,
510                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
511                    throws com.liferay.portal.kernel.exception.SystemException,
512                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
513                    return getPersistence()
514                                       .findByFileEntryId_PrevAndNext(fileVersionId, fileEntryId,
515                            orderByComparator);
516            }
517    
518            /**
519            * 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.
520            *
521            * @param fileEntryId the file entry ID
522            * @param version the version
523            * @return the matching document library file version
524            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
525            * @throws SystemException if a system exception occurred
526            */
527            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_V(
528                    long fileEntryId, java.lang.String version)
529                    throws com.liferay.portal.kernel.exception.SystemException,
530                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
531                    return getPersistence().findByF_V(fileEntryId, version);
532            }
533    
534            /**
535            * 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.
536            *
537            * @param fileEntryId the file entry ID
538            * @param version the version
539            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
540            * @throws SystemException if a system exception occurred
541            */
542            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_V(
543                    long fileEntryId, java.lang.String version)
544                    throws com.liferay.portal.kernel.exception.SystemException {
545                    return getPersistence().fetchByF_V(fileEntryId, version);
546            }
547    
548            /**
549            * 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.
550            *
551            * @param fileEntryId the file entry ID
552            * @param version the version
553            * @param retrieveFromCache whether to use the finder cache
554            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
555            * @throws SystemException if a system exception occurred
556            */
557            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_V(
558                    long fileEntryId, java.lang.String version, boolean retrieveFromCache)
559                    throws com.liferay.portal.kernel.exception.SystemException {
560                    return getPersistence()
561                                       .fetchByF_V(fileEntryId, version, retrieveFromCache);
562            }
563    
564            /**
565            * Returns all the document library file versions where fileEntryId = &#63; and status = &#63;.
566            *
567            * @param fileEntryId the file entry ID
568            * @param status the status
569            * @return the matching document library file versions
570            * @throws SystemException if a system exception occurred
571            */
572            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
573                    long fileEntryId, int status)
574                    throws com.liferay.portal.kernel.exception.SystemException {
575                    return getPersistence().findByF_S(fileEntryId, status);
576            }
577    
578            /**
579            * Returns a range of all the document library file versions where fileEntryId = &#63; and status = &#63;.
580            *
581            * <p>
582            * 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.
583            * </p>
584            *
585            * @param fileEntryId the file entry ID
586            * @param status the status
587            * @param start the lower bound of the range of document library file versions
588            * @param end the upper bound of the range of document library file versions (not inclusive)
589            * @return the range of matching document library file versions
590            * @throws SystemException if a system exception occurred
591            */
592            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
593                    long fileEntryId, int status, int start, int end)
594                    throws com.liferay.portal.kernel.exception.SystemException {
595                    return getPersistence().findByF_S(fileEntryId, status, start, end);
596            }
597    
598            /**
599            * Returns an ordered range of all the document library file versions where fileEntryId = &#63; and status = &#63;.
600            *
601            * <p>
602            * 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.
603            * </p>
604            *
605            * @param fileEntryId the file entry ID
606            * @param status the status
607            * @param start the lower bound of the range of document library file versions
608            * @param end the upper bound of the range of document library file versions (not inclusive)
609            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
610            * @return the ordered range of matching document library file versions
611            * @throws SystemException if a system exception occurred
612            */
613            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
614                    long fileEntryId, int status, int start, int end,
615                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
616                    throws com.liferay.portal.kernel.exception.SystemException {
617                    return getPersistence()
618                                       .findByF_S(fileEntryId, status, start, end, orderByComparator);
619            }
620    
621            /**
622            * Returns the first document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
623            *
624            * @param fileEntryId the file entry 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
628            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
629            * @throws SystemException if a system exception occurred
630            */
631            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_S_First(
632                    long fileEntryId, int status,
633                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
634                    throws com.liferay.portal.kernel.exception.SystemException,
635                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
636                    return getPersistence()
637                                       .findByF_S_First(fileEntryId, status, orderByComparator);
638            }
639    
640            /**
641            * Returns the first document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
642            *
643            * @param fileEntryId the file entry ID
644            * @param status the status
645            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
646            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
647            * @throws SystemException if a system exception occurred
648            */
649            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_S_First(
650                    long fileEntryId, int status,
651                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
652                    throws com.liferay.portal.kernel.exception.SystemException {
653                    return getPersistence()
654                                       .fetchByF_S_First(fileEntryId, status, orderByComparator);
655            }
656    
657            /**
658            * Returns the last document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
659            *
660            * @param fileEntryId the file entry ID
661            * @param status the status
662            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
663            * @return the last matching document library file version
664            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
665            * @throws SystemException if a system exception occurred
666            */
667            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_S_Last(
668                    long fileEntryId, int status,
669                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
670                    throws com.liferay.portal.kernel.exception.SystemException,
671                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
672                    return getPersistence()
673                                       .findByF_S_Last(fileEntryId, status, orderByComparator);
674            }
675    
676            /**
677            * Returns the last document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
678            *
679            * @param fileEntryId the file entry ID
680            * @param status the status
681            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
682            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
683            * @throws SystemException if a system exception occurred
684            */
685            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_S_Last(
686                    long fileEntryId, int status,
687                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
688                    throws com.liferay.portal.kernel.exception.SystemException {
689                    return getPersistence()
690                                       .fetchByF_S_Last(fileEntryId, status, orderByComparator);
691            }
692    
693            /**
694            * 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;.
695            *
696            * @param fileVersionId the primary key of the current document library file version
697            * @param fileEntryId the file entry ID
698            * @param status the status
699            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
700            * @return the previous, current, and next document library file version
701            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
702            * @throws SystemException if a system exception occurred
703            */
704            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByF_S_PrevAndNext(
705                    long fileVersionId, long fileEntryId, int status,
706                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
707                    throws com.liferay.portal.kernel.exception.SystemException,
708                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
709                    return getPersistence()
710                                       .findByF_S_PrevAndNext(fileVersionId, fileEntryId, status,
711                            orderByComparator);
712            }
713    
714            /**
715            * Returns all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
716            *
717            * @param groupId the group ID
718            * @param folderId the folder ID
719            * @param status the status
720            * @return the matching document library file versions
721            * @throws SystemException if a system exception occurred
722            */
723            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
724                    long groupId, long folderId, int status)
725                    throws com.liferay.portal.kernel.exception.SystemException {
726                    return getPersistence().findByG_F_S(groupId, folderId, status);
727            }
728    
729            /**
730            * Returns a range of all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
731            *
732            * <p>
733            * 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.
734            * </p>
735            *
736            * @param groupId the group ID
737            * @param folderId the folder ID
738            * @param status the status
739            * @param start the lower bound of the range of document library file versions
740            * @param end the upper bound of the range of document library file versions (not inclusive)
741            * @return the range of matching document library file versions
742            * @throws SystemException if a system exception occurred
743            */
744            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
745                    long groupId, long folderId, int status, int start, int end)
746                    throws com.liferay.portal.kernel.exception.SystemException {
747                    return getPersistence()
748                                       .findByG_F_S(groupId, folderId, status, start, end);
749            }
750    
751            /**
752            * Returns an ordered range of all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
753            *
754            * <p>
755            * 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.
756            * </p>
757            *
758            * @param groupId the group ID
759            * @param folderId the folder ID
760            * @param status the status
761            * @param start the lower bound of the range of document library file versions
762            * @param end the upper bound of the range of document library file versions (not inclusive)
763            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
764            * @return the ordered range of matching document library file versions
765            * @throws SystemException if a system exception occurred
766            */
767            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
768                    long groupId, long folderId, int status, int start, int end,
769                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
770                    throws com.liferay.portal.kernel.exception.SystemException {
771                    return getPersistence()
772                                       .findByG_F_S(groupId, folderId, status, start, end,
773                            orderByComparator);
774            }
775    
776            /**
777            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
778            *
779            * @param groupId the group ID
780            * @param folderId the folder ID
781            * @param status the status
782            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
783            * @return the first matching document library file version
784            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
785            * @throws SystemException if a system exception occurred
786            */
787            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_S_First(
788                    long groupId, long folderId, int status,
789                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
790                    throws com.liferay.portal.kernel.exception.SystemException,
791                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
792                    return getPersistence()
793                                       .findByG_F_S_First(groupId, folderId, status,
794                            orderByComparator);
795            }
796    
797            /**
798            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
799            *
800            * @param groupId the group ID
801            * @param folderId the folder ID
802            * @param status the status
803            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
804            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
805            * @throws SystemException if a system exception occurred
806            */
807            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_S_First(
808                    long groupId, long folderId, int status,
809                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
810                    throws com.liferay.portal.kernel.exception.SystemException {
811                    return getPersistence()
812                                       .fetchByG_F_S_First(groupId, folderId, status,
813                            orderByComparator);
814            }
815    
816            /**
817            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
818            *
819            * @param groupId the group ID
820            * @param folderId the folder ID
821            * @param status the status
822            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
823            * @return the last matching document library file version
824            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
825            * @throws SystemException if a system exception occurred
826            */
827            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_S_Last(
828                    long groupId, long folderId, int status,
829                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
830                    throws com.liferay.portal.kernel.exception.SystemException,
831                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
832                    return getPersistence()
833                                       .findByG_F_S_Last(groupId, folderId, status,
834                            orderByComparator);
835            }
836    
837            /**
838            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
839            *
840            * @param groupId the group ID
841            * @param folderId the folder ID
842            * @param status the status
843            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
844            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
845            * @throws SystemException if a system exception occurred
846            */
847            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_S_Last(
848                    long groupId, long folderId, int status,
849                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
850                    throws com.liferay.portal.kernel.exception.SystemException {
851                    return getPersistence()
852                                       .fetchByG_F_S_Last(groupId, folderId, status,
853                            orderByComparator);
854            }
855    
856            /**
857            * 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;.
858            *
859            * @param fileVersionId the primary key of the current document library file version
860            * @param groupId the group ID
861            * @param folderId the folder ID
862            * @param status the status
863            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
864            * @return the previous, current, and next document library file version
865            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
866            * @throws SystemException if a system exception occurred
867            */
868            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_S_PrevAndNext(
869                    long fileVersionId, long groupId, long folderId, int status,
870                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
871                    throws com.liferay.portal.kernel.exception.SystemException,
872                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
873                    return getPersistence()
874                                       .findByG_F_S_PrevAndNext(fileVersionId, groupId, folderId,
875                            status, orderByComparator);
876            }
877    
878            /**
879            * Returns all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
880            *
881            * @param groupId the group ID
882            * @param folderId the folder ID
883            * @param title the title
884            * @param version the version
885            * @return the matching document library file versions
886            * @throws SystemException if a system exception occurred
887            */
888            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_T_V(
889                    long groupId, long folderId, java.lang.String title,
890                    java.lang.String version)
891                    throws com.liferay.portal.kernel.exception.SystemException {
892                    return getPersistence().findByG_F_T_V(groupId, folderId, title, version);
893            }
894    
895            /**
896            * Returns a range of all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
897            *
898            * <p>
899            * 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.
900            * </p>
901            *
902            * @param groupId the group ID
903            * @param folderId the folder ID
904            * @param title the title
905            * @param version the version
906            * @param start the lower bound of the range of document library file versions
907            * @param end the upper bound of the range of document library file versions (not inclusive)
908            * @return the range of matching document library file versions
909            * @throws SystemException if a system exception occurred
910            */
911            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_T_V(
912                    long groupId, long folderId, java.lang.String title,
913                    java.lang.String version, int start, int end)
914                    throws com.liferay.portal.kernel.exception.SystemException {
915                    return getPersistence()
916                                       .findByG_F_T_V(groupId, folderId, title, version, start, end);
917            }
918    
919            /**
920            * Returns an ordered range of all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
921            *
922            * <p>
923            * 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.
924            * </p>
925            *
926            * @param groupId the group ID
927            * @param folderId the folder ID
928            * @param title the title
929            * @param version the version
930            * @param start the lower bound of the range of document library file versions
931            * @param end the upper bound of the range of document library file versions (not inclusive)
932            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
933            * @return the ordered range of matching document library file versions
934            * @throws SystemException if a system exception occurred
935            */
936            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_T_V(
937                    long groupId, long folderId, java.lang.String title,
938                    java.lang.String version, int start, int end,
939                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
940                    throws com.liferay.portal.kernel.exception.SystemException {
941                    return getPersistence()
942                                       .findByG_F_T_V(groupId, folderId, title, version, start,
943                            end, orderByComparator);
944            }
945    
946            /**
947            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
948            *
949            * @param groupId the group ID
950            * @param folderId the folder ID
951            * @param title the title
952            * @param version the version
953            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
954            * @return the first matching document library file version
955            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
956            * @throws SystemException if a system exception occurred
957            */
958            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_T_V_First(
959                    long groupId, long folderId, java.lang.String title,
960                    java.lang.String version,
961                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
962                    throws com.liferay.portal.kernel.exception.SystemException,
963                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
964                    return getPersistence()
965                                       .findByG_F_T_V_First(groupId, folderId, title, version,
966                            orderByComparator);
967            }
968    
969            /**
970            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
971            *
972            * @param groupId the group ID
973            * @param folderId the folder ID
974            * @param title the title
975            * @param version the version
976            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
977            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
978            * @throws SystemException if a system exception occurred
979            */
980            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_T_V_First(
981                    long groupId, long folderId, java.lang.String title,
982                    java.lang.String version,
983                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
984                    throws com.liferay.portal.kernel.exception.SystemException {
985                    return getPersistence()
986                                       .fetchByG_F_T_V_First(groupId, folderId, title, version,
987                            orderByComparator);
988            }
989    
990            /**
991            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
992            *
993            * @param groupId the group ID
994            * @param folderId the folder ID
995            * @param title the title
996            * @param version the version
997            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
998            * @return the last matching document library file version
999            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
1000            * @throws SystemException if a system exception occurred
1001            */
1002            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_T_V_Last(
1003                    long groupId, long folderId, java.lang.String title,
1004                    java.lang.String version,
1005                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1006                    throws com.liferay.portal.kernel.exception.SystemException,
1007                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1008                    return getPersistence()
1009                                       .findByG_F_T_V_Last(groupId, folderId, title, version,
1010                            orderByComparator);
1011            }
1012    
1013            /**
1014            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1015            *
1016            * @param groupId the group ID
1017            * @param folderId the folder ID
1018            * @param title the title
1019            * @param version the version
1020            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1021            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
1022            * @throws SystemException if a system exception occurred
1023            */
1024            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_T_V_Last(
1025                    long groupId, long folderId, java.lang.String title,
1026                    java.lang.String version,
1027                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1028                    throws com.liferay.portal.kernel.exception.SystemException {
1029                    return getPersistence()
1030                                       .fetchByG_F_T_V_Last(groupId, folderId, title, version,
1031                            orderByComparator);
1032            }
1033    
1034            /**
1035            * 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;.
1036            *
1037            * @param fileVersionId the primary key of the current document library file version
1038            * @param groupId the group ID
1039            * @param folderId the folder ID
1040            * @param title the title
1041            * @param version the version
1042            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1043            * @return the previous, current, and next document library file version
1044            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
1045            * @throws SystemException if a system exception occurred
1046            */
1047            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_T_V_PrevAndNext(
1048                    long fileVersionId, long groupId, long folderId,
1049                    java.lang.String title, java.lang.String version,
1050                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1051                    throws com.liferay.portal.kernel.exception.SystemException,
1052                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1053                    return getPersistence()
1054                                       .findByG_F_T_V_PrevAndNext(fileVersionId, groupId, folderId,
1055                            title, version, orderByComparator);
1056            }
1057    
1058            /**
1059            * Returns all the document library file versions.
1060            *
1061            * @return the document library file versions
1062            * @throws SystemException if a system exception occurred
1063            */
1064            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll()
1065                    throws com.liferay.portal.kernel.exception.SystemException {
1066                    return getPersistence().findAll();
1067            }
1068    
1069            /**
1070            * Returns a range of all the document library file versions.
1071            *
1072            * <p>
1073            * 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.
1074            * </p>
1075            *
1076            * @param start the lower bound of the range of document library file versions
1077            * @param end the upper bound of the range of document library file versions (not inclusive)
1078            * @return the range of document library file versions
1079            * @throws SystemException if a system exception occurred
1080            */
1081            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
1082                    int start, int end)
1083                    throws com.liferay.portal.kernel.exception.SystemException {
1084                    return getPersistence().findAll(start, end);
1085            }
1086    
1087            /**
1088            * Returns an ordered range of all the document library file versions.
1089            *
1090            * <p>
1091            * 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.
1092            * </p>
1093            *
1094            * @param start the lower bound of the range of document library file versions
1095            * @param end the upper bound of the range of document library file versions (not inclusive)
1096            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1097            * @return the ordered range of document library file versions
1098            * @throws SystemException if a system exception occurred
1099            */
1100            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
1101                    int start, int end,
1102                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1103                    throws com.liferay.portal.kernel.exception.SystemException {
1104                    return getPersistence().findAll(start, end, orderByComparator);
1105            }
1106    
1107            /**
1108            * Removes all the document library file versions where uuid = &#63; from the database.
1109            *
1110            * @param uuid the uuid
1111            * @throws SystemException if a system exception occurred
1112            */
1113            public static void removeByUuid(java.lang.String uuid)
1114                    throws com.liferay.portal.kernel.exception.SystemException {
1115                    getPersistence().removeByUuid(uuid);
1116            }
1117    
1118            /**
1119            * Removes the document library file version where uuid = &#63; and groupId = &#63; from the database.
1120            *
1121            * @param uuid the uuid
1122            * @param groupId the group ID
1123            * @return the document library file version that was removed
1124            * @throws SystemException if a system exception occurred
1125            */
1126            public static com.liferay.portlet.documentlibrary.model.DLFileVersion removeByUUID_G(
1127                    java.lang.String uuid, long groupId)
1128                    throws com.liferay.portal.kernel.exception.SystemException,
1129                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1130                    return getPersistence().removeByUUID_G(uuid, groupId);
1131            }
1132    
1133            /**
1134            * Removes all the document library file versions where fileEntryId = &#63; from the database.
1135            *
1136            * @param fileEntryId the file entry ID
1137            * @throws SystemException if a system exception occurred
1138            */
1139            public static void removeByFileEntryId(long fileEntryId)
1140                    throws com.liferay.portal.kernel.exception.SystemException {
1141                    getPersistence().removeByFileEntryId(fileEntryId);
1142            }
1143    
1144            /**
1145            * Removes the document library file version where fileEntryId = &#63; and version = &#63; from the database.
1146            *
1147            * @param fileEntryId the file entry ID
1148            * @param version the version
1149            * @return the document library file version that was removed
1150            * @throws SystemException if a system exception occurred
1151            */
1152            public static com.liferay.portlet.documentlibrary.model.DLFileVersion removeByF_V(
1153                    long fileEntryId, java.lang.String version)
1154                    throws com.liferay.portal.kernel.exception.SystemException,
1155                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1156                    return getPersistence().removeByF_V(fileEntryId, version);
1157            }
1158    
1159            /**
1160            * Removes all the document library file versions where fileEntryId = &#63; and status = &#63; from the database.
1161            *
1162            * @param fileEntryId the file entry ID
1163            * @param status the status
1164            * @throws SystemException if a system exception occurred
1165            */
1166            public static void removeByF_S(long fileEntryId, int status)
1167                    throws com.liferay.portal.kernel.exception.SystemException {
1168                    getPersistence().removeByF_S(fileEntryId, status);
1169            }
1170    
1171            /**
1172            * Removes all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63; from the database.
1173            *
1174            * @param groupId the group ID
1175            * @param folderId the folder ID
1176            * @param status the status
1177            * @throws SystemException if a system exception occurred
1178            */
1179            public static void removeByG_F_S(long groupId, long folderId, int status)
1180                    throws com.liferay.portal.kernel.exception.SystemException {
1181                    getPersistence().removeByG_F_S(groupId, folderId, status);
1182            }
1183    
1184            /**
1185            * Removes all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63; from the database.
1186            *
1187            * @param groupId the group ID
1188            * @param folderId the folder ID
1189            * @param title the title
1190            * @param version the version
1191            * @throws SystemException if a system exception occurred
1192            */
1193            public static void removeByG_F_T_V(long groupId, long folderId,
1194                    java.lang.String title, java.lang.String version)
1195                    throws com.liferay.portal.kernel.exception.SystemException {
1196                    getPersistence().removeByG_F_T_V(groupId, folderId, title, version);
1197            }
1198    
1199            /**
1200            * Removes all the document library file versions from the database.
1201            *
1202            * @throws SystemException if a system exception occurred
1203            */
1204            public static void removeAll()
1205                    throws com.liferay.portal.kernel.exception.SystemException {
1206                    getPersistence().removeAll();
1207            }
1208    
1209            /**
1210            * Returns the number of document library file versions where uuid = &#63;.
1211            *
1212            * @param uuid the uuid
1213            * @return the number of matching document library file versions
1214            * @throws SystemException if a system exception occurred
1215            */
1216            public static int countByUuid(java.lang.String uuid)
1217                    throws com.liferay.portal.kernel.exception.SystemException {
1218                    return getPersistence().countByUuid(uuid);
1219            }
1220    
1221            /**
1222            * Returns the number of document library file versions where uuid = &#63; and groupId = &#63;.
1223            *
1224            * @param uuid the uuid
1225            * @param groupId the group ID
1226            * @return the number of matching document library file versions
1227            * @throws SystemException if a system exception occurred
1228            */
1229            public static int countByUUID_G(java.lang.String uuid, long groupId)
1230                    throws com.liferay.portal.kernel.exception.SystemException {
1231                    return getPersistence().countByUUID_G(uuid, groupId);
1232            }
1233    
1234            /**
1235            * Returns the number of document library file versions where fileEntryId = &#63;.
1236            *
1237            * @param fileEntryId the file entry ID
1238            * @return the number of matching document library file versions
1239            * @throws SystemException if a system exception occurred
1240            */
1241            public static int countByFileEntryId(long fileEntryId)
1242                    throws com.liferay.portal.kernel.exception.SystemException {
1243                    return getPersistence().countByFileEntryId(fileEntryId);
1244            }
1245    
1246            /**
1247            * Returns the number of document library file versions where fileEntryId = &#63; and version = &#63;.
1248            *
1249            * @param fileEntryId the file entry ID
1250            * @param version the version
1251            * @return the number of matching document library file versions
1252            * @throws SystemException if a system exception occurred
1253            */
1254            public static int countByF_V(long fileEntryId, java.lang.String version)
1255                    throws com.liferay.portal.kernel.exception.SystemException {
1256                    return getPersistence().countByF_V(fileEntryId, version);
1257            }
1258    
1259            /**
1260            * Returns the number of document library file versions where fileEntryId = &#63; and status = &#63;.
1261            *
1262            * @param fileEntryId the file entry ID
1263            * @param status the status
1264            * @return the number of matching document library file versions
1265            * @throws SystemException if a system exception occurred
1266            */
1267            public static int countByF_S(long fileEntryId, int status)
1268                    throws com.liferay.portal.kernel.exception.SystemException {
1269                    return getPersistence().countByF_S(fileEntryId, status);
1270            }
1271    
1272            /**
1273            * Returns the number of document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
1274            *
1275            * @param groupId the group ID
1276            * @param folderId the folder ID
1277            * @param status the status
1278            * @return the number of matching document library file versions
1279            * @throws SystemException if a system exception occurred
1280            */
1281            public static int countByG_F_S(long groupId, long folderId, int status)
1282                    throws com.liferay.portal.kernel.exception.SystemException {
1283                    return getPersistence().countByG_F_S(groupId, folderId, status);
1284            }
1285    
1286            /**
1287            * Returns the number of document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1288            *
1289            * @param groupId the group ID
1290            * @param folderId the folder ID
1291            * @param title the title
1292            * @param version the version
1293            * @return the number of matching document library file versions
1294            * @throws SystemException if a system exception occurred
1295            */
1296            public static int countByG_F_T_V(long groupId, long folderId,
1297                    java.lang.String title, java.lang.String version)
1298                    throws com.liferay.portal.kernel.exception.SystemException {
1299                    return getPersistence().countByG_F_T_V(groupId, folderId, title, version);
1300            }
1301    
1302            /**
1303            * Returns the number of document library file versions.
1304            *
1305            * @return the number of document library file versions
1306            * @throws SystemException if a system exception occurred
1307            */
1308            public static int countAll()
1309                    throws com.liferay.portal.kernel.exception.SystemException {
1310                    return getPersistence().countAll();
1311            }
1312    
1313            public static DLFileVersionPersistence getPersistence() {
1314                    if (_persistence == null) {
1315                            _persistence = (DLFileVersionPersistence)PortalBeanLocatorUtil.locate(DLFileVersionPersistence.class.getName());
1316    
1317                            ReferenceRegistry.registerReference(DLFileVersionUtil.class,
1318                                    "_persistence");
1319                    }
1320    
1321                    return _persistence;
1322            }
1323    
1324            /**
1325             * @deprecated
1326             */
1327            public void setPersistence(DLFileVersionPersistence persistence) {
1328            }
1329    
1330            private static DLFileVersionPersistence _persistence;
1331    }