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