001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.service.persistence;
016    
017    import com.liferay.portal.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)
099             */
100            public static DLFileVersion update(DLFileVersion dlFileVersion)
101                    throws SystemException {
102                    return getPersistence().update(dlFileVersion);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
107             */
108            public static DLFileVersion update(DLFileVersion dlFileVersion,
109                    ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(dlFileVersion, 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                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return getPersistence().updateImpl(dlFileVersion);
163            }
164    
165            /**
166            * 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.
167            *
168            * @param fileVersionId the primary key of the document library file version
169            * @return the document library file version
170            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
171            * @throws SystemException if a system exception occurred
172            */
173            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByPrimaryKey(
174                    long fileVersionId)
175                    throws com.liferay.portal.kernel.exception.SystemException,
176                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
177                    return getPersistence().findByPrimaryKey(fileVersionId);
178            }
179    
180            /**
181            * Returns the document library file version with the primary key or returns <code>null</code> if it could not be found.
182            *
183            * @param fileVersionId the primary key of the document library file version
184            * @return the document library file version, or <code>null</code> if a document library file version with the primary key could not be found
185            * @throws SystemException if a system exception occurred
186            */
187            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByPrimaryKey(
188                    long fileVersionId)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return getPersistence().fetchByPrimaryKey(fileVersionId);
191            }
192    
193            /**
194            * Returns all the document library file versions where uuid = &#63;.
195            *
196            * @param uuid the uuid
197            * @return the matching document library file versions
198            * @throws SystemException if a system exception occurred
199            */
200            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByUuid(
201                    java.lang.String uuid)
202                    throws com.liferay.portal.kernel.exception.SystemException {
203                    return getPersistence().findByUuid(uuid);
204            }
205    
206            /**
207            * Returns a range of all the document library file versions where uuid = &#63;.
208            *
209            * <p>
210            * 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.
211            * </p>
212            *
213            * @param uuid the uuid
214            * @param start the lower bound of the range of document library file versions
215            * @param end the upper bound of the range of document library file versions (not inclusive)
216            * @return the range of matching document library file versions
217            * @throws SystemException if a system exception occurred
218            */
219            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByUuid(
220                    java.lang.String uuid, int start, int end)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return getPersistence().findByUuid(uuid, start, end);
223            }
224    
225            /**
226            * Returns an ordered range of all the document library file versions where uuid = &#63;.
227            *
228            * <p>
229            * 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.
230            * </p>
231            *
232            * @param uuid the uuid
233            * @param start the lower bound of the range of document library file versions
234            * @param end the upper bound of the range of document library file versions (not inclusive)
235            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
236            * @return the ordered range of matching document library file versions
237            * @throws SystemException if a system exception occurred
238            */
239            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByUuid(
240                    java.lang.String uuid, int start, int end,
241                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
242                    throws com.liferay.portal.kernel.exception.SystemException {
243                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
244            }
245    
246            /**
247            * Returns the first document library file version in the ordered set where uuid = &#63;.
248            *
249            * @param uuid the uuid
250            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
251            * @return the first matching document library file version
252            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
253            * @throws SystemException if a system exception occurred
254            */
255            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByUuid_First(
256                    java.lang.String uuid,
257                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258                    throws com.liferay.portal.kernel.exception.SystemException,
259                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
260                    return getPersistence().findByUuid_First(uuid, orderByComparator);
261            }
262    
263            /**
264            * Returns the first document library file version in the ordered set where uuid = &#63;.
265            *
266            * @param uuid the uuid
267            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
268            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
269            * @throws SystemException if a system exception occurred
270            */
271            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByUuid_First(
272                    java.lang.String uuid,
273                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274                    throws com.liferay.portal.kernel.exception.SystemException {
275                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
276            }
277    
278            /**
279            * Returns the last document library file version in the ordered set where uuid = &#63;.
280            *
281            * @param uuid the uuid
282            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
283            * @return the last matching document library file version
284            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
285            * @throws SystemException if a system exception occurred
286            */
287            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByUuid_Last(
288                    java.lang.String uuid,
289                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
290                    throws com.liferay.portal.kernel.exception.SystemException,
291                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
292                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
293            }
294    
295            /**
296            * Returns the last document library file version in the ordered set where uuid = &#63;.
297            *
298            * @param uuid the uuid
299            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
300            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
301            * @throws SystemException if a system exception occurred
302            */
303            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByUuid_Last(
304                    java.lang.String uuid,
305                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
308            }
309    
310            /**
311            * Returns the document library file versions before and after the current document library file version in the ordered set where uuid = &#63;.
312            *
313            * @param fileVersionId the primary key of the current document library file version
314            * @param uuid the uuid
315            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
316            * @return the previous, current, and next document library file version
317            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
318            * @throws SystemException if a system exception occurred
319            */
320            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByUuid_PrevAndNext(
321                    long fileVersionId, java.lang.String uuid,
322                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
323                    throws com.liferay.portal.kernel.exception.SystemException,
324                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
325                    return getPersistence()
326                                       .findByUuid_PrevAndNext(fileVersionId, uuid,
327                            orderByComparator);
328            }
329    
330            /**
331            * 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.
332            *
333            * @param uuid the uuid
334            * @param groupId the group ID
335            * @return the matching document library file version
336            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
337            * @throws SystemException if a system exception occurred
338            */
339            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByUUID_G(
340                    java.lang.String uuid, long groupId)
341                    throws com.liferay.portal.kernel.exception.SystemException,
342                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
343                    return getPersistence().findByUUID_G(uuid, groupId);
344            }
345    
346            /**
347            * 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.
348            *
349            * @param uuid the uuid
350            * @param groupId the group ID
351            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
352            * @throws SystemException if a system exception occurred
353            */
354            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByUUID_G(
355                    java.lang.String uuid, long groupId)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return getPersistence().fetchByUUID_G(uuid, groupId);
358            }
359    
360            /**
361            * 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.
362            *
363            * @param uuid the uuid
364            * @param groupId the group ID
365            * @param retrieveFromCache whether to use the finder cache
366            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
367            * @throws SystemException if a system exception occurred
368            */
369            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByUUID_G(
370                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
373            }
374    
375            /**
376            * Returns all the document library file versions where uuid = &#63; and companyId = &#63;.
377            *
378            * @param uuid the uuid
379            * @param companyId the company 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> findByUuid_C(
384                    java.lang.String uuid, long companyId)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return getPersistence().findByUuid_C(uuid, companyId);
387            }
388    
389            /**
390            * Returns a range of all the document library file versions where uuid = &#63; and companyId = &#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 uuid the uuid
397            * @param companyId the company ID
398            * @param start the lower bound of the range of document library file versions
399            * @param end the upper bound of the range of document library file versions (not inclusive)
400            * @return the range of matching document library file versions
401            * @throws SystemException if a system exception occurred
402            */
403            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByUuid_C(
404                    java.lang.String uuid, long companyId, int start, int end)
405                    throws com.liferay.portal.kernel.exception.SystemException {
406                    return getPersistence().findByUuid_C(uuid, companyId, start, end);
407            }
408    
409            /**
410            * Returns an ordered range of all the document library file versions where uuid = &#63; and companyId = &#63;.
411            *
412            * <p>
413            * 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.
414            * </p>
415            *
416            * @param uuid the uuid
417            * @param companyId the company ID
418            * @param start the lower bound of the range of document library file versions
419            * @param end the upper bound of the range of document library file versions (not inclusive)
420            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
421            * @return the ordered range of matching document library file versions
422            * @throws SystemException if a system exception occurred
423            */
424            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByUuid_C(
425                    java.lang.String uuid, long companyId, int start, int end,
426                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
427                    throws com.liferay.portal.kernel.exception.SystemException {
428                    return getPersistence()
429                                       .findByUuid_C(uuid, companyId, start, end, orderByComparator);
430            }
431    
432            /**
433            * Returns the first document library file version in the ordered set where uuid = &#63; and companyId = &#63;.
434            *
435            * @param uuid the uuid
436            * @param companyId the company ID
437            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
438            * @return the first matching document library file version
439            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
440            * @throws SystemException if a system exception occurred
441            */
442            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByUuid_C_First(
443                    java.lang.String uuid, long companyId,
444                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
445                    throws com.liferay.portal.kernel.exception.SystemException,
446                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
447                    return getPersistence()
448                                       .findByUuid_C_First(uuid, companyId, orderByComparator);
449            }
450    
451            /**
452            * Returns the first document library file version in the ordered set where uuid = &#63; and companyId = &#63;.
453            *
454            * @param uuid the uuid
455            * @param companyId the company ID
456            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
457            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
458            * @throws SystemException if a system exception occurred
459            */
460            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByUuid_C_First(
461                    java.lang.String uuid, long companyId,
462                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
463                    throws com.liferay.portal.kernel.exception.SystemException {
464                    return getPersistence()
465                                       .fetchByUuid_C_First(uuid, companyId, orderByComparator);
466            }
467    
468            /**
469            * Returns the last document library file version in the ordered set where uuid = &#63; and companyId = &#63;.
470            *
471            * @param uuid the uuid
472            * @param companyId the company ID
473            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
474            * @return the last matching document library file version
475            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
476            * @throws SystemException if a system exception occurred
477            */
478            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByUuid_C_Last(
479                    java.lang.String uuid, long companyId,
480                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
481                    throws com.liferay.portal.kernel.exception.SystemException,
482                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
483                    return getPersistence()
484                                       .findByUuid_C_Last(uuid, companyId, orderByComparator);
485            }
486    
487            /**
488            * Returns the last document library file version in the ordered set where uuid = &#63; and companyId = &#63;.
489            *
490            * @param uuid the uuid
491            * @param companyId the company ID
492            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
493            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
494            * @throws SystemException if a system exception occurred
495            */
496            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByUuid_C_Last(
497                    java.lang.String uuid, long companyId,
498                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
499                    throws com.liferay.portal.kernel.exception.SystemException {
500                    return getPersistence()
501                                       .fetchByUuid_C_Last(uuid, companyId, orderByComparator);
502            }
503    
504            /**
505            * Returns the document library file versions before and after the current document library file version in the ordered set where uuid = &#63; and companyId = &#63;.
506            *
507            * @param fileVersionId the primary key of the current document library file version
508            * @param uuid the uuid
509            * @param companyId the company ID
510            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
511            * @return the previous, current, and next document library file version
512            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
513            * @throws SystemException if a system exception occurred
514            */
515            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByUuid_C_PrevAndNext(
516                    long fileVersionId, java.lang.String uuid, long companyId,
517                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
518                    throws com.liferay.portal.kernel.exception.SystemException,
519                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
520                    return getPersistence()
521                                       .findByUuid_C_PrevAndNext(fileVersionId, uuid, companyId,
522                            orderByComparator);
523            }
524    
525            /**
526            * Returns all the document library file versions where fileEntryId = &#63;.
527            *
528            * @param fileEntryId the file entry ID
529            * @return the matching document library file versions
530            * @throws SystemException if a system exception occurred
531            */
532            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByFileEntryId(
533                    long fileEntryId)
534                    throws com.liferay.portal.kernel.exception.SystemException {
535                    return getPersistence().findByFileEntryId(fileEntryId);
536            }
537    
538            /**
539            * Returns a range of all the document library file versions where fileEntryId = &#63;.
540            *
541            * <p>
542            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
543            * </p>
544            *
545            * @param fileEntryId the file entry ID
546            * @param start the lower bound of the range of document library file versions
547            * @param end the upper bound of the range of document library file versions (not inclusive)
548            * @return the range of matching document library file versions
549            * @throws SystemException if a system exception occurred
550            */
551            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByFileEntryId(
552                    long fileEntryId, int start, int end)
553                    throws com.liferay.portal.kernel.exception.SystemException {
554                    return getPersistence().findByFileEntryId(fileEntryId, start, end);
555            }
556    
557            /**
558            * Returns an ordered range of all the document library file versions where fileEntryId = &#63;.
559            *
560            * <p>
561            * 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.
562            * </p>
563            *
564            * @param fileEntryId the file entry ID
565            * @param start the lower bound of the range of document library file versions
566            * @param end the upper bound of the range of document library file versions (not inclusive)
567            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
568            * @return the ordered range of matching document library file versions
569            * @throws SystemException if a system exception occurred
570            */
571            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByFileEntryId(
572                    long fileEntryId, int start, int end,
573                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
574                    throws com.liferay.portal.kernel.exception.SystemException {
575                    return getPersistence()
576                                       .findByFileEntryId(fileEntryId, start, end, orderByComparator);
577            }
578    
579            /**
580            * Returns the first document library file version in the ordered set where fileEntryId = &#63;.
581            *
582            * @param fileEntryId the file entry ID
583            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
584            * @return the first matching document library file version
585            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
586            * @throws SystemException if a system exception occurred
587            */
588            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByFileEntryId_First(
589                    long fileEntryId,
590                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
591                    throws com.liferay.portal.kernel.exception.SystemException,
592                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
593                    return getPersistence()
594                                       .findByFileEntryId_First(fileEntryId, orderByComparator);
595            }
596    
597            /**
598            * Returns the first document library file version in the ordered set where fileEntryId = &#63;.
599            *
600            * @param fileEntryId the file entry ID
601            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
602            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
603            * @throws SystemException if a system exception occurred
604            */
605            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByFileEntryId_First(
606                    long fileEntryId,
607                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
608                    throws com.liferay.portal.kernel.exception.SystemException {
609                    return getPersistence()
610                                       .fetchByFileEntryId_First(fileEntryId, orderByComparator);
611            }
612    
613            /**
614            * Returns the last document library file version in the ordered set where fileEntryId = &#63;.
615            *
616            * @param fileEntryId the file entry ID
617            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
618            * @return the last matching document library file version
619            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
620            * @throws SystemException if a system exception occurred
621            */
622            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByFileEntryId_Last(
623                    long fileEntryId,
624                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
625                    throws com.liferay.portal.kernel.exception.SystemException,
626                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
627                    return getPersistence()
628                                       .findByFileEntryId_Last(fileEntryId, orderByComparator);
629            }
630    
631            /**
632            * Returns the last document library file version in the ordered set where fileEntryId = &#63;.
633            *
634            * @param fileEntryId the file entry ID
635            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
636            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
637            * @throws SystemException if a system exception occurred
638            */
639            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByFileEntryId_Last(
640                    long fileEntryId,
641                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
642                    throws com.liferay.portal.kernel.exception.SystemException {
643                    return getPersistence()
644                                       .fetchByFileEntryId_Last(fileEntryId, orderByComparator);
645            }
646    
647            /**
648            * Returns the document library file versions before and after the current document library file version in the ordered set where fileEntryId = &#63;.
649            *
650            * @param fileVersionId the primary key of the current document library file version
651            * @param fileEntryId the file entry ID
652            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
653            * @return the previous, current, and next document library file version
654            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
655            * @throws SystemException if a system exception occurred
656            */
657            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByFileEntryId_PrevAndNext(
658                    long fileVersionId, long fileEntryId,
659                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
660                    throws com.liferay.portal.kernel.exception.SystemException,
661                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
662                    return getPersistence()
663                                       .findByFileEntryId_PrevAndNext(fileVersionId, fileEntryId,
664                            orderByComparator);
665            }
666    
667            /**
668            * 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.
669            *
670            * @param fileEntryId the file entry ID
671            * @param version the version
672            * @return the matching document library file version
673            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
674            * @throws SystemException if a system exception occurred
675            */
676            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_V(
677                    long fileEntryId, java.lang.String version)
678                    throws com.liferay.portal.kernel.exception.SystemException,
679                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
680                    return getPersistence().findByF_V(fileEntryId, version);
681            }
682    
683            /**
684            * 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.
685            *
686            * @param fileEntryId the file entry ID
687            * @param version the version
688            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
689            * @throws SystemException if a system exception occurred
690            */
691            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_V(
692                    long fileEntryId, java.lang.String version)
693                    throws com.liferay.portal.kernel.exception.SystemException {
694                    return getPersistence().fetchByF_V(fileEntryId, version);
695            }
696    
697            /**
698            * 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.
699            *
700            * @param fileEntryId the file entry ID
701            * @param version the version
702            * @param retrieveFromCache whether to use the finder cache
703            * @return the matching document library file version, or <code>null</code> if a matching document library file version could not be found
704            * @throws SystemException if a system exception occurred
705            */
706            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_V(
707                    long fileEntryId, java.lang.String version, boolean retrieveFromCache)
708                    throws com.liferay.portal.kernel.exception.SystemException {
709                    return getPersistence()
710                                       .fetchByF_V(fileEntryId, version, retrieveFromCache);
711            }
712    
713            /**
714            * Returns all the document library file versions where fileEntryId = &#63; and status = &#63;.
715            *
716            * @param fileEntryId the file entry ID
717            * @param status the status
718            * @return the matching document library file versions
719            * @throws SystemException if a system exception occurred
720            */
721            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
722                    long fileEntryId, int status)
723                    throws com.liferay.portal.kernel.exception.SystemException {
724                    return getPersistence().findByF_S(fileEntryId, status);
725            }
726    
727            /**
728            * Returns a range of all the document library file versions where fileEntryId = &#63; and status = &#63;.
729            *
730            * <p>
731            * 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.
732            * </p>
733            *
734            * @param fileEntryId the file entry ID
735            * @param status the status
736            * @param start the lower bound of the range of document library file versions
737            * @param end the upper bound of the range of document library file versions (not inclusive)
738            * @return the range of matching document library file versions
739            * @throws SystemException if a system exception occurred
740            */
741            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
742                    long fileEntryId, int status, int start, int end)
743                    throws com.liferay.portal.kernel.exception.SystemException {
744                    return getPersistence().findByF_S(fileEntryId, status, start, end);
745            }
746    
747            /**
748            * Returns an ordered range of all the document library file versions where fileEntryId = &#63; and status = &#63;.
749            *
750            * <p>
751            * 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.
752            * </p>
753            *
754            * @param fileEntryId the file entry ID
755            * @param status the status
756            * @param start the lower bound of the range of document library file versions
757            * @param end the upper bound of the range of document library file versions (not inclusive)
758            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
759            * @return the ordered range of matching document library file versions
760            * @throws SystemException if a system exception occurred
761            */
762            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByF_S(
763                    long fileEntryId, int status, int start, int end,
764                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
765                    throws com.liferay.portal.kernel.exception.SystemException {
766                    return getPersistence()
767                                       .findByF_S(fileEntryId, status, start, end, orderByComparator);
768            }
769    
770            /**
771            * Returns the first document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
772            *
773            * @param fileEntryId the file entry ID
774            * @param status the status
775            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
776            * @return the first matching document library file version
777            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
778            * @throws SystemException if a system exception occurred
779            */
780            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_S_First(
781                    long fileEntryId, int status,
782                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
783                    throws com.liferay.portal.kernel.exception.SystemException,
784                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
785                    return getPersistence()
786                                       .findByF_S_First(fileEntryId, status, orderByComparator);
787            }
788    
789            /**
790            * Returns the first document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
791            *
792            * @param fileEntryId the file entry ID
793            * @param status the status
794            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
795            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
796            * @throws SystemException if a system exception occurred
797            */
798            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_S_First(
799                    long fileEntryId, int status,
800                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
801                    throws com.liferay.portal.kernel.exception.SystemException {
802                    return getPersistence()
803                                       .fetchByF_S_First(fileEntryId, status, orderByComparator);
804            }
805    
806            /**
807            * Returns the last document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
808            *
809            * @param fileEntryId the file entry ID
810            * @param status the status
811            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
812            * @return the last matching document library file version
813            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
814            * @throws SystemException if a system exception occurred
815            */
816            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_S_Last(
817                    long fileEntryId, int status,
818                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
819                    throws com.liferay.portal.kernel.exception.SystemException,
820                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
821                    return getPersistence()
822                                       .findByF_S_Last(fileEntryId, status, orderByComparator);
823            }
824    
825            /**
826            * Returns the last document library file version in the ordered set where fileEntryId = &#63; and status = &#63;.
827            *
828            * @param fileEntryId the file entry ID
829            * @param status the status
830            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
831            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
832            * @throws SystemException if a system exception occurred
833            */
834            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_S_Last(
835                    long fileEntryId, int status,
836                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
837                    throws com.liferay.portal.kernel.exception.SystemException {
838                    return getPersistence()
839                                       .fetchByF_S_Last(fileEntryId, status, orderByComparator);
840            }
841    
842            /**
843            * 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;.
844            *
845            * @param fileVersionId the primary key of the current document library file version
846            * @param fileEntryId the file entry ID
847            * @param status the status
848            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
849            * @return the previous, current, and next document library file version
850            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
851            * @throws SystemException if a system exception occurred
852            */
853            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByF_S_PrevAndNext(
854                    long fileVersionId, long fileEntryId, int status,
855                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
856                    throws com.liferay.portal.kernel.exception.SystemException,
857                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
858                    return getPersistence()
859                                       .findByF_S_PrevAndNext(fileVersionId, fileEntryId, status,
860                            orderByComparator);
861            }
862    
863            /**
864            * Returns all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
865            *
866            * @param groupId the group ID
867            * @param folderId the folder ID
868            * @param status the status
869            * @return the matching document library file versions
870            * @throws SystemException if a system exception occurred
871            */
872            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
873                    long groupId, long folderId, int status)
874                    throws com.liferay.portal.kernel.exception.SystemException {
875                    return getPersistence().findByG_F_S(groupId, folderId, status);
876            }
877    
878            /**
879            * Returns a range of all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
880            *
881            * <p>
882            * 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.
883            * </p>
884            *
885            * @param groupId the group ID
886            * @param folderId the folder ID
887            * @param status the status
888            * @param start the lower bound of the range of document library file versions
889            * @param end the upper bound of the range of document library file versions (not inclusive)
890            * @return the range of matching document library file versions
891            * @throws SystemException if a system exception occurred
892            */
893            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
894                    long groupId, long folderId, int status, int start, int end)
895                    throws com.liferay.portal.kernel.exception.SystemException {
896                    return getPersistence()
897                                       .findByG_F_S(groupId, folderId, status, start, end);
898            }
899    
900            /**
901            * Returns an ordered range of all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
902            *
903            * <p>
904            * 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.
905            * </p>
906            *
907            * @param groupId the group ID
908            * @param folderId the folder ID
909            * @param status the status
910            * @param start the lower bound of the range of document library file versions
911            * @param end the upper bound of the range of document library file versions (not inclusive)
912            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
913            * @return the ordered range of matching document library file versions
914            * @throws SystemException if a system exception occurred
915            */
916            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_S(
917                    long groupId, long folderId, int status, int start, int end,
918                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
919                    throws com.liferay.portal.kernel.exception.SystemException {
920                    return getPersistence()
921                                       .findByG_F_S(groupId, folderId, status, start, end,
922                            orderByComparator);
923            }
924    
925            /**
926            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
927            *
928            * @param groupId the group ID
929            * @param folderId the folder ID
930            * @param status the status
931            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
932            * @return the first matching document library file version
933            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
934            * @throws SystemException if a system exception occurred
935            */
936            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_S_First(
937                    long groupId, long folderId, int status,
938                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
939                    throws com.liferay.portal.kernel.exception.SystemException,
940                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
941                    return getPersistence()
942                                       .findByG_F_S_First(groupId, folderId, status,
943                            orderByComparator);
944            }
945    
946            /**
947            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
948            *
949            * @param groupId the group ID
950            * @param folderId the folder ID
951            * @param status the status
952            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
953            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
954            * @throws SystemException if a system exception occurred
955            */
956            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_S_First(
957                    long groupId, long folderId, int status,
958                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
959                    throws com.liferay.portal.kernel.exception.SystemException {
960                    return getPersistence()
961                                       .fetchByG_F_S_First(groupId, folderId, status,
962                            orderByComparator);
963            }
964    
965            /**
966            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
967            *
968            * @param groupId the group ID
969            * @param folderId the folder ID
970            * @param status the status
971            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
972            * @return the last matching document library file version
973            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
974            * @throws SystemException if a system exception occurred
975            */
976            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_S_Last(
977                    long groupId, long folderId, int status,
978                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
979                    throws com.liferay.portal.kernel.exception.SystemException,
980                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
981                    return getPersistence()
982                                       .findByG_F_S_Last(groupId, folderId, status,
983                            orderByComparator);
984            }
985    
986            /**
987            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
988            *
989            * @param groupId the group ID
990            * @param folderId the folder ID
991            * @param status the status
992            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
993            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
994            * @throws SystemException if a system exception occurred
995            */
996            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_S_Last(
997                    long groupId, long folderId, int status,
998                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
999                    throws com.liferay.portal.kernel.exception.SystemException {
1000                    return getPersistence()
1001                                       .fetchByG_F_S_Last(groupId, folderId, status,
1002                            orderByComparator);
1003            }
1004    
1005            /**
1006            * 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;.
1007            *
1008            * @param fileVersionId the primary key of the current document library file version
1009            * @param groupId the group ID
1010            * @param folderId the folder ID
1011            * @param status the status
1012            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1013            * @return the previous, current, and next document library file version
1014            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
1015            * @throws SystemException if a system exception occurred
1016            */
1017            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_S_PrevAndNext(
1018                    long fileVersionId, long groupId, long folderId, int status,
1019                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1020                    throws com.liferay.portal.kernel.exception.SystemException,
1021                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1022                    return getPersistence()
1023                                       .findByG_F_S_PrevAndNext(fileVersionId, groupId, folderId,
1024                            status, orderByComparator);
1025            }
1026    
1027            /**
1028            * Returns all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1029            *
1030            * @param groupId the group ID
1031            * @param folderId the folder ID
1032            * @param title the title
1033            * @param version the version
1034            * @return the matching document library file versions
1035            * @throws SystemException if a system exception occurred
1036            */
1037            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_T_V(
1038                    long groupId, long folderId, java.lang.String title,
1039                    java.lang.String version)
1040                    throws com.liferay.portal.kernel.exception.SystemException {
1041                    return getPersistence().findByG_F_T_V(groupId, folderId, title, version);
1042            }
1043    
1044            /**
1045            * Returns a range of all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1046            *
1047            * <p>
1048            * 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.
1049            * </p>
1050            *
1051            * @param groupId the group ID
1052            * @param folderId the folder ID
1053            * @param title the title
1054            * @param version the version
1055            * @param start the lower bound of the range of document library file versions
1056            * @param end the upper bound of the range of document library file versions (not inclusive)
1057            * @return the range of matching document library file versions
1058            * @throws SystemException if a system exception occurred
1059            */
1060            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_T_V(
1061                    long groupId, long folderId, java.lang.String title,
1062                    java.lang.String version, int start, int end)
1063                    throws com.liferay.portal.kernel.exception.SystemException {
1064                    return getPersistence()
1065                                       .findByG_F_T_V(groupId, folderId, title, version, start, end);
1066            }
1067    
1068            /**
1069            * Returns an ordered range of all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1070            *
1071            * <p>
1072            * 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.
1073            * </p>
1074            *
1075            * @param groupId the group ID
1076            * @param folderId the folder ID
1077            * @param title the title
1078            * @param version the version
1079            * @param start the lower bound of the range of document library file versions
1080            * @param end the upper bound of the range of document library file versions (not inclusive)
1081            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1082            * @return the ordered range of matching document library file versions
1083            * @throws SystemException if a system exception occurred
1084            */
1085            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_T_V(
1086                    long groupId, long folderId, java.lang.String title,
1087                    java.lang.String version, int start, int end,
1088                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1089                    throws com.liferay.portal.kernel.exception.SystemException {
1090                    return getPersistence()
1091                                       .findByG_F_T_V(groupId, folderId, title, version, start,
1092                            end, orderByComparator);
1093            }
1094    
1095            /**
1096            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1097            *
1098            * @param groupId the group ID
1099            * @param folderId the folder ID
1100            * @param title the title
1101            * @param version the version
1102            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1103            * @return the first matching document library file version
1104            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
1105            * @throws SystemException if a system exception occurred
1106            */
1107            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_T_V_First(
1108                    long groupId, long folderId, java.lang.String title,
1109                    java.lang.String version,
1110                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1111                    throws com.liferay.portal.kernel.exception.SystemException,
1112                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1113                    return getPersistence()
1114                                       .findByG_F_T_V_First(groupId, folderId, title, version,
1115                            orderByComparator);
1116            }
1117    
1118            /**
1119            * Returns the first document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1120            *
1121            * @param groupId the group ID
1122            * @param folderId the folder ID
1123            * @param title the title
1124            * @param version the version
1125            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1126            * @return the first matching document library file version, or <code>null</code> if a matching document library file version could not be found
1127            * @throws SystemException if a system exception occurred
1128            */
1129            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_T_V_First(
1130                    long groupId, long folderId, java.lang.String title,
1131                    java.lang.String version,
1132                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1133                    throws com.liferay.portal.kernel.exception.SystemException {
1134                    return getPersistence()
1135                                       .fetchByG_F_T_V_First(groupId, folderId, title, version,
1136                            orderByComparator);
1137            }
1138    
1139            /**
1140            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1141            *
1142            * @param groupId the group ID
1143            * @param folderId the folder ID
1144            * @param title the title
1145            * @param version the version
1146            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1147            * @return the last matching document library file version
1148            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching document library file version could not be found
1149            * @throws SystemException if a system exception occurred
1150            */
1151            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_T_V_Last(
1152                    long groupId, long folderId, java.lang.String title,
1153                    java.lang.String version,
1154                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1155                    throws com.liferay.portal.kernel.exception.SystemException,
1156                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1157                    return getPersistence()
1158                                       .findByG_F_T_V_Last(groupId, folderId, title, version,
1159                            orderByComparator);
1160            }
1161    
1162            /**
1163            * Returns the last document library file version in the ordered set where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1164            *
1165            * @param groupId the group ID
1166            * @param folderId the folder ID
1167            * @param title the title
1168            * @param version the version
1169            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1170            * @return the last matching document library file version, or <code>null</code> if a matching document library file version could not be found
1171            * @throws SystemException if a system exception occurred
1172            */
1173            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_T_V_Last(
1174                    long groupId, long folderId, java.lang.String title,
1175                    java.lang.String version,
1176                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1177                    throws com.liferay.portal.kernel.exception.SystemException {
1178                    return getPersistence()
1179                                       .fetchByG_F_T_V_Last(groupId, folderId, title, version,
1180                            orderByComparator);
1181            }
1182    
1183            /**
1184            * 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;.
1185            *
1186            * @param fileVersionId the primary key of the current document library file version
1187            * @param groupId the group ID
1188            * @param folderId the folder ID
1189            * @param title the title
1190            * @param version the version
1191            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1192            * @return the previous, current, and next document library file version
1193            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a document library file version with the primary key could not be found
1194            * @throws SystemException if a system exception occurred
1195            */
1196            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_T_V_PrevAndNext(
1197                    long fileVersionId, long groupId, long folderId,
1198                    java.lang.String title, java.lang.String version,
1199                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1200                    throws com.liferay.portal.kernel.exception.SystemException,
1201                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1202                    return getPersistence()
1203                                       .findByG_F_T_V_PrevAndNext(fileVersionId, groupId, folderId,
1204                            title, version, orderByComparator);
1205            }
1206    
1207            /**
1208            * Returns all the document library file versions.
1209            *
1210            * @return the document library file versions
1211            * @throws SystemException if a system exception occurred
1212            */
1213            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll()
1214                    throws com.liferay.portal.kernel.exception.SystemException {
1215                    return getPersistence().findAll();
1216            }
1217    
1218            /**
1219            * Returns a range of all the document library file versions.
1220            *
1221            * <p>
1222            * 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.
1223            * </p>
1224            *
1225            * @param start the lower bound of the range of document library file versions
1226            * @param end the upper bound of the range of document library file versions (not inclusive)
1227            * @return the range of document library file versions
1228            * @throws SystemException if a system exception occurred
1229            */
1230            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
1231                    int start, int end)
1232                    throws com.liferay.portal.kernel.exception.SystemException {
1233                    return getPersistence().findAll(start, end);
1234            }
1235    
1236            /**
1237            * Returns an ordered range of all the document library file versions.
1238            *
1239            * <p>
1240            * 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.
1241            * </p>
1242            *
1243            * @param start the lower bound of the range of document library file versions
1244            * @param end the upper bound of the range of document library file versions (not inclusive)
1245            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1246            * @return the ordered range of document library file versions
1247            * @throws SystemException if a system exception occurred
1248            */
1249            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
1250                    int start, int end,
1251                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1252                    throws com.liferay.portal.kernel.exception.SystemException {
1253                    return getPersistence().findAll(start, end, orderByComparator);
1254            }
1255    
1256            /**
1257            * Removes all the document library file versions where uuid = &#63; from the database.
1258            *
1259            * @param uuid the uuid
1260            * @throws SystemException if a system exception occurred
1261            */
1262            public static void removeByUuid(java.lang.String uuid)
1263                    throws com.liferay.portal.kernel.exception.SystemException {
1264                    getPersistence().removeByUuid(uuid);
1265            }
1266    
1267            /**
1268            * Removes the document library file version where uuid = &#63; and groupId = &#63; from the database.
1269            *
1270            * @param uuid the uuid
1271            * @param groupId the group ID
1272            * @return the document library file version that was removed
1273            * @throws SystemException if a system exception occurred
1274            */
1275            public static com.liferay.portlet.documentlibrary.model.DLFileVersion removeByUUID_G(
1276                    java.lang.String uuid, long groupId)
1277                    throws com.liferay.portal.kernel.exception.SystemException,
1278                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1279                    return getPersistence().removeByUUID_G(uuid, groupId);
1280            }
1281    
1282            /**
1283            * Removes all the document library file versions where uuid = &#63; and companyId = &#63; from the database.
1284            *
1285            * @param uuid the uuid
1286            * @param companyId the company ID
1287            * @throws SystemException if a system exception occurred
1288            */
1289            public static void removeByUuid_C(java.lang.String uuid, long companyId)
1290                    throws com.liferay.portal.kernel.exception.SystemException {
1291                    getPersistence().removeByUuid_C(uuid, companyId);
1292            }
1293    
1294            /**
1295            * Removes all the document library file versions where fileEntryId = &#63; from the database.
1296            *
1297            * @param fileEntryId the file entry ID
1298            * @throws SystemException if a system exception occurred
1299            */
1300            public static void removeByFileEntryId(long fileEntryId)
1301                    throws com.liferay.portal.kernel.exception.SystemException {
1302                    getPersistence().removeByFileEntryId(fileEntryId);
1303            }
1304    
1305            /**
1306            * Removes the document library file version where fileEntryId = &#63; and version = &#63; from the database.
1307            *
1308            * @param fileEntryId the file entry ID
1309            * @param version the version
1310            * @return the document library file version that was removed
1311            * @throws SystemException if a system exception occurred
1312            */
1313            public static com.liferay.portlet.documentlibrary.model.DLFileVersion removeByF_V(
1314                    long fileEntryId, java.lang.String version)
1315                    throws com.liferay.portal.kernel.exception.SystemException,
1316                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
1317                    return getPersistence().removeByF_V(fileEntryId, version);
1318            }
1319    
1320            /**
1321            * Removes all the document library file versions where fileEntryId = &#63; and status = &#63; from the database.
1322            *
1323            * @param fileEntryId the file entry ID
1324            * @param status the status
1325            * @throws SystemException if a system exception occurred
1326            */
1327            public static void removeByF_S(long fileEntryId, int status)
1328                    throws com.liferay.portal.kernel.exception.SystemException {
1329                    getPersistence().removeByF_S(fileEntryId, status);
1330            }
1331    
1332            /**
1333            * Removes all the document library file versions where groupId = &#63; and folderId = &#63; and status = &#63; from the database.
1334            *
1335            * @param groupId the group ID
1336            * @param folderId the folder ID
1337            * @param status the status
1338            * @throws SystemException if a system exception occurred
1339            */
1340            public static void removeByG_F_S(long groupId, long folderId, int status)
1341                    throws com.liferay.portal.kernel.exception.SystemException {
1342                    getPersistence().removeByG_F_S(groupId, folderId, status);
1343            }
1344    
1345            /**
1346            * Removes all the document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63; from the database.
1347            *
1348            * @param groupId the group ID
1349            * @param folderId the folder ID
1350            * @param title the title
1351            * @param version the version
1352            * @throws SystemException if a system exception occurred
1353            */
1354            public static void removeByG_F_T_V(long groupId, long folderId,
1355                    java.lang.String title, java.lang.String version)
1356                    throws com.liferay.portal.kernel.exception.SystemException {
1357                    getPersistence().removeByG_F_T_V(groupId, folderId, title, version);
1358            }
1359    
1360            /**
1361            * Removes all the document library file versions from the database.
1362            *
1363            * @throws SystemException if a system exception occurred
1364            */
1365            public static void removeAll()
1366                    throws com.liferay.portal.kernel.exception.SystemException {
1367                    getPersistence().removeAll();
1368            }
1369    
1370            /**
1371            * Returns the number of document library file versions where uuid = &#63;.
1372            *
1373            * @param uuid the uuid
1374            * @return the number of matching document library file versions
1375            * @throws SystemException if a system exception occurred
1376            */
1377            public static int countByUuid(java.lang.String uuid)
1378                    throws com.liferay.portal.kernel.exception.SystemException {
1379                    return getPersistence().countByUuid(uuid);
1380            }
1381    
1382            /**
1383            * Returns the number of document library file versions where uuid = &#63; and groupId = &#63;.
1384            *
1385            * @param uuid the uuid
1386            * @param groupId the group ID
1387            * @return the number of matching document library file versions
1388            * @throws SystemException if a system exception occurred
1389            */
1390            public static int countByUUID_G(java.lang.String uuid, long groupId)
1391                    throws com.liferay.portal.kernel.exception.SystemException {
1392                    return getPersistence().countByUUID_G(uuid, groupId);
1393            }
1394    
1395            /**
1396            * Returns the number of document library file versions where uuid = &#63; and companyId = &#63;.
1397            *
1398            * @param uuid the uuid
1399            * @param companyId the company ID
1400            * @return the number of matching document library file versions
1401            * @throws SystemException if a system exception occurred
1402            */
1403            public static int countByUuid_C(java.lang.String uuid, long companyId)
1404                    throws com.liferay.portal.kernel.exception.SystemException {
1405                    return getPersistence().countByUuid_C(uuid, companyId);
1406            }
1407    
1408            /**
1409            * Returns the number of document library file versions where fileEntryId = &#63;.
1410            *
1411            * @param fileEntryId the file entry ID
1412            * @return the number of matching document library file versions
1413            * @throws SystemException if a system exception occurred
1414            */
1415            public static int countByFileEntryId(long fileEntryId)
1416                    throws com.liferay.portal.kernel.exception.SystemException {
1417                    return getPersistence().countByFileEntryId(fileEntryId);
1418            }
1419    
1420            /**
1421            * Returns the number of document library file versions where fileEntryId = &#63; and version = &#63;.
1422            *
1423            * @param fileEntryId the file entry ID
1424            * @param version the version
1425            * @return the number of matching document library file versions
1426            * @throws SystemException if a system exception occurred
1427            */
1428            public static int countByF_V(long fileEntryId, java.lang.String version)
1429                    throws com.liferay.portal.kernel.exception.SystemException {
1430                    return getPersistence().countByF_V(fileEntryId, version);
1431            }
1432    
1433            /**
1434            * Returns the number of document library file versions where fileEntryId = &#63; and status = &#63;.
1435            *
1436            * @param fileEntryId the file entry ID
1437            * @param status the status
1438            * @return the number of matching document library file versions
1439            * @throws SystemException if a system exception occurred
1440            */
1441            public static int countByF_S(long fileEntryId, int status)
1442                    throws com.liferay.portal.kernel.exception.SystemException {
1443                    return getPersistence().countByF_S(fileEntryId, status);
1444            }
1445    
1446            /**
1447            * Returns the number of document library file versions where groupId = &#63; and folderId = &#63; and status = &#63;.
1448            *
1449            * @param groupId the group ID
1450            * @param folderId the folder ID
1451            * @param status the status
1452            * @return the number of matching document library file versions
1453            * @throws SystemException if a system exception occurred
1454            */
1455            public static int countByG_F_S(long groupId, long folderId, int status)
1456                    throws com.liferay.portal.kernel.exception.SystemException {
1457                    return getPersistence().countByG_F_S(groupId, folderId, status);
1458            }
1459    
1460            /**
1461            * Returns the number of document library file versions where groupId = &#63; and folderId = &#63; and title = &#63; and version = &#63;.
1462            *
1463            * @param groupId the group ID
1464            * @param folderId the folder ID
1465            * @param title the title
1466            * @param version the version
1467            * @return the number of matching document library file versions
1468            * @throws SystemException if a system exception occurred
1469            */
1470            public static int countByG_F_T_V(long groupId, long folderId,
1471                    java.lang.String title, java.lang.String version)
1472                    throws com.liferay.portal.kernel.exception.SystemException {
1473                    return getPersistence().countByG_F_T_V(groupId, folderId, title, version);
1474            }
1475    
1476            /**
1477            * Returns the number of document library file versions.
1478            *
1479            * @return the number of document library file versions
1480            * @throws SystemException if a system exception occurred
1481            */
1482            public static int countAll()
1483                    throws com.liferay.portal.kernel.exception.SystemException {
1484                    return getPersistence().countAll();
1485            }
1486    
1487            public static DLFileVersionPersistence getPersistence() {
1488                    if (_persistence == null) {
1489                            _persistence = (DLFileVersionPersistence)PortalBeanLocatorUtil.locate(DLFileVersionPersistence.class.getName());
1490    
1491                            ReferenceRegistry.registerReference(DLFileVersionUtil.class,
1492                                    "_persistence");
1493                    }
1494    
1495                    return _persistence;
1496            }
1497    
1498            /**
1499             * @deprecated
1500             */
1501            public void setPersistence(DLFileVersionPersistence persistence) {
1502            }
1503    
1504            private static DLFileVersionPersistence _persistence;
1505    }