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