001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.tasks.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.service.ServiceContext;
022    
023    import com.liferay.portlet.tasks.model.TasksReview;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       TasksReviewPersistence
030     * @see       TasksReviewPersistenceImpl
031     * @generated
032     */
033    public class TasksReviewUtil {
034            /**
035             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
036             */
037            public static void clearCache() {
038                    getPersistence().clearCache();
039            }
040    
041            /**
042             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
043             */
044            public static void clearCache(TasksReview tasksReview) {
045                    getPersistence().clearCache(tasksReview);
046            }
047    
048            /**
049             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
050             */
051            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052                    throws SystemException {
053                    return getPersistence().countWithDynamicQuery(dynamicQuery);
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
058             */
059            public static List<TasksReview> findWithDynamicQuery(
060                    DynamicQuery dynamicQuery) throws SystemException {
061                    return getPersistence().findWithDynamicQuery(dynamicQuery);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
066             */
067            public static List<TasksReview> findWithDynamicQuery(
068                    DynamicQuery dynamicQuery, int start, int end)
069                    throws SystemException {
070                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071            }
072    
073            /**
074             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
075             */
076            public static List<TasksReview> findWithDynamicQuery(
077                    DynamicQuery dynamicQuery, int start, int end,
078                    OrderByComparator orderByComparator) throws SystemException {
079                    return getPersistence()
080                                       .findWithDynamicQuery(dynamicQuery, start, end,
081                            orderByComparator);
082            }
083    
084            /**
085             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
086             */
087            public static TasksReview remove(TasksReview tasksReview)
088                    throws SystemException {
089                    return getPersistence().remove(tasksReview);
090            }
091    
092            /**
093             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
094             */
095            public static TasksReview update(TasksReview tasksReview, boolean merge)
096                    throws SystemException {
097                    return getPersistence().update(tasksReview, merge);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
102             */
103            public static TasksReview update(TasksReview tasksReview, boolean merge,
104                    ServiceContext serviceContext) throws SystemException {
105                    return getPersistence().update(tasksReview, merge, serviceContext);
106            }
107    
108            public static void cacheResult(
109                    com.liferay.portlet.tasks.model.TasksReview tasksReview) {
110                    getPersistence().cacheResult(tasksReview);
111            }
112    
113            public static void cacheResult(
114                    java.util.List<com.liferay.portlet.tasks.model.TasksReview> tasksReviews) {
115                    getPersistence().cacheResult(tasksReviews);
116            }
117    
118            public static com.liferay.portlet.tasks.model.TasksReview create(
119                    long reviewId) {
120                    return getPersistence().create(reviewId);
121            }
122    
123            public static com.liferay.portlet.tasks.model.TasksReview remove(
124                    long reviewId)
125                    throws com.liferay.portal.kernel.exception.SystemException,
126                            com.liferay.portlet.tasks.NoSuchReviewException {
127                    return getPersistence().remove(reviewId);
128            }
129    
130            public static com.liferay.portlet.tasks.model.TasksReview updateImpl(
131                    com.liferay.portlet.tasks.model.TasksReview tasksReview, boolean merge)
132                    throws com.liferay.portal.kernel.exception.SystemException {
133                    return getPersistence().updateImpl(tasksReview, merge);
134            }
135    
136            public static com.liferay.portlet.tasks.model.TasksReview findByPrimaryKey(
137                    long reviewId)
138                    throws com.liferay.portal.kernel.exception.SystemException,
139                            com.liferay.portlet.tasks.NoSuchReviewException {
140                    return getPersistence().findByPrimaryKey(reviewId);
141            }
142    
143            public static com.liferay.portlet.tasks.model.TasksReview fetchByPrimaryKey(
144                    long reviewId)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    return getPersistence().fetchByPrimaryKey(reviewId);
147            }
148    
149            public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
150                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
151                    return getPersistence().findByUserId(userId);
152            }
153    
154            public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
155                    long userId, int start, int end)
156                    throws com.liferay.portal.kernel.exception.SystemException {
157                    return getPersistence().findByUserId(userId, start, end);
158            }
159    
160            public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
161                    long userId, int start, int end,
162                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163                    throws com.liferay.portal.kernel.exception.SystemException {
164                    return getPersistence()
165                                       .findByUserId(userId, start, end, orderByComparator);
166            }
167    
168            public static com.liferay.portlet.tasks.model.TasksReview findByUserId_First(
169                    long userId,
170                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171                    throws com.liferay.portal.kernel.exception.SystemException,
172                            com.liferay.portlet.tasks.NoSuchReviewException {
173                    return getPersistence().findByUserId_First(userId, orderByComparator);
174            }
175    
176            public static com.liferay.portlet.tasks.model.TasksReview findByUserId_Last(
177                    long userId,
178                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179                    throws com.liferay.portal.kernel.exception.SystemException,
180                            com.liferay.portlet.tasks.NoSuchReviewException {
181                    return getPersistence().findByUserId_Last(userId, orderByComparator);
182            }
183    
184            public static com.liferay.portlet.tasks.model.TasksReview[] findByUserId_PrevAndNext(
185                    long reviewId, long userId,
186                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187                    throws com.liferay.portal.kernel.exception.SystemException,
188                            com.liferay.portlet.tasks.NoSuchReviewException {
189                    return getPersistence()
190                                       .findByUserId_PrevAndNext(reviewId, userId, orderByComparator);
191            }
192    
193            public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
194                    long proposalId)
195                    throws com.liferay.portal.kernel.exception.SystemException {
196                    return getPersistence().findByProposalId(proposalId);
197            }
198    
199            public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
200                    long proposalId, int start, int end)
201                    throws com.liferay.portal.kernel.exception.SystemException {
202                    return getPersistence().findByProposalId(proposalId, start, end);
203            }
204    
205            public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
206                    long proposalId, int start, int end,
207                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208                    throws com.liferay.portal.kernel.exception.SystemException {
209                    return getPersistence()
210                                       .findByProposalId(proposalId, start, end, orderByComparator);
211            }
212    
213            public static com.liferay.portlet.tasks.model.TasksReview findByProposalId_First(
214                    long proposalId,
215                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
216                    throws com.liferay.portal.kernel.exception.SystemException,
217                            com.liferay.portlet.tasks.NoSuchReviewException {
218                    return getPersistence()
219                                       .findByProposalId_First(proposalId, orderByComparator);
220            }
221    
222            public static com.liferay.portlet.tasks.model.TasksReview findByProposalId_Last(
223                    long proposalId,
224                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
225                    throws com.liferay.portal.kernel.exception.SystemException,
226                            com.liferay.portlet.tasks.NoSuchReviewException {
227                    return getPersistence()
228                                       .findByProposalId_Last(proposalId, orderByComparator);
229            }
230    
231            public static com.liferay.portlet.tasks.model.TasksReview[] findByProposalId_PrevAndNext(
232                    long reviewId, long proposalId,
233                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234                    throws com.liferay.portal.kernel.exception.SystemException,
235                            com.liferay.portlet.tasks.NoSuchReviewException {
236                    return getPersistence()
237                                       .findByProposalId_PrevAndNext(reviewId, proposalId,
238                            orderByComparator);
239            }
240    
241            public static com.liferay.portlet.tasks.model.TasksReview findByU_P(
242                    long userId, long proposalId)
243                    throws com.liferay.portal.kernel.exception.SystemException,
244                            com.liferay.portlet.tasks.NoSuchReviewException {
245                    return getPersistence().findByU_P(userId, proposalId);
246            }
247    
248            public static com.liferay.portlet.tasks.model.TasksReview fetchByU_P(
249                    long userId, long proposalId)
250                    throws com.liferay.portal.kernel.exception.SystemException {
251                    return getPersistence().fetchByU_P(userId, proposalId);
252            }
253    
254            public static com.liferay.portlet.tasks.model.TasksReview fetchByU_P(
255                    long userId, long proposalId, boolean retrieveFromCache)
256                    throws com.liferay.portal.kernel.exception.SystemException {
257                    return getPersistence().fetchByU_P(userId, proposalId, retrieveFromCache);
258            }
259    
260            public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
261                    long proposalId, int stage)
262                    throws com.liferay.portal.kernel.exception.SystemException {
263                    return getPersistence().findByP_S(proposalId, stage);
264            }
265    
266            public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
267                    long proposalId, int stage, int start, int end)
268                    throws com.liferay.portal.kernel.exception.SystemException {
269                    return getPersistence().findByP_S(proposalId, stage, start, end);
270            }
271    
272            public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
273                    long proposalId, int stage, int start, int end,
274                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    return getPersistence()
277                                       .findByP_S(proposalId, stage, start, end, orderByComparator);
278            }
279    
280            public static com.liferay.portlet.tasks.model.TasksReview findByP_S_First(
281                    long proposalId, int stage,
282                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
283                    throws com.liferay.portal.kernel.exception.SystemException,
284                            com.liferay.portlet.tasks.NoSuchReviewException {
285                    return getPersistence()
286                                       .findByP_S_First(proposalId, stage, orderByComparator);
287            }
288    
289            public static com.liferay.portlet.tasks.model.TasksReview findByP_S_Last(
290                    long proposalId, int stage,
291                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292                    throws com.liferay.portal.kernel.exception.SystemException,
293                            com.liferay.portlet.tasks.NoSuchReviewException {
294                    return getPersistence()
295                                       .findByP_S_Last(proposalId, stage, orderByComparator);
296            }
297    
298            public static com.liferay.portlet.tasks.model.TasksReview[] findByP_S_PrevAndNext(
299                    long reviewId, long proposalId, int stage,
300                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
301                    throws com.liferay.portal.kernel.exception.SystemException,
302                            com.liferay.portlet.tasks.NoSuchReviewException {
303                    return getPersistence()
304                                       .findByP_S_PrevAndNext(reviewId, proposalId, stage,
305                            orderByComparator);
306            }
307    
308            public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C(
309                    long proposalId, int stage, boolean completed)
310                    throws com.liferay.portal.kernel.exception.SystemException {
311                    return getPersistence().findByP_S_C(proposalId, stage, completed);
312            }
313    
314            public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C(
315                    long proposalId, int stage, boolean completed, int start, int end)
316                    throws com.liferay.portal.kernel.exception.SystemException {
317                    return getPersistence()
318                                       .findByP_S_C(proposalId, stage, completed, start, end);
319            }
320    
321            public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C(
322                    long proposalId, int stage, boolean completed, int start, int end,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return getPersistence()
326                                       .findByP_S_C(proposalId, stage, completed, start, end,
327                            orderByComparator);
328            }
329    
330            public static com.liferay.portlet.tasks.model.TasksReview findByP_S_C_First(
331                    long proposalId, int stage, boolean completed,
332                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
333                    throws com.liferay.portal.kernel.exception.SystemException,
334                            com.liferay.portlet.tasks.NoSuchReviewException {
335                    return getPersistence()
336                                       .findByP_S_C_First(proposalId, stage, completed,
337                            orderByComparator);
338            }
339    
340            public static com.liferay.portlet.tasks.model.TasksReview findByP_S_C_Last(
341                    long proposalId, int stage, boolean completed,
342                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
343                    throws com.liferay.portal.kernel.exception.SystemException,
344                            com.liferay.portlet.tasks.NoSuchReviewException {
345                    return getPersistence()
346                                       .findByP_S_C_Last(proposalId, stage, completed,
347                            orderByComparator);
348            }
349    
350            public static com.liferay.portlet.tasks.model.TasksReview[] findByP_S_C_PrevAndNext(
351                    long reviewId, long proposalId, int stage, boolean completed,
352                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
353                    throws com.liferay.portal.kernel.exception.SystemException,
354                            com.liferay.portlet.tasks.NoSuchReviewException {
355                    return getPersistence()
356                                       .findByP_S_C_PrevAndNext(reviewId, proposalId, stage,
357                            completed, orderByComparator);
358            }
359    
360            public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R(
361                    long proposalId, int stage, boolean completed, boolean rejected)
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    return getPersistence()
364                                       .findByP_S_C_R(proposalId, stage, completed, rejected);
365            }
366    
367            public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R(
368                    long proposalId, int stage, boolean completed, boolean rejected,
369                    int start, int end)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    return getPersistence()
372                                       .findByP_S_C_R(proposalId, stage, completed, rejected,
373                            start, end);
374            }
375    
376            public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S_C_R(
377                    long proposalId, int stage, boolean completed, boolean rejected,
378                    int start, int end,
379                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
380                    throws com.liferay.portal.kernel.exception.SystemException {
381                    return getPersistence()
382                                       .findByP_S_C_R(proposalId, stage, completed, rejected,
383                            start, end, orderByComparator);
384            }
385    
386            public static com.liferay.portlet.tasks.model.TasksReview findByP_S_C_R_First(
387                    long proposalId, int stage, boolean completed, boolean rejected,
388                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
389                    throws com.liferay.portal.kernel.exception.SystemException,
390                            com.liferay.portlet.tasks.NoSuchReviewException {
391                    return getPersistence()
392                                       .findByP_S_C_R_First(proposalId, stage, completed, rejected,
393                            orderByComparator);
394            }
395    
396            public static com.liferay.portlet.tasks.model.TasksReview findByP_S_C_R_Last(
397                    long proposalId, int stage, boolean completed, boolean rejected,
398                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
399                    throws com.liferay.portal.kernel.exception.SystemException,
400                            com.liferay.portlet.tasks.NoSuchReviewException {
401                    return getPersistence()
402                                       .findByP_S_C_R_Last(proposalId, stage, completed, rejected,
403                            orderByComparator);
404            }
405    
406            public static com.liferay.portlet.tasks.model.TasksReview[] findByP_S_C_R_PrevAndNext(
407                    long reviewId, long proposalId, int stage, boolean completed,
408                    boolean rejected,
409                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
410                    throws com.liferay.portal.kernel.exception.SystemException,
411                            com.liferay.portlet.tasks.NoSuchReviewException {
412                    return getPersistence()
413                                       .findByP_S_C_R_PrevAndNext(reviewId, proposalId, stage,
414                            completed, rejected, orderByComparator);
415            }
416    
417            public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll()
418                    throws com.liferay.portal.kernel.exception.SystemException {
419                    return getPersistence().findAll();
420            }
421    
422            public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll(
423                    int start, int end)
424                    throws com.liferay.portal.kernel.exception.SystemException {
425                    return getPersistence().findAll(start, end);
426            }
427    
428            public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll(
429                    int start, int end,
430                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
431                    throws com.liferay.portal.kernel.exception.SystemException {
432                    return getPersistence().findAll(start, end, orderByComparator);
433            }
434    
435            public static void removeByUserId(long userId)
436                    throws com.liferay.portal.kernel.exception.SystemException {
437                    getPersistence().removeByUserId(userId);
438            }
439    
440            public static void removeByProposalId(long proposalId)
441                    throws com.liferay.portal.kernel.exception.SystemException {
442                    getPersistence().removeByProposalId(proposalId);
443            }
444    
445            public static void removeByU_P(long userId, long proposalId)
446                    throws com.liferay.portal.kernel.exception.SystemException,
447                            com.liferay.portlet.tasks.NoSuchReviewException {
448                    getPersistence().removeByU_P(userId, proposalId);
449            }
450    
451            public static void removeByP_S(long proposalId, int stage)
452                    throws com.liferay.portal.kernel.exception.SystemException {
453                    getPersistence().removeByP_S(proposalId, stage);
454            }
455    
456            public static void removeByP_S_C(long proposalId, int stage,
457                    boolean completed)
458                    throws com.liferay.portal.kernel.exception.SystemException {
459                    getPersistence().removeByP_S_C(proposalId, stage, completed);
460            }
461    
462            public static void removeByP_S_C_R(long proposalId, int stage,
463                    boolean completed, boolean rejected)
464                    throws com.liferay.portal.kernel.exception.SystemException {
465                    getPersistence().removeByP_S_C_R(proposalId, stage, completed, rejected);
466            }
467    
468            public static void removeAll()
469                    throws com.liferay.portal.kernel.exception.SystemException {
470                    getPersistence().removeAll();
471            }
472    
473            public static int countByUserId(long userId)
474                    throws com.liferay.portal.kernel.exception.SystemException {
475                    return getPersistence().countByUserId(userId);
476            }
477    
478            public static int countByProposalId(long proposalId)
479                    throws com.liferay.portal.kernel.exception.SystemException {
480                    return getPersistence().countByProposalId(proposalId);
481            }
482    
483            public static int countByU_P(long userId, long proposalId)
484                    throws com.liferay.portal.kernel.exception.SystemException {
485                    return getPersistence().countByU_P(userId, proposalId);
486            }
487    
488            public static int countByP_S(long proposalId, int stage)
489                    throws com.liferay.portal.kernel.exception.SystemException {
490                    return getPersistence().countByP_S(proposalId, stage);
491            }
492    
493            public static int countByP_S_C(long proposalId, int stage, boolean completed)
494                    throws com.liferay.portal.kernel.exception.SystemException {
495                    return getPersistence().countByP_S_C(proposalId, stage, completed);
496            }
497    
498            public static int countByP_S_C_R(long proposalId, int stage,
499                    boolean completed, boolean rejected)
500                    throws com.liferay.portal.kernel.exception.SystemException {
501                    return getPersistence()
502                                       .countByP_S_C_R(proposalId, stage, completed, rejected);
503            }
504    
505            public static int countAll()
506                    throws com.liferay.portal.kernel.exception.SystemException {
507                    return getPersistence().countAll();
508            }
509    
510            public static TasksReviewPersistence getPersistence() {
511                    if (_persistence == null) {
512                            _persistence = (TasksReviewPersistence)PortalBeanLocatorUtil.locate(TasksReviewPersistence.class.getName());
513                    }
514    
515                    return _persistence;
516            }
517    
518            public void setPersistence(TasksReviewPersistence persistence) {
519                    _persistence = persistence;
520            }
521    
522            private static TasksReviewPersistence _persistence;
523    }