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.SystemException;
26  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28  
29  import com.liferay.portlet.tasks.model.TasksReview;
30  
31  import java.util.List;
32  
33  /**
34   * <a href="TasksReviewUtil.java.html"><b><i>View Source</i></b></a>
35   *
36   * <p>
37   * ServiceBuilder generated this class. Modifications in this class will be
38   * overwritten the next time is generated.
39   * </p>
40   *
41   * @author    Brian Wing Shun Chan
42   * @see       TasksReviewPersistence
43   * @see       TasksReviewPersistenceImpl
44   * @generated
45   */
46  public class TasksReviewUtil {
47      /**
48       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
49       */
50      public static void clearCache() {
51          getPersistence().clearCache();
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
58          throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
64       */
65      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
66          int start, int end) throws SystemException {
67          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
72       */
73      public static TasksReview remove(TasksReview tasksReview)
74          throws SystemException {
75          return getPersistence().remove(tasksReview);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
80       */
81      public static TasksReview update(TasksReview tasksReview, boolean merge)
82          throws SystemException {
83          return getPersistence().update(tasksReview, merge);
84      }
85  
86      public static void cacheResult(
87          com.liferay.portlet.tasks.model.TasksReview tasksReview) {
88          getPersistence().cacheResult(tasksReview);
89      }
90  
91      public static void cacheResult(
92          java.util.List<com.liferay.portlet.tasks.model.TasksReview> tasksReviews) {
93          getPersistence().cacheResult(tasksReviews);
94      }
95  
96      public static com.liferay.portlet.tasks.model.TasksReview create(
97          long reviewId) {
98          return getPersistence().create(reviewId);
99      }
100 
101     public static com.liferay.portlet.tasks.model.TasksReview remove(
102         long reviewId)
103         throws com.liferay.portal.SystemException,
104             com.liferay.portlet.tasks.NoSuchReviewException {
105         return getPersistence().remove(reviewId);
106     }
107 
108     /**
109      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
110      */
111     public static com.liferay.portlet.tasks.model.TasksReview update(
112         com.liferay.portlet.tasks.model.TasksReview tasksReview)
113         throws com.liferay.portal.SystemException {
114         return getPersistence().update(tasksReview);
115     }
116 
117     public static com.liferay.portlet.tasks.model.TasksReview updateImpl(
118         com.liferay.portlet.tasks.model.TasksReview tasksReview, boolean merge)
119         throws com.liferay.portal.SystemException {
120         return getPersistence().updateImpl(tasksReview, merge);
121     }
122 
123     public static com.liferay.portlet.tasks.model.TasksReview findByPrimaryKey(
124         long reviewId)
125         throws com.liferay.portal.SystemException,
126             com.liferay.portlet.tasks.NoSuchReviewException {
127         return getPersistence().findByPrimaryKey(reviewId);
128     }
129 
130     public static com.liferay.portlet.tasks.model.TasksReview fetchByPrimaryKey(
131         long reviewId) throws com.liferay.portal.SystemException {
132         return getPersistence().fetchByPrimaryKey(reviewId);
133     }
134 
135     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
136         long userId) throws com.liferay.portal.SystemException {
137         return getPersistence().findByUserId(userId);
138     }
139 
140     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
141         long userId, int start, int end)
142         throws com.liferay.portal.SystemException {
143         return getPersistence().findByUserId(userId, start, end);
144     }
145 
146     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
147         long userId, int start, int end,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException {
150         return getPersistence().findByUserId(userId, start, end, obc);
151     }
152 
153     public static com.liferay.portlet.tasks.model.TasksReview findByUserId_First(
154         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
155         throws com.liferay.portal.SystemException,
156             com.liferay.portlet.tasks.NoSuchReviewException {
157         return getPersistence().findByUserId_First(userId, obc);
158     }
159 
160     public static com.liferay.portlet.tasks.model.TasksReview findByUserId_Last(
161         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.tasks.NoSuchReviewException {
164         return getPersistence().findByUserId_Last(userId, obc);
165     }
166 
167     public static com.liferay.portlet.tasks.model.TasksReview[] findByUserId_PrevAndNext(
168         long reviewId, long userId,
169         com.liferay.portal.kernel.util.OrderByComparator obc)
170         throws com.liferay.portal.SystemException,
171             com.liferay.portlet.tasks.NoSuchReviewException {
172         return getPersistence().findByUserId_PrevAndNext(reviewId, userId, obc);
173     }
174 
175     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
176         long proposalId) throws com.liferay.portal.SystemException {
177         return getPersistence().findByProposalId(proposalId);
178     }
179 
180     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
181         long proposalId, int start, int end)
182         throws com.liferay.portal.SystemException {
183         return getPersistence().findByProposalId(proposalId, start, end);
184     }
185 
186     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
187         long proposalId, int start, int end,
188         com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.SystemException {
190         return getPersistence().findByProposalId(proposalId, start, end, obc);
191     }
192 
193     public static com.liferay.portlet.tasks.model.TasksReview findByProposalId_First(
194         long proposalId, com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.SystemException,
196             com.liferay.portlet.tasks.NoSuchReviewException {
197         return getPersistence().findByProposalId_First(proposalId, obc);
198     }
199 
200     public static com.liferay.portlet.tasks.model.TasksReview findByProposalId_Last(
201         long proposalId, com.liferay.portal.kernel.util.OrderByComparator obc)
202         throws com.liferay.portal.SystemException,
203             com.liferay.portlet.tasks.NoSuchReviewException {
204         return getPersistence().findByProposalId_Last(proposalId, obc);
205     }
206 
207     public static com.liferay.portlet.tasks.model.TasksReview[] findByProposalId_PrevAndNext(
208         long reviewId, long proposalId,
209         com.liferay.portal.kernel.util.OrderByComparator obc)
210         throws com.liferay.portal.SystemException,
211             com.liferay.portlet.tasks.NoSuchReviewException {
212         return getPersistence()
213                    .findByProposalId_PrevAndNext(reviewId, proposalId, obc);
214     }
215 
216     public static com.liferay.portlet.tasks.model.TasksReview findByU_P(
217         long userId, long proposalId)
218         throws com.liferay.portal.SystemException,
219             com.liferay.portlet.tasks.NoSuchReviewException {
220         return getPersistence().findByU_P(userId, proposalId);
221     }
222 
223     public static com.liferay.portlet.tasks.model.TasksReview fetchByU_P(
224         long userId, long proposalId) throws com.liferay.portal.SystemException {
225         return getPersistence().fetchByU_P(userId, proposalId);
226     }
227 
228     public static com.liferay.portlet.tasks.model.TasksReview fetchByU_P(
229         long userId, long proposalId, boolean retrieveFromCache)
230         throws com.liferay.portal.SystemException {
231         return getPersistence().fetchByU_P(userId, proposalId, retrieveFromCache);
232     }
233 
234     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
235         long proposalId, int stage) throws com.liferay.portal.SystemException {
236         return getPersistence().findByP_S(proposalId, stage);
237     }
238 
239     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
240         long proposalId, int stage, int start, int end)
241         throws com.liferay.portal.SystemException {
242         return getPersistence().findByP_S(proposalId, stage, start, end);
243     }
244 
245     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
246         long proposalId, int stage, int start, int end,
247         com.liferay.portal.kernel.util.OrderByComparator obc)
248         throws com.liferay.portal.SystemException {
249         return getPersistence().findByP_S(proposalId, stage, start, end, obc);
250     }
251 
252     public static com.liferay.portlet.tasks.model.TasksReview findByP_S_First(
253         long proposalId, int stage,
254         com.liferay.portal.kernel.util.OrderByComparator obc)
255         throws com.liferay.portal.SystemException,
256             com.liferay.portlet.tasks.NoSuchReviewException {
257         return getPersistence().findByP_S_First(proposalId, stage, obc);
258     }
259 
260     public static com.liferay.portlet.tasks.model.TasksReview findByP_S_Last(
261         long proposalId, int stage,
262         com.liferay.portal.kernel.util.OrderByComparator obc)
263         throws com.liferay.portal.SystemException,
264             com.liferay.portlet.tasks.NoSuchReviewException {
265         return getPersistence().findByP_S_Last(proposalId, stage, obc);
266     }
267 
268     public static com.liferay.portlet.tasks.model.TasksReview[] findByP_S_PrevAndNext(
269         long reviewId, long proposalId, int stage,
270         com.liferay.portal.kernel.util.OrderByComparator obc)
271         throws com.liferay.portal.SystemException,
272             com.liferay.portlet.tasks.NoSuchReviewException {
273         return getPersistence()
274                    .findByP_S_PrevAndNext(reviewId, proposalId, stage, obc);
275     }
276 
277     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C(
278         long proposalId, int stage, boolean completed)
279         throws com.liferay.portal.SystemException {
280         return getPersistence().findByP_S_C(proposalId, stage, completed);
281     }
282 
283     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C(
284         long proposalId, int stage, boolean completed, int start, int end)
285         throws com.liferay.portal.SystemException {
286         return getPersistence()
287                    .findByP_S_C(proposalId, stage, completed, start, end);
288     }
289 
290     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C(
291         long proposalId, int stage, boolean completed, int start, int end,
292         com.liferay.portal.kernel.util.OrderByComparator obc)
293         throws com.liferay.portal.SystemException {
294         return getPersistence()
295                    .findByP_S_C(proposalId, stage, completed, start, end, obc);
296     }
297 
298     public static com.liferay.portlet.tasks.model.TasksReview findByP_S_C_First(
299         long proposalId, int stage, boolean completed,
300         com.liferay.portal.kernel.util.OrderByComparator obc)
301         throws com.liferay.portal.SystemException,
302             com.liferay.portlet.tasks.NoSuchReviewException {
303         return getPersistence()
304                    .findByP_S_C_First(proposalId, stage, completed, obc);
305     }
306 
307     public static com.liferay.portlet.tasks.model.TasksReview findByP_S_C_Last(
308         long proposalId, int stage, boolean completed,
309         com.liferay.portal.kernel.util.OrderByComparator obc)
310         throws com.liferay.portal.SystemException,
311             com.liferay.portlet.tasks.NoSuchReviewException {
312         return getPersistence()
313                    .findByP_S_C_Last(proposalId, stage, completed, obc);
314     }
315 
316     public static com.liferay.portlet.tasks.model.TasksReview[] findByP_S_C_PrevAndNext(
317         long reviewId, long proposalId, int stage, boolean completed,
318         com.liferay.portal.kernel.util.OrderByComparator obc)
319         throws com.liferay.portal.SystemException,
320             com.liferay.portlet.tasks.NoSuchReviewException {
321         return getPersistence()
322                    .findByP_S_C_PrevAndNext(reviewId, proposalId, stage,
323             completed, obc);
324     }
325 
326     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R(
327         long proposalId, int stage, boolean completed, boolean rejected)
328         throws com.liferay.portal.SystemException {
329         return getPersistence()
330                    .findByP_S_C_R(proposalId, stage, completed, rejected);
331     }
332 
333     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R(
334         long proposalId, int stage, boolean completed, boolean rejected,
335         int start, int end) throws com.liferay.portal.SystemException {
336         return getPersistence()
337                    .findByP_S_C_R(proposalId, stage, completed, rejected,
338             start, end);
339     }
340 
341     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R(
342         long proposalId, int stage, boolean completed, boolean rejected,
343         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
344         throws com.liferay.portal.SystemException {
345         return getPersistence()
346                    .findByP_S_C_R(proposalId, stage, completed, rejected,
347             start, end, obc);
348     }
349 
350     public static com.liferay.portlet.tasks.model.TasksReview findByP_S_C_R_First(
351         long proposalId, int stage, boolean completed, boolean rejected,
352         com.liferay.portal.kernel.util.OrderByComparator obc)
353         throws com.liferay.portal.SystemException,
354             com.liferay.portlet.tasks.NoSuchReviewException {
355         return getPersistence()
356                    .findByP_S_C_R_First(proposalId, stage, completed, rejected,
357             obc);
358     }
359 
360     public static com.liferay.portlet.tasks.model.TasksReview findByP_S_C_R_Last(
361         long proposalId, int stage, boolean completed, boolean rejected,
362         com.liferay.portal.kernel.util.OrderByComparator obc)
363         throws com.liferay.portal.SystemException,
364             com.liferay.portlet.tasks.NoSuchReviewException {
365         return getPersistence()
366                    .findByP_S_C_R_Last(proposalId, stage, completed, rejected,
367             obc);
368     }
369 
370     public static com.liferay.portlet.tasks.model.TasksReview[] findByP_S_C_R_PrevAndNext(
371         long reviewId, long proposalId, int stage, boolean completed,
372         boolean rejected, com.liferay.portal.kernel.util.OrderByComparator obc)
373         throws com.liferay.portal.SystemException,
374             com.liferay.portlet.tasks.NoSuchReviewException {
375         return getPersistence()
376                    .findByP_S_C_R_PrevAndNext(reviewId, proposalId, stage,
377             completed, rejected, obc);
378     }
379 
380     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll()
381         throws com.liferay.portal.SystemException {
382         return getPersistence().findAll();
383     }
384 
385     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll(
386         int start, int end) throws com.liferay.portal.SystemException {
387         return getPersistence().findAll(start, end);
388     }
389 
390     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll(
391         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
392         throws com.liferay.portal.SystemException {
393         return getPersistence().findAll(start, end, obc);
394     }
395 
396     public static void removeByUserId(long userId)
397         throws com.liferay.portal.SystemException {
398         getPersistence().removeByUserId(userId);
399     }
400 
401     public static void removeByProposalId(long proposalId)
402         throws com.liferay.portal.SystemException {
403         getPersistence().removeByProposalId(proposalId);
404     }
405 
406     public static void removeByU_P(long userId, long proposalId)
407         throws com.liferay.portal.SystemException,
408             com.liferay.portlet.tasks.NoSuchReviewException {
409         getPersistence().removeByU_P(userId, proposalId);
410     }
411 
412     public static void removeByP_S(long proposalId, int stage)
413         throws com.liferay.portal.SystemException {
414         getPersistence().removeByP_S(proposalId, stage);
415     }
416 
417     public static void removeByP_S_C(long proposalId, int stage,
418         boolean completed) throws com.liferay.portal.SystemException {
419         getPersistence().removeByP_S_C(proposalId, stage, completed);
420     }
421 
422     public static void removeByP_S_C_R(long proposalId, int stage,
423         boolean completed, boolean rejected)
424         throws com.liferay.portal.SystemException {
425         getPersistence().removeByP_S_C_R(proposalId, stage, completed, rejected);
426     }
427 
428     public static void removeAll() throws com.liferay.portal.SystemException {
429         getPersistence().removeAll();
430     }
431 
432     public static int countByUserId(long userId)
433         throws com.liferay.portal.SystemException {
434         return getPersistence().countByUserId(userId);
435     }
436 
437     public static int countByProposalId(long proposalId)
438         throws com.liferay.portal.SystemException {
439         return getPersistence().countByProposalId(proposalId);
440     }
441 
442     public static int countByU_P(long userId, long proposalId)
443         throws com.liferay.portal.SystemException {
444         return getPersistence().countByU_P(userId, proposalId);
445     }
446 
447     public static int countByP_S(long proposalId, int stage)
448         throws com.liferay.portal.SystemException {
449         return getPersistence().countByP_S(proposalId, stage);
450     }
451 
452     public static int countByP_S_C(long proposalId, int stage, boolean completed)
453         throws com.liferay.portal.SystemException {
454         return getPersistence().countByP_S_C(proposalId, stage, completed);
455     }
456 
457     public static int countByP_S_C_R(long proposalId, int stage,
458         boolean completed, boolean rejected)
459         throws com.liferay.portal.SystemException {
460         return getPersistence()
461                    .countByP_S_C_R(proposalId, stage, completed, rejected);
462     }
463 
464     public static int countAll() throws com.liferay.portal.SystemException {
465         return getPersistence().countAll();
466     }
467 
468     public static TasksReviewPersistence getPersistence() {
469         if (_persistence == null) {
470             _persistence = (TasksReviewPersistence)PortalBeanLocatorUtil.locate(TasksReviewPersistence.class.getName());
471         }
472 
473         return _persistence;
474     }
475 
476     public void setPersistence(TasksReviewPersistence persistence) {
477         _persistence = persistence;
478     }
479 
480     private static TasksReviewPersistence _persistence;
481 }