1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.tasks.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.tasks.model.TasksReview;
20  
21  /**
22   * <a href="TasksReviewPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       TasksReviewPersistenceImpl
31   * @see       TasksReviewUtil
32   * @generated
33   */
34  public interface TasksReviewPersistence extends BasePersistence<TasksReview> {
35      public void cacheResult(
36          com.liferay.portlet.tasks.model.TasksReview tasksReview);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.tasks.model.TasksReview> tasksReviews);
40  
41      public com.liferay.portlet.tasks.model.TasksReview create(long reviewId);
42  
43      public com.liferay.portlet.tasks.model.TasksReview remove(long reviewId)
44          throws com.liferay.portal.SystemException,
45              com.liferay.portlet.tasks.NoSuchReviewException;
46  
47      /**
48       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
49       */
50      public com.liferay.portlet.tasks.model.TasksReview update(
51          com.liferay.portlet.tasks.model.TasksReview tasksReview)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.tasks.model.TasksReview updateImpl(
55          com.liferay.portlet.tasks.model.TasksReview tasksReview, boolean merge)
56          throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portlet.tasks.model.TasksReview findByPrimaryKey(
59          long reviewId)
60          throws com.liferay.portal.SystemException,
61              com.liferay.portlet.tasks.NoSuchReviewException;
62  
63      public com.liferay.portlet.tasks.model.TasksReview fetchByPrimaryKey(
64          long reviewId) throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
67          long userId) throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
70          long userId, int start, int end)
71          throws com.liferay.portal.SystemException;
72  
73      public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
74          long userId, int start, int end,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portlet.tasks.model.TasksReview findByUserId_First(
79          long userId,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.SystemException,
82              com.liferay.portlet.tasks.NoSuchReviewException;
83  
84      public com.liferay.portlet.tasks.model.TasksReview findByUserId_Last(
85          long userId,
86          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.tasks.NoSuchReviewException;
89  
90      public com.liferay.portlet.tasks.model.TasksReview[] findByUserId_PrevAndNext(
91          long reviewId, long userId,
92          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.tasks.NoSuchReviewException;
95  
96      public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
97          long proposalId) throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
100         long proposalId, int start, int end)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
104         long proposalId, int start, int end,
105         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
106         throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portlet.tasks.model.TasksReview findByProposalId_First(
109         long proposalId,
110         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111         throws com.liferay.portal.SystemException,
112             com.liferay.portlet.tasks.NoSuchReviewException;
113 
114     public com.liferay.portlet.tasks.model.TasksReview findByProposalId_Last(
115         long proposalId,
116         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.tasks.NoSuchReviewException;
119 
120     public com.liferay.portlet.tasks.model.TasksReview[] findByProposalId_PrevAndNext(
121         long reviewId, long proposalId,
122         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.tasks.NoSuchReviewException;
125 
126     public com.liferay.portlet.tasks.model.TasksReview findByU_P(long userId,
127         long proposalId)
128         throws com.liferay.portal.SystemException,
129             com.liferay.portlet.tasks.NoSuchReviewException;
130 
131     public com.liferay.portlet.tasks.model.TasksReview fetchByU_P(long userId,
132         long proposalId) throws com.liferay.portal.SystemException;
133 
134     public com.liferay.portlet.tasks.model.TasksReview fetchByU_P(long userId,
135         long proposalId, boolean retrieveFromCache)
136         throws com.liferay.portal.SystemException;
137 
138     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
139         long proposalId, int stage) throws com.liferay.portal.SystemException;
140 
141     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
142         long proposalId, int stage, int start, int end)
143         throws com.liferay.portal.SystemException;
144 
145     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
146         long proposalId, int stage, int start, int end,
147         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148         throws com.liferay.portal.SystemException;
149 
150     public com.liferay.portlet.tasks.model.TasksReview findByP_S_First(
151         long proposalId, int stage,
152         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153         throws com.liferay.portal.SystemException,
154             com.liferay.portlet.tasks.NoSuchReviewException;
155 
156     public com.liferay.portlet.tasks.model.TasksReview findByP_S_Last(
157         long proposalId, int stage,
158         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159         throws com.liferay.portal.SystemException,
160             com.liferay.portlet.tasks.NoSuchReviewException;
161 
162     public com.liferay.portlet.tasks.model.TasksReview[] findByP_S_PrevAndNext(
163         long reviewId, long proposalId, int stage,
164         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165         throws com.liferay.portal.SystemException,
166             com.liferay.portlet.tasks.NoSuchReviewException;
167 
168     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C(
169         long proposalId, int stage, boolean completed)
170         throws com.liferay.portal.SystemException;
171 
172     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C(
173         long proposalId, int stage, boolean completed, int start, int end)
174         throws com.liferay.portal.SystemException;
175 
176     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C(
177         long proposalId, int stage, boolean completed, int start, int end,
178         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179         throws com.liferay.portal.SystemException;
180 
181     public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_First(
182         long proposalId, int stage, boolean completed,
183         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
184         throws com.liferay.portal.SystemException,
185             com.liferay.portlet.tasks.NoSuchReviewException;
186 
187     public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_Last(
188         long proposalId, int stage, boolean completed,
189         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190         throws com.liferay.portal.SystemException,
191             com.liferay.portlet.tasks.NoSuchReviewException;
192 
193     public com.liferay.portlet.tasks.model.TasksReview[] findByP_S_C_PrevAndNext(
194         long reviewId, long proposalId, int stage, boolean completed,
195         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
196         throws com.liferay.portal.SystemException,
197             com.liferay.portlet.tasks.NoSuchReviewException;
198 
199     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R(
200         long proposalId, int stage, boolean completed, boolean rejected)
201         throws com.liferay.portal.SystemException;
202 
203     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R(
204         long proposalId, int stage, boolean completed, boolean rejected,
205         int start, int end) throws com.liferay.portal.SystemException;
206 
207     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R(
208         long proposalId, int stage, boolean completed, boolean rejected,
209         int start, int end,
210         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
211         throws com.liferay.portal.SystemException;
212 
213     public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_R_First(
214         long proposalId, int stage, boolean completed, boolean rejected,
215         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
216         throws com.liferay.portal.SystemException,
217             com.liferay.portlet.tasks.NoSuchReviewException;
218 
219     public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_R_Last(
220         long proposalId, int stage, boolean completed, boolean rejected,
221         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222         throws com.liferay.portal.SystemException,
223             com.liferay.portlet.tasks.NoSuchReviewException;
224 
225     public com.liferay.portlet.tasks.model.TasksReview[] findByP_S_C_R_PrevAndNext(
226         long reviewId, long proposalId, int stage, boolean completed,
227         boolean rejected,
228         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229         throws com.liferay.portal.SystemException,
230             com.liferay.portlet.tasks.NoSuchReviewException;
231 
232     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll()
233         throws com.liferay.portal.SystemException;
234 
235     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll(
236         int start, int end) throws com.liferay.portal.SystemException;
237 
238     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll(
239         int start, int end,
240         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
241         throws com.liferay.portal.SystemException;
242 
243     public void removeByUserId(long userId)
244         throws com.liferay.portal.SystemException;
245 
246     public void removeByProposalId(long proposalId)
247         throws com.liferay.portal.SystemException;
248 
249     public void removeByU_P(long userId, long proposalId)
250         throws com.liferay.portal.SystemException,
251             com.liferay.portlet.tasks.NoSuchReviewException;
252 
253     public void removeByP_S(long proposalId, int stage)
254         throws com.liferay.portal.SystemException;
255 
256     public void removeByP_S_C(long proposalId, int stage, boolean completed)
257         throws com.liferay.portal.SystemException;
258 
259     public void removeByP_S_C_R(long proposalId, int stage, boolean completed,
260         boolean rejected) throws com.liferay.portal.SystemException;
261 
262     public void removeAll() throws com.liferay.portal.SystemException;
263 
264     public int countByUserId(long userId)
265         throws com.liferay.portal.SystemException;
266 
267     public int countByProposalId(long proposalId)
268         throws com.liferay.portal.SystemException;
269 
270     public int countByU_P(long userId, long proposalId)
271         throws com.liferay.portal.SystemException;
272 
273     public int countByP_S(long proposalId, int stage)
274         throws com.liferay.portal.SystemException;
275 
276     public int countByP_S_C(long proposalId, int stage, boolean completed)
277         throws com.liferay.portal.SystemException;
278 
279     public int countByP_S_C_R(long proposalId, int stage, boolean completed,
280         boolean rejected) throws com.liferay.portal.SystemException;
281 
282     public int countAll() throws com.liferay.portal.SystemException;
283 }