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