001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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 d l 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 d l file rank persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
039             */
040    
041            /**
042            * Caches the d l file rank in the entity cache if it is enabled.
043            *
044            * @param dlFileRank the d l file rank to cache
045            */
046            public void cacheResult(
047                    com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank);
048    
049            /**
050            * Caches the d l file ranks in the entity cache if it is enabled.
051            *
052            * @param dlFileRanks the d l file ranks to cache
053            */
054            public void cacheResult(
055                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> dlFileRanks);
056    
057            /**
058            * Creates a new d l file rank with the primary key. Does not add the d l file rank to the database.
059            *
060            * @param fileRankId the primary key for the new d l file rank
061            * @return the new d l file rank
062            */
063            public com.liferay.portlet.documentlibrary.model.DLFileRank create(
064                    long fileRankId);
065    
066            /**
067            * Removes the d l file rank with the primary key from the database. Also notifies the appropriate model listeners.
068            *
069            * @param fileRankId the primary key of the d l file rank to remove
070            * @return the d l file rank that was removed
071            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a d l 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            * Finds the d l 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 d l file rank to find
088            * @return the d l file rank
089            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a d l 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            * Finds the d l 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 d l file rank to find
101            * @return the d l file rank, or <code>null</code> if a d l 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            * Finds all the d l file ranks where userId = &#63;.
110            *
111            * @param userId the user ID to search with
112            * @return the matching d l 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            * Finds a range of all the d l 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 to search with
126            * @param start the lower bound of the range of d l file ranks to return
127            * @param end the upper bound of the range of d l file ranks to return (not inclusive)
128            * @return the range of matching d l 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            * Finds an ordered range of all the d l 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 to search with
143            * @param start the lower bound of the range of d l file ranks to return
144            * @param end the upper bound of the range of d l file ranks to return (not inclusive)
145            * @param orderByComparator the comparator to order the results by
146            * @return the ordered range of matching d l 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            * Finds the first d l 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 to search with
162            * @param orderByComparator the comparator to order the set by
163            * @return the first matching d l file rank
164            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching d l 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            * Finds the last d l 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 to search with
181            * @param orderByComparator the comparator to order the set by
182            * @return the last matching d l file rank
183            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching d l 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            * Finds the d l file ranks before and after the current d l 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 d l file rank
200            * @param userId the user ID to search with
201            * @param orderByComparator the comparator to order the set by
202            * @return the previous, current, and next d l file rank
203            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a d l 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            * Finds all the d l file ranks where fileEntryId = &#63;.
214            *
215            * @param fileEntryId the file entry ID to search with
216            * @return the matching d l 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            * Finds a range of all the d l 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 to search with
231            * @param start the lower bound of the range of d l file ranks to return
232            * @param end the upper bound of the range of d l file ranks to return (not inclusive)
233            * @return the range of matching d l 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            * Finds an ordered range of all the d l 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 to search with
248            * @param start the lower bound of the range of d l file ranks to return
249            * @param end the upper bound of the range of d l file ranks to return (not inclusive)
250            * @param orderByComparator the comparator to order the results by
251            * @return the ordered range of matching d l 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            * Finds the first d l 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 to search with
267            * @param orderByComparator the comparator to order the set by
268            * @return the first matching d l file rank
269            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching d l 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            * Finds the last d l 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 to search with
286            * @param orderByComparator the comparator to order the set by
287            * @return the last matching d l file rank
288            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching d l 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            * Finds the d l file ranks before and after the current d l 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 d l file rank
305            * @param fileEntryId the file entry ID to search with
306            * @param orderByComparator the comparator to order the set by
307            * @return the previous, current, and next d l file rank
308            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a d l 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            * Finds all the d l file ranks where groupId = &#63; and userId = &#63;.
319            *
320            * @param groupId the group ID to search with
321            * @param userId the user ID to search with
322            * @return the matching d l 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            * Finds a range of all the d l 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 to search with
337            * @param userId the user ID to search with
338            * @param start the lower bound of the range of d l file ranks to return
339            * @param end the upper bound of the range of d l file ranks to return (not inclusive)
340            * @return the range of matching d l 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            * Finds an ordered range of all the d l 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 to search with
355            * @param userId the user ID to search with
356            * @param start the lower bound of the range of d l file ranks to return
357            * @param end the upper bound of the range of d l file ranks to return (not inclusive)
358            * @param orderByComparator the comparator to order the results by
359            * @return the ordered range of matching d l 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            * Finds the first d l 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 to search with
375            * @param userId the user ID to search with
376            * @param orderByComparator the comparator to order the set by
377            * @return the first matching d l file rank
378            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching d l 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            * Finds the last d l 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 to search with
395            * @param userId the user ID to search with
396            * @param orderByComparator the comparator to order the set by
397            * @return the last matching d l file rank
398            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching d l 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            * Finds the d l file ranks before and after the current d l 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 d l file rank
415            * @param groupId the group ID to search with
416            * @param userId the user ID to search with
417            * @param orderByComparator the comparator to order the set by
418            * @return the previous, current, and next d l file rank
419            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a d l 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            * Finds the d l 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 to search with
432            * @param userId the user ID to search with
433            * @param fileEntryId the file entry ID to search with
434            * @return the matching d l file rank
435            * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching d l 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            * Finds the d l 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 to search with
447            * @param userId the user ID to search with
448            * @param fileEntryId the file entry ID to search with
449            * @return the matching d l file rank, or <code>null</code> if a matching d l 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            * Finds the d l 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 to search with
460            * @param userId the user ID to search with
461            * @param fileEntryId the file entry ID to search with
462            * @return the matching d l file rank, or <code>null</code> if a matching d l file rank could not be found
463            * @throws SystemException if a system exception occurred
464            */
465            public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F(
466                    long companyId, long userId, long fileEntryId, boolean retrieveFromCache)
467                    throws com.liferay.portal.kernel.exception.SystemException;
468    
469            /**
470            * Finds all the d l file ranks.
471            *
472            * @return the d l file ranks
473            * @throws SystemException if a system exception occurred
474            */
475            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll()
476                    throws com.liferay.portal.kernel.exception.SystemException;
477    
478            /**
479            * Finds a range of all the d l file ranks.
480            *
481            * <p>
482            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
483            * </p>
484            *
485            * @param start the lower bound of the range of d l file ranks to return
486            * @param end the upper bound of the range of d l file ranks to return (not inclusive)
487            * @return the range of d l file ranks
488            * @throws SystemException if a system exception occurred
489            */
490            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll(
491                    int start, int end)
492                    throws com.liferay.portal.kernel.exception.SystemException;
493    
494            /**
495            * Finds an ordered range of all the d l file ranks.
496            *
497            * <p>
498            * 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.
499            * </p>
500            *
501            * @param start the lower bound of the range of d l file ranks to return
502            * @param end the upper bound of the range of d l file ranks to return (not inclusive)
503            * @param orderByComparator the comparator to order the results by
504            * @return the ordered range of d l file ranks
505            * @throws SystemException if a system exception occurred
506            */
507            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll(
508                    int start, int end,
509                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
510                    throws com.liferay.portal.kernel.exception.SystemException;
511    
512            /**
513            * Removes all the d l file ranks where userId = &#63; from the database.
514            *
515            * @param userId the user ID to search with
516            * @throws SystemException if a system exception occurred
517            */
518            public void removeByUserId(long userId)
519                    throws com.liferay.portal.kernel.exception.SystemException;
520    
521            /**
522            * Removes all the d l file ranks where fileEntryId = &#63; from the database.
523            *
524            * @param fileEntryId the file entry ID to search with
525            * @throws SystemException if a system exception occurred
526            */
527            public void removeByFileEntryId(long fileEntryId)
528                    throws com.liferay.portal.kernel.exception.SystemException;
529    
530            /**
531            * Removes all the d l file ranks where groupId = &#63; and userId = &#63; from the database.
532            *
533            * @param groupId the group ID to search with
534            * @param userId the user ID to search with
535            * @throws SystemException if a system exception occurred
536            */
537            public void removeByG_U(long groupId, long userId)
538                    throws com.liferay.portal.kernel.exception.SystemException;
539    
540            /**
541            * Removes the d l file rank where companyId = &#63; and userId = &#63; and fileEntryId = &#63; from the database.
542            *
543            * @param companyId the company ID to search with
544            * @param userId the user ID to search with
545            * @param fileEntryId the file entry ID to search with
546            * @throws SystemException if a system exception occurred
547            */
548            public void removeByC_U_F(long companyId, long userId, long fileEntryId)
549                    throws com.liferay.portal.kernel.exception.SystemException,
550                            com.liferay.portlet.documentlibrary.NoSuchFileRankException;
551    
552            /**
553            * Removes all the d l file ranks from the database.
554            *
555            * @throws SystemException if a system exception occurred
556            */
557            public void removeAll()
558                    throws com.liferay.portal.kernel.exception.SystemException;
559    
560            /**
561            * Counts all the d l file ranks where userId = &#63;.
562            *
563            * @param userId the user ID to search with
564            * @return the number of matching d l file ranks
565            * @throws SystemException if a system exception occurred
566            */
567            public int countByUserId(long userId)
568                    throws com.liferay.portal.kernel.exception.SystemException;
569    
570            /**
571            * Counts all the d l file ranks where fileEntryId = &#63;.
572            *
573            * @param fileEntryId the file entry ID to search with
574            * @return the number of matching d l file ranks
575            * @throws SystemException if a system exception occurred
576            */
577            public int countByFileEntryId(long fileEntryId)
578                    throws com.liferay.portal.kernel.exception.SystemException;
579    
580            /**
581            * Counts all the d l file ranks where groupId = &#63; and userId = &#63;.
582            *
583            * @param groupId the group ID to search with
584            * @param userId the user ID to search with
585            * @return the number of matching d l file ranks
586            * @throws SystemException if a system exception occurred
587            */
588            public int countByG_U(long groupId, long userId)
589                    throws com.liferay.portal.kernel.exception.SystemException;
590    
591            /**
592            * Counts all the d l file ranks where companyId = &#63; and userId = &#63; and fileEntryId = &#63;.
593            *
594            * @param companyId the company ID to search with
595            * @param userId the user ID to search with
596            * @param fileEntryId the file entry ID to search with
597            * @return the number of matching d l file ranks
598            * @throws SystemException if a system exception occurred
599            */
600            public int countByC_U_F(long companyId, long userId, long fileEntryId)
601                    throws com.liferay.portal.kernel.exception.SystemException;
602    
603            /**
604            * Counts all the d l file ranks.
605            *
606            * @return the number of d l file ranks
607            * @throws SystemException if a system exception occurred
608            */
609            public int countAll()
610                    throws com.liferay.portal.kernel.exception.SystemException;
611    
612            public DLFileRank remove(DLFileRank dlFileRank) throws SystemException;
613    }