1
14
15 package com.liferay.portlet.messageboards.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.messageboards.model.MBThread;
22
23 import java.util.List;
24
25
38 public class MBThreadUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(MBThread mbThread) {
50 getPersistence().clearCache(mbThread);
51 }
52
53
56 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<MBThread> findWithDynamicQuery(DynamicQuery dynamicQuery)
65 throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<MBThread> findWithDynamicQuery(
73 DynamicQuery dynamicQuery, int start, int end)
74 throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static MBThread remove(MBThread mbThread) throws SystemException {
82 return getPersistence().remove(mbThread);
83 }
84
85
88 public static MBThread update(MBThread mbThread, boolean merge)
89 throws SystemException {
90 return getPersistence().update(mbThread, merge);
91 }
92
93 public static void cacheResult(
94 com.liferay.portlet.messageboards.model.MBThread mbThread) {
95 getPersistence().cacheResult(mbThread);
96 }
97
98 public static void cacheResult(
99 java.util.List<com.liferay.portlet.messageboards.model.MBThread> mbThreads) {
100 getPersistence().cacheResult(mbThreads);
101 }
102
103 public static com.liferay.portlet.messageboards.model.MBThread create(
104 long threadId) {
105 return getPersistence().create(threadId);
106 }
107
108 public static com.liferay.portlet.messageboards.model.MBThread remove(
109 long threadId)
110 throws com.liferay.portal.kernel.exception.SystemException,
111 com.liferay.portlet.messageboards.NoSuchThreadException {
112 return getPersistence().remove(threadId);
113 }
114
115 public static com.liferay.portlet.messageboards.model.MBThread updateImpl(
116 com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
117 throws com.liferay.portal.kernel.exception.SystemException {
118 return getPersistence().updateImpl(mbThread, merge);
119 }
120
121 public static com.liferay.portlet.messageboards.model.MBThread findByPrimaryKey(
122 long threadId)
123 throws com.liferay.portal.kernel.exception.SystemException,
124 com.liferay.portlet.messageboards.NoSuchThreadException {
125 return getPersistence().findByPrimaryKey(threadId);
126 }
127
128 public static com.liferay.portlet.messageboards.model.MBThread fetchByPrimaryKey(
129 long threadId)
130 throws com.liferay.portal.kernel.exception.SystemException {
131 return getPersistence().fetchByPrimaryKey(threadId);
132 }
133
134 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
135 long groupId)
136 throws com.liferay.portal.kernel.exception.SystemException {
137 return getPersistence().findByGroupId(groupId);
138 }
139
140 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
141 long groupId, int start, int end)
142 throws com.liferay.portal.kernel.exception.SystemException {
143 return getPersistence().findByGroupId(groupId, start, end);
144 }
145
146 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
147 long groupId, int start, int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getPersistence()
151 .findByGroupId(groupId, start, end, orderByComparator);
152 }
153
154 public static com.liferay.portlet.messageboards.model.MBThread findByGroupId_First(
155 long groupId,
156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157 throws com.liferay.portal.kernel.exception.SystemException,
158 com.liferay.portlet.messageboards.NoSuchThreadException {
159 return getPersistence().findByGroupId_First(groupId, orderByComparator);
160 }
161
162 public static com.liferay.portlet.messageboards.model.MBThread findByGroupId_Last(
163 long groupId,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.kernel.exception.SystemException,
166 com.liferay.portlet.messageboards.NoSuchThreadException {
167 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
168 }
169
170 public static com.liferay.portlet.messageboards.model.MBThread[] findByGroupId_PrevAndNext(
171 long threadId, long groupId,
172 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173 throws com.liferay.portal.kernel.exception.SystemException,
174 com.liferay.portlet.messageboards.NoSuchThreadException {
175 return getPersistence()
176 .findByGroupId_PrevAndNext(threadId, groupId,
177 orderByComparator);
178 }
179
180 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
181 long groupId, long categoryId)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getPersistence().findByG_C(groupId, categoryId);
184 }
185
186 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
187 long groupId, long categoryId, int start, int end)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getPersistence().findByG_C(groupId, categoryId, start, end);
190 }
191
192 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
193 long groupId, long categoryId, int start, int end,
194 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
195 throws com.liferay.portal.kernel.exception.SystemException {
196 return getPersistence()
197 .findByG_C(groupId, categoryId, start, end, orderByComparator);
198 }
199
200 public static com.liferay.portlet.messageboards.model.MBThread findByG_C_First(
201 long groupId, long categoryId,
202 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203 throws com.liferay.portal.kernel.exception.SystemException,
204 com.liferay.portlet.messageboards.NoSuchThreadException {
205 return getPersistence()
206 .findByG_C_First(groupId, categoryId, orderByComparator);
207 }
208
209 public static com.liferay.portlet.messageboards.model.MBThread findByG_C_Last(
210 long groupId, long categoryId,
211 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
212 throws com.liferay.portal.kernel.exception.SystemException,
213 com.liferay.portlet.messageboards.NoSuchThreadException {
214 return getPersistence()
215 .findByG_C_Last(groupId, categoryId, orderByComparator);
216 }
217
218 public static com.liferay.portlet.messageboards.model.MBThread[] findByG_C_PrevAndNext(
219 long threadId, long groupId, long categoryId,
220 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
221 throws com.liferay.portal.kernel.exception.SystemException,
222 com.liferay.portlet.messageboards.NoSuchThreadException {
223 return getPersistence()
224 .findByG_C_PrevAndNext(threadId, groupId, categoryId,
225 orderByComparator);
226 }
227
228 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_S(
229 long groupId, int status)
230 throws com.liferay.portal.kernel.exception.SystemException {
231 return getPersistence().findByG_S(groupId, status);
232 }
233
234 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_S(
235 long groupId, int status, int start, int end)
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getPersistence().findByG_S(groupId, status, start, end);
238 }
239
240 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_S(
241 long groupId, int status, int start, int end,
242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243 throws com.liferay.portal.kernel.exception.SystemException {
244 return getPersistence()
245 .findByG_S(groupId, status, start, end, orderByComparator);
246 }
247
248 public static com.liferay.portlet.messageboards.model.MBThread findByG_S_First(
249 long groupId, int status,
250 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
251 throws com.liferay.portal.kernel.exception.SystemException,
252 com.liferay.portlet.messageboards.NoSuchThreadException {
253 return getPersistence()
254 .findByG_S_First(groupId, status, orderByComparator);
255 }
256
257 public static com.liferay.portlet.messageboards.model.MBThread findByG_S_Last(
258 long groupId, int status,
259 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
260 throws com.liferay.portal.kernel.exception.SystemException,
261 com.liferay.portlet.messageboards.NoSuchThreadException {
262 return getPersistence()
263 .findByG_S_Last(groupId, status, orderByComparator);
264 }
265
266 public static com.liferay.portlet.messageboards.model.MBThread[] findByG_S_PrevAndNext(
267 long threadId, long groupId, int status,
268 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
269 throws com.liferay.portal.kernel.exception.SystemException,
270 com.liferay.portlet.messageboards.NoSuchThreadException {
271 return getPersistence()
272 .findByG_S_PrevAndNext(threadId, groupId, status,
273 orderByComparator);
274 }
275
276 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
277 long categoryId, double priority)
278 throws com.liferay.portal.kernel.exception.SystemException {
279 return getPersistence().findByC_P(categoryId, priority);
280 }
281
282 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
283 long categoryId, double priority, int start, int end)
284 throws com.liferay.portal.kernel.exception.SystemException {
285 return getPersistence().findByC_P(categoryId, priority, start, end);
286 }
287
288 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
289 long categoryId, double priority, int start, int end,
290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291 throws com.liferay.portal.kernel.exception.SystemException {
292 return getPersistence()
293 .findByC_P(categoryId, priority, start, end,
294 orderByComparator);
295 }
296
297 public static com.liferay.portlet.messageboards.model.MBThread findByC_P_First(
298 long categoryId, double priority,
299 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
300 throws com.liferay.portal.kernel.exception.SystemException,
301 com.liferay.portlet.messageboards.NoSuchThreadException {
302 return getPersistence()
303 .findByC_P_First(categoryId, priority, orderByComparator);
304 }
305
306 public static com.liferay.portlet.messageboards.model.MBThread findByC_P_Last(
307 long categoryId, double priority,
308 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
309 throws com.liferay.portal.kernel.exception.SystemException,
310 com.liferay.portlet.messageboards.NoSuchThreadException {
311 return getPersistence()
312 .findByC_P_Last(categoryId, priority, orderByComparator);
313 }
314
315 public static com.liferay.portlet.messageboards.model.MBThread[] findByC_P_PrevAndNext(
316 long threadId, long categoryId, double priority,
317 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
318 throws com.liferay.portal.kernel.exception.SystemException,
319 com.liferay.portlet.messageboards.NoSuchThreadException {
320 return getPersistence()
321 .findByC_P_PrevAndNext(threadId, categoryId, priority,
322 orderByComparator);
323 }
324
325 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_L(
326 long groupId, long categoryId, java.util.Date lastPostDate)
327 throws com.liferay.portal.kernel.exception.SystemException {
328 return getPersistence().findByG_C_L(groupId, categoryId, lastPostDate);
329 }
330
331 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_L(
332 long groupId, long categoryId, java.util.Date lastPostDate, int start,
333 int end) throws com.liferay.portal.kernel.exception.SystemException {
334 return getPersistence()
335 .findByG_C_L(groupId, categoryId, lastPostDate, start, end);
336 }
337
338 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_L(
339 long groupId, long categoryId, java.util.Date lastPostDate, int start,
340 int end,
341 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
342 throws com.liferay.portal.kernel.exception.SystemException {
343 return getPersistence()
344 .findByG_C_L(groupId, categoryId, lastPostDate, start, end,
345 orderByComparator);
346 }
347
348 public static com.liferay.portlet.messageboards.model.MBThread findByG_C_L_First(
349 long groupId, long categoryId, java.util.Date lastPostDate,
350 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
351 throws com.liferay.portal.kernel.exception.SystemException,
352 com.liferay.portlet.messageboards.NoSuchThreadException {
353 return getPersistence()
354 .findByG_C_L_First(groupId, categoryId, lastPostDate,
355 orderByComparator);
356 }
357
358 public static com.liferay.portlet.messageboards.model.MBThread findByG_C_L_Last(
359 long groupId, long categoryId, java.util.Date lastPostDate,
360 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
361 throws com.liferay.portal.kernel.exception.SystemException,
362 com.liferay.portlet.messageboards.NoSuchThreadException {
363 return getPersistence()
364 .findByG_C_L_Last(groupId, categoryId, lastPostDate,
365 orderByComparator);
366 }
367
368 public static com.liferay.portlet.messageboards.model.MBThread[] findByG_C_L_PrevAndNext(
369 long threadId, long groupId, long categoryId,
370 java.util.Date lastPostDate,
371 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
372 throws com.liferay.portal.kernel.exception.SystemException,
373 com.liferay.portlet.messageboards.NoSuchThreadException {
374 return getPersistence()
375 .findByG_C_L_PrevAndNext(threadId, groupId, categoryId,
376 lastPostDate, orderByComparator);
377 }
378
379 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
380 long groupId, long categoryId, int status)
381 throws com.liferay.portal.kernel.exception.SystemException {
382 return getPersistence().findByG_C_S(groupId, categoryId, status);
383 }
384
385 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
386 long groupId, long categoryId, int status, int start, int end)
387 throws com.liferay.portal.kernel.exception.SystemException {
388 return getPersistence()
389 .findByG_C_S(groupId, categoryId, status, start, end);
390 }
391
392 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
393 long groupId, long categoryId, int status, int start, int end,
394 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
395 throws com.liferay.portal.kernel.exception.SystemException {
396 return getPersistence()
397 .findByG_C_S(groupId, categoryId, status, start, end,
398 orderByComparator);
399 }
400
401 public static com.liferay.portlet.messageboards.model.MBThread findByG_C_S_First(
402 long groupId, long categoryId, int status,
403 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
404 throws com.liferay.portal.kernel.exception.SystemException,
405 com.liferay.portlet.messageboards.NoSuchThreadException {
406 return getPersistence()
407 .findByG_C_S_First(groupId, categoryId, status,
408 orderByComparator);
409 }
410
411 public static com.liferay.portlet.messageboards.model.MBThread findByG_C_S_Last(
412 long groupId, long categoryId, int status,
413 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
414 throws com.liferay.portal.kernel.exception.SystemException,
415 com.liferay.portlet.messageboards.NoSuchThreadException {
416 return getPersistence()
417 .findByG_C_S_Last(groupId, categoryId, status,
418 orderByComparator);
419 }
420
421 public static com.liferay.portlet.messageboards.model.MBThread[] findByG_C_S_PrevAndNext(
422 long threadId, long groupId, long categoryId, int status,
423 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
424 throws com.liferay.portal.kernel.exception.SystemException,
425 com.liferay.portlet.messageboards.NoSuchThreadException {
426 return getPersistence()
427 .findByG_C_S_PrevAndNext(threadId, groupId, categoryId,
428 status, orderByComparator);
429 }
430
431 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll()
432 throws com.liferay.portal.kernel.exception.SystemException {
433 return getPersistence().findAll();
434 }
435
436 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
437 int start, int end)
438 throws com.liferay.portal.kernel.exception.SystemException {
439 return getPersistence().findAll(start, end);
440 }
441
442 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
443 int start, int end,
444 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
445 throws com.liferay.portal.kernel.exception.SystemException {
446 return getPersistence().findAll(start, end, orderByComparator);
447 }
448
449 public static void removeByGroupId(long groupId)
450 throws com.liferay.portal.kernel.exception.SystemException {
451 getPersistence().removeByGroupId(groupId);
452 }
453
454 public static void removeByG_C(long groupId, long categoryId)
455 throws com.liferay.portal.kernel.exception.SystemException {
456 getPersistence().removeByG_C(groupId, categoryId);
457 }
458
459 public static void removeByG_S(long groupId, int status)
460 throws com.liferay.portal.kernel.exception.SystemException {
461 getPersistence().removeByG_S(groupId, status);
462 }
463
464 public static void removeByC_P(long categoryId, double priority)
465 throws com.liferay.portal.kernel.exception.SystemException {
466 getPersistence().removeByC_P(categoryId, priority);
467 }
468
469 public static void removeByG_C_L(long groupId, long categoryId,
470 java.util.Date lastPostDate)
471 throws com.liferay.portal.kernel.exception.SystemException {
472 getPersistence().removeByG_C_L(groupId, categoryId, lastPostDate);
473 }
474
475 public static void removeByG_C_S(long groupId, long categoryId, int status)
476 throws com.liferay.portal.kernel.exception.SystemException {
477 getPersistence().removeByG_C_S(groupId, categoryId, status);
478 }
479
480 public static void removeAll()
481 throws com.liferay.portal.kernel.exception.SystemException {
482 getPersistence().removeAll();
483 }
484
485 public static int countByGroupId(long groupId)
486 throws com.liferay.portal.kernel.exception.SystemException {
487 return getPersistence().countByGroupId(groupId);
488 }
489
490 public static int countByG_C(long groupId, long categoryId)
491 throws com.liferay.portal.kernel.exception.SystemException {
492 return getPersistence().countByG_C(groupId, categoryId);
493 }
494
495 public static int countByG_S(long groupId, int status)
496 throws com.liferay.portal.kernel.exception.SystemException {
497 return getPersistence().countByG_S(groupId, status);
498 }
499
500 public static int countByC_P(long categoryId, double priority)
501 throws com.liferay.portal.kernel.exception.SystemException {
502 return getPersistence().countByC_P(categoryId, priority);
503 }
504
505 public static int countByG_C_L(long groupId, long categoryId,
506 java.util.Date lastPostDate)
507 throws com.liferay.portal.kernel.exception.SystemException {
508 return getPersistence().countByG_C_L(groupId, categoryId, lastPostDate);
509 }
510
511 public static int countByG_C_S(long groupId, long categoryId, int status)
512 throws com.liferay.portal.kernel.exception.SystemException {
513 return getPersistence().countByG_C_S(groupId, categoryId, status);
514 }
515
516 public static int countAll()
517 throws com.liferay.portal.kernel.exception.SystemException {
518 return getPersistence().countAll();
519 }
520
521 public static MBThreadPersistence getPersistence() {
522 if (_persistence == null) {
523 _persistence = (MBThreadPersistence)PortalBeanLocatorUtil.locate(MBThreadPersistence.class.getName());
524 }
525
526 return _persistence;
527 }
528
529 public void setPersistence(MBThreadPersistence persistence) {
530 _persistence = persistence;
531 }
532
533 private static MBThreadPersistence _persistence;
534 }