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