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