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