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