1
14
15 package com.liferay.portlet.messageboards.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 import com.liferay.portal.kernel.util.ReferenceRegistry;
21
22 import com.liferay.portlet.messageboards.model.MBMessageFlag;
23
24 import java.util.List;
25
26
39 public class MBMessageFlagUtil {
40
43 public static void clearCache() {
44 getPersistence().clearCache();
45 }
46
47
50 public static void clearCache(MBMessageFlag mbMessageFlag) {
51 getPersistence().clearCache(mbMessageFlag);
52 }
53
54
57 public int countWithDynamicQuery(DynamicQuery dynamicQuery)
58 throws SystemException {
59 return getPersistence().countWithDynamicQuery(dynamicQuery);
60 }
61
62
65 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
66 throws SystemException {
67 return getPersistence().findWithDynamicQuery(dynamicQuery);
68 }
69
70
73 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
74 int start, int end) throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static MBMessageFlag remove(MBMessageFlag mbMessageFlag)
82 throws SystemException {
83 return getPersistence().remove(mbMessageFlag);
84 }
85
86
89 public static MBMessageFlag update(MBMessageFlag mbMessageFlag,
90 boolean merge) throws SystemException {
91 return getPersistence().update(mbMessageFlag, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag) {
96 getPersistence().cacheResult(mbMessageFlag);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> mbMessageFlags) {
101 getPersistence().cacheResult(mbMessageFlags);
102 }
103
104 public static com.liferay.portlet.messageboards.model.MBMessageFlag create(
105 long messageFlagId) {
106 return getPersistence().create(messageFlagId);
107 }
108
109 public static com.liferay.portlet.messageboards.model.MBMessageFlag remove(
110 long messageFlagId)
111 throws com.liferay.portal.SystemException,
112 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
113 return getPersistence().remove(messageFlagId);
114 }
115
116
119 public static com.liferay.portlet.messageboards.model.MBMessageFlag update(
120 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().update(mbMessageFlag);
123 }
124
125 public static com.liferay.portlet.messageboards.model.MBMessageFlag updateImpl(
126 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
127 boolean merge) throws com.liferay.portal.SystemException {
128 return getPersistence().updateImpl(mbMessageFlag, merge);
129 }
130
131 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByPrimaryKey(
132 long messageFlagId)
133 throws com.liferay.portal.SystemException,
134 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
135 return getPersistence().findByPrimaryKey(messageFlagId);
136 }
137
138 public static com.liferay.portlet.messageboards.model.MBMessageFlag fetchByPrimaryKey(
139 long messageFlagId) throws com.liferay.portal.SystemException {
140 return getPersistence().fetchByPrimaryKey(messageFlagId);
141 }
142
143 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
144 long userId) throws com.liferay.portal.SystemException {
145 return getPersistence().findByUserId(userId);
146 }
147
148 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
149 long userId, int start, int end)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findByUserId(userId, start, end);
152 }
153
154 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
155 long userId, int start, int end,
156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157 throws com.liferay.portal.SystemException {
158 return getPersistence()
159 .findByUserId(userId, start, end, orderByComparator);
160 }
161
162 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_First(
163 long userId,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.SystemException,
166 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
167 return getPersistence().findByUserId_First(userId, orderByComparator);
168 }
169
170 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_Last(
171 long userId,
172 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173 throws com.liferay.portal.SystemException,
174 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
175 return getPersistence().findByUserId_Last(userId, orderByComparator);
176 }
177
178 public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByUserId_PrevAndNext(
179 long messageFlagId, long userId,
180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181 throws com.liferay.portal.SystemException,
182 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
183 return getPersistence()
184 .findByUserId_PrevAndNext(messageFlagId, userId,
185 orderByComparator);
186 }
187
188 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
189 long threadId) throws com.liferay.portal.SystemException {
190 return getPersistence().findByThreadId(threadId);
191 }
192
193 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
194 long threadId, int start, int end)
195 throws com.liferay.portal.SystemException {
196 return getPersistence().findByThreadId(threadId, start, end);
197 }
198
199 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
200 long threadId, int start, int end,
201 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202 throws com.liferay.portal.SystemException {
203 return getPersistence()
204 .findByThreadId(threadId, start, end, orderByComparator);
205 }
206
207 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByThreadId_First(
208 long threadId,
209 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210 throws com.liferay.portal.SystemException,
211 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
212 return getPersistence().findByThreadId_First(threadId, orderByComparator);
213 }
214
215 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByThreadId_Last(
216 long threadId,
217 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
218 throws com.liferay.portal.SystemException,
219 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
220 return getPersistence().findByThreadId_Last(threadId, orderByComparator);
221 }
222
223 public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByThreadId_PrevAndNext(
224 long messageFlagId, long threadId,
225 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226 throws com.liferay.portal.SystemException,
227 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
228 return getPersistence()
229 .findByThreadId_PrevAndNext(messageFlagId, threadId,
230 orderByComparator);
231 }
232
233 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
234 long messageId) throws com.liferay.portal.SystemException {
235 return getPersistence().findByMessageId(messageId);
236 }
237
238 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
239 long messageId, int start, int end)
240 throws com.liferay.portal.SystemException {
241 return getPersistence().findByMessageId(messageId, start, end);
242 }
243
244 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
245 long messageId, int start, int end,
246 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
247 throws com.liferay.portal.SystemException {
248 return getPersistence()
249 .findByMessageId(messageId, start, end, orderByComparator);
250 }
251
252 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_First(
253 long messageId,
254 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
255 throws com.liferay.portal.SystemException,
256 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
257 return getPersistence()
258 .findByMessageId_First(messageId, orderByComparator);
259 }
260
261 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_Last(
262 long messageId,
263 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264 throws com.liferay.portal.SystemException,
265 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
266 return getPersistence()
267 .findByMessageId_Last(messageId, orderByComparator);
268 }
269
270 public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByMessageId_PrevAndNext(
271 long messageFlagId, long messageId,
272 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273 throws com.liferay.portal.SystemException,
274 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
275 return getPersistence()
276 .findByMessageId_PrevAndNext(messageFlagId, messageId,
277 orderByComparator);
278 }
279
280 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
281 long threadId, int flag) throws com.liferay.portal.SystemException {
282 return getPersistence().findByT_F(threadId, flag);
283 }
284
285 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
286 long threadId, int flag, int start, int end)
287 throws com.liferay.portal.SystemException {
288 return getPersistence().findByT_F(threadId, flag, start, end);
289 }
290
291 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
292 long threadId, int flag, int start, int end,
293 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
294 throws com.liferay.portal.SystemException {
295 return getPersistence()
296 .findByT_F(threadId, flag, start, end, orderByComparator);
297 }
298
299 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByT_F_First(
300 long threadId, int flag,
301 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
302 throws com.liferay.portal.SystemException,
303 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
304 return getPersistence()
305 .findByT_F_First(threadId, flag, orderByComparator);
306 }
307
308 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByT_F_Last(
309 long threadId, int flag,
310 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311 throws com.liferay.portal.SystemException,
312 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
313 return getPersistence().findByT_F_Last(threadId, flag, orderByComparator);
314 }
315
316 public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByT_F_PrevAndNext(
317 long messageFlagId, long threadId, int flag,
318 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
319 throws com.liferay.portal.SystemException,
320 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
321 return getPersistence()
322 .findByT_F_PrevAndNext(messageFlagId, threadId, flag,
323 orderByComparator);
324 }
325
326 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
327 long messageId, int flag) throws com.liferay.portal.SystemException {
328 return getPersistence().findByM_F(messageId, flag);
329 }
330
331 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
332 long messageId, int flag, int start, int end)
333 throws com.liferay.portal.SystemException {
334 return getPersistence().findByM_F(messageId, flag, start, end);
335 }
336
337 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
338 long messageId, int flag, int start, int end,
339 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
340 throws com.liferay.portal.SystemException {
341 return getPersistence()
342 .findByM_F(messageId, flag, start, end, orderByComparator);
343 }
344
345 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByM_F_First(
346 long messageId, int flag,
347 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
348 throws com.liferay.portal.SystemException,
349 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
350 return getPersistence()
351 .findByM_F_First(messageId, flag, orderByComparator);
352 }
353
354 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByM_F_Last(
355 long messageId, int flag,
356 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
357 throws com.liferay.portal.SystemException,
358 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
359 return getPersistence()
360 .findByM_F_Last(messageId, flag, orderByComparator);
361 }
362
363 public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByM_F_PrevAndNext(
364 long messageFlagId, long messageId, int flag,
365 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
366 throws com.liferay.portal.SystemException,
367 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
368 return getPersistence()
369 .findByM_F_PrevAndNext(messageFlagId, messageId, flag,
370 orderByComparator);
371 }
372
373 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
374 long userId, long threadId, int flag)
375 throws com.liferay.portal.SystemException {
376 return getPersistence().findByU_T_F(userId, threadId, flag);
377 }
378
379 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
380 long userId, long threadId, int flag, int start, int end)
381 throws com.liferay.portal.SystemException {
382 return getPersistence().findByU_T_F(userId, threadId, flag, start, end);
383 }
384
385 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
386 long userId, long threadId, int flag, int start, int end,
387 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
388 throws com.liferay.portal.SystemException {
389 return getPersistence()
390 .findByU_T_F(userId, threadId, flag, start, end,
391 orderByComparator);
392 }
393
394 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByU_T_F_First(
395 long userId, long threadId, int flag,
396 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
397 throws com.liferay.portal.SystemException,
398 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
399 return getPersistence()
400 .findByU_T_F_First(userId, threadId, flag, orderByComparator);
401 }
402
403 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByU_T_F_Last(
404 long userId, long threadId, int flag,
405 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
406 throws com.liferay.portal.SystemException,
407 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
408 return getPersistence()
409 .findByU_T_F_Last(userId, threadId, flag, orderByComparator);
410 }
411
412 public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByU_T_F_PrevAndNext(
413 long messageFlagId, long userId, long threadId, int flag,
414 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
415 throws com.liferay.portal.SystemException,
416 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
417 return getPersistence()
418 .findByU_T_F_PrevAndNext(messageFlagId, userId, threadId,
419 flag, orderByComparator);
420 }
421
422 public static com.liferay.portlet.messageboards.model.MBMessageFlag findByU_M_F(
423 long userId, long messageId, int flag)
424 throws com.liferay.portal.SystemException,
425 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
426 return getPersistence().findByU_M_F(userId, messageId, flag);
427 }
428
429 public static com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M_F(
430 long userId, long messageId, int flag)
431 throws com.liferay.portal.SystemException {
432 return getPersistence().fetchByU_M_F(userId, messageId, flag);
433 }
434
435 public static com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M_F(
436 long userId, long messageId, int flag, boolean retrieveFromCache)
437 throws com.liferay.portal.SystemException {
438 return getPersistence()
439 .fetchByU_M_F(userId, messageId, flag, retrieveFromCache);
440 }
441
442 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll()
443 throws com.liferay.portal.SystemException {
444 return getPersistence().findAll();
445 }
446
447 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
448 int start, int end) throws com.liferay.portal.SystemException {
449 return getPersistence().findAll(start, end);
450 }
451
452 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
453 int start, int end,
454 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
455 throws com.liferay.portal.SystemException {
456 return getPersistence().findAll(start, end, orderByComparator);
457 }
458
459 public static void removeByUserId(long userId)
460 throws com.liferay.portal.SystemException {
461 getPersistence().removeByUserId(userId);
462 }
463
464 public static void removeByThreadId(long threadId)
465 throws com.liferay.portal.SystemException {
466 getPersistence().removeByThreadId(threadId);
467 }
468
469 public static void removeByMessageId(long messageId)
470 throws com.liferay.portal.SystemException {
471 getPersistence().removeByMessageId(messageId);
472 }
473
474 public static void removeByT_F(long threadId, int flag)
475 throws com.liferay.portal.SystemException {
476 getPersistence().removeByT_F(threadId, flag);
477 }
478
479 public static void removeByM_F(long messageId, int flag)
480 throws com.liferay.portal.SystemException {
481 getPersistence().removeByM_F(messageId, flag);
482 }
483
484 public static void removeByU_T_F(long userId, long threadId, int flag)
485 throws com.liferay.portal.SystemException {
486 getPersistence().removeByU_T_F(userId, threadId, flag);
487 }
488
489 public static void removeByU_M_F(long userId, long messageId, int flag)
490 throws com.liferay.portal.SystemException,
491 com.liferay.portlet.messageboards.NoSuchMessageFlagException {
492 getPersistence().removeByU_M_F(userId, messageId, flag);
493 }
494
495 public static void removeAll() throws com.liferay.portal.SystemException {
496 getPersistence().removeAll();
497 }
498
499 public static int countByUserId(long userId)
500 throws com.liferay.portal.SystemException {
501 return getPersistence().countByUserId(userId);
502 }
503
504 public static int countByThreadId(long threadId)
505 throws com.liferay.portal.SystemException {
506 return getPersistence().countByThreadId(threadId);
507 }
508
509 public static int countByMessageId(long messageId)
510 throws com.liferay.portal.SystemException {
511 return getPersistence().countByMessageId(messageId);
512 }
513
514 public static int countByT_F(long threadId, int flag)
515 throws com.liferay.portal.SystemException {
516 return getPersistence().countByT_F(threadId, flag);
517 }
518
519 public static int countByM_F(long messageId, int flag)
520 throws com.liferay.portal.SystemException {
521 return getPersistence().countByM_F(messageId, flag);
522 }
523
524 public static int countByU_T_F(long userId, long threadId, int flag)
525 throws com.liferay.portal.SystemException {
526 return getPersistence().countByU_T_F(userId, threadId, flag);
527 }
528
529 public static int countByU_M_F(long userId, long messageId, int flag)
530 throws com.liferay.portal.SystemException {
531 return getPersistence().countByU_M_F(userId, messageId, flag);
532 }
533
534 public static int countAll() throws com.liferay.portal.SystemException {
535 return getPersistence().countAll();
536 }
537
538 public static MBMessageFlagPersistence getPersistence() {
539 if (_persistence == null) {
540 _persistence = (MBMessageFlagPersistence)PortalBeanLocatorUtil.locate(MBMessageFlagPersistence.class.getName());
541
542 ReferenceRegistry.registerReference(MBMessageFlagUtil.class,
543 "_persistence");
544 }
545
546 return _persistence;
547 }
548
549 public void setPersistence(MBMessageFlagPersistence persistence) {
550 _persistence = persistence;
551
552 ReferenceRegistry.registerReference(MBMessageFlagUtil.class,
553 "_persistence");
554 }
555
556 private static MBMessageFlagPersistence _persistence;
557 }