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