001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.service.ServiceContext;
022    
023    import com.liferay.portlet.messageboards.model.MBMessageFlag;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       MBMessageFlagPersistence
030     * @see       MBMessageFlagPersistenceImpl
031     * @generated
032     */
033    public class MBMessageFlagUtil {
034            /**
035             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
036             */
037            public static void clearCache() {
038                    getPersistence().clearCache();
039            }
040    
041            /**
042             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
043             */
044            public static void clearCache(MBMessageFlag mbMessageFlag) {
045                    getPersistence().clearCache(mbMessageFlag);
046            }
047    
048            /**
049             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
050             */
051            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052                    throws SystemException {
053                    return getPersistence().countWithDynamicQuery(dynamicQuery);
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
058             */
059            public static List<MBMessageFlag> findWithDynamicQuery(
060                    DynamicQuery dynamicQuery) throws SystemException {
061                    return getPersistence().findWithDynamicQuery(dynamicQuery);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
066             */
067            public static List<MBMessageFlag> findWithDynamicQuery(
068                    DynamicQuery dynamicQuery, int start, int end)
069                    throws SystemException {
070                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071            }
072    
073            /**
074             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
075             */
076            public static List<MBMessageFlag> findWithDynamicQuery(
077                    DynamicQuery dynamicQuery, int start, int end,
078                    OrderByComparator orderByComparator) throws SystemException {
079                    return getPersistence()
080                                       .findWithDynamicQuery(dynamicQuery, start, end,
081                            orderByComparator);
082            }
083    
084            /**
085             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
086             */
087            public static MBMessageFlag remove(MBMessageFlag mbMessageFlag)
088                    throws SystemException {
089                    return getPersistence().remove(mbMessageFlag);
090            }
091    
092            /**
093             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
094             */
095            public static MBMessageFlag update(MBMessageFlag mbMessageFlag,
096                    boolean merge) throws SystemException {
097                    return getPersistence().update(mbMessageFlag, merge);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
102             */
103            public static MBMessageFlag update(MBMessageFlag mbMessageFlag,
104                    boolean merge, ServiceContext serviceContext) throws SystemException {
105                    return getPersistence().update(mbMessageFlag, merge, serviceContext);
106            }
107    
108            public static void cacheResult(
109                    com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag) {
110                    getPersistence().cacheResult(mbMessageFlag);
111            }
112    
113            public static void cacheResult(
114                    java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> mbMessageFlags) {
115                    getPersistence().cacheResult(mbMessageFlags);
116            }
117    
118            public static com.liferay.portlet.messageboards.model.MBMessageFlag create(
119                    long messageFlagId) {
120                    return getPersistence().create(messageFlagId);
121            }
122    
123            public static com.liferay.portlet.messageboards.model.MBMessageFlag remove(
124                    long messageFlagId)
125                    throws com.liferay.portal.kernel.exception.SystemException,
126                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
127                    return getPersistence().remove(messageFlagId);
128            }
129    
130            public static com.liferay.portlet.messageboards.model.MBMessageFlag updateImpl(
131                    com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
132                    boolean merge)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return getPersistence().updateImpl(mbMessageFlag, merge);
135            }
136    
137            public static com.liferay.portlet.messageboards.model.MBMessageFlag findByPrimaryKey(
138                    long messageFlagId)
139                    throws com.liferay.portal.kernel.exception.SystemException,
140                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
141                    return getPersistence().findByPrimaryKey(messageFlagId);
142            }
143    
144            public static com.liferay.portlet.messageboards.model.MBMessageFlag fetchByPrimaryKey(
145                    long messageFlagId)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return getPersistence().fetchByPrimaryKey(messageFlagId);
148            }
149    
150            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
151                    long userId) throws com.liferay.portal.kernel.exception.SystemException {
152                    return getPersistence().findByUserId(userId);
153            }
154    
155            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
156                    long userId, int start, int end)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return getPersistence().findByUserId(userId, start, end);
159            }
160    
161            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
162                    long userId, int start, int end,
163                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return getPersistence()
166                                       .findByUserId(userId, start, end, orderByComparator);
167            }
168    
169            public static com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_First(
170                    long userId,
171                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172                    throws com.liferay.portal.kernel.exception.SystemException,
173                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
174                    return getPersistence().findByUserId_First(userId, orderByComparator);
175            }
176    
177            public static com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_Last(
178                    long userId,
179                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180                    throws com.liferay.portal.kernel.exception.SystemException,
181                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
182                    return getPersistence().findByUserId_Last(userId, orderByComparator);
183            }
184    
185            public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByUserId_PrevAndNext(
186                    long messageFlagId, long userId,
187                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188                    throws com.liferay.portal.kernel.exception.SystemException,
189                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
190                    return getPersistence()
191                                       .findByUserId_PrevAndNext(messageFlagId, userId,
192                            orderByComparator);
193            }
194    
195            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
196                    long threadId)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return getPersistence().findByThreadId(threadId);
199            }
200    
201            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
202                    long threadId, int start, int end)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return getPersistence().findByThreadId(threadId, start, end);
205            }
206    
207            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByThreadId(
208                    long threadId, int start, int end,
209                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return getPersistence()
212                                       .findByThreadId(threadId, start, end, orderByComparator);
213            }
214    
215            public static com.liferay.portlet.messageboards.model.MBMessageFlag findByThreadId_First(
216                    long threadId,
217                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
218                    throws com.liferay.portal.kernel.exception.SystemException,
219                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
220                    return getPersistence().findByThreadId_First(threadId, orderByComparator);
221            }
222    
223            public static com.liferay.portlet.messageboards.model.MBMessageFlag findByThreadId_Last(
224                    long threadId,
225                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226                    throws com.liferay.portal.kernel.exception.SystemException,
227                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
228                    return getPersistence().findByThreadId_Last(threadId, orderByComparator);
229            }
230    
231            public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByThreadId_PrevAndNext(
232                    long messageFlagId, long threadId,
233                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234                    throws com.liferay.portal.kernel.exception.SystemException,
235                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
236                    return getPersistence()
237                                       .findByThreadId_PrevAndNext(messageFlagId, threadId,
238                            orderByComparator);
239            }
240    
241            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
242                    long messageId)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return getPersistence().findByMessageId(messageId);
245            }
246    
247            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
248                    long messageId, int start, int end)
249                    throws com.liferay.portal.kernel.exception.SystemException {
250                    return getPersistence().findByMessageId(messageId, start, end);
251            }
252    
253            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
254                    long messageId, int start, int end,
255                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
256                    throws com.liferay.portal.kernel.exception.SystemException {
257                    return getPersistence()
258                                       .findByMessageId(messageId, start, end, orderByComparator);
259            }
260    
261            public static com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_First(
262                    long messageId,
263                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264                    throws com.liferay.portal.kernel.exception.SystemException,
265                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
266                    return getPersistence()
267                                       .findByMessageId_First(messageId, orderByComparator);
268            }
269    
270            public static com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_Last(
271                    long messageId,
272                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273                    throws com.liferay.portal.kernel.exception.SystemException,
274                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
275                    return getPersistence()
276                                       .findByMessageId_Last(messageId, orderByComparator);
277            }
278    
279            public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByMessageId_PrevAndNext(
280                    long messageFlagId, long messageId,
281                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
282                    throws com.liferay.portal.kernel.exception.SystemException,
283                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
284                    return getPersistence()
285                                       .findByMessageId_PrevAndNext(messageFlagId, messageId,
286                            orderByComparator);
287            }
288    
289            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
290                    long threadId, int flag)
291                    throws com.liferay.portal.kernel.exception.SystemException {
292                    return getPersistence().findByT_F(threadId, flag);
293            }
294    
295            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
296                    long threadId, int flag, int start, int end)
297                    throws com.liferay.portal.kernel.exception.SystemException {
298                    return getPersistence().findByT_F(threadId, flag, start, end);
299            }
300    
301            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByT_F(
302                    long threadId, int flag, int start, int end,
303                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
304                    throws com.liferay.portal.kernel.exception.SystemException {
305                    return getPersistence()
306                                       .findByT_F(threadId, flag, start, end, orderByComparator);
307            }
308    
309            public static com.liferay.portlet.messageboards.model.MBMessageFlag findByT_F_First(
310                    long threadId, int flag,
311                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
312                    throws com.liferay.portal.kernel.exception.SystemException,
313                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
314                    return getPersistence()
315                                       .findByT_F_First(threadId, flag, orderByComparator);
316            }
317    
318            public static com.liferay.portlet.messageboards.model.MBMessageFlag findByT_F_Last(
319                    long threadId, int flag,
320                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
321                    throws com.liferay.portal.kernel.exception.SystemException,
322                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
323                    return getPersistence().findByT_F_Last(threadId, flag, orderByComparator);
324            }
325    
326            public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByT_F_PrevAndNext(
327                    long messageFlagId, long threadId, int flag,
328                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
329                    throws com.liferay.portal.kernel.exception.SystemException,
330                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
331                    return getPersistence()
332                                       .findByT_F_PrevAndNext(messageFlagId, threadId, flag,
333                            orderByComparator);
334            }
335    
336            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
337                    long messageId, int flag)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return getPersistence().findByM_F(messageId, flag);
340            }
341    
342            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
343                    long messageId, int flag, int start, int end)
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    return getPersistence().findByM_F(messageId, flag, start, end);
346            }
347    
348            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByM_F(
349                    long messageId, int flag, int start, int end,
350                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
351                    throws com.liferay.portal.kernel.exception.SystemException {
352                    return getPersistence()
353                                       .findByM_F(messageId, flag, start, end, orderByComparator);
354            }
355    
356            public static com.liferay.portlet.messageboards.model.MBMessageFlag findByM_F_First(
357                    long messageId, int flag,
358                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
359                    throws com.liferay.portal.kernel.exception.SystemException,
360                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
361                    return getPersistence()
362                                       .findByM_F_First(messageId, flag, orderByComparator);
363            }
364    
365            public static com.liferay.portlet.messageboards.model.MBMessageFlag findByM_F_Last(
366                    long messageId, int flag,
367                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
368                    throws com.liferay.portal.kernel.exception.SystemException,
369                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
370                    return getPersistence()
371                                       .findByM_F_Last(messageId, flag, orderByComparator);
372            }
373    
374            public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByM_F_PrevAndNext(
375                    long messageFlagId, long messageId, int flag,
376                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
377                    throws com.liferay.portal.kernel.exception.SystemException,
378                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
379                    return getPersistence()
380                                       .findByM_F_PrevAndNext(messageFlagId, messageId, flag,
381                            orderByComparator);
382            }
383    
384            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
385                    long userId, long threadId, int flag)
386                    throws com.liferay.portal.kernel.exception.SystemException {
387                    return getPersistence().findByU_T_F(userId, threadId, flag);
388            }
389    
390            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
391                    long userId, long threadId, int flag, int start, int end)
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    return getPersistence().findByU_T_F(userId, threadId, flag, start, end);
394            }
395    
396            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByU_T_F(
397                    long userId, long threadId, int flag, int start, int end,
398                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
399                    throws com.liferay.portal.kernel.exception.SystemException {
400                    return getPersistence()
401                                       .findByU_T_F(userId, threadId, flag, start, end,
402                            orderByComparator);
403            }
404    
405            public static com.liferay.portlet.messageboards.model.MBMessageFlag findByU_T_F_First(
406                    long userId, long threadId, int flag,
407                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
408                    throws com.liferay.portal.kernel.exception.SystemException,
409                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
410                    return getPersistence()
411                                       .findByU_T_F_First(userId, threadId, flag, orderByComparator);
412            }
413    
414            public static com.liferay.portlet.messageboards.model.MBMessageFlag findByU_T_F_Last(
415                    long userId, long threadId, int flag,
416                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
417                    throws com.liferay.portal.kernel.exception.SystemException,
418                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
419                    return getPersistence()
420                                       .findByU_T_F_Last(userId, threadId, flag, orderByComparator);
421            }
422    
423            public static com.liferay.portlet.messageboards.model.MBMessageFlag[] findByU_T_F_PrevAndNext(
424                    long messageFlagId, long userId, long threadId, int flag,
425                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
426                    throws com.liferay.portal.kernel.exception.SystemException,
427                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
428                    return getPersistence()
429                                       .findByU_T_F_PrevAndNext(messageFlagId, userId, threadId,
430                            flag, orderByComparator);
431            }
432    
433            public static com.liferay.portlet.messageboards.model.MBMessageFlag findByU_M_F(
434                    long userId, long messageId, int flag)
435                    throws com.liferay.portal.kernel.exception.SystemException,
436                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
437                    return getPersistence().findByU_M_F(userId, messageId, flag);
438            }
439    
440            public static com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M_F(
441                    long userId, long messageId, int flag)
442                    throws com.liferay.portal.kernel.exception.SystemException {
443                    return getPersistence().fetchByU_M_F(userId, messageId, flag);
444            }
445    
446            public static com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M_F(
447                    long userId, long messageId, int flag, boolean retrieveFromCache)
448                    throws com.liferay.portal.kernel.exception.SystemException {
449                    return getPersistence()
450                                       .fetchByU_M_F(userId, messageId, flag, retrieveFromCache);
451            }
452    
453            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll()
454                    throws com.liferay.portal.kernel.exception.SystemException {
455                    return getPersistence().findAll();
456            }
457    
458            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
459                    int start, int end)
460                    throws com.liferay.portal.kernel.exception.SystemException {
461                    return getPersistence().findAll(start, end);
462            }
463    
464            public static java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
465                    int start, int end,
466                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
467                    throws com.liferay.portal.kernel.exception.SystemException {
468                    return getPersistence().findAll(start, end, orderByComparator);
469            }
470    
471            public static void removeByUserId(long userId)
472                    throws com.liferay.portal.kernel.exception.SystemException {
473                    getPersistence().removeByUserId(userId);
474            }
475    
476            public static void removeByThreadId(long threadId)
477                    throws com.liferay.portal.kernel.exception.SystemException {
478                    getPersistence().removeByThreadId(threadId);
479            }
480    
481            public static void removeByMessageId(long messageId)
482                    throws com.liferay.portal.kernel.exception.SystemException {
483                    getPersistence().removeByMessageId(messageId);
484            }
485    
486            public static void removeByT_F(long threadId, int flag)
487                    throws com.liferay.portal.kernel.exception.SystemException {
488                    getPersistence().removeByT_F(threadId, flag);
489            }
490    
491            public static void removeByM_F(long messageId, int flag)
492                    throws com.liferay.portal.kernel.exception.SystemException {
493                    getPersistence().removeByM_F(messageId, flag);
494            }
495    
496            public static void removeByU_T_F(long userId, long threadId, int flag)
497                    throws com.liferay.portal.kernel.exception.SystemException {
498                    getPersistence().removeByU_T_F(userId, threadId, flag);
499            }
500    
501            public static void removeByU_M_F(long userId, long messageId, int flag)
502                    throws com.liferay.portal.kernel.exception.SystemException,
503                            com.liferay.portlet.messageboards.NoSuchMessageFlagException {
504                    getPersistence().removeByU_M_F(userId, messageId, flag);
505            }
506    
507            public static void removeAll()
508                    throws com.liferay.portal.kernel.exception.SystemException {
509                    getPersistence().removeAll();
510            }
511    
512            public static int countByUserId(long userId)
513                    throws com.liferay.portal.kernel.exception.SystemException {
514                    return getPersistence().countByUserId(userId);
515            }
516    
517            public static int countByThreadId(long threadId)
518                    throws com.liferay.portal.kernel.exception.SystemException {
519                    return getPersistence().countByThreadId(threadId);
520            }
521    
522            public static int countByMessageId(long messageId)
523                    throws com.liferay.portal.kernel.exception.SystemException {
524                    return getPersistence().countByMessageId(messageId);
525            }
526    
527            public static int countByT_F(long threadId, int flag)
528                    throws com.liferay.portal.kernel.exception.SystemException {
529                    return getPersistence().countByT_F(threadId, flag);
530            }
531    
532            public static int countByM_F(long messageId, int flag)
533                    throws com.liferay.portal.kernel.exception.SystemException {
534                    return getPersistence().countByM_F(messageId, flag);
535            }
536    
537            public static int countByU_T_F(long userId, long threadId, int flag)
538                    throws com.liferay.portal.kernel.exception.SystemException {
539                    return getPersistence().countByU_T_F(userId, threadId, flag);
540            }
541    
542            public static int countByU_M_F(long userId, long messageId, int flag)
543                    throws com.liferay.portal.kernel.exception.SystemException {
544                    return getPersistence().countByU_M_F(userId, messageId, flag);
545            }
546    
547            public static int countAll()
548                    throws com.liferay.portal.kernel.exception.SystemException {
549                    return getPersistence().countAll();
550            }
551    
552            public static MBMessageFlagPersistence getPersistence() {
553                    if (_persistence == null) {
554                            _persistence = (MBMessageFlagPersistence)PortalBeanLocatorUtil.locate(MBMessageFlagPersistence.class.getName());
555                    }
556    
557                    return _persistence;
558            }
559    
560            public void setPersistence(MBMessageFlagPersistence persistence) {
561                    _persistence = persistence;
562            }
563    
564            private static MBMessageFlagPersistence _persistence;
565    }