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