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