1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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.kernel.exception.SystemException,
45              com.liferay.portlet.tasks.NoSuchReviewException;
46  
47      public com.liferay.portlet.tasks.model.TasksReview updateImpl(
48          com.liferay.portlet.tasks.model.TasksReview tasksReview, boolean merge)
49          throws com.liferay.portal.kernel.exception.SystemException;
50  
51      public com.liferay.portlet.tasks.model.TasksReview findByPrimaryKey(
52          long reviewId)
53          throws com.liferay.portal.kernel.exception.SystemException,
54              com.liferay.portlet.tasks.NoSuchReviewException;
55  
56      public com.liferay.portlet.tasks.model.TasksReview fetchByPrimaryKey(
57          long reviewId)
58          throws com.liferay.portal.kernel.exception.SystemException;
59  
60      public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
61          long userId) throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
64          long userId, int start, int end)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
68          long userId, int start, int end,
69          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
70          throws com.liferay.portal.kernel.exception.SystemException;
71  
72      public com.liferay.portlet.tasks.model.TasksReview findByUserId_First(
73          long userId,
74          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
75          throws com.liferay.portal.kernel.exception.SystemException,
76              com.liferay.portlet.tasks.NoSuchReviewException;
77  
78      public com.liferay.portlet.tasks.model.TasksReview findByUserId_Last(
79          long userId,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.kernel.exception.SystemException,
82              com.liferay.portlet.tasks.NoSuchReviewException;
83  
84      public com.liferay.portlet.tasks.model.TasksReview[] findByUserId_PrevAndNext(
85          long reviewId, long userId,
86          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
87          throws com.liferay.portal.kernel.exception.SystemException,
88              com.liferay.portlet.tasks.NoSuchReviewException;
89  
90      public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
91          long proposalId)
92          throws com.liferay.portal.kernel.exception.SystemException;
93  
94      public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
95          long proposalId, int start, int end)
96          throws com.liferay.portal.kernel.exception.SystemException;
97  
98      public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
99          long proposalId, int start, int end,
100         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     public com.liferay.portlet.tasks.model.TasksReview findByProposalId_First(
104         long proposalId,
105         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
106         throws com.liferay.portal.kernel.exception.SystemException,
107             com.liferay.portlet.tasks.NoSuchReviewException;
108 
109     public com.liferay.portlet.tasks.model.TasksReview findByProposalId_Last(
110         long proposalId,
111         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
112         throws com.liferay.portal.kernel.exception.SystemException,
113             com.liferay.portlet.tasks.NoSuchReviewException;
114 
115     public com.liferay.portlet.tasks.model.TasksReview[] findByProposalId_PrevAndNext(
116         long reviewId, long proposalId,
117         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
118         throws com.liferay.portal.kernel.exception.SystemException,
119             com.liferay.portlet.tasks.NoSuchReviewException;
120 
121     public com.liferay.portlet.tasks.model.TasksReview findByU_P(long userId,
122         long proposalId)
123         throws com.liferay.portal.kernel.exception.SystemException,
124             com.liferay.portlet.tasks.NoSuchReviewException;
125 
126     public com.liferay.portlet.tasks.model.TasksReview fetchByU_P(long userId,
127         long proposalId)
128         throws com.liferay.portal.kernel.exception.SystemException;
129 
130     public com.liferay.portlet.tasks.model.TasksReview fetchByU_P(long userId,
131         long proposalId, boolean retrieveFromCache)
132         throws com.liferay.portal.kernel.exception.SystemException;
133 
134     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
135         long proposalId, int stage)
136         throws com.liferay.portal.kernel.exception.SystemException;
137 
138     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
139         long proposalId, int stage, int start, int end)
140         throws com.liferay.portal.kernel.exception.SystemException;
141 
142     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
143         long proposalId, int stage, int start, int end,
144         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145         throws com.liferay.portal.kernel.exception.SystemException;
146 
147     public com.liferay.portlet.tasks.model.TasksReview findByP_S_First(
148         long proposalId, int stage,
149         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150         throws com.liferay.portal.kernel.exception.SystemException,
151             com.liferay.portlet.tasks.NoSuchReviewException;
152 
153     public com.liferay.portlet.tasks.model.TasksReview findByP_S_Last(
154         long proposalId, int stage,
155         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156         throws com.liferay.portal.kernel.exception.SystemException,
157             com.liferay.portlet.tasks.NoSuchReviewException;
158 
159     public com.liferay.portlet.tasks.model.TasksReview[] findByP_S_PrevAndNext(
160         long reviewId, long proposalId, int stage,
161         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162         throws com.liferay.portal.kernel.exception.SystemException,
163             com.liferay.portlet.tasks.NoSuchReviewException;
164 
165     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C(
166         long proposalId, int stage, boolean completed)
167         throws com.liferay.portal.kernel.exception.SystemException;
168 
169     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C(
170         long proposalId, int stage, boolean completed, int start, int end)
171         throws com.liferay.portal.kernel.exception.SystemException;
172 
173     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C(
174         long proposalId, int stage, boolean completed, int start, int end,
175         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
176         throws com.liferay.portal.kernel.exception.SystemException;
177 
178     public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_First(
179         long proposalId, int stage, boolean completed,
180         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181         throws com.liferay.portal.kernel.exception.SystemException,
182             com.liferay.portlet.tasks.NoSuchReviewException;
183 
184     public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_Last(
185         long proposalId, int stage, boolean completed,
186         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187         throws com.liferay.portal.kernel.exception.SystemException,
188             com.liferay.portlet.tasks.NoSuchReviewException;
189 
190     public com.liferay.portlet.tasks.model.TasksReview[] findByP_S_C_PrevAndNext(
191         long reviewId, long proposalId, int stage, boolean completed,
192         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
193         throws com.liferay.portal.kernel.exception.SystemException,
194             com.liferay.portlet.tasks.NoSuchReviewException;
195 
196     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R(
197         long proposalId, int stage, boolean completed, boolean rejected)
198         throws com.liferay.portal.kernel.exception.SystemException;
199 
200     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R(
201         long proposalId, int stage, boolean completed, boolean rejected,
202         int start, int end)
203         throws com.liferay.portal.kernel.exception.SystemException;
204 
205     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R(
206         long proposalId, int stage, boolean completed, boolean rejected,
207         int start, int end,
208         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209         throws com.liferay.portal.kernel.exception.SystemException;
210 
211     public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_R_First(
212         long proposalId, int stage, boolean completed, boolean rejected,
213         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214         throws com.liferay.portal.kernel.exception.SystemException,
215             com.liferay.portlet.tasks.NoSuchReviewException;
216 
217     public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_R_Last(
218         long proposalId, int stage, boolean completed, boolean rejected,
219         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220         throws com.liferay.portal.kernel.exception.SystemException,
221             com.liferay.portlet.tasks.NoSuchReviewException;
222 
223     public com.liferay.portlet.tasks.model.TasksReview[] findByP_S_C_R_PrevAndNext(
224         long reviewId, long proposalId, int stage, boolean completed,
225         boolean rejected,
226         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227         throws com.liferay.portal.kernel.exception.SystemException,
228             com.liferay.portlet.tasks.NoSuchReviewException;
229 
230     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll()
231         throws com.liferay.portal.kernel.exception.SystemException;
232 
233     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll(
234         int start, int end)
235         throws com.liferay.portal.kernel.exception.SystemException;
236 
237     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll(
238         int start, int end,
239         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
240         throws com.liferay.portal.kernel.exception.SystemException;
241 
242     public void removeByUserId(long userId)
243         throws com.liferay.portal.kernel.exception.SystemException;
244 
245     public void removeByProposalId(long proposalId)
246         throws com.liferay.portal.kernel.exception.SystemException;
247 
248     public void removeByU_P(long userId, long proposalId)
249         throws com.liferay.portal.kernel.exception.SystemException,
250             com.liferay.portlet.tasks.NoSuchReviewException;
251 
252     public void removeByP_S(long proposalId, int stage)
253         throws com.liferay.portal.kernel.exception.SystemException;
254 
255     public void removeByP_S_C(long proposalId, int stage, boolean completed)
256         throws com.liferay.portal.kernel.exception.SystemException;
257 
258     public void removeByP_S_C_R(long proposalId, int stage, boolean completed,
259         boolean rejected)
260         throws com.liferay.portal.kernel.exception.SystemException;
261 
262     public void removeAll()
263         throws com.liferay.portal.kernel.exception.SystemException;
264 
265     public int countByUserId(long userId)
266         throws com.liferay.portal.kernel.exception.SystemException;
267 
268     public int countByProposalId(long proposalId)
269         throws com.liferay.portal.kernel.exception.SystemException;
270 
271     public int countByU_P(long userId, long proposalId)
272         throws com.liferay.portal.kernel.exception.SystemException;
273 
274     public int countByP_S(long proposalId, int stage)
275         throws com.liferay.portal.kernel.exception.SystemException;
276 
277     public int countByP_S_C(long proposalId, int stage, boolean completed)
278         throws com.liferay.portal.kernel.exception.SystemException;
279 
280     public int countByP_S_C_R(long proposalId, int stage, boolean completed,
281         boolean rejected)
282         throws com.liferay.portal.kernel.exception.SystemException;
283 
284     public int countAll()
285         throws com.liferay.portal.kernel.exception.SystemException;
286 }