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