1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.tasks.service.persistence;
24  
25  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  /**
28   * <a href="TasksReviewPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       TasksReviewPersistenceImpl
37   * @see       TasksReviewUtil
38   * @generated
39   */
40  public interface TasksReviewPersistence extends BasePersistence {
41      public void cacheResult(
42          com.liferay.portlet.tasks.model.TasksReview tasksReview);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portlet.tasks.model.TasksReview> tasksReviews);
46  
47      public void clearCache();
48  
49      public com.liferay.portlet.tasks.model.TasksReview create(long reviewId);
50  
51      public com.liferay.portlet.tasks.model.TasksReview remove(long reviewId)
52          throws com.liferay.portal.SystemException,
53              com.liferay.portlet.tasks.NoSuchReviewException;
54  
55      public com.liferay.portlet.tasks.model.TasksReview remove(
56          com.liferay.portlet.tasks.model.TasksReview tasksReview)
57          throws com.liferay.portal.SystemException;
58  
59      /**
60       * @deprecated Use {@link #update(TasksReview, boolean merge)}.
61       */
62      public com.liferay.portlet.tasks.model.TasksReview update(
63          com.liferay.portlet.tasks.model.TasksReview tasksReview)
64          throws com.liferay.portal.SystemException;
65  
66      /**
67       * Add, update, or merge, the entity. This method also calls the model
68       * listeners to trigger the proper events associated with adding, deleting,
69       * or updating an entity.
70       *
71       * @param  tasksReview the entity to add, update, or merge
72       * @param  merge boolean value for whether to merge the entity. The default
73       *         value is false. Setting merge to true is more expensive and
74       *         should only be true when tasksReview is transient. See
75       *         LEP-5473 for a detailed discussion of this method.
76       * @return the entity that was added, updated, or merged
77       */
78      public com.liferay.portlet.tasks.model.TasksReview update(
79          com.liferay.portlet.tasks.model.TasksReview tasksReview, boolean merge)
80          throws com.liferay.portal.SystemException;
81  
82      public com.liferay.portlet.tasks.model.TasksReview updateImpl(
83          com.liferay.portlet.tasks.model.TasksReview tasksReview, boolean merge)
84          throws com.liferay.portal.SystemException;
85  
86      public com.liferay.portlet.tasks.model.TasksReview findByPrimaryKey(
87          long reviewId)
88          throws com.liferay.portal.SystemException,
89              com.liferay.portlet.tasks.NoSuchReviewException;
90  
91      public com.liferay.portlet.tasks.model.TasksReview fetchByPrimaryKey(
92          long reviewId) throws com.liferay.portal.SystemException;
93  
94      public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
95          long userId) throws com.liferay.portal.SystemException;
96  
97      public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
98          long userId, int start, int end)
99          throws com.liferay.portal.SystemException;
100 
101     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
102         long userId, int start, int end,
103         com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.tasks.model.TasksReview findByUserId_First(
107         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
108         throws com.liferay.portal.SystemException,
109             com.liferay.portlet.tasks.NoSuchReviewException;
110 
111     public com.liferay.portlet.tasks.model.TasksReview findByUserId_Last(
112         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.SystemException,
114             com.liferay.portlet.tasks.NoSuchReviewException;
115 
116     public com.liferay.portlet.tasks.model.TasksReview[] findByUserId_PrevAndNext(
117         long reviewId, long userId,
118         com.liferay.portal.kernel.util.OrderByComparator obc)
119         throws com.liferay.portal.SystemException,
120             com.liferay.portlet.tasks.NoSuchReviewException;
121 
122     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
123         long proposalId) throws com.liferay.portal.SystemException;
124 
125     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
126         long proposalId, int start, int end)
127         throws com.liferay.portal.SystemException;
128 
129     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
130         long proposalId, int start, int end,
131         com.liferay.portal.kernel.util.OrderByComparator obc)
132         throws com.liferay.portal.SystemException;
133 
134     public com.liferay.portlet.tasks.model.TasksReview findByProposalId_First(
135         long proposalId, com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.SystemException,
137             com.liferay.portlet.tasks.NoSuchReviewException;
138 
139     public com.liferay.portlet.tasks.model.TasksReview findByProposalId_Last(
140         long proposalId, com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.SystemException,
142             com.liferay.portlet.tasks.NoSuchReviewException;
143 
144     public com.liferay.portlet.tasks.model.TasksReview[] findByProposalId_PrevAndNext(
145         long reviewId, long proposalId,
146         com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException,
148             com.liferay.portlet.tasks.NoSuchReviewException;
149 
150     public com.liferay.portlet.tasks.model.TasksReview findByU_P(long userId,
151         long proposalId)
152         throws com.liferay.portal.SystemException,
153             com.liferay.portlet.tasks.NoSuchReviewException;
154 
155     public com.liferay.portlet.tasks.model.TasksReview fetchByU_P(long userId,
156         long proposalId) throws com.liferay.portal.SystemException;
157 
158     public com.liferay.portlet.tasks.model.TasksReview fetchByU_P(long userId,
159         long proposalId, boolean retrieveFromCache)
160         throws com.liferay.portal.SystemException;
161 
162     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
163         long proposalId, int stage) throws com.liferay.portal.SystemException;
164 
165     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
166         long proposalId, int stage, int start, int end)
167         throws com.liferay.portal.SystemException;
168 
169     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
170         long proposalId, int stage, int start, int end,
171         com.liferay.portal.kernel.util.OrderByComparator obc)
172         throws com.liferay.portal.SystemException;
173 
174     public com.liferay.portlet.tasks.model.TasksReview findByP_S_First(
175         long proposalId, int stage,
176         com.liferay.portal.kernel.util.OrderByComparator obc)
177         throws com.liferay.portal.SystemException,
178             com.liferay.portlet.tasks.NoSuchReviewException;
179 
180     public com.liferay.portlet.tasks.model.TasksReview findByP_S_Last(
181         long proposalId, int stage,
182         com.liferay.portal.kernel.util.OrderByComparator obc)
183         throws com.liferay.portal.SystemException,
184             com.liferay.portlet.tasks.NoSuchReviewException;
185 
186     public com.liferay.portlet.tasks.model.TasksReview[] findByP_S_PrevAndNext(
187         long reviewId, long proposalId, int stage,
188         com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.SystemException,
190             com.liferay.portlet.tasks.NoSuchReviewException;
191 
192     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C(
193         long proposalId, int stage, boolean completed)
194         throws com.liferay.portal.SystemException;
195 
196     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C(
197         long proposalId, int stage, boolean completed, int start, int end)
198         throws com.liferay.portal.SystemException;
199 
200     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C(
201         long proposalId, int stage, boolean completed, int start, int end,
202         com.liferay.portal.kernel.util.OrderByComparator obc)
203         throws com.liferay.portal.SystemException;
204 
205     public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_First(
206         long proposalId, int stage, boolean completed,
207         com.liferay.portal.kernel.util.OrderByComparator obc)
208         throws com.liferay.portal.SystemException,
209             com.liferay.portlet.tasks.NoSuchReviewException;
210 
211     public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_Last(
212         long proposalId, int stage, boolean completed,
213         com.liferay.portal.kernel.util.OrderByComparator obc)
214         throws com.liferay.portal.SystemException,
215             com.liferay.portlet.tasks.NoSuchReviewException;
216 
217     public com.liferay.portlet.tasks.model.TasksReview[] findByP_S_C_PrevAndNext(
218         long reviewId, long proposalId, int stage, boolean completed,
219         com.liferay.portal.kernel.util.OrderByComparator obc)
220         throws com.liferay.portal.SystemException,
221             com.liferay.portlet.tasks.NoSuchReviewException;
222 
223     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R(
224         long proposalId, int stage, boolean completed, boolean rejected)
225         throws com.liferay.portal.SystemException;
226 
227     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R(
228         long proposalId, int stage, boolean completed, boolean rejected,
229         int start, int end) throws com.liferay.portal.SystemException;
230 
231     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R(
232         long proposalId, int stage, boolean completed, boolean rejected,
233         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
234         throws com.liferay.portal.SystemException;
235 
236     public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_R_First(
237         long proposalId, int stage, boolean completed, boolean rejected,
238         com.liferay.portal.kernel.util.OrderByComparator obc)
239         throws com.liferay.portal.SystemException,
240             com.liferay.portlet.tasks.NoSuchReviewException;
241 
242     public com.liferay.portlet.tasks.model.TasksReview findByP_S_C_R_Last(
243         long proposalId, int stage, boolean completed, boolean rejected,
244         com.liferay.portal.kernel.util.OrderByComparator obc)
245         throws com.liferay.portal.SystemException,
246             com.liferay.portlet.tasks.NoSuchReviewException;
247 
248     public com.liferay.portlet.tasks.model.TasksReview[] findByP_S_C_R_PrevAndNext(
249         long reviewId, long proposalId, int stage, boolean completed,
250         boolean rejected, com.liferay.portal.kernel.util.OrderByComparator obc)
251         throws com.liferay.portal.SystemException,
252             com.liferay.portlet.tasks.NoSuchReviewException;
253 
254     public java.util.List<Object> findWithDynamicQuery(
255         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
256         throws com.liferay.portal.SystemException;
257 
258     public java.util.List<Object> findWithDynamicQuery(
259         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
260         int end) throws com.liferay.portal.SystemException;
261 
262     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll()
263         throws com.liferay.portal.SystemException;
264 
265     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll(
266         int start, int end) throws com.liferay.portal.SystemException;
267 
268     public java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll(
269         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
270         throws com.liferay.portal.SystemException;
271 
272     public void removeByUserId(long userId)
273         throws com.liferay.portal.SystemException;
274 
275     public void removeByProposalId(long proposalId)
276         throws com.liferay.portal.SystemException;
277 
278     public void removeByU_P(long userId, long proposalId)
279         throws com.liferay.portal.SystemException,
280             com.liferay.portlet.tasks.NoSuchReviewException;
281 
282     public void removeByP_S(long proposalId, int stage)
283         throws com.liferay.portal.SystemException;
284 
285     public void removeByP_S_C(long proposalId, int stage, boolean completed)
286         throws com.liferay.portal.SystemException;
287 
288     public void removeByP_S_C_R(long proposalId, int stage, boolean completed,
289         boolean rejected) throws com.liferay.portal.SystemException;
290 
291     public void removeAll() throws com.liferay.portal.SystemException;
292 
293     public int countByUserId(long userId)
294         throws com.liferay.portal.SystemException;
295 
296     public int countByProposalId(long proposalId)
297         throws com.liferay.portal.SystemException;
298 
299     public int countByU_P(long userId, long proposalId)
300         throws com.liferay.portal.SystemException;
301 
302     public int countByP_S(long proposalId, int stage)
303         throws com.liferay.portal.SystemException;
304 
305     public int countByP_S_C(long proposalId, int stage, boolean completed)
306         throws com.liferay.portal.SystemException;
307 
308     public int countByP_S_C_R(long proposalId, int stage, boolean completed,
309         boolean rejected) throws com.liferay.portal.SystemException;
310 
311     public int countAll() throws com.liferay.portal.SystemException;
312 }