001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.service.persistence;
016    
017    import com.liferay.portal.kernel.exception.SystemException;
018    import com.liferay.portal.service.persistence.BasePersistence;
019    
020    import com.liferay.portlet.documentlibrary.model.DLFileRank;
021    
022    /**
023     * The persistence interface for the document library file rank service.
024     *
025     * <p>
026     * Caching information and settings can be found in <code>portal.properties</code>
027     * </p>
028     *
029     * @author Brian Wing Shun Chan
030     * @see DLFileRankPersistenceImpl
031     * @see DLFileRankUtil
032     * @generated
033     */
034    public interface DLFileRankPersistence extends BasePersistence<DLFileRank> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * 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.
039             */
040    
041            /**
042            * Caches the document library file rank in the entity cache if it is enabled.
043            *
044            * @param dlFileRank the document library file rank
045            */
046            public void cacheResult(
047                    com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank);
048    
049            /**
050            * Caches the document library file ranks in the entity cache if it is enabled.
051            *
052            * @param dlFileRanks the document library file ranks
053            */
054            public void cacheResult(
055                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> dlFileRanks);
056    
057            /**
058            * Creates a new document library file rank with the primary key. Does not add the document library file rank to the database.
059            *
060            * @param fileRankId the primary key for the new document library file rank
061            * @return the new document library file rank
062            */
063            public com.liferay.portlet.documentlibrary.model.DLFileRank create(
064                    long fileRankId);
065    
066            /**
067            * Removes the document library file rank with the primary key from the database. Also notifies the appropriate model listeners.
068            *
069            * @param fileRankId the primary key of the document library file rank
070            * @return the document library file rank that was removed
071            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found
072            * @throws SystemException if a system exception occurred
073            */
074            public com.liferay.portlet.documentlibrary.model.DLFileRank remove(
075                    long fileRankId)
076                    throws com.liferay.portal.kernel.exception.SystemException,
077                            com.liferay.portlet.documentlibrary.NoSuchFileRankException;
078    
079            public com.liferay.portlet.documentlibrary.model.DLFileRank updateImpl(
080                    com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank,
081                    boolean merge)
082                    throws com.liferay.portal.kernel.exception.SystemException;
083    
084            /**
085            * 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.
086            *
087            * @param fileRankId the primary key of the document library file rank
088            * @return the document library file rank
089            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found
090            * @throws SystemException if a system exception occurred
091            */
092            public com.liferay.portlet.documentlibrary.model.DLFileRank findByPrimaryKey(
093                    long fileRankId)
094                    throws com.liferay.portal.kernel.exception.SystemException,
095                            com.liferay.portlet.documentlibrary.NoSuchFileRankException;
096    
097            /**
098            * Returns the document library file rank with the primary key or returns <code>null</code> if it could not be found.
099            *
100            * @param fileRankId the primary key of the document library file rank
101            * @return the document library file rank, or <code>null</code> if a document library file rank with the primary key could not be found
102            * @throws SystemException if a system exception occurred
103            */
104            public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByPrimaryKey(
105                    long fileRankId)
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            /**
109            * Returns all the document library file ranks where userId = &#63;.
110            *
111            * @param userId the user ID
112            * @return the matching document library file ranks
113            * @throws SystemException if a system exception occurred
114            */
115            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId(
116                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns a range of all the document library file ranks where userId = &#63;.
120            *
121            * <p>
122            * 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.
123            * </p>
124            *
125            * @param userId the user ID
126            * @param start the lower bound of the range of document library file ranks
127            * @param end the upper bound of the range of document library file ranks (not inclusive)
128            * @return the range of matching document library file ranks
129            * @throws SystemException if a system exception occurred
130            */
131            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId(
132                    long userId, int start, int end)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            /**
136            * Returns an ordered range of all the document library file ranks where userId = &#63;.
137            *
138            * <p>
139            * 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.
140            * </p>
141            *
142            * @param userId the user ID
143            * @param start the lower bound of the range of document library file ranks
144            * @param end the upper bound of the range of document library file ranks (not inclusive)
145            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
146            * @return the ordered range of matching document library file ranks
147            * @throws SystemException if a system exception occurred
148            */
149            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId(
150                    long userId, int start, int end,
151                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152                    throws com.liferay.portal.kernel.exception.SystemException;
153    
154            /**
155            * Returns the first document library file rank in the ordered set where userId = &#63;.
156            *
157            * <p>
158            * 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.
159            * </p>
160            *
161            * @param userId the user ID
162            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
163            * @return the first matching document library file rank
164            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found
165            * @throws SystemException if a system exception occurred
166            */
167            public com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_First(
168                    long userId,
169                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170                    throws com.liferay.portal.kernel.exception.SystemException,
171                            com.liferay.portlet.documentlibrary.NoSuchFileRankException;
172    
173            /**
174            * Returns the last document library file rank in the ordered set where userId = &#63;.
175            *
176            * <p>
177            * 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.
178            * </p>
179            *
180            * @param userId the user ID
181            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
182            * @return the last matching document library file rank
183            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found
184            * @throws SystemException if a system exception occurred
185            */
186            public com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_Last(
187                    long userId,
188                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189                    throws com.liferay.portal.kernel.exception.SystemException,
190                            com.liferay.portlet.documentlibrary.NoSuchFileRankException;
191    
192            /**
193            * Returns the document library file ranks before and after the current document library file rank in the ordered set where userId = &#63;.
194            *
195            * <p>
196            * 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.
197            * </p>
198            *
199            * @param fileRankId the primary key of the current document library file rank
200            * @param userId the user ID
201            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
202            * @return the previous, current, and next document library file rank
203            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found
204            * @throws SystemException if a system exception occurred
205            */
206            public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByUserId_PrevAndNext(
207                    long fileRankId, long userId,
208                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209                    throws com.liferay.portal.kernel.exception.SystemException,
210                            com.liferay.portlet.documentlibrary.NoSuchFileRankException;
211    
212            /**
213            * Returns all the document library file ranks where fileEntryId = &#63;.
214            *
215            * @param fileEntryId the file entry ID
216            * @return the matching document library file ranks
217            * @throws SystemException if a system exception occurred
218            */
219            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId(
220                    long fileEntryId)
221                    throws com.liferay.portal.kernel.exception.SystemException;
222    
223            /**
224            * Returns a range of all the document library file ranks where fileEntryId = &#63;.
225            *
226            * <p>
227            * 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.
228            * </p>
229            *
230            * @param fileEntryId the file entry ID
231            * @param start the lower bound of the range of document library file ranks
232            * @param end the upper bound of the range of document library file ranks (not inclusive)
233            * @return the range of matching document library file ranks
234            * @throws SystemException if a system exception occurred
235            */
236            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId(
237                    long fileEntryId, int start, int end)
238                    throws com.liferay.portal.kernel.exception.SystemException;
239    
240            /**
241            * Returns an ordered range of all the document library file ranks where fileEntryId = &#63;.
242            *
243            * <p>
244            * 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.
245            * </p>
246            *
247            * @param fileEntryId the file entry ID
248            * @param start the lower bound of the range of document library file ranks
249            * @param end the upper bound of the range of document library file ranks (not inclusive)
250            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
251            * @return the ordered range of matching document library file ranks
252            * @throws SystemException if a system exception occurred
253            */
254            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId(
255                    long fileEntryId, int start, int end,
256                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257                    throws com.liferay.portal.kernel.exception.SystemException;
258    
259            /**
260            * Returns the first document library file rank in the ordered set where fileEntryId = &#63;.
261            *
262            * <p>
263            * 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.
264            * </p>
265            *
266            * @param fileEntryId the file entry ID
267            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
268            * @return the first matching document library file rank
269            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found
270            * @throws SystemException if a system exception occurred
271            */
272            public com.liferay.portlet.documentlibrary.model.DLFileRank findByFileEntryId_First(
273                    long fileEntryId,
274                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275                    throws com.liferay.portal.kernel.exception.SystemException,
276                            com.liferay.portlet.documentlibrary.NoSuchFileRankException;
277    
278            /**
279            * Returns the last document library file rank in the ordered set where fileEntryId = &#63;.
280            *
281            * <p>
282            * 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.
283            * </p>
284            *
285            * @param fileEntryId the file entry ID
286            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
287            * @return the last matching document library file rank
288            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found
289            * @throws SystemException if a system exception occurred
290            */
291            public com.liferay.portlet.documentlibrary.model.DLFileRank findByFileEntryId_Last(
292                    long fileEntryId,
293                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
294                    throws com.liferay.portal.kernel.exception.SystemException,
295                            com.liferay.portlet.documentlibrary.NoSuchFileRankException;
296    
297            /**
298            * Returns the document library file ranks before and after the current document library file rank in the ordered set where fileEntryId = &#63;.
299            *
300            * <p>
301            * 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.
302            * </p>
303            *
304            * @param fileRankId the primary key of the current document library file rank
305            * @param fileEntryId the file entry ID
306            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
307            * @return the previous, current, and next document library file rank
308            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found
309            * @throws SystemException if a system exception occurred
310            */
311            public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByFileEntryId_PrevAndNext(
312                    long fileRankId, long fileEntryId,
313                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
314                    throws com.liferay.portal.kernel.exception.SystemException,
315                            com.liferay.portlet.documentlibrary.NoSuchFileRankException;
316    
317            /**
318            * Returns all the document library file ranks where groupId = &#63; and userId = &#63;.
319            *
320            * @param groupId the group ID
321            * @param userId the user ID
322            * @return the matching document library file ranks
323            * @throws SystemException if a system exception occurred
324            */
325            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U(
326                    long groupId, long userId)
327                    throws com.liferay.portal.kernel.exception.SystemException;
328    
329            /**
330            * Returns a range of all the document library file ranks where groupId = &#63; and userId = &#63;.
331            *
332            * <p>
333            * 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.
334            * </p>
335            *
336            * @param groupId the group ID
337            * @param userId the user ID
338            * @param start the lower bound of the range of document library file ranks
339            * @param end the upper bound of the range of document library file ranks (not inclusive)
340            * @return the range of matching document library file ranks
341            * @throws SystemException if a system exception occurred
342            */
343            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U(
344                    long groupId, long userId, int start, int end)
345                    throws com.liferay.portal.kernel.exception.SystemException;
346    
347            /**
348            * Returns an ordered range of all the document library file ranks where groupId = &#63; and userId = &#63;.
349            *
350            * <p>
351            * 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.
352            * </p>
353            *
354            * @param groupId the group ID
355            * @param userId the user ID
356            * @param start the lower bound of the range of document library file ranks
357            * @param end the upper bound of the range of document library file ranks (not inclusive)
358            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
359            * @return the ordered range of matching document library file ranks
360            * @throws SystemException if a system exception occurred
361            */
362            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U(
363                    long groupId, long userId, int start, int end,
364                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
365                    throws com.liferay.portal.kernel.exception.SystemException;
366    
367            /**
368            * Returns the first document library file rank in the ordered set where groupId = &#63; and userId = &#63;.
369            *
370            * <p>
371            * 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.
372            * </p>
373            *
374            * @param groupId the group ID
375            * @param userId the user ID
376            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
377            * @return the first matching document library file rank
378            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found
379            * @throws SystemException if a system exception occurred
380            */
381            public com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_First(
382                    long groupId, long userId,
383                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
384                    throws com.liferay.portal.kernel.exception.SystemException,
385                            com.liferay.portlet.documentlibrary.NoSuchFileRankException;
386    
387            /**
388            * Returns the last document library file rank in the ordered set where groupId = &#63; and userId = &#63;.
389            *
390            * <p>
391            * 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.
392            * </p>
393            *
394            * @param groupId the group ID
395            * @param userId the user ID
396            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
397            * @return the last matching document library file rank
398            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found
399            * @throws SystemException if a system exception occurred
400            */
401            public com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_Last(
402                    long groupId, long userId,
403                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
404                    throws com.liferay.portal.kernel.exception.SystemException,
405                            com.liferay.portlet.documentlibrary.NoSuchFileRankException;
406    
407            /**
408            * 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;.
409            *
410            * <p>
411            * 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.
412            * </p>
413            *
414            * @param fileRankId the primary key of the current document library file rank
415            * @param groupId the group ID
416            * @param userId the user ID
417            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
418            * @return the previous, current, and next document library file rank
419            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found
420            * @throws SystemException if a system exception occurred
421            */
422            public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByG_U_PrevAndNext(
423                    long fileRankId, long groupId, long userId,
424                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
425                    throws com.liferay.portal.kernel.exception.SystemException,
426                            com.liferay.portlet.documentlibrary.NoSuchFileRankException;
427    
428            /**
429            * 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.
430            *
431            * @param companyId the company ID
432            * @param userId the user ID
433            * @param fileEntryId the file entry ID
434            * @return the matching document library file rank
435            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found
436            * @throws SystemException if a system exception occurred
437            */
438            public com.liferay.portlet.documentlibrary.model.DLFileRank findByC_U_F(
439                    long companyId, long userId, long fileEntryId)
440                    throws com.liferay.portal.kernel.exception.SystemException,
441                            com.liferay.portlet.documentlibrary.NoSuchFileRankException;
442    
443            /**
444            * 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.
445            *
446            * @param companyId the company ID
447            * @param userId the user ID
448            * @param fileEntryId the file entry ID
449            * @return the matching document library file rank, or <code>null</code> if a matching document library file rank could not be found
450            * @throws SystemException if a system exception occurred
451            */
452            public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F(
453                    long companyId, long userId, long fileEntryId)
454                    throws com.liferay.portal.kernel.exception.SystemException;
455    
456            /**
457            * 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.
458            *
459            * @param companyId the company ID
460            * @param userId the user ID
461            * @param fileEntryId the file entry ID
462            * @param retrieveFromCache whether to use the finder cache
463            * @return the matching document library file rank, or <code>null</code> if a matching document library file rank could not be found
464            * @throws SystemException if a system exception occurred
465            */
466            public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F(
467                    long companyId, long userId, long fileEntryId, boolean retrieveFromCache)
468                    throws com.liferay.portal.kernel.exception.SystemException;
469    
470            /**
471            * Returns all the document library file ranks.
472            *
473            * @return the document library file ranks
474            * @throws SystemException if a system exception occurred
475            */
476            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll()
477                    throws com.liferay.portal.kernel.exception.SystemException;
478    
479            /**
480            * Returns a range of all the document library file ranks.
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.
484            * </p>
485            *
486            * @param start the lower bound of the range of document library file ranks
487            * @param end the upper bound of the range of document library file ranks (not inclusive)
488            * @return the range of document library file ranks
489            * @throws SystemException if a system exception occurred
490            */
491            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll(
492                    int start, int end)
493                    throws com.liferay.portal.kernel.exception.SystemException;
494    
495            /**
496            * Returns an ordered range of all the document library file ranks.
497            *
498            * <p>
499            * 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.
500            * </p>
501            *
502            * @param start the lower bound of the range of document library file ranks
503            * @param end the upper bound of the range of document library file ranks (not inclusive)
504            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
505            * @return the ordered range of document library file ranks
506            * @throws SystemException if a system exception occurred
507            */
508            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll(
509                    int start, int end,
510                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
511                    throws com.liferay.portal.kernel.exception.SystemException;
512    
513            /**
514            * Removes all the document library file ranks where userId = &#63; from the database.
515            *
516            * @param userId the user ID
517            * @throws SystemException if a system exception occurred
518            */
519            public void removeByUserId(long userId)
520                    throws com.liferay.portal.kernel.exception.SystemException;
521    
522            /**
523            * Removes all the document library file ranks where fileEntryId = &#63; from the database.
524            *
525            * @param fileEntryId the file entry ID
526            * @throws SystemException if a system exception occurred
527            */
528            public void removeByFileEntryId(long fileEntryId)
529                    throws com.liferay.portal.kernel.exception.SystemException;
530    
531            /**
532            * Removes all the document library file ranks where groupId = &#63; and userId = &#63; from the database.
533            *
534            * @param groupId the group ID
535            * @param userId the user ID
536            * @throws SystemException if a system exception occurred
537            */
538            public void removeByG_U(long groupId, long userId)
539                    throws com.liferay.portal.kernel.exception.SystemException;
540    
541            /**
542            * Removes the document library file rank where companyId = &#63; and userId = &#63; and fileEntryId = &#63; from the database.
543            *
544            * @param companyId the company ID
545            * @param userId the user ID
546            * @param fileEntryId the file entry ID
547            * @throws SystemException if a system exception occurred
548            */
549            public void removeByC_U_F(long companyId, long userId, long fileEntryId)
550                    throws com.liferay.portal.kernel.exception.SystemException,
551                            com.liferay.portlet.documentlibrary.NoSuchFileRankException;
552    
553            /**
554            * Removes all the document library file ranks from the database.
555            *
556            * @throws SystemException if a system exception occurred
557            */
558            public void removeAll()
559                    throws com.liferay.portal.kernel.exception.SystemException;
560    
561            /**
562            * Returns the number of document library file ranks where userId = &#63;.
563            *
564            * @param userId the user ID
565            * @return the number of matching document library file ranks
566            * @throws SystemException if a system exception occurred
567            */
568            public int countByUserId(long userId)
569                    throws com.liferay.portal.kernel.exception.SystemException;
570    
571            /**
572            * Returns the number of document library file ranks where fileEntryId = &#63;.
573            *
574            * @param fileEntryId the file entry ID
575            * @return the number of matching document library file ranks
576            * @throws SystemException if a system exception occurred
577            */
578            public int countByFileEntryId(long fileEntryId)
579                    throws com.liferay.portal.kernel.exception.SystemException;
580    
581            /**
582            * Returns the number of document library file ranks where groupId = &#63; and userId = &#63;.
583            *
584            * @param groupId the group ID
585            * @param userId the user ID
586            * @return the number of matching document library file ranks
587            * @throws SystemException if a system exception occurred
588            */
589            public int countByG_U(long groupId, long userId)
590                    throws com.liferay.portal.kernel.exception.SystemException;
591    
592            /**
593            * Returns the number of document library file ranks where companyId = &#63; and userId = &#63; and fileEntryId = &#63;.
594            *
595            * @param companyId the company ID
596            * @param userId the user ID
597            * @param fileEntryId the file entry ID
598            * @return the number of matching document library file ranks
599            * @throws SystemException if a system exception occurred
600            */
601            public int countByC_U_F(long companyId, long userId, long fileEntryId)
602                    throws com.liferay.portal.kernel.exception.SystemException;
603    
604            /**
605            * Returns the number of document library file ranks.
606            *
607            * @return the number of document library file ranks
608            * @throws SystemException if a system exception occurred
609            */
610            public int countAll()
611                    throws com.liferay.portal.kernel.exception.SystemException;
612    
613            public DLFileRank remove(DLFileRank dlFileRank) throws SystemException;
614    }