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