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