001    /**
002     * Copyright (c) 2000-2010 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.service.ServiceContext;
022    
023    import com.liferay.portlet.documentlibrary.model.DLFileVersion;
024    
025    import java.util.List;
026    
027    /**
028     * The persistence utility for the d l 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.
029     *
030     * <p>
031     * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
032     * </p>
033     *
034     * <p>
035     * Caching information and settings can be found in <code>portal.properties</code>
036     * </p>
037     *
038     * @author Brian Wing Shun Chan
039     * @see DLFileVersionPersistence
040     * @see DLFileVersionPersistenceImpl
041     * @generated
042     */
043    public class DLFileVersionUtil {
044            /**
045             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
046             */
047            public static void clearCache() {
048                    getPersistence().clearCache();
049            }
050    
051            /**
052             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
053             */
054            public static void clearCache(DLFileVersion dlFileVersion) {
055                    getPersistence().clearCache(dlFileVersion);
056            }
057    
058            /**
059             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
060             */
061            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
062                    throws SystemException {
063                    return getPersistence().countWithDynamicQuery(dynamicQuery);
064            }
065    
066            /**
067             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
068             */
069            public static List<DLFileVersion> findWithDynamicQuery(
070                    DynamicQuery dynamicQuery) throws SystemException {
071                    return getPersistence().findWithDynamicQuery(dynamicQuery);
072            }
073    
074            /**
075             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
076             */
077            public static List<DLFileVersion> findWithDynamicQuery(
078                    DynamicQuery dynamicQuery, int start, int end)
079                    throws SystemException {
080                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
081            }
082    
083            /**
084             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
085             */
086            public static List<DLFileVersion> findWithDynamicQuery(
087                    DynamicQuery dynamicQuery, int start, int end,
088                    OrderByComparator orderByComparator) throws SystemException {
089                    return getPersistence()
090                                       .findWithDynamicQuery(dynamicQuery, start, end,
091                            orderByComparator);
092            }
093    
094            /**
095             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
096             */
097            public static DLFileVersion remove(DLFileVersion dlFileVersion)
098                    throws SystemException {
099                    return getPersistence().remove(dlFileVersion);
100            }
101    
102            /**
103             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
104             */
105            public static DLFileVersion update(DLFileVersion dlFileVersion,
106                    boolean merge) throws SystemException {
107                    return getPersistence().update(dlFileVersion, merge);
108            }
109    
110            /**
111             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
112             */
113            public static DLFileVersion update(DLFileVersion dlFileVersion,
114                    boolean merge, ServiceContext serviceContext) throws SystemException {
115                    return getPersistence().update(dlFileVersion, merge, serviceContext);
116            }
117    
118            /**
119            * Caches the d l file version in the entity cache if it is enabled.
120            *
121            * @param dlFileVersion the d l file version to cache
122            */
123            public static void cacheResult(
124                    com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion) {
125                    getPersistence().cacheResult(dlFileVersion);
126            }
127    
128            /**
129            * Caches the d l file versions in the entity cache if it is enabled.
130            *
131            * @param dlFileVersions the d l file versions to cache
132            */
133            public static void cacheResult(
134                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> dlFileVersions) {
135                    getPersistence().cacheResult(dlFileVersions);
136            }
137    
138            /**
139            * Creates a new d l file version with the primary key. Does not add the d l file version to the database.
140            *
141            * @param fileVersionId the primary key for the new d l file version
142            * @return the new d l file version
143            */
144            public static com.liferay.portlet.documentlibrary.model.DLFileVersion create(
145                    long fileVersionId) {
146                    return getPersistence().create(fileVersionId);
147            }
148    
149            /**
150            * Removes the d l file version with the primary key from the database. Also notifies the appropriate model listeners.
151            *
152            * @param fileVersionId the primary key of the d l file version to remove
153            * @return the d l file version that was removed
154            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a d l file version with the primary key could not be found
155            * @throws SystemException if a system exception occurred
156            */
157            public static com.liferay.portlet.documentlibrary.model.DLFileVersion remove(
158                    long fileVersionId)
159                    throws com.liferay.portal.kernel.exception.SystemException,
160                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
161                    return getPersistence().remove(fileVersionId);
162            }
163    
164            public static com.liferay.portlet.documentlibrary.model.DLFileVersion updateImpl(
165                    com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
166                    boolean merge)
167                    throws com.liferay.portal.kernel.exception.SystemException {
168                    return getPersistence().updateImpl(dlFileVersion, merge);
169            }
170    
171            /**
172            * Finds the d l file version with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileVersionException} if it could not be found.
173            *
174            * @param fileVersionId the primary key of the d l file version to find
175            * @return the d l file version
176            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a d l file version with the primary key could not be found
177            * @throws SystemException if a system exception occurred
178            */
179            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByPrimaryKey(
180                    long fileVersionId)
181                    throws com.liferay.portal.kernel.exception.SystemException,
182                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
183                    return getPersistence().findByPrimaryKey(fileVersionId);
184            }
185    
186            /**
187            * Finds the d l file version with the primary key or returns <code>null</code> if it could not be found.
188            *
189            * @param fileVersionId the primary key of the d l file version to find
190            * @return the d l file version, or <code>null</code> if a d l file version with the primary key could not be found
191            * @throws SystemException if a system exception occurred
192            */
193            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByPrimaryKey(
194                    long fileVersionId)
195                    throws com.liferay.portal.kernel.exception.SystemException {
196                    return getPersistence().fetchByPrimaryKey(fileVersionId);
197            }
198    
199            /**
200            * Finds all the d l file versions where groupId = &#63; and folderId = &#63; and name = &#63;.
201            *
202            * @param groupId the group id to search with
203            * @param folderId the folder id to search with
204            * @param name the name to search with
205            * @return the matching d l file versions
206            * @throws SystemException if a system exception occurred
207            */
208            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N(
209                    long groupId, long folderId, java.lang.String name)
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return getPersistence().findByG_F_N(groupId, folderId, name);
212            }
213    
214            /**
215            * Finds a range of all the d l file versions where groupId = &#63; and folderId = &#63; and name = &#63;.
216            *
217            * <p>
218            * 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.
219            * </p>
220            *
221            * @param groupId the group id to search with
222            * @param folderId the folder id to search with
223            * @param name the name to search with
224            * @param start the lower bound of the range of d l file versions to return
225            * @param end the upper bound of the range of d l file versions to return (not inclusive)
226            * @return the range of matching d l file versions
227            * @throws SystemException if a system exception occurred
228            */
229            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N(
230                    long groupId, long folderId, java.lang.String name, int start, int end)
231                    throws com.liferay.portal.kernel.exception.SystemException {
232                    return getPersistence().findByG_F_N(groupId, folderId, name, start, end);
233            }
234    
235            /**
236            * Finds an ordered range of all the d l file versions where groupId = &#63; and folderId = &#63; and name = &#63;.
237            *
238            * <p>
239            * 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.
240            * </p>
241            *
242            * @param groupId the group id to search with
243            * @param folderId the folder id to search with
244            * @param name the name to search with
245            * @param start the lower bound of the range of d l file versions to return
246            * @param end the upper bound of the range of d l file versions to return (not inclusive)
247            * @param orderByComparator the comparator to order the results by
248            * @return the ordered range of matching d l file versions
249            * @throws SystemException if a system exception occurred
250            */
251            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N(
252                    long groupId, long folderId, java.lang.String name, int start, int end,
253                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
254                    throws com.liferay.portal.kernel.exception.SystemException {
255                    return getPersistence()
256                                       .findByG_F_N(groupId, folderId, name, start, end,
257                            orderByComparator);
258            }
259    
260            /**
261            * Finds the first d l file version in the ordered set where groupId = &#63; and folderId = &#63; and name = &#63;.
262            *
263            * <p>
264            * 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.
265            * </p>
266            *
267            * @param groupId the group id to search with
268            * @param folderId the folder id to search with
269            * @param name the name to search with
270            * @param orderByComparator the comparator to order the set by
271            * @return the first matching d l file version
272            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching d l file version could not be found
273            * @throws SystemException if a system exception occurred
274            */
275            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_First(
276                    long groupId, long folderId, java.lang.String name,
277                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
278                    throws com.liferay.portal.kernel.exception.SystemException,
279                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
280                    return getPersistence()
281                                       .findByG_F_N_First(groupId, folderId, name, orderByComparator);
282            }
283    
284            /**
285            * Finds the last d l file version in the ordered set where groupId = &#63; and folderId = &#63; and name = &#63;.
286            *
287            * <p>
288            * 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.
289            * </p>
290            *
291            * @param groupId the group id to search with
292            * @param folderId the folder id to search with
293            * @param name the name to search with
294            * @param orderByComparator the comparator to order the set by
295            * @return the last matching d l file version
296            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching d l file version could not be found
297            * @throws SystemException if a system exception occurred
298            */
299            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_Last(
300                    long groupId, long folderId, java.lang.String name,
301                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
302                    throws com.liferay.portal.kernel.exception.SystemException,
303                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
304                    return getPersistence()
305                                       .findByG_F_N_Last(groupId, folderId, name, orderByComparator);
306            }
307    
308            /**
309            * Finds the d l file versions before and after the current d l file version in the ordered set where groupId = &#63; and folderId = &#63; and name = &#63;.
310            *
311            * <p>
312            * 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.
313            * </p>
314            *
315            * @param fileVersionId the primary key of the current d l file version
316            * @param groupId the group id to search with
317            * @param folderId the folder id to search with
318            * @param name the name to search with
319            * @param orderByComparator the comparator to order the set by
320            * @return the previous, current, and next d l file version
321            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a d l file version with the primary key could not be found
322            * @throws SystemException if a system exception occurred
323            */
324            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_N_PrevAndNext(
325                    long fileVersionId, long groupId, long folderId, java.lang.String name,
326                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
327                    throws com.liferay.portal.kernel.exception.SystemException,
328                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
329                    return getPersistence()
330                                       .findByG_F_N_PrevAndNext(fileVersionId, groupId, folderId,
331                            name, orderByComparator);
332            }
333    
334            /**
335            * Finds the d l file version where groupId = &#63; and folderId = &#63; and name = &#63; and version = &#63; or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileVersionException} if it could not be found.
336            *
337            * @param groupId the group id to search with
338            * @param folderId the folder id to search with
339            * @param name the name to search with
340            * @param version the version to search with
341            * @return the matching d l file version
342            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching d l file version could not be found
343            * @throws SystemException if a system exception occurred
344            */
345            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_V(
346                    long groupId, long folderId, java.lang.String name,
347                    java.lang.String version)
348                    throws com.liferay.portal.kernel.exception.SystemException,
349                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
350                    return getPersistence().findByG_F_N_V(groupId, folderId, name, version);
351            }
352    
353            /**
354            * Finds the d l file version where groupId = &#63; and folderId = &#63; and name = &#63; and version = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
355            *
356            * @param groupId the group id to search with
357            * @param folderId the folder id to search with
358            * @param name the name to search with
359            * @param version the version to search with
360            * @return the matching d l file version, or <code>null</code> if a matching d l file version could not be found
361            * @throws SystemException if a system exception occurred
362            */
363            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_N_V(
364                    long groupId, long folderId, java.lang.String name,
365                    java.lang.String version)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return getPersistence().fetchByG_F_N_V(groupId, folderId, name, version);
368            }
369    
370            /**
371            * Finds the d l file version where groupId = &#63; and folderId = &#63; and name = &#63; and version = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
372            *
373            * @param groupId the group id to search with
374            * @param folderId the folder id to search with
375            * @param name the name to search with
376            * @param version the version to search with
377            * @return the matching d l file version, or <code>null</code> if a matching d l file version could not be found
378            * @throws SystemException if a system exception occurred
379            */
380            public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByG_F_N_V(
381                    long groupId, long folderId, java.lang.String name,
382                    java.lang.String version, boolean retrieveFromCache)
383                    throws com.liferay.portal.kernel.exception.SystemException {
384                    return getPersistence()
385                                       .fetchByG_F_N_V(groupId, folderId, name, version,
386                            retrieveFromCache);
387            }
388    
389            /**
390            * Finds all the d l file versions where groupId = &#63; and folderId = &#63; and name = &#63; and status = &#63;.
391            *
392            * @param groupId the group id to search with
393            * @param folderId the folder id to search with
394            * @param name the name to search with
395            * @param status the status to search with
396            * @return the matching d l file versions
397            * @throws SystemException if a system exception occurred
398            */
399            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N_S(
400                    long groupId, long folderId, java.lang.String name, int status)
401                    throws com.liferay.portal.kernel.exception.SystemException {
402                    return getPersistence().findByG_F_N_S(groupId, folderId, name, status);
403            }
404    
405            /**
406            * Finds a range of all the d l file versions where groupId = &#63; and folderId = &#63; and name = &#63; and status = &#63;.
407            *
408            * <p>
409            * 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.
410            * </p>
411            *
412            * @param groupId the group id to search with
413            * @param folderId the folder id to search with
414            * @param name the name to search with
415            * @param status the status to search with
416            * @param start the lower bound of the range of d l file versions to return
417            * @param end the upper bound of the range of d l file versions to return (not inclusive)
418            * @return the range of matching d l file versions
419            * @throws SystemException if a system exception occurred
420            */
421            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N_S(
422                    long groupId, long folderId, java.lang.String name, int status,
423                    int start, int end)
424                    throws com.liferay.portal.kernel.exception.SystemException {
425                    return getPersistence()
426                                       .findByG_F_N_S(groupId, folderId, name, status, start, end);
427            }
428    
429            /**
430            * Finds an ordered range of all the d l file versions where groupId = &#63; and folderId = &#63; and name = &#63; and status = &#63;.
431            *
432            * <p>
433            * 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.
434            * </p>
435            *
436            * @param groupId the group id to search with
437            * @param folderId the folder id to search with
438            * @param name the name to search with
439            * @param status the status to search with
440            * @param start the lower bound of the range of d l file versions to return
441            * @param end the upper bound of the range of d l file versions to return (not inclusive)
442            * @param orderByComparator the comparator to order the results by
443            * @return the ordered range of matching d l file versions
444            * @throws SystemException if a system exception occurred
445            */
446            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findByG_F_N_S(
447                    long groupId, long folderId, java.lang.String name, int status,
448                    int start, int end,
449                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
450                    throws com.liferay.portal.kernel.exception.SystemException {
451                    return getPersistence()
452                                       .findByG_F_N_S(groupId, folderId, name, status, start, end,
453                            orderByComparator);
454            }
455    
456            /**
457            * Finds the first d l file version in the ordered set where groupId = &#63; and folderId = &#63; and name = &#63; and status = &#63;.
458            *
459            * <p>
460            * 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.
461            * </p>
462            *
463            * @param groupId the group id to search with
464            * @param folderId the folder id to search with
465            * @param name the name to search with
466            * @param status the status to search with
467            * @param orderByComparator the comparator to order the set by
468            * @return the first matching d l file version
469            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching d l file version could not be found
470            * @throws SystemException if a system exception occurred
471            */
472            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_S_First(
473                    long groupId, long folderId, java.lang.String name, int status,
474                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
475                    throws com.liferay.portal.kernel.exception.SystemException,
476                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
477                    return getPersistence()
478                                       .findByG_F_N_S_First(groupId, folderId, name, status,
479                            orderByComparator);
480            }
481    
482            /**
483            * Finds the last d l file version in the ordered set where groupId = &#63; and folderId = &#63; and name = &#63; and status = &#63;.
484            *
485            * <p>
486            * 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.
487            * </p>
488            *
489            * @param groupId the group id to search with
490            * @param folderId the folder id to search with
491            * @param name the name to search with
492            * @param status the status to search with
493            * @param orderByComparator the comparator to order the set by
494            * @return the last matching d l file version
495            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a matching d l file version could not be found
496            * @throws SystemException if a system exception occurred
497            */
498            public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByG_F_N_S_Last(
499                    long groupId, long folderId, java.lang.String name, int status,
500                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
501                    throws com.liferay.portal.kernel.exception.SystemException,
502                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
503                    return getPersistence()
504                                       .findByG_F_N_S_Last(groupId, folderId, name, status,
505                            orderByComparator);
506            }
507    
508            /**
509            * Finds the d l file versions before and after the current d l file version in the ordered set where groupId = &#63; and folderId = &#63; and name = &#63; and status = &#63;.
510            *
511            * <p>
512            * 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.
513            * </p>
514            *
515            * @param fileVersionId the primary key of the current d l file version
516            * @param groupId the group id to search with
517            * @param folderId the folder id to search with
518            * @param name the name to search with
519            * @param status the status to search with
520            * @param orderByComparator the comparator to order the set by
521            * @return the previous, current, and next d l file version
522            * @throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException if a d l file version with the primary key could not be found
523            * @throws SystemException if a system exception occurred
524            */
525            public static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByG_F_N_S_PrevAndNext(
526                    long fileVersionId, long groupId, long folderId, java.lang.String name,
527                    int status,
528                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
529                    throws com.liferay.portal.kernel.exception.SystemException,
530                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
531                    return getPersistence()
532                                       .findByG_F_N_S_PrevAndNext(fileVersionId, groupId, folderId,
533                            name, status, orderByComparator);
534            }
535    
536            /**
537            * Finds all the d l file versions.
538            *
539            * @return the d l file versions
540            * @throws SystemException if a system exception occurred
541            */
542            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll()
543                    throws com.liferay.portal.kernel.exception.SystemException {
544                    return getPersistence().findAll();
545            }
546    
547            /**
548            * Finds a range of all the d l file versions.
549            *
550            * <p>
551            * 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.
552            * </p>
553            *
554            * @param start the lower bound of the range of d l file versions to return
555            * @param end the upper bound of the range of d l file versions to return (not inclusive)
556            * @return the range of d l file versions
557            * @throws SystemException if a system exception occurred
558            */
559            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
560                    int start, int end)
561                    throws com.liferay.portal.kernel.exception.SystemException {
562                    return getPersistence().findAll(start, end);
563            }
564    
565            /**
566            * Finds an ordered range of all the d l file versions.
567            *
568            * <p>
569            * 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.
570            * </p>
571            *
572            * @param start the lower bound of the range of d l file versions to return
573            * @param end the upper bound of the range of d l file versions to return (not inclusive)
574            * @param orderByComparator the comparator to order the results by
575            * @return the ordered range of d l file versions
576            * @throws SystemException if a system exception occurred
577            */
578            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> findAll(
579                    int start, int end,
580                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
581                    throws com.liferay.portal.kernel.exception.SystemException {
582                    return getPersistence().findAll(start, end, orderByComparator);
583            }
584    
585            /**
586            * Removes all the d l file versions where groupId = &#63; and folderId = &#63; and name = &#63; from the database.
587            *
588            * @param groupId the group id to search with
589            * @param folderId the folder id to search with
590            * @param name the name to search with
591            * @throws SystemException if a system exception occurred
592            */
593            public static void removeByG_F_N(long groupId, long folderId,
594                    java.lang.String name)
595                    throws com.liferay.portal.kernel.exception.SystemException {
596                    getPersistence().removeByG_F_N(groupId, folderId, name);
597            }
598    
599            /**
600            * Removes the d l file version where groupId = &#63; and folderId = &#63; and name = &#63; and version = &#63; from the database.
601            *
602            * @param groupId the group id to search with
603            * @param folderId the folder id to search with
604            * @param name the name to search with
605            * @param version the version to search with
606            * @throws SystemException if a system exception occurred
607            */
608            public static void removeByG_F_N_V(long groupId, long folderId,
609                    java.lang.String name, java.lang.String version)
610                    throws com.liferay.portal.kernel.exception.SystemException,
611                            com.liferay.portlet.documentlibrary.NoSuchFileVersionException {
612                    getPersistence().removeByG_F_N_V(groupId, folderId, name, version);
613            }
614    
615            /**
616            * Removes all the d l file versions where groupId = &#63; and folderId = &#63; and name = &#63; and status = &#63; from the database.
617            *
618            * @param groupId the group id to search with
619            * @param folderId the folder id to search with
620            * @param name the name to search with
621            * @param status the status to search with
622            * @throws SystemException if a system exception occurred
623            */
624            public static void removeByG_F_N_S(long groupId, long folderId,
625                    java.lang.String name, int status)
626                    throws com.liferay.portal.kernel.exception.SystemException {
627                    getPersistence().removeByG_F_N_S(groupId, folderId, name, status);
628            }
629    
630            /**
631            * Removes all the d l file versions from the database.
632            *
633            * @throws SystemException if a system exception occurred
634            */
635            public static void removeAll()
636                    throws com.liferay.portal.kernel.exception.SystemException {
637                    getPersistence().removeAll();
638            }
639    
640            /**
641            * Counts all the d l file versions where groupId = &#63; and folderId = &#63; and name = &#63;.
642            *
643            * @param groupId the group id to search with
644            * @param folderId the folder id to search with
645            * @param name the name to search with
646            * @return the number of matching d l file versions
647            * @throws SystemException if a system exception occurred
648            */
649            public static int countByG_F_N(long groupId, long folderId,
650                    java.lang.String name)
651                    throws com.liferay.portal.kernel.exception.SystemException {
652                    return getPersistence().countByG_F_N(groupId, folderId, name);
653            }
654    
655            /**
656            * Counts all the d l file versions where groupId = &#63; and folderId = &#63; and name = &#63; and version = &#63;.
657            *
658            * @param groupId the group id to search with
659            * @param folderId the folder id to search with
660            * @param name the name to search with
661            * @param version the version to search with
662            * @return the number of matching d l file versions
663            * @throws SystemException if a system exception occurred
664            */
665            public static int countByG_F_N_V(long groupId, long folderId,
666                    java.lang.String name, java.lang.String version)
667                    throws com.liferay.portal.kernel.exception.SystemException {
668                    return getPersistence().countByG_F_N_V(groupId, folderId, name, version);
669            }
670    
671            /**
672            * Counts all the d l file versions where groupId = &#63; and folderId = &#63; and name = &#63; and status = &#63;.
673            *
674            * @param groupId the group id to search with
675            * @param folderId the folder id to search with
676            * @param name the name to search with
677            * @param status the status to search with
678            * @return the number of matching d l file versions
679            * @throws SystemException if a system exception occurred
680            */
681            public static int countByG_F_N_S(long groupId, long folderId,
682                    java.lang.String name, int status)
683                    throws com.liferay.portal.kernel.exception.SystemException {
684                    return getPersistence().countByG_F_N_S(groupId, folderId, name, status);
685            }
686    
687            /**
688            * Counts all the d l file versions.
689            *
690            * @return the number of d l file versions
691            * @throws SystemException if a system exception occurred
692            */
693            public static int countAll()
694                    throws com.liferay.portal.kernel.exception.SystemException {
695                    return getPersistence().countAll();
696            }
697    
698            public static DLFileVersionPersistence getPersistence() {
699                    if (_persistence == null) {
700                            _persistence = (DLFileVersionPersistence)PortalBeanLocatorUtil.locate(DLFileVersionPersistence.class.getName());
701                    }
702    
703                    return _persistence;
704            }
705    
706            public void setPersistence(DLFileVersionPersistence persistence) {
707                    _persistence = persistence;
708            }
709    
710            private static DLFileVersionPersistence _persistence;
711    }