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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021    import com.liferay.portal.kernel.exception.SystemException;
022    import com.liferay.portal.kernel.util.OrderByComparator;
023    import com.liferay.portal.kernel.util.ReferenceRegistry;
024    import com.liferay.portal.service.ServiceContext;
025    
026    import com.liferay.portlet.documentlibrary.model.DLFileRank;
027    
028    import java.util.List;
029    
030    /**
031     * The persistence utility for the document library file rank service. This utility wraps {@link DLFileRankPersistenceImpl} 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.
032     *
033     * <p>
034     * Caching information and settings can be found in <code>portal.properties</code>
035     * </p>
036     *
037     * @author Brian Wing Shun Chan
038     * @see DLFileRankPersistence
039     * @see DLFileRankPersistenceImpl
040     * @generated
041     */
042    @ProviderType
043    public class DLFileRankUtil {
044            /*
045             * NOTE FOR DEVELOPERS:
046             *
047             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
048             */
049    
050            /**
051             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
052             */
053            public static void clearCache() {
054                    getPersistence().clearCache();
055            }
056    
057            /**
058             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
059             */
060            public static void clearCache(DLFileRank dlFileRank) {
061                    getPersistence().clearCache(dlFileRank);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
066             */
067            public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
068                    throws SystemException {
069                    return getPersistence().countWithDynamicQuery(dynamicQuery);
070            }
071    
072            /**
073             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
074             */
075            public static List<DLFileRank> findWithDynamicQuery(
076                    DynamicQuery dynamicQuery) throws SystemException {
077                    return getPersistence().findWithDynamicQuery(dynamicQuery);
078            }
079    
080            /**
081             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
082             */
083            public static List<DLFileRank> findWithDynamicQuery(
084                    DynamicQuery dynamicQuery, int start, int end)
085                    throws SystemException {
086                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
087            }
088    
089            /**
090             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
091             */
092            public static List<DLFileRank> findWithDynamicQuery(
093                    DynamicQuery dynamicQuery, int start, int end,
094                    OrderByComparator orderByComparator) throws SystemException {
095                    return getPersistence()
096                                       .findWithDynamicQuery(dynamicQuery, start, end,
097                            orderByComparator);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
102             */
103            public static DLFileRank update(DLFileRank dlFileRank)
104                    throws SystemException {
105                    return getPersistence().update(dlFileRank);
106            }
107    
108            /**
109             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
110             */
111            public static DLFileRank update(DLFileRank dlFileRank,
112                    ServiceContext serviceContext) throws SystemException {
113                    return getPersistence().update(dlFileRank, serviceContext);
114            }
115    
116            /**
117            * Returns all the document library file ranks where userId = &#63;.
118            *
119            * @param userId the user ID
120            * @return the matching document library file ranks
121            * @throws SystemException if a system exception occurred
122            */
123            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId(
124                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
125                    return getPersistence().findByUserId(userId);
126            }
127    
128            /**
129            * Returns a range of all the document library file ranks where userId = &#63;.
130            *
131            * <p>
132            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
133            * </p>
134            *
135            * @param userId the user ID
136            * @param start the lower bound of the range of document library file ranks
137            * @param end the upper bound of the range of document library file ranks (not inclusive)
138            * @return the range of matching document library file ranks
139            * @throws SystemException if a system exception occurred
140            */
141            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId(
142                    long userId, int start, int end)
143                    throws com.liferay.portal.kernel.exception.SystemException {
144                    return getPersistence().findByUserId(userId, start, end);
145            }
146    
147            /**
148            * Returns an ordered range of all the document library file ranks where userId = &#63;.
149            *
150            * <p>
151            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
152            * </p>
153            *
154            * @param userId the user ID
155            * @param start the lower bound of the range of document library file ranks
156            * @param end the upper bound of the range of document library file ranks (not inclusive)
157            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
158            * @return the ordered range of matching document library file ranks
159            * @throws SystemException if a system exception occurred
160            */
161            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId(
162                    long userId, int start, int end,
163                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return getPersistence()
166                                       .findByUserId(userId, start, end, orderByComparator);
167            }
168    
169            /**
170            * Returns the first document library file rank in the ordered set where userId = &#63;.
171            *
172            * @param userId the user ID
173            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
174            * @return the first matching document library file rank
175            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found
176            * @throws SystemException if a system exception occurred
177            */
178            public static com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_First(
179                    long userId,
180                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181                    throws com.liferay.portal.kernel.exception.SystemException,
182                            com.liferay.portlet.documentlibrary.NoSuchFileRankException {
183                    return getPersistence().findByUserId_First(userId, orderByComparator);
184            }
185    
186            /**
187            * Returns the first document library file rank in the ordered set where userId = &#63;.
188            *
189            * @param userId the user ID
190            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
191            * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found
192            * @throws SystemException if a system exception occurred
193            */
194            public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByUserId_First(
195                    long userId,
196                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return getPersistence().fetchByUserId_First(userId, orderByComparator);
199            }
200    
201            /**
202            * Returns the last document library file rank in the ordered set where userId = &#63;.
203            *
204            * @param userId the user ID
205            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
206            * @return the last matching document library file rank
207            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found
208            * @throws SystemException if a system exception occurred
209            */
210            public static com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_Last(
211                    long userId,
212                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
213                    throws com.liferay.portal.kernel.exception.SystemException,
214                            com.liferay.portlet.documentlibrary.NoSuchFileRankException {
215                    return getPersistence().findByUserId_Last(userId, orderByComparator);
216            }
217    
218            /**
219            * Returns the last document library file rank in the ordered set where userId = &#63;.
220            *
221            * @param userId the user ID
222            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
223            * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found
224            * @throws SystemException if a system exception occurred
225            */
226            public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByUserId_Last(
227                    long userId,
228                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    return getPersistence().fetchByUserId_Last(userId, orderByComparator);
231            }
232    
233            /**
234            * Returns the document library file ranks before and after the current document library file rank in the ordered set where userId = &#63;.
235            *
236            * @param fileRankId the primary key of the current document library file rank
237            * @param userId the user ID
238            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
239            * @return the previous, current, and next document library file rank
240            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found
241            * @throws SystemException if a system exception occurred
242            */
243            public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByUserId_PrevAndNext(
244                    long fileRankId, long userId,
245                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246                    throws com.liferay.portal.kernel.exception.SystemException,
247                            com.liferay.portlet.documentlibrary.NoSuchFileRankException {
248                    return getPersistence()
249                                       .findByUserId_PrevAndNext(fileRankId, userId,
250                            orderByComparator);
251            }
252    
253            /**
254            * Removes all the document library file ranks where userId = &#63; from the database.
255            *
256            * @param userId the user ID
257            * @throws SystemException if a system exception occurred
258            */
259            public static void removeByUserId(long userId)
260                    throws com.liferay.portal.kernel.exception.SystemException {
261                    getPersistence().removeByUserId(userId);
262            }
263    
264            /**
265            * Returns the number of document library file ranks where userId = &#63;.
266            *
267            * @param userId the user ID
268            * @return the number of matching document library file ranks
269            * @throws SystemException if a system exception occurred
270            */
271            public static int countByUserId(long userId)
272                    throws com.liferay.portal.kernel.exception.SystemException {
273                    return getPersistence().countByUserId(userId);
274            }
275    
276            /**
277            * Returns all the document library file ranks where fileEntryId = &#63;.
278            *
279            * @param fileEntryId the file entry ID
280            * @return the matching document library file ranks
281            * @throws SystemException if a system exception occurred
282            */
283            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId(
284                    long fileEntryId)
285                    throws com.liferay.portal.kernel.exception.SystemException {
286                    return getPersistence().findByFileEntryId(fileEntryId);
287            }
288    
289            /**
290            * Returns a range of all the document library file ranks where fileEntryId = &#63;.
291            *
292            * <p>
293            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
294            * </p>
295            *
296            * @param fileEntryId the file entry ID
297            * @param start the lower bound of the range of document library file ranks
298            * @param end the upper bound of the range of document library file ranks (not inclusive)
299            * @return the range of matching document library file ranks
300            * @throws SystemException if a system exception occurred
301            */
302            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId(
303                    long fileEntryId, int start, int end)
304                    throws com.liferay.portal.kernel.exception.SystemException {
305                    return getPersistence().findByFileEntryId(fileEntryId, start, end);
306            }
307    
308            /**
309            * Returns an ordered range of all the document library file ranks where fileEntryId = &#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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
313            * </p>
314            *
315            * @param fileEntryId the file entry ID
316            * @param start the lower bound of the range of document library file ranks
317            * @param end the upper bound of the range of document library file ranks (not inclusive)
318            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
319            * @return the ordered range of matching document library file ranks
320            * @throws SystemException if a system exception occurred
321            */
322            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId(
323                    long fileEntryId, int start, int end,
324                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
325                    throws com.liferay.portal.kernel.exception.SystemException {
326                    return getPersistence()
327                                       .findByFileEntryId(fileEntryId, start, end, orderByComparator);
328            }
329    
330            /**
331            * Returns the first document library file rank in the ordered set where fileEntryId = &#63;.
332            *
333            * @param fileEntryId the file entry ID
334            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
335            * @return the first matching document library file rank
336            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found
337            * @throws SystemException if a system exception occurred
338            */
339            public static com.liferay.portlet.documentlibrary.model.DLFileRank findByFileEntryId_First(
340                    long fileEntryId,
341                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
342                    throws com.liferay.portal.kernel.exception.SystemException,
343                            com.liferay.portlet.documentlibrary.NoSuchFileRankException {
344                    return getPersistence()
345                                       .findByFileEntryId_First(fileEntryId, orderByComparator);
346            }
347    
348            /**
349            * Returns the first document library file rank in the ordered set where fileEntryId = &#63;.
350            *
351            * @param fileEntryId the file entry ID
352            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
353            * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found
354            * @throws SystemException if a system exception occurred
355            */
356            public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByFileEntryId_First(
357                    long fileEntryId,
358                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return getPersistence()
361                                       .fetchByFileEntryId_First(fileEntryId, orderByComparator);
362            }
363    
364            /**
365            * Returns the last document library file rank in the ordered set where fileEntryId = &#63;.
366            *
367            * @param fileEntryId the file entry ID
368            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
369            * @return the last matching document library file rank
370            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found
371            * @throws SystemException if a system exception occurred
372            */
373            public static com.liferay.portlet.documentlibrary.model.DLFileRank findByFileEntryId_Last(
374                    long fileEntryId,
375                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
376                    throws com.liferay.portal.kernel.exception.SystemException,
377                            com.liferay.portlet.documentlibrary.NoSuchFileRankException {
378                    return getPersistence()
379                                       .findByFileEntryId_Last(fileEntryId, orderByComparator);
380            }
381    
382            /**
383            * Returns the last document library file rank in the ordered set where fileEntryId = &#63;.
384            *
385            * @param fileEntryId the file entry ID
386            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
387            * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found
388            * @throws SystemException if a system exception occurred
389            */
390            public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByFileEntryId_Last(
391                    long fileEntryId,
392                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
393                    throws com.liferay.portal.kernel.exception.SystemException {
394                    return getPersistence()
395                                       .fetchByFileEntryId_Last(fileEntryId, orderByComparator);
396            }
397    
398            /**
399            * Returns the document library file ranks before and after the current document library file rank in the ordered set where fileEntryId = &#63;.
400            *
401            * @param fileRankId the primary key of the current document library file rank
402            * @param fileEntryId the file entry ID
403            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
404            * @return the previous, current, and next document library file rank
405            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found
406            * @throws SystemException if a system exception occurred
407            */
408            public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByFileEntryId_PrevAndNext(
409                    long fileRankId, long fileEntryId,
410                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
411                    throws com.liferay.portal.kernel.exception.SystemException,
412                            com.liferay.portlet.documentlibrary.NoSuchFileRankException {
413                    return getPersistence()
414                                       .findByFileEntryId_PrevAndNext(fileRankId, fileEntryId,
415                            orderByComparator);
416            }
417    
418            /**
419            * Removes all the document library file ranks where fileEntryId = &#63; from the database.
420            *
421            * @param fileEntryId the file entry ID
422            * @throws SystemException if a system exception occurred
423            */
424            public static void removeByFileEntryId(long fileEntryId)
425                    throws com.liferay.portal.kernel.exception.SystemException {
426                    getPersistence().removeByFileEntryId(fileEntryId);
427            }
428    
429            /**
430            * Returns the number of document library file ranks where fileEntryId = &#63;.
431            *
432            * @param fileEntryId the file entry ID
433            * @return the number of matching document library file ranks
434            * @throws SystemException if a system exception occurred
435            */
436            public static int countByFileEntryId(long fileEntryId)
437                    throws com.liferay.portal.kernel.exception.SystemException {
438                    return getPersistence().countByFileEntryId(fileEntryId);
439            }
440    
441            /**
442            * Returns all the document library file ranks where groupId = &#63; and userId = &#63;.
443            *
444            * @param groupId the group ID
445            * @param userId the user ID
446            * @return the matching document library file ranks
447            * @throws SystemException if a system exception occurred
448            */
449            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U(
450                    long groupId, long userId)
451                    throws com.liferay.portal.kernel.exception.SystemException {
452                    return getPersistence().findByG_U(groupId, userId);
453            }
454    
455            /**
456            * Returns a range of all the document library file ranks where groupId = &#63; and userId = &#63;.
457            *
458            * <p>
459            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
460            * </p>
461            *
462            * @param groupId the group ID
463            * @param userId the user ID
464            * @param start the lower bound of the range of document library file ranks
465            * @param end the upper bound of the range of document library file ranks (not inclusive)
466            * @return the range of matching document library file ranks
467            * @throws SystemException if a system exception occurred
468            */
469            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U(
470                    long groupId, long userId, int start, int end)
471                    throws com.liferay.portal.kernel.exception.SystemException {
472                    return getPersistence().findByG_U(groupId, userId, start, end);
473            }
474    
475            /**
476            * Returns an ordered range of all the document library file ranks where groupId = &#63; and userId = &#63;.
477            *
478            * <p>
479            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
480            * </p>
481            *
482            * @param groupId the group ID
483            * @param userId the user ID
484            * @param start the lower bound of the range of document library file ranks
485            * @param end the upper bound of the range of document library file ranks (not inclusive)
486            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
487            * @return the ordered range of matching document library file ranks
488            * @throws SystemException if a system exception occurred
489            */
490            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U(
491                    long groupId, long userId, int start, int end,
492                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
493                    throws com.liferay.portal.kernel.exception.SystemException {
494                    return getPersistence()
495                                       .findByG_U(groupId, userId, start, end, orderByComparator);
496            }
497    
498            /**
499            * Returns the first document library file rank in the ordered set where groupId = &#63; and userId = &#63;.
500            *
501            * @param groupId the group ID
502            * @param userId the user ID
503            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
504            * @return the first matching document library file rank
505            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found
506            * @throws SystemException if a system exception occurred
507            */
508            public static com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_First(
509                    long groupId, long userId,
510                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
511                    throws com.liferay.portal.kernel.exception.SystemException,
512                            com.liferay.portlet.documentlibrary.NoSuchFileRankException {
513                    return getPersistence()
514                                       .findByG_U_First(groupId, userId, orderByComparator);
515            }
516    
517            /**
518            * Returns the first document library file rank in the ordered set where groupId = &#63; and userId = &#63;.
519            *
520            * @param groupId the group ID
521            * @param userId the user ID
522            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
523            * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found
524            * @throws SystemException if a system exception occurred
525            */
526            public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_First(
527                    long groupId, long userId,
528                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
529                    throws com.liferay.portal.kernel.exception.SystemException {
530                    return getPersistence()
531                                       .fetchByG_U_First(groupId, userId, orderByComparator);
532            }
533    
534            /**
535            * Returns the last document library file rank in the ordered set where groupId = &#63; and userId = &#63;.
536            *
537            * @param groupId the group ID
538            * @param userId the user ID
539            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
540            * @return the last matching document library file rank
541            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found
542            * @throws SystemException if a system exception occurred
543            */
544            public static com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_Last(
545                    long groupId, long userId,
546                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
547                    throws com.liferay.portal.kernel.exception.SystemException,
548                            com.liferay.portlet.documentlibrary.NoSuchFileRankException {
549                    return getPersistence()
550                                       .findByG_U_Last(groupId, userId, orderByComparator);
551            }
552    
553            /**
554            * Returns the last document library file rank in the ordered set where groupId = &#63; and userId = &#63;.
555            *
556            * @param groupId the group ID
557            * @param userId the user ID
558            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
559            * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found
560            * @throws SystemException if a system exception occurred
561            */
562            public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_Last(
563                    long groupId, long userId,
564                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
565                    throws com.liferay.portal.kernel.exception.SystemException {
566                    return getPersistence()
567                                       .fetchByG_U_Last(groupId, userId, orderByComparator);
568            }
569    
570            /**
571            * Returns the document library file ranks before and after the current document library file rank in the ordered set where groupId = &#63; and userId = &#63;.
572            *
573            * @param fileRankId the primary key of the current document library file rank
574            * @param groupId the group ID
575            * @param userId the user ID
576            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
577            * @return the previous, current, and next document library file rank
578            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found
579            * @throws SystemException if a system exception occurred
580            */
581            public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByG_U_PrevAndNext(
582                    long fileRankId, long groupId, long userId,
583                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
584                    throws com.liferay.portal.kernel.exception.SystemException,
585                            com.liferay.portlet.documentlibrary.NoSuchFileRankException {
586                    return getPersistence()
587                                       .findByG_U_PrevAndNext(fileRankId, groupId, userId,
588                            orderByComparator);
589            }
590    
591            /**
592            * Removes all the document library file ranks where groupId = &#63; and userId = &#63; from the database.
593            *
594            * @param groupId the group ID
595            * @param userId the user ID
596            * @throws SystemException if a system exception occurred
597            */
598            public static void removeByG_U(long groupId, long userId)
599                    throws com.liferay.portal.kernel.exception.SystemException {
600                    getPersistence().removeByG_U(groupId, userId);
601            }
602    
603            /**
604            * Returns the number of document library file ranks where groupId = &#63; and userId = &#63;.
605            *
606            * @param groupId the group ID
607            * @param userId the user ID
608            * @return the number of matching document library file ranks
609            * @throws SystemException if a system exception occurred
610            */
611            public static int countByG_U(long groupId, long userId)
612                    throws com.liferay.portal.kernel.exception.SystemException {
613                    return getPersistence().countByG_U(groupId, userId);
614            }
615    
616            /**
617            * Returns all the document library file ranks where groupId = &#63; and userId = &#63; and active = &#63;.
618            *
619            * @param groupId the group ID
620            * @param userId the user ID
621            * @param active the active
622            * @return the matching document library file ranks
623            * @throws SystemException if a system exception occurred
624            */
625            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U_A(
626                    long groupId, long userId, boolean active)
627                    throws com.liferay.portal.kernel.exception.SystemException {
628                    return getPersistence().findByG_U_A(groupId, userId, active);
629            }
630    
631            /**
632            * Returns a range of all the document library file ranks where groupId = &#63; and userId = &#63; and active = &#63;.
633            *
634            * <p>
635            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
636            * </p>
637            *
638            * @param groupId the group ID
639            * @param userId the user ID
640            * @param active the active
641            * @param start the lower bound of the range of document library file ranks
642            * @param end the upper bound of the range of document library file ranks (not inclusive)
643            * @return the range of matching document library file ranks
644            * @throws SystemException if a system exception occurred
645            */
646            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U_A(
647                    long groupId, long userId, boolean active, int start, int end)
648                    throws com.liferay.portal.kernel.exception.SystemException {
649                    return getPersistence().findByG_U_A(groupId, userId, active, start, end);
650            }
651    
652            /**
653            * Returns an ordered range of all the document library file ranks where groupId = &#63; and userId = &#63; and active = &#63;.
654            *
655            * <p>
656            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
657            * </p>
658            *
659            * @param groupId the group ID
660            * @param userId the user ID
661            * @param active the active
662            * @param start the lower bound of the range of document library file ranks
663            * @param end the upper bound of the range of document library file ranks (not inclusive)
664            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
665            * @return the ordered range of matching document library file ranks
666            * @throws SystemException if a system exception occurred
667            */
668            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U_A(
669                    long groupId, long userId, boolean active, int start, int end,
670                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
671                    throws com.liferay.portal.kernel.exception.SystemException {
672                    return getPersistence()
673                                       .findByG_U_A(groupId, userId, active, start, end,
674                            orderByComparator);
675            }
676    
677            /**
678            * Returns the first document library file rank in the ordered set where groupId = &#63; and userId = &#63; and active = &#63;.
679            *
680            * @param groupId the group ID
681            * @param userId the user ID
682            * @param active the active
683            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
684            * @return the first matching document library file rank
685            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found
686            * @throws SystemException if a system exception occurred
687            */
688            public static com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_A_First(
689                    long groupId, long userId, boolean active,
690                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
691                    throws com.liferay.portal.kernel.exception.SystemException,
692                            com.liferay.portlet.documentlibrary.NoSuchFileRankException {
693                    return getPersistence()
694                                       .findByG_U_A_First(groupId, userId, active, orderByComparator);
695            }
696    
697            /**
698            * Returns the first document library file rank in the ordered set where groupId = &#63; and userId = &#63; and active = &#63;.
699            *
700            * @param groupId the group ID
701            * @param userId the user ID
702            * @param active the active
703            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
704            * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found
705            * @throws SystemException if a system exception occurred
706            */
707            public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_A_First(
708                    long groupId, long userId, boolean active,
709                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
710                    throws com.liferay.portal.kernel.exception.SystemException {
711                    return getPersistence()
712                                       .fetchByG_U_A_First(groupId, userId, active,
713                            orderByComparator);
714            }
715    
716            /**
717            * Returns the last document library file rank in the ordered set where groupId = &#63; and userId = &#63; and active = &#63;.
718            *
719            * @param groupId the group ID
720            * @param userId the user ID
721            * @param active the active
722            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
723            * @return the last matching document library file rank
724            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found
725            * @throws SystemException if a system exception occurred
726            */
727            public static com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_A_Last(
728                    long groupId, long userId, boolean active,
729                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
730                    throws com.liferay.portal.kernel.exception.SystemException,
731                            com.liferay.portlet.documentlibrary.NoSuchFileRankException {
732                    return getPersistence()
733                                       .findByG_U_A_Last(groupId, userId, active, orderByComparator);
734            }
735    
736            /**
737            * Returns the last document library file rank in the ordered set where groupId = &#63; and userId = &#63; and active = &#63;.
738            *
739            * @param groupId the group ID
740            * @param userId the user ID
741            * @param active the active
742            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
743            * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found
744            * @throws SystemException if a system exception occurred
745            */
746            public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_A_Last(
747                    long groupId, long userId, boolean active,
748                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
749                    throws com.liferay.portal.kernel.exception.SystemException {
750                    return getPersistence()
751                                       .fetchByG_U_A_Last(groupId, userId, active, orderByComparator);
752            }
753    
754            /**
755            * Returns the document library file ranks before and after the current document library file rank in the ordered set where groupId = &#63; and userId = &#63; and active = &#63;.
756            *
757            * @param fileRankId the primary key of the current document library file rank
758            * @param groupId the group ID
759            * @param userId the user ID
760            * @param active the active
761            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
762            * @return the previous, current, and next document library file rank
763            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found
764            * @throws SystemException if a system exception occurred
765            */
766            public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByG_U_A_PrevAndNext(
767                    long fileRankId, long groupId, long userId, boolean active,
768                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
769                    throws com.liferay.portal.kernel.exception.SystemException,
770                            com.liferay.portlet.documentlibrary.NoSuchFileRankException {
771                    return getPersistence()
772                                       .findByG_U_A_PrevAndNext(fileRankId, groupId, userId,
773                            active, orderByComparator);
774            }
775    
776            /**
777            * Removes all the document library file ranks where groupId = &#63; and userId = &#63; and active = &#63; from the database.
778            *
779            * @param groupId the group ID
780            * @param userId the user ID
781            * @param active the active
782            * @throws SystemException if a system exception occurred
783            */
784            public static void removeByG_U_A(long groupId, long userId, boolean active)
785                    throws com.liferay.portal.kernel.exception.SystemException {
786                    getPersistence().removeByG_U_A(groupId, userId, active);
787            }
788    
789            /**
790            * Returns the number of document library file ranks where groupId = &#63; and userId = &#63; and active = &#63;.
791            *
792            * @param groupId the group ID
793            * @param userId the user ID
794            * @param active the active
795            * @return the number of matching document library file ranks
796            * @throws SystemException if a system exception occurred
797            */
798            public static int countByG_U_A(long groupId, long userId, boolean active)
799                    throws com.liferay.portal.kernel.exception.SystemException {
800                    return getPersistence().countByG_U_A(groupId, userId, active);
801            }
802    
803            /**
804            * Returns the document library file rank where companyId = &#63; and userId = &#63; and fileEntryId = &#63; or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileRankException} if it could not be found.
805            *
806            * @param companyId the company ID
807            * @param userId the user ID
808            * @param fileEntryId the file entry ID
809            * @return the matching document library file rank
810            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found
811            * @throws SystemException if a system exception occurred
812            */
813            public static com.liferay.portlet.documentlibrary.model.DLFileRank findByC_U_F(
814                    long companyId, long userId, long fileEntryId)
815                    throws com.liferay.portal.kernel.exception.SystemException,
816                            com.liferay.portlet.documentlibrary.NoSuchFileRankException {
817                    return getPersistence().findByC_U_F(companyId, userId, fileEntryId);
818            }
819    
820            /**
821            * Returns the document library file rank where companyId = &#63; and userId = &#63; and fileEntryId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
822            *
823            * @param companyId the company ID
824            * @param userId the user ID
825            * @param fileEntryId the file entry ID
826            * @return the matching document library file rank, or <code>null</code> if a matching document library file rank could not be found
827            * @throws SystemException if a system exception occurred
828            */
829            public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F(
830                    long companyId, long userId, long fileEntryId)
831                    throws com.liferay.portal.kernel.exception.SystemException {
832                    return getPersistence().fetchByC_U_F(companyId, userId, fileEntryId);
833            }
834    
835            /**
836            * Returns the document library file rank where companyId = &#63; and userId = &#63; and fileEntryId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
837            *
838            * @param companyId the company ID
839            * @param userId the user ID
840            * @param fileEntryId the file entry ID
841            * @param retrieveFromCache whether to use the finder cache
842            * @return the matching document library file rank, or <code>null</code> if a matching document library file rank could not be found
843            * @throws SystemException if a system exception occurred
844            */
845            public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F(
846                    long companyId, long userId, long fileEntryId, boolean retrieveFromCache)
847                    throws com.liferay.portal.kernel.exception.SystemException {
848                    return getPersistence()
849                                       .fetchByC_U_F(companyId, userId, fileEntryId,
850                            retrieveFromCache);
851            }
852    
853            /**
854            * Removes the document library file rank where companyId = &#63; and userId = &#63; and fileEntryId = &#63; from the database.
855            *
856            * @param companyId the company ID
857            * @param userId the user ID
858            * @param fileEntryId the file entry ID
859            * @return the document library file rank that was removed
860            * @throws SystemException if a system exception occurred
861            */
862            public static com.liferay.portlet.documentlibrary.model.DLFileRank removeByC_U_F(
863                    long companyId, long userId, long fileEntryId)
864                    throws com.liferay.portal.kernel.exception.SystemException,
865                            com.liferay.portlet.documentlibrary.NoSuchFileRankException {
866                    return getPersistence().removeByC_U_F(companyId, userId, fileEntryId);
867            }
868    
869            /**
870            * Returns the number of document library file ranks where companyId = &#63; and userId = &#63; and fileEntryId = &#63;.
871            *
872            * @param companyId the company ID
873            * @param userId the user ID
874            * @param fileEntryId the file entry ID
875            * @return the number of matching document library file ranks
876            * @throws SystemException if a system exception occurred
877            */
878            public static int countByC_U_F(long companyId, long userId, long fileEntryId)
879                    throws com.liferay.portal.kernel.exception.SystemException {
880                    return getPersistence().countByC_U_F(companyId, userId, fileEntryId);
881            }
882    
883            /**
884            * Caches the document library file rank in the entity cache if it is enabled.
885            *
886            * @param dlFileRank the document library file rank
887            */
888            public static void cacheResult(
889                    com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) {
890                    getPersistence().cacheResult(dlFileRank);
891            }
892    
893            /**
894            * Caches the document library file ranks in the entity cache if it is enabled.
895            *
896            * @param dlFileRanks the document library file ranks
897            */
898            public static void cacheResult(
899                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> dlFileRanks) {
900                    getPersistence().cacheResult(dlFileRanks);
901            }
902    
903            /**
904            * Creates a new document library file rank with the primary key. Does not add the document library file rank to the database.
905            *
906            * @param fileRankId the primary key for the new document library file rank
907            * @return the new document library file rank
908            */
909            public static com.liferay.portlet.documentlibrary.model.DLFileRank create(
910                    long fileRankId) {
911                    return getPersistence().create(fileRankId);
912            }
913    
914            /**
915            * Removes the document library file rank with the primary key from the database. Also notifies the appropriate model listeners.
916            *
917            * @param fileRankId the primary key of the document library file rank
918            * @return the document library file rank that was removed
919            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found
920            * @throws SystemException if a system exception occurred
921            */
922            public static com.liferay.portlet.documentlibrary.model.DLFileRank remove(
923                    long fileRankId)
924                    throws com.liferay.portal.kernel.exception.SystemException,
925                            com.liferay.portlet.documentlibrary.NoSuchFileRankException {
926                    return getPersistence().remove(fileRankId);
927            }
928    
929            public static com.liferay.portlet.documentlibrary.model.DLFileRank updateImpl(
930                    com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank)
931                    throws com.liferay.portal.kernel.exception.SystemException {
932                    return getPersistence().updateImpl(dlFileRank);
933            }
934    
935            /**
936            * Returns the document library file rank with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileRankException} if it could not be found.
937            *
938            * @param fileRankId the primary key of the document library file rank
939            * @return the document library file rank
940            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found
941            * @throws SystemException if a system exception occurred
942            */
943            public static com.liferay.portlet.documentlibrary.model.DLFileRank findByPrimaryKey(
944                    long fileRankId)
945                    throws com.liferay.portal.kernel.exception.SystemException,
946                            com.liferay.portlet.documentlibrary.NoSuchFileRankException {
947                    return getPersistence().findByPrimaryKey(fileRankId);
948            }
949    
950            /**
951            * Returns the document library file rank with the primary key or returns <code>null</code> if it could not be found.
952            *
953            * @param fileRankId the primary key of the document library file rank
954            * @return the document library file rank, or <code>null</code> if a document library file rank with the primary key could not be found
955            * @throws SystemException if a system exception occurred
956            */
957            public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByPrimaryKey(
958                    long fileRankId)
959                    throws com.liferay.portal.kernel.exception.SystemException {
960                    return getPersistence().fetchByPrimaryKey(fileRankId);
961            }
962    
963            /**
964            * Returns all the document library file ranks.
965            *
966            * @return the document library file ranks
967            * @throws SystemException if a system exception occurred
968            */
969            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll()
970                    throws com.liferay.portal.kernel.exception.SystemException {
971                    return getPersistence().findAll();
972            }
973    
974            /**
975            * Returns a range of all the document library file ranks.
976            *
977            * <p>
978            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
979            * </p>
980            *
981            * @param start the lower bound of the range of document library file ranks
982            * @param end the upper bound of the range of document library file ranks (not inclusive)
983            * @return the range of document library file ranks
984            * @throws SystemException if a system exception occurred
985            */
986            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll(
987                    int start, int end)
988                    throws com.liferay.portal.kernel.exception.SystemException {
989                    return getPersistence().findAll(start, end);
990            }
991    
992            /**
993            * Returns an ordered range of all the document library file ranks.
994            *
995            * <p>
996            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
997            * </p>
998            *
999            * @param start the lower bound of the range of document library file ranks
1000            * @param end the upper bound of the range of document library file ranks (not inclusive)
1001            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1002            * @return the ordered range of document library file ranks
1003            * @throws SystemException if a system exception occurred
1004            */
1005            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll(
1006                    int start, int end,
1007                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1008                    throws com.liferay.portal.kernel.exception.SystemException {
1009                    return getPersistence().findAll(start, end, orderByComparator);
1010            }
1011    
1012            /**
1013            * Removes all the document library file ranks from the database.
1014            *
1015            * @throws SystemException if a system exception occurred
1016            */
1017            public static void removeAll()
1018                    throws com.liferay.portal.kernel.exception.SystemException {
1019                    getPersistence().removeAll();
1020            }
1021    
1022            /**
1023            * Returns the number of document library file ranks.
1024            *
1025            * @return the number of document library file ranks
1026            * @throws SystemException if a system exception occurred
1027            */
1028            public static int countAll()
1029                    throws com.liferay.portal.kernel.exception.SystemException {
1030                    return getPersistence().countAll();
1031            }
1032    
1033            public static DLFileRankPersistence getPersistence() {
1034                    if (_persistence == null) {
1035                            _persistence = (DLFileRankPersistence)PortalBeanLocatorUtil.locate(DLFileRankPersistence.class.getName());
1036    
1037                            ReferenceRegistry.registerReference(DLFileRankUtil.class,
1038                                    "_persistence");
1039                    }
1040    
1041                    return _persistence;
1042            }
1043    
1044            /**
1045             * @deprecated As of 6.2.0
1046             */
1047            public void setPersistence(DLFileRankPersistence persistence) {
1048            }
1049    
1050            private static DLFileRankPersistence _persistence;
1051    }