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 start, int end)
103 throws com.liferay.portal.SystemException {
104 return getPersistence().findByUserId(userId, start, end);
105 }
106
107 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByUserId(
108 long userId, int start, int end,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().findByUserId(userId, start, 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 start, int end)
143 throws com.liferay.portal.SystemException {
144 return getPersistence().findByProposalId(proposalId, start, end);
145 }
146
147 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByProposalId(
148 long proposalId, int start, int end,
149 com.liferay.portal.kernel.util.OrderByComparator obc)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findByProposalId(proposalId, start, 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 start, int end)
196 throws com.liferay.portal.SystemException {
197 return getPersistence().findByP_S(proposalId, stage, start, end);
198 }
199
200 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findByP_S(
201 long proposalId, int stage, int start, int end,
202 com.liferay.portal.kernel.util.OrderByComparator obc)
203 throws com.liferay.portal.SystemException {
204 return getPersistence().findByP_S(proposalId, stage, start, 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 start, int end)
240 throws com.liferay.portal.SystemException {
241 return getPersistence()
242 .findByP_S_C(proposalId, stage, completed, start, 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 start, 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, start, 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 start, int end) throws com.liferay.portal.SystemException {
291 return getPersistence()
292 .findByP_S_C_R(proposalId, stage, completed, rejected,
293 start, 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 start, 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 start, 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<Object> findWithDynamicQuery(
336 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
337 throws com.liferay.portal.SystemException {
338 return getPersistence().findWithDynamicQuery(dynamicQuery);
339 }
340
341 public static java.util.List<Object> findWithDynamicQuery(
342 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
343 int end) throws com.liferay.portal.SystemException {
344 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
345 }
346
347 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll()
348 throws com.liferay.portal.SystemException {
349 return getPersistence().findAll();
350 }
351
352 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll(
353 int start, int end) throws com.liferay.portal.SystemException {
354 return getPersistence().findAll(start, end);
355 }
356
357 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> findAll(
358 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
359 throws com.liferay.portal.SystemException {
360 return getPersistence().findAll(start, end, obc);
361 }
362
363 public static void removeByUserId(long userId)
364 throws com.liferay.portal.SystemException {
365 getPersistence().removeByUserId(userId);
366 }
367
368 public static void removeByProposalId(long proposalId)
369 throws com.liferay.portal.SystemException {
370 getPersistence().removeByProposalId(proposalId);
371 }
372
373 public static void removeByU_P(long userId, long proposalId)
374 throws com.liferay.portal.SystemException,
375 com.liferay.portlet.tasks.NoSuchReviewException {
376 getPersistence().removeByU_P(userId, proposalId);
377 }
378
379 public static void removeByP_S(long proposalId, int stage)
380 throws com.liferay.portal.SystemException {
381 getPersistence().removeByP_S(proposalId, stage);
382 }
383
384 public static void removeByP_S_C(long proposalId, int stage,
385 boolean completed) throws com.liferay.portal.SystemException {
386 getPersistence().removeByP_S_C(proposalId, stage, completed);
387 }
388
389 public static void removeByP_S_C_R(long proposalId, int stage,
390 boolean completed, boolean rejected)
391 throws com.liferay.portal.SystemException {
392 getPersistence().removeByP_S_C_R(proposalId, stage, completed, rejected);
393 }
394
395 public static void removeAll() throws com.liferay.portal.SystemException {
396 getPersistence().removeAll();
397 }
398
399 public static int countByUserId(long userId)
400 throws com.liferay.portal.SystemException {
401 return getPersistence().countByUserId(userId);
402 }
403
404 public static int countByProposalId(long proposalId)
405 throws com.liferay.portal.SystemException {
406 return getPersistence().countByProposalId(proposalId);
407 }
408
409 public static int countByU_P(long userId, long proposalId)
410 throws com.liferay.portal.SystemException {
411 return getPersistence().countByU_P(userId, proposalId);
412 }
413
414 public static int countByP_S(long proposalId, int stage)
415 throws com.liferay.portal.SystemException {
416 return getPersistence().countByP_S(proposalId, stage);
417 }
418
419 public static int countByP_S_C(long proposalId, int stage, boolean completed)
420 throws com.liferay.portal.SystemException {
421 return getPersistence().countByP_S_C(proposalId, stage, completed);
422 }
423
424 public static int countByP_S_C_R(long proposalId, int stage,
425 boolean completed, boolean rejected)
426 throws com.liferay.portal.SystemException {
427 return getPersistence()
428 .countByP_S_C_R(proposalId, stage, completed, rejected);
429 }
430
431 public static int countAll() throws com.liferay.portal.SystemException {
432 return getPersistence().countAll();
433 }
434
435 public static void registerListener(
436 com.liferay.portal.model.ModelListener listener) {
437 getPersistence().registerListener(listener);
438 }
439
440 public static void unregisterListener(
441 com.liferay.portal.model.ModelListener listener) {
442 getPersistence().unregisterListener(listener);
443 }
444
445 public static TasksReviewPersistence getPersistence() {
446 return _persistence;
447 }
448
449 public void setPersistence(TasksReviewPersistence persistence) {
450 _persistence = persistence;
451 }
452
453 private static TasksReviewPersistence _persistence;
454 }