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