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