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