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