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