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