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