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.tasks.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.tasks.model.TasksReview;
020    
021    /**
022     * The persistence interface for the tasks review 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 TasksReviewPersistenceImpl
030     * @see TasksReviewUtil
031     * @generated
032     */
033    public interface TasksReviewPersistence extends BasePersistence<TasksReview> {
034            /**
035            * Caches the tasks review in the entity cache if it is enabled.
036            *
037            * @param tasksReview the tasks review to cache
038            */
039            public void cacheResult(
040                    com.liferay.portlet.tasks.model.TasksReview tasksReview);
041    
042            /**
043            * Caches the tasks reviews in the entity cache if it is enabled.
044            *
045            * @param tasksReviews the tasks reviews to cache
046            */
047            public void cacheResult(
048                    java.util.List<com.liferay.portlet.tasks.model.TasksReview> tasksReviews);
049    
050            /**
051            * Creates a new tasks review with the primary key.
052            *
053            * @param reviewId the primary key for the new tasks review
054            * @return the new tasks review
055            */
056            public com.liferay.portlet.tasks.model.TasksReview create(long reviewId);
057    
058            /**
059            * Removes the tasks review with the primary key from the database. Also notifies the appropriate model listeners.
060            *
061            * @param reviewId the primary key of the tasks review to remove
062            * @return the tasks review that was removed
063            * @throws com.liferay.portlet.tasks.NoSuchReviewException if a tasks review with the primary key could not be found
064            * @throws SystemException if a system exception occurred
065            */
066            public com.liferay.portlet.tasks.model.TasksReview remove(long reviewId)
067                    throws com.liferay.portal.kernel.exception.SystemException,
068                            com.liferay.portlet.tasks.NoSuchReviewException;
069    
070            public com.liferay.portlet.tasks.model.TasksReview updateImpl(
071                    com.liferay.portlet.tasks.model.TasksReview tasksReview, boolean merge)
072                    throws com.liferay.portal.kernel.exception.SystemException;
073    
074            /**
075            * Finds the tasks review with the primary key or throws a {@link com.liferay.portlet.tasks.NoSuchReviewException} if it could not be found.
076            *
077            * @param reviewId the primary key of the tasks review to find
078            * @return the tasks review
079            * @throws com.liferay.portlet.tasks.NoSuchReviewException if a tasks review with the primary key could not be found
080            * @throws SystemException if a system exception occurred
081            */
082            public com.liferay.portlet.tasks.model.TasksReview findByPrimaryKey(
083                    long reviewId)
084                    throws com.liferay.portal.kernel.exception.SystemException,
085                            com.liferay.portlet.tasks.NoSuchReviewException;
086    
087            /**
088            * Finds the tasks review with the primary key or returns <code>null</code> if it could not be found.
089            *
090            * @param reviewId the primary key of the tasks review to find
091            * @return the tasks review, or <code>null</code> if a tasks review with the primary key could not be found
092            * @throws SystemException if a system exception occurred
093            */
094            public com.liferay.portlet.tasks.model.TasksReview fetchByPrimaryKey(
095                    long reviewId)
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            /**
099            * Finds all the tasks reviews where userId = &#63;.
100            *
101            * @param userId the user id to search with
102            * @return the matching tasks reviews
103            * @throws SystemException if a system exception occurred
104            */
105            public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
106                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
107    
108            /**
109            * Finds a range of all the tasks reviews where userId = &#63;.
110            *
111            * <p>
112            * 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.
113            * </p>
114            *
115            * @param userId the user id to search with
116            * @param start the lower bound of the range of tasks reviews to return
117            * @param end the upper bound of the range of tasks reviews to return (not inclusive)
118            * @return the range of matching tasks reviews
119            * @throws SystemException if a system exception occurred
120            */
121            public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
122                    long userId, int start, int end)
123                    throws com.liferay.portal.kernel.exception.SystemException;
124    
125            /**
126            * Finds an ordered range of all the tasks reviews where userId = &#63;.
127            *
128            * <p>
129            * 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.
130            * </p>
131            *
132            * @param userId the user id to search with
133            * @param start the lower bound of the range of tasks reviews to return
134            * @param end the upper bound of the range of tasks reviews to return (not inclusive)
135            * @param orderByComparator the comparator to order the results by
136            * @return the ordered range of matching tasks reviews
137            * @throws SystemException if a system exception occurred
138            */
139            public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
140                    long userId, int start, int end,
141                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142                    throws com.liferay.portal.kernel.exception.SystemException;
143    
144            /**
145            * Finds the first tasks review in the ordered set where userId = &#63;.
146            *
147            * <p>
148            * 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.
149            * </p>
150            *
151            * @param userId the user id to search with
152            * @param orderByComparator the comparator to order the set by
153            * @return the first matching tasks review
154            * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found
155            * @throws SystemException if a system exception occurred
156            */
157            public com.liferay.portlet.tasks.model.TasksReview findByUserId_First(
158                    long userId,
159                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160                    throws com.liferay.portal.kernel.exception.SystemException,
161                            com.liferay.portlet.tasks.NoSuchReviewException;
162    
163            /**
164            * Finds the last tasks review in the ordered set where userId = &#63;.
165            *
166            * <p>
167            * 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.
168            * </p>
169            *
170            * @param userId the user id to search with
171            * @param orderByComparator the comparator to order the set by
172            * @return the last matching tasks review
173            * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.tasks.model.TasksReview findByUserId_Last(
177                    long userId,
178                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179                    throws com.liferay.portal.kernel.exception.SystemException,
180                            com.liferay.portlet.tasks.NoSuchReviewException;
181    
182            /**
183            * Finds the tasks reviews before and after the current tasks review in the ordered set where userId = &#63;.
184            *
185            * <p>
186            * 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.
187            * </p>
188            *
189            * @param reviewId the primary key of the current tasks review
190            * @param userId the user id to search with
191            * @param orderByComparator the comparator to order the set by
192            * @return the previous, current, and next tasks review
193            * @throws com.liferay.portlet.tasks.NoSuchReviewException if a tasks review with the primary key could not be found
194            * @throws SystemException if a system exception occurred
195            */
196            public com.liferay.portlet.tasks.model.TasksReview[] findByUserId_PrevAndNext(
197                    long reviewId, long userId,
198                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
199                    throws com.liferay.portal.kernel.exception.SystemException,
200                            com.liferay.portlet.tasks.NoSuchReviewException;
201    
202            /**
203            * Finds all the tasks reviews where proposalId = &#63;.
204            *
205            * @param proposalId the proposal id to search with
206            * @return the matching tasks reviews
207            * @throws SystemException if a system exception occurred
208            */
209            public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
210                    long proposalId)
211                    throws com.liferay.portal.kernel.exception.SystemException;
212    
213            /**
214            * Finds a range of all the tasks reviews where proposalId = &#63;.
215            *
216            * <p>
217            * 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.
218            * </p>
219            *
220            * @param proposalId the proposal id to search with
221            * @param start the lower bound of the range of tasks reviews to return
222            * @param end the upper bound of the range of tasks reviews to return (not inclusive)
223            * @return the range of matching tasks reviews
224            * @throws SystemException if a system exception occurred
225            */
226            public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
227                    long proposalId, int start, int end)
228                    throws com.liferay.portal.kernel.exception.SystemException;
229    
230            /**
231            * Finds an ordered range of all the tasks reviews where proposalId = &#63;.
232            *
233            * <p>
234            * 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.
235            * </p>
236            *
237            * @param proposalId the proposal id to search with
238            * @param start the lower bound of the range of tasks reviews to return
239            * @param end the upper bound of the range of tasks reviews to return (not inclusive)
240            * @param orderByComparator the comparator to order the results by
241            * @return the ordered range of matching tasks reviews
242            * @throws SystemException if a system exception occurred
243            */
244            public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
245                    long proposalId, int start, int end,
246                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
247                    throws com.liferay.portal.kernel.exception.SystemException;
248    
249            /**
250            * Finds the first tasks review in the ordered set where proposalId = &#63;.
251            *
252            * <p>
253            * 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.
254            * </p>
255            *
256            * @param proposalId the proposal id to search with
257            * @param orderByComparator the comparator to order the set by
258            * @return the first matching tasks review
259            * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found
260            * @throws SystemException if a system exception occurred
261            */
262            public com.liferay.portlet.tasks.model.TasksReview findByProposalId_First(
263                    long proposalId,
264                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
265                    throws com.liferay.portal.kernel.exception.SystemException,
266                            com.liferay.portlet.tasks.NoSuchReviewException;
267    
268            /**
269            * Finds the last tasks review in the ordered set where proposalId = &#63;.
270            *
271            * <p>
272            * 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.
273            * </p>
274            *
275            * @param proposalId the proposal id to search with
276            * @param orderByComparator the comparator to order the set by
277            * @return the last matching tasks review
278            * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found
279            * @throws SystemException if a system exception occurred
280            */
281            public com.liferay.portlet.tasks.model.TasksReview findByProposalId_Last(
282                    long proposalId,
283                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284                    throws com.liferay.portal.kernel.exception.SystemException,
285                            com.liferay.portlet.tasks.NoSuchReviewException;
286    
287            /**
288            * Finds the tasks reviews before and after the current tasks review in the ordered set where proposalId = &#63;.
289            *
290            * <p>
291            * 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.
292            * </p>
293            *
294            * @param reviewId the primary key of the current tasks review
295            * @param proposalId the proposal id to search with
296            * @param orderByComparator the comparator to order the set by
297            * @return the previous, current, and next tasks review
298            * @throws com.liferay.portlet.tasks.NoSuchReviewException if a tasks review with the primary key could not be found
299            * @throws SystemException if a system exception occurred
300            */
301            public com.liferay.portlet.tasks.model.TasksReview[] findByProposalId_PrevAndNext(
302                    long reviewId, long proposalId,
303                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
304                    throws com.liferay.portal.kernel.exception.SystemException,
305                            com.liferay.portlet.tasks.NoSuchReviewException;
306    
307            /**
308            * Finds the tasks review where userId = &#63; and proposalId = &#63; or throws a {@link com.liferay.portlet.tasks.NoSuchReviewException} if it could not be found.
309            *
310            * @param userId the user id to search with
311            * @param proposalId the proposal id to search with
312            * @return the matching tasks review
313            * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found
314            * @throws SystemException if a system exception occurred
315            */
316            public com.liferay.portlet.tasks.model.TasksReview findByU_P(long userId,
317                    long proposalId)
318                    throws com.liferay.portal.kernel.exception.SystemException,
319                            com.liferay.portlet.tasks.NoSuchReviewException;
320    
321            /**
322            * Finds the tasks review where userId = &#63; and proposalId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
323            *
324            * @param userId the user id to search with
325            * @param proposalId the proposal id to search with
326            * @return the matching tasks review, or <code>null</code> if a matching tasks review could not be found
327            * @throws SystemException if a system exception occurred
328            */
329            public com.liferay.portlet.tasks.model.TasksReview fetchByU_P(long userId,
330                    long proposalId)
331                    throws com.liferay.portal.kernel.exception.SystemException;
332    
333            /**
334            * Finds the tasks review where userId = &#63; and proposalId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
335            *
336            * @param userId the user id to search with
337            * @param proposalId the proposal id to search with
338            * @return the matching tasks review, or <code>null</code> if a matching tasks review could not be found
339            * @throws SystemException if a system exception occurred
340            */
341            public com.liferay.portlet.tasks.model.TasksReview fetchByU_P(long userId,
342                    long proposalId, boolean retrieveFromCache)
343                    throws com.liferay.portal.kernel.exception.SystemException;
344    
345            /**
346            * Finds all the tasks reviews where proposalId = &#63; and stage = &#63;.
347            *
348            * @param proposalId the proposal id to search with
349            * @param stage the stage to search with
350            * @return the matching tasks reviews
351            * @throws SystemException if a system exception occurred
352            */
353            public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
354                    long proposalId, int stage)
355                    throws com.liferay.portal.kernel.exception.SystemException;
356    
357            /**
358            * Finds a range of all the tasks reviews where proposalId = &#63; and stage = &#63;.
359            *
360            * <p>
361            * 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.
362            * </p>
363            *
364            * @param proposalId the proposal id to search with
365            * @param stage the stage to search with
366            * @param start the lower bound of the range of tasks reviews to return
367            * @param end the upper bound of the range of tasks reviews to return (not inclusive)
368            * @return the range of matching tasks reviews
369            * @throws SystemException if a system exception occurred
370            */
371            public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
372                    long proposalId, int stage, int start, int end)
373                    throws com.liferay.portal.kernel.exception.SystemException;
374    
375            /**
376            * Finds an ordered range of all the tasks reviews where proposalId = &#63; and stage = &#63;.
377            *
378            * <p>
379            * 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.
380            * </p>
381            *
382            * @param proposalId the proposal id to search with
383            * @param stage the stage to search with
384            * @param start the lower bound of the range of tasks reviews to return
385            * @param end the upper bound of the range of tasks reviews to return (not inclusive)
386            * @param orderByComparator the comparator to order the results by
387            * @return the ordered range of matching tasks reviews
388            * @throws SystemException if a system exception occurred
389            */
390            public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
391                    long proposalId, int stage, int start, int end,
392                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
393                    throws com.liferay.portal.kernel.exception.SystemException;
394    
395            /**
396            * Finds the first tasks review in the ordered set where proposalId = &#63; and stage = &#63;.
397            *
398            * <p>
399            * 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.
400            * </p>
401            *
402            * @param proposalId the proposal id to search with
403            * @param stage the stage to search with
404            * @param orderByComparator the comparator to order the set by
405            * @return the first matching tasks review
406            * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found
407            * @throws SystemException if a system exception occurred
408            */
409            public com.liferay.portlet.tasks.model.TasksReview findByP_S_First(
410                    long proposalId, int stage,
411                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
412                    throws com.liferay.portal.kernel.exception.SystemException,
413                            com.liferay.portlet.tasks.NoSuchReviewException;
414    
415            /**
416            * Finds the last tasks review in the ordered set where proposalId = &#63; and stage = &#63;.
417            *
418            * <p>
419            * 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.
420            * </p>
421            *
422            * @param proposalId the proposal id to search with
423            * @param stage the stage to search with
424            * @param orderByComparator the comparator to order the set by
425            * @return the last matching tasks review
426            * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found
427            * @throws SystemException if a system exception occurred
428            */
429            public com.liferay.portlet.tasks.model.TasksReview findByP_S_Last(
430                    long proposalId, int stage,
431                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
432                    throws com.liferay.portal.kernel.exception.SystemException,
433                            com.liferay.portlet.tasks.NoSuchReviewException;
434    
435            /**
436            * Finds the tasks reviews before and after the current tasks review in the ordered set where proposalId = &#63; and stage = &#63;.
437            *
438            * <p>
439            * 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.
440            * </p>
441            *
442            * @param reviewId the primary key of the current tasks review
443            * @param proposalId the proposal id to search with
444            * @param stage the stage to search with
445            * @param orderByComparator the comparator to order the set by
446            * @return the previous, current, and next tasks review
447            * @throws com.liferay.portlet.tasks.NoSuchReviewException if a tasks review with the primary key could not be found
448            * @throws SystemException if a system exception occurred
449            */
450            public com.liferay.portlet.tasks.model.TasksReview[] findByP_S_PrevAndNext(
451                    long reviewId, long proposalId, int stage,
452                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
453                    throws com.liferay.portal.kernel.exception.SystemException,
454                            com.liferay.portlet.tasks.NoSuchReviewException;
455    
456            /**
457            * Finds all the tasks reviews where proposalId = &#63; and stage = &#63; and completed = &#63;.
458            *
459            * @param proposalId the proposal id to search with
460            * @param stage the stage to search with
461            * @param completed the completed to search with
462            * @return the matching tasks reviews
463            * @throws SystemException if a system exception occurred
464            */
465            public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C(
466                    long proposalId, int stage, boolean completed)
467                    throws com.liferay.portal.kernel.exception.SystemException;
468    
469            /**
470            * Finds a range of all the tasks reviews where proposalId = &#63; and stage = &#63; and completed = &#63;.
471            *
472            * <p>
473            * 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.
474            * </p>
475            *
476            * @param proposalId the proposal id to search with
477            * @param stage the stage to search with
478            * @param completed the completed to search with
479            * @param start the lower bound of the range of tasks reviews to return
480            * @param end the upper bound of the range of tasks reviews to return (not inclusive)
481            * @return the range of matching tasks reviews
482            * @throws SystemException if a system exception occurred
483            */
484            public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C(
485                    long proposalId, int stage, boolean completed, int start, int end)
486                    throws com.liferay.portal.kernel.exception.SystemException;
487    
488            /**
489            * Finds an ordered range of all the tasks reviews where proposalId = &#63; and stage = &#63; and completed = &#63;.
490            *
491            * <p>
492            * 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.
493            * </p>
494            *
495            * @param proposalId the proposal id to search with
496            * @param stage the stage to search with
497            * @param completed the completed to search with
498            * @param start the lower bound of the range of tasks reviews to return
499            * @param end the upper bound of the range of tasks reviews to return (not inclusive)
500            * @param orderByComparator the comparator to order the results by
501            * @return the ordered range of matching tasks reviews
502            * @throws SystemException if a system exception occurred
503            */
504            public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C(
505                    long proposalId, int stage, boolean completed, int start, int end,
506                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
507                    throws com.liferay.portal.kernel.exception.SystemException;
508    
509            /**
510            * Finds the first tasks review in the ordered set where proposalId = &#63; and stage = &#63; and completed = &#63;.
511            *
512            * <p>
513            * 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.
514            * </p>
515            *
516            * @param proposalId the proposal id to search with
517            * @param stage the stage to search with
518            * @param completed the completed to search with
519            * @param orderByComparator the comparator to order the set by
520            * @return the first matching tasks review
521            * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found
522            * @throws SystemException if a system exception occurred
523            */
524            public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_First(
525                    long proposalId, int stage, boolean completed,
526                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
527                    throws com.liferay.portal.kernel.exception.SystemException,
528                            com.liferay.portlet.tasks.NoSuchReviewException;
529    
530            /**
531            * Finds the last tasks review in the ordered set where proposalId = &#63; and stage = &#63; and completed = &#63;.
532            *
533            * <p>
534            * 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.
535            * </p>
536            *
537            * @param proposalId the proposal id to search with
538            * @param stage the stage to search with
539            * @param completed the completed to search with
540            * @param orderByComparator the comparator to order the set by
541            * @return the last matching tasks review
542            * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found
543            * @throws SystemException if a system exception occurred
544            */
545            public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_Last(
546                    long proposalId, int stage, boolean completed,
547                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
548                    throws com.liferay.portal.kernel.exception.SystemException,
549                            com.liferay.portlet.tasks.NoSuchReviewException;
550    
551            /**
552            * Finds the tasks reviews before and after the current tasks review in the ordered set where proposalId = &#63; and stage = &#63; and completed = &#63;.
553            *
554            * <p>
555            * 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.
556            * </p>
557            *
558            * @param reviewId the primary key of the current tasks review
559            * @param proposalId the proposal id to search with
560            * @param stage the stage to search with
561            * @param completed the completed to search with
562            * @param orderByComparator the comparator to order the set by
563            * @return the previous, current, and next tasks review
564            * @throws com.liferay.portlet.tasks.NoSuchReviewException if a tasks review with the primary key could not be found
565            * @throws SystemException if a system exception occurred
566            */
567            public com.liferay.portlet.tasks.model.TasksReview[] findByP_S_C_PrevAndNext(
568                    long reviewId, long proposalId, int stage, boolean completed,
569                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
570                    throws com.liferay.portal.kernel.exception.SystemException,
571                            com.liferay.portlet.tasks.NoSuchReviewException;
572    
573            /**
574            * Finds all the tasks reviews where proposalId = &#63; and stage = &#63; and completed = &#63; and rejected = &#63;.
575            *
576            * @param proposalId the proposal id to search with
577            * @param stage the stage to search with
578            * @param completed the completed to search with
579            * @param rejected the rejected to search with
580            * @return the matching tasks reviews
581            * @throws SystemException if a system exception occurred
582            */
583            public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R(
584                    long proposalId, int stage, boolean completed, boolean rejected)
585                    throws com.liferay.portal.kernel.exception.SystemException;
586    
587            /**
588            * Finds a range of all the tasks reviews where proposalId = &#63; and stage = &#63; and completed = &#63; and rejected = &#63;.
589            *
590            * <p>
591            * 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.
592            * </p>
593            *
594            * @param proposalId the proposal id to search with
595            * @param stage the stage to search with
596            * @param completed the completed to search with
597            * @param rejected the rejected to search with
598            * @param start the lower bound of the range of tasks reviews to return
599            * @param end the upper bound of the range of tasks reviews to return (not inclusive)
600            * @return the range of matching tasks reviews
601            * @throws SystemException if a system exception occurred
602            */
603            public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R(
604                    long proposalId, int stage, boolean completed, boolean rejected,
605                    int start, int end)
606                    throws com.liferay.portal.kernel.exception.SystemException;
607    
608            /**
609            * Finds an ordered range of all the tasks reviews where proposalId = &#63; and stage = &#63; and completed = &#63; and rejected = &#63;.
610            *
611            * <p>
612            * 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.
613            * </p>
614            *
615            * @param proposalId the proposal id to search with
616            * @param stage the stage to search with
617            * @param completed the completed to search with
618            * @param rejected the rejected to search with
619            * @param start the lower bound of the range of tasks reviews to return
620            * @param end the upper bound of the range of tasks reviews to return (not inclusive)
621            * @param orderByComparator the comparator to order the results by
622            * @return the ordered range of matching tasks reviews
623            * @throws SystemException if a system exception occurred
624            */
625            public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R(
626                    long proposalId, int stage, boolean completed, boolean rejected,
627                    int start, int end,
628                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
629                    throws com.liferay.portal.kernel.exception.SystemException;
630    
631            /**
632            * Finds the first tasks review in the ordered set where proposalId = &#63; and stage = &#63; and completed = &#63; and rejected = &#63;.
633            *
634            * <p>
635            * 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.
636            * </p>
637            *
638            * @param proposalId the proposal id to search with
639            * @param stage the stage to search with
640            * @param completed the completed to search with
641            * @param rejected the rejected to search with
642            * @param orderByComparator the comparator to order the set by
643            * @return the first matching tasks review
644            * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found
645            * @throws SystemException if a system exception occurred
646            */
647            public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_R_First(
648                    long proposalId, int stage, boolean completed, boolean rejected,
649                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
650                    throws com.liferay.portal.kernel.exception.SystemException,
651                            com.liferay.portlet.tasks.NoSuchReviewException;
652    
653            /**
654            * Finds the last tasks review in the ordered set where proposalId = &#63; and stage = &#63; and completed = &#63; and rejected = &#63;.
655            *
656            * <p>
657            * 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.
658            * </p>
659            *
660            * @param proposalId the proposal id to search with
661            * @param stage the stage to search with
662            * @param completed the completed to search with
663            * @param rejected the rejected to search with
664            * @param orderByComparator the comparator to order the set by
665            * @return the last matching tasks review
666            * @throws com.liferay.portlet.tasks.NoSuchReviewException if a matching tasks review could not be found
667            * @throws SystemException if a system exception occurred
668            */
669            public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_R_Last(
670                    long proposalId, int stage, boolean completed, boolean rejected,
671                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
672                    throws com.liferay.portal.kernel.exception.SystemException,
673                            com.liferay.portlet.tasks.NoSuchReviewException;
674    
675            /**
676            * Finds the tasks reviews before and after the current tasks review in the ordered set where proposalId = &#63; and stage = &#63; and completed = &#63; and rejected = &#63;.
677            *
678            * <p>
679            * 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.
680            * </p>
681            *
682            * @param reviewId the primary key of the current tasks review
683            * @param proposalId the proposal id to search with
684            * @param stage the stage to search with
685            * @param completed the completed to search with
686            * @param rejected the rejected to search with
687            * @param orderByComparator the comparator to order the set by
688            * @return the previous, current, and next tasks review
689            * @throws com.liferay.portlet.tasks.NoSuchReviewException if a tasks review with the primary key could not be found
690            * @throws SystemException if a system exception occurred
691            */
692            public com.liferay.portlet.tasks.model.TasksReview[] findByP_S_C_R_PrevAndNext(
693                    long reviewId, long proposalId, int stage, boolean completed,
694                    boolean rejected,
695                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
696                    throws com.liferay.portal.kernel.exception.SystemException,
697                            com.liferay.portlet.tasks.NoSuchReviewException;
698    
699            /**
700            * Finds all the tasks reviews.
701            *
702            * @return the tasks reviews
703            * @throws SystemException if a system exception occurred
704            */
705            public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll()
706                    throws com.liferay.portal.kernel.exception.SystemException;
707    
708            /**
709            * Finds a range of all the tasks reviews.
710            *
711            * <p>
712            * 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.
713            * </p>
714            *
715            * @param start the lower bound of the range of tasks reviews to return
716            * @param end the upper bound of the range of tasks reviews to return (not inclusive)
717            * @return the range of tasks reviews
718            * @throws SystemException if a system exception occurred
719            */
720            public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll(
721                    int start, int end)
722                    throws com.liferay.portal.kernel.exception.SystemException;
723    
724            /**
725            * Finds an ordered range of all the tasks reviews.
726            *
727            * <p>
728            * 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.
729            * </p>
730            *
731            * @param start the lower bound of the range of tasks reviews to return
732            * @param end the upper bound of the range of tasks reviews to return (not inclusive)
733            * @param orderByComparator the comparator to order the results by
734            * @return the ordered range of tasks reviews
735            * @throws SystemException if a system exception occurred
736            */
737            public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll(
738                    int start, int end,
739                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
740                    throws com.liferay.portal.kernel.exception.SystemException;
741    
742            /**
743            * Removes all the tasks reviews where userId = &#63; from the database.
744            *
745            * @param userId the user id to search with
746            * @throws SystemException if a system exception occurred
747            */
748            public void removeByUserId(long userId)
749                    throws com.liferay.portal.kernel.exception.SystemException;
750    
751            /**
752            * Removes all the tasks reviews where proposalId = &#63; from the database.
753            *
754            * @param proposalId the proposal id to search with
755            * @throws SystemException if a system exception occurred
756            */
757            public void removeByProposalId(long proposalId)
758                    throws com.liferay.portal.kernel.exception.SystemException;
759    
760            /**
761            * Removes the tasks review where userId = &#63; and proposalId = &#63; from the database.
762            *
763            * @param userId the user id to search with
764            * @param proposalId the proposal id to search with
765            * @throws SystemException if a system exception occurred
766            */
767            public void removeByU_P(long userId, long proposalId)
768                    throws com.liferay.portal.kernel.exception.SystemException,
769                            com.liferay.portlet.tasks.NoSuchReviewException;
770    
771            /**
772            * Removes all the tasks reviews where proposalId = &#63; and stage = &#63; from the database.
773            *
774            * @param proposalId the proposal id to search with
775            * @param stage the stage to search with
776            * @throws SystemException if a system exception occurred
777            */
778            public void removeByP_S(long proposalId, int stage)
779                    throws com.liferay.portal.kernel.exception.SystemException;
780    
781            /**
782            * Removes all the tasks reviews where proposalId = &#63; and stage = &#63; and completed = &#63; from the database.
783            *
784            * @param proposalId the proposal id to search with
785            * @param stage the stage to search with
786            * @param completed the completed to search with
787            * @throws SystemException if a system exception occurred
788            */
789            public void removeByP_S_C(long proposalId, int stage, boolean completed)
790                    throws com.liferay.portal.kernel.exception.SystemException;
791    
792            /**
793            * Removes all the tasks reviews where proposalId = &#63; and stage = &#63; and completed = &#63; and rejected = &#63; from the database.
794            *
795            * @param proposalId the proposal id to search with
796            * @param stage the stage to search with
797            * @param completed the completed to search with
798            * @param rejected the rejected to search with
799            * @throws SystemException if a system exception occurred
800            */
801            public void removeByP_S_C_R(long proposalId, int stage, boolean completed,
802                    boolean rejected)
803                    throws com.liferay.portal.kernel.exception.SystemException;
804    
805            /**
806            * Removes all the tasks reviews from the database.
807            *
808            * @throws SystemException if a system exception occurred
809            */
810            public void removeAll()
811                    throws com.liferay.portal.kernel.exception.SystemException;
812    
813            /**
814            * Counts all the tasks reviews where userId = &#63;.
815            *
816            * @param userId the user id to search with
817            * @return the number of matching tasks reviews
818            * @throws SystemException if a system exception occurred
819            */
820            public int countByUserId(long userId)
821                    throws com.liferay.portal.kernel.exception.SystemException;
822    
823            /**
824            * Counts all the tasks reviews where proposalId = &#63;.
825            *
826            * @param proposalId the proposal id to search with
827            * @return the number of matching tasks reviews
828            * @throws SystemException if a system exception occurred
829            */
830            public int countByProposalId(long proposalId)
831                    throws com.liferay.portal.kernel.exception.SystemException;
832    
833            /**
834            * Counts all the tasks reviews where userId = &#63; and proposalId = &#63;.
835            *
836            * @param userId the user id to search with
837            * @param proposalId the proposal id to search with
838            * @return the number of matching tasks reviews
839            * @throws SystemException if a system exception occurred
840            */
841            public int countByU_P(long userId, long proposalId)
842                    throws com.liferay.portal.kernel.exception.SystemException;
843    
844            /**
845            * Counts all the tasks reviews where proposalId = &#63; and stage = &#63;.
846            *
847            * @param proposalId the proposal id to search with
848            * @param stage the stage to search with
849            * @return the number of matching tasks reviews
850            * @throws SystemException if a system exception occurred
851            */
852            public int countByP_S(long proposalId, int stage)
853                    throws com.liferay.portal.kernel.exception.SystemException;
854    
855            /**
856            * Counts all the tasks reviews where proposalId = &#63; and stage = &#63; and completed = &#63;.
857            *
858            * @param proposalId the proposal id to search with
859            * @param stage the stage to search with
860            * @param completed the completed to search with
861            * @return the number of matching tasks reviews
862            * @throws SystemException if a system exception occurred
863            */
864            public int countByP_S_C(long proposalId, int stage, boolean completed)
865                    throws com.liferay.portal.kernel.exception.SystemException;
866    
867            /**
868            * Counts all the tasks reviews where proposalId = &#63; and stage = &#63; and completed = &#63; and rejected = &#63;.
869            *
870            * @param proposalId the proposal id to search with
871            * @param stage the stage to search with
872            * @param completed the completed to search with
873            * @param rejected the rejected to search with
874            * @return the number of matching tasks reviews
875            * @throws SystemException if a system exception occurred
876            */
877            public int countByP_S_C_R(long proposalId, int stage, boolean completed,
878                    boolean rejected)
879                    throws com.liferay.portal.kernel.exception.SystemException;
880    
881            /**
882            * Counts all the tasks reviews.
883            *
884            * @return the number of tasks reviews
885            * @throws SystemException if a system exception occurred
886            */
887            public int countAll()
888                    throws com.liferay.portal.kernel.exception.SystemException;
889    }