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