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.MBDiscussion;
024    
025    import java.util.List;
026    
027    /**
028     * The persistence utility for the message boards discussion service.
029     *
030     * <p>
031     * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this class.
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see MBDiscussionPersistence
036     * @see MBDiscussionPersistenceImpl
037     * @generated
038     */
039    public class MBDiscussionUtil {
040            /**
041             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
042             */
043            public static void clearCache() {
044                    getPersistence().clearCache();
045            }
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
049             */
050            public static void clearCache(MBDiscussion mbDiscussion) {
051                    getPersistence().clearCache(mbDiscussion);
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
056             */
057            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
058                    throws SystemException {
059                    return getPersistence().countWithDynamicQuery(dynamicQuery);
060            }
061    
062            /**
063             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
064             */
065            public static List<MBDiscussion> findWithDynamicQuery(
066                    DynamicQuery dynamicQuery) throws SystemException {
067                    return getPersistence().findWithDynamicQuery(dynamicQuery);
068            }
069    
070            /**
071             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
072             */
073            public static List<MBDiscussion> findWithDynamicQuery(
074                    DynamicQuery dynamicQuery, int start, int end)
075                    throws SystemException {
076                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
077            }
078    
079            /**
080             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
081             */
082            public static List<MBDiscussion> findWithDynamicQuery(
083                    DynamicQuery dynamicQuery, int start, int end,
084                    OrderByComparator orderByComparator) throws SystemException {
085                    return getPersistence()
086                                       .findWithDynamicQuery(dynamicQuery, start, end,
087                            orderByComparator);
088            }
089    
090            /**
091             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
092             */
093            public static MBDiscussion remove(MBDiscussion mbDiscussion)
094                    throws SystemException {
095                    return getPersistence().remove(mbDiscussion);
096            }
097    
098            /**
099             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
100             */
101            public static MBDiscussion update(MBDiscussion mbDiscussion, boolean merge)
102                    throws SystemException {
103                    return getPersistence().update(mbDiscussion, merge);
104            }
105    
106            /**
107             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
108             */
109            public static MBDiscussion update(MBDiscussion mbDiscussion, boolean merge,
110                    ServiceContext serviceContext) throws SystemException {
111                    return getPersistence().update(mbDiscussion, merge, serviceContext);
112            }
113    
114            /**
115            * Caches the message boards discussion in the entity cache if it is enabled.
116            *
117            * @param mbDiscussion the message boards discussion to cache
118            */
119            public static void cacheResult(
120                    com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion) {
121                    getPersistence().cacheResult(mbDiscussion);
122            }
123    
124            /**
125            * Caches the message boards discussions in the entity cache if it is enabled.
126            *
127            * @param mbDiscussions the message boards discussions to cache
128            */
129            public static void cacheResult(
130                    java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> mbDiscussions) {
131                    getPersistence().cacheResult(mbDiscussions);
132            }
133    
134            /**
135            * Creates a new message boards discussion with the primary key.
136            *
137            * @param discussionId the primary key for the new message boards discussion
138            * @return the new message boards discussion
139            */
140            public static com.liferay.portlet.messageboards.model.MBDiscussion create(
141                    long discussionId) {
142                    return getPersistence().create(discussionId);
143            }
144    
145            /**
146            * Removes the message boards discussion with the primary key from the database. Also notifies the appropriate model listeners.
147            *
148            * @param discussionId the primary key of the message boards discussion to remove
149            * @return the message boards discussion that was removed
150            * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a message boards discussion with the primary key could not be found
151            * @throws SystemException if a system exception occurred
152            */
153            public static com.liferay.portlet.messageboards.model.MBDiscussion remove(
154                    long discussionId)
155                    throws com.liferay.portal.kernel.exception.SystemException,
156                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
157                    return getPersistence().remove(discussionId);
158            }
159    
160            public static com.liferay.portlet.messageboards.model.MBDiscussion updateImpl(
161                    com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion,
162                    boolean merge)
163                    throws com.liferay.portal.kernel.exception.SystemException {
164                    return getPersistence().updateImpl(mbDiscussion, merge);
165            }
166    
167            /**
168            * Finds the message boards discussion with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchDiscussionException} if it could not be found.
169            *
170            * @param discussionId the primary key of the message boards discussion to find
171            * @return the message boards discussion
172            * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a message boards discussion with the primary key could not be found
173            * @throws SystemException if a system exception occurred
174            */
175            public static com.liferay.portlet.messageboards.model.MBDiscussion findByPrimaryKey(
176                    long discussionId)
177                    throws com.liferay.portal.kernel.exception.SystemException,
178                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
179                    return getPersistence().findByPrimaryKey(discussionId);
180            }
181    
182            /**
183            * Finds the message boards discussion with the primary key or returns <code>null</code> if it could not be found.
184            *
185            * @param discussionId the primary key of the message boards discussion to find
186            * @return the message boards discussion, or <code>null</code> if a message boards discussion with the primary key could not be found
187            * @throws SystemException if a system exception occurred
188            */
189            public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByPrimaryKey(
190                    long discussionId)
191                    throws com.liferay.portal.kernel.exception.SystemException {
192                    return getPersistence().fetchByPrimaryKey(discussionId);
193            }
194    
195            /**
196            * Finds all the message boards discussions where classNameId = &#63;.
197            *
198            * @param classNameId the class name id to search with
199            * @return the matching message boards discussions
200            * @throws SystemException if a system exception occurred
201            */
202            public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId(
203                    long classNameId)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return getPersistence().findByClassNameId(classNameId);
206            }
207    
208            /**
209            * Finds a range of all the message boards discussions where classNameId = &#63;.
210            *
211            * <p>
212            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
213            * </p>
214            *
215            * @param classNameId the class name id to search with
216            * @param start the lower bound of the range of message boards discussions to return
217            * @param end the upper bound of the range of message boards discussions to return (not inclusive)
218            * @return the range of matching message boards discussions
219            * @throws SystemException if a system exception occurred
220            */
221            public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId(
222                    long classNameId, int start, int end)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return getPersistence().findByClassNameId(classNameId, start, end);
225            }
226    
227            /**
228            * Finds an ordered range of all the message boards discussions where classNameId = &#63;.
229            *
230            * <p>
231            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
232            * </p>
233            *
234            * @param classNameId the class name id to search with
235            * @param start the lower bound of the range of message boards discussions to return
236            * @param end the upper bound of the range of message boards discussions to return (not inclusive)
237            * @param orderByComparator the comparator to order the results by
238            * @return the ordered range of matching message boards discussions
239            * @throws SystemException if a system exception occurred
240            */
241            public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId(
242                    long classNameId, int start, int end,
243                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return getPersistence()
246                                       .findByClassNameId(classNameId, start, end, orderByComparator);
247            }
248    
249            /**
250            * Finds the first message boards discussion in the ordered set where classNameId = &#63;.
251            *
252            * <p>
253            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
254            * </p>
255            *
256            * @param classNameId the class name id to search with
257            * @param orderByComparator the comparator to order the set by
258            * @return the first matching message boards discussion
259            * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a matching message boards discussion could not be found
260            * @throws SystemException if a system exception occurred
261            */
262            public static com.liferay.portlet.messageboards.model.MBDiscussion findByClassNameId_First(
263                    long classNameId,
264                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
265                    throws com.liferay.portal.kernel.exception.SystemException,
266                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
267                    return getPersistence()
268                                       .findByClassNameId_First(classNameId, orderByComparator);
269            }
270    
271            /**
272            * Finds the last message boards discussion in the ordered set where classNameId = &#63;.
273            *
274            * <p>
275            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
276            * </p>
277            *
278            * @param classNameId the class name id to search with
279            * @param orderByComparator the comparator to order the set by
280            * @return the last matching message boards discussion
281            * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a matching message boards discussion could not be found
282            * @throws SystemException if a system exception occurred
283            */
284            public static com.liferay.portlet.messageboards.model.MBDiscussion findByClassNameId_Last(
285                    long classNameId,
286                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
287                    throws com.liferay.portal.kernel.exception.SystemException,
288                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
289                    return getPersistence()
290                                       .findByClassNameId_Last(classNameId, orderByComparator);
291            }
292    
293            /**
294            * Finds the message boards discussions before and after the current message boards discussion in the ordered set where classNameId = &#63;.
295            *
296            * <p>
297            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
298            * </p>
299            *
300            * @param discussionId the primary key of the current message boards discussion
301            * @param classNameId the class name id to search with
302            * @param orderByComparator the comparator to order the set by
303            * @return the previous, current, and next message boards discussion
304            * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a message boards discussion with the primary key could not be found
305            * @throws SystemException if a system exception occurred
306            */
307            public static com.liferay.portlet.messageboards.model.MBDiscussion[] findByClassNameId_PrevAndNext(
308                    long discussionId, long classNameId,
309                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
310                    throws com.liferay.portal.kernel.exception.SystemException,
311                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
312                    return getPersistence()
313                                       .findByClassNameId_PrevAndNext(discussionId, classNameId,
314                            orderByComparator);
315            }
316    
317            /**
318            * Finds the message boards discussion where threadId = &#63; or throws a {@link com.liferay.portlet.messageboards.NoSuchDiscussionException} if it could not be found.
319            *
320            * @param threadId the thread id to search with
321            * @return the matching message boards discussion
322            * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a matching message boards discussion could not be found
323            * @throws SystemException if a system exception occurred
324            */
325            public static com.liferay.portlet.messageboards.model.MBDiscussion findByThreadId(
326                    long threadId)
327                    throws com.liferay.portal.kernel.exception.SystemException,
328                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
329                    return getPersistence().findByThreadId(threadId);
330            }
331    
332            /**
333            * Finds the message boards discussion where threadId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
334            *
335            * @param threadId the thread id to search with
336            * @return the matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found
337            * @throws SystemException if a system exception occurred
338            */
339            public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByThreadId(
340                    long threadId)
341                    throws com.liferay.portal.kernel.exception.SystemException {
342                    return getPersistence().fetchByThreadId(threadId);
343            }
344    
345            /**
346            * Finds the message boards discussion where threadId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
347            *
348            * @param threadId the thread id to search with
349            * @return the matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found
350            * @throws SystemException if a system exception occurred
351            */
352            public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByThreadId(
353                    long threadId, boolean retrieveFromCache)
354                    throws com.liferay.portal.kernel.exception.SystemException {
355                    return getPersistence().fetchByThreadId(threadId, retrieveFromCache);
356            }
357    
358            /**
359            * Finds the message boards discussion where classNameId = &#63; and classPK = &#63; or throws a {@link com.liferay.portlet.messageboards.NoSuchDiscussionException} if it could not be found.
360            *
361            * @param classNameId the class name id to search with
362            * @param classPK the class p k to search with
363            * @return the matching message boards discussion
364            * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a matching message boards discussion could not be found
365            * @throws SystemException if a system exception occurred
366            */
367            public static com.liferay.portlet.messageboards.model.MBDiscussion findByC_C(
368                    long classNameId, long classPK)
369                    throws com.liferay.portal.kernel.exception.SystemException,
370                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
371                    return getPersistence().findByC_C(classNameId, classPK);
372            }
373    
374            /**
375            * Finds the message boards discussion where classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
376            *
377            * @param classNameId the class name id to search with
378            * @param classPK the class p k to search with
379            * @return the matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found
380            * @throws SystemException if a system exception occurred
381            */
382            public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByC_C(
383                    long classNameId, long classPK)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    return getPersistence().fetchByC_C(classNameId, classPK);
386            }
387    
388            /**
389            * Finds the message boards discussion where classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
390            *
391            * @param classNameId the class name id to search with
392            * @param classPK the class p k to search with
393            * @return the matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found
394            * @throws SystemException if a system exception occurred
395            */
396            public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByC_C(
397                    long classNameId, long classPK, boolean retrieveFromCache)
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    return getPersistence()
400                                       .fetchByC_C(classNameId, classPK, retrieveFromCache);
401            }
402    
403            /**
404            * Finds all the message boards discussions.
405            *
406            * @return the message boards discussions
407            * @throws SystemException if a system exception occurred
408            */
409            public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll()
410                    throws com.liferay.portal.kernel.exception.SystemException {
411                    return getPersistence().findAll();
412            }
413    
414            /**
415            * Finds a range of all the message boards discussions.
416            *
417            * <p>
418            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
419            * </p>
420            *
421            * @param start the lower bound of the range of message boards discussions to return
422            * @param end the upper bound of the range of message boards discussions to return (not inclusive)
423            * @return the range of message boards discussions
424            * @throws SystemException if a system exception occurred
425            */
426            public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll(
427                    int start, int end)
428                    throws com.liferay.portal.kernel.exception.SystemException {
429                    return getPersistence().findAll(start, end);
430            }
431    
432            /**
433            * Finds an ordered range of all the message boards discussions.
434            *
435            * <p>
436            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
437            * </p>
438            *
439            * @param start the lower bound of the range of message boards discussions to return
440            * @param end the upper bound of the range of message boards discussions to return (not inclusive)
441            * @param orderByComparator the comparator to order the results by
442            * @return the ordered range of message boards discussions
443            * @throws SystemException if a system exception occurred
444            */
445            public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll(
446                    int start, int end,
447                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
448                    throws com.liferay.portal.kernel.exception.SystemException {
449                    return getPersistence().findAll(start, end, orderByComparator);
450            }
451    
452            /**
453            * Removes all the message boards discussions where classNameId = &#63; from the database.
454            *
455            * @param classNameId the class name id to search with
456            * @throws SystemException if a system exception occurred
457            */
458            public static void removeByClassNameId(long classNameId)
459                    throws com.liferay.portal.kernel.exception.SystemException {
460                    getPersistence().removeByClassNameId(classNameId);
461            }
462    
463            /**
464            * Removes the message boards discussion where threadId = &#63; from the database.
465            *
466            * @param threadId the thread id to search with
467            * @throws SystemException if a system exception occurred
468            */
469            public static void removeByThreadId(long threadId)
470                    throws com.liferay.portal.kernel.exception.SystemException,
471                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
472                    getPersistence().removeByThreadId(threadId);
473            }
474    
475            /**
476            * Removes the message boards discussion where classNameId = &#63; and classPK = &#63; from the database.
477            *
478            * @param classNameId the class name id to search with
479            * @param classPK the class p k to search with
480            * @throws SystemException if a system exception occurred
481            */
482            public static void removeByC_C(long classNameId, long classPK)
483                    throws com.liferay.portal.kernel.exception.SystemException,
484                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
485                    getPersistence().removeByC_C(classNameId, classPK);
486            }
487    
488            /**
489            * Removes all the message boards discussions from the database.
490            *
491            * @throws SystemException if a system exception occurred
492            */
493            public static void removeAll()
494                    throws com.liferay.portal.kernel.exception.SystemException {
495                    getPersistence().removeAll();
496            }
497    
498            /**
499            * Counts all the message boards discussions where classNameId = &#63;.
500            *
501            * @param classNameId the class name id to search with
502            * @return the number of matching message boards discussions
503            * @throws SystemException if a system exception occurred
504            */
505            public static int countByClassNameId(long classNameId)
506                    throws com.liferay.portal.kernel.exception.SystemException {
507                    return getPersistence().countByClassNameId(classNameId);
508            }
509    
510            /**
511            * Counts all the message boards discussions where threadId = &#63;.
512            *
513            * @param threadId the thread id to search with
514            * @return the number of matching message boards discussions
515            * @throws SystemException if a system exception occurred
516            */
517            public static int countByThreadId(long threadId)
518                    throws com.liferay.portal.kernel.exception.SystemException {
519                    return getPersistence().countByThreadId(threadId);
520            }
521    
522            /**
523            * Counts all the message boards discussions where classNameId = &#63; and classPK = &#63;.
524            *
525            * @param classNameId the class name id to search with
526            * @param classPK the class p k to search with
527            * @return the number of matching message boards discussions
528            * @throws SystemException if a system exception occurred
529            */
530            public static int countByC_C(long classNameId, long classPK)
531                    throws com.liferay.portal.kernel.exception.SystemException {
532                    return getPersistence().countByC_C(classNameId, classPK);
533            }
534    
535            /**
536            * Counts all the message boards discussions.
537            *
538            * @return the number of message boards discussions
539            * @throws SystemException if a system exception occurred
540            */
541            public static int countAll()
542                    throws com.liferay.portal.kernel.exception.SystemException {
543                    return getPersistence().countAll();
544            }
545    
546            public static MBDiscussionPersistence getPersistence() {
547                    if (_persistence == null) {
548                            _persistence = (MBDiscussionPersistence)PortalBeanLocatorUtil.locate(MBDiscussionPersistence.class.getName());
549                    }
550    
551                    return _persistence;
552            }
553    
554            public void setPersistence(MBDiscussionPersistence persistence) {
555                    _persistence = persistence;
556            }
557    
558            private static MBDiscussionPersistence _persistence;
559    }