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