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