001    /**
002     * Copyright (c) 2000-2013 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021    import com.liferay.portal.kernel.exception.SystemException;
022    import com.liferay.portal.kernel.util.OrderByComparator;
023    import com.liferay.portal.kernel.util.ReferenceRegistry;
024    import com.liferay.portal.service.ServiceContext;
025    
026    import com.liferay.portlet.messageboards.model.MBDiscussion;
027    
028    import java.util.List;
029    
030    /**
031     * The persistence utility for the message boards discussion service. This utility wraps {@link MBDiscussionPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
032     *
033     * <p>
034     * Caching information and settings can be found in <code>portal.properties</code>
035     * </p>
036     *
037     * @author Brian Wing Shun Chan
038     * @see MBDiscussionPersistence
039     * @see MBDiscussionPersistenceImpl
040     * @generated
041     */
042    @ProviderType
043    public class MBDiscussionUtil {
044            /*
045             * NOTE FOR DEVELOPERS:
046             *
047             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
048             */
049    
050            /**
051             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
052             */
053            public static void clearCache() {
054                    getPersistence().clearCache();
055            }
056    
057            /**
058             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
059             */
060            public static void clearCache(MBDiscussion mbDiscussion) {
061                    getPersistence().clearCache(mbDiscussion);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
066             */
067            public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
068                    throws SystemException {
069                    return getPersistence().countWithDynamicQuery(dynamicQuery);
070            }
071    
072            /**
073             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
074             */
075            public static List<MBDiscussion> findWithDynamicQuery(
076                    DynamicQuery dynamicQuery) throws SystemException {
077                    return getPersistence().findWithDynamicQuery(dynamicQuery);
078            }
079    
080            /**
081             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
082             */
083            public static List<MBDiscussion> findWithDynamicQuery(
084                    DynamicQuery dynamicQuery, int start, int end)
085                    throws SystemException {
086                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
087            }
088    
089            /**
090             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
091             */
092            public static List<MBDiscussion> findWithDynamicQuery(
093                    DynamicQuery dynamicQuery, int start, int end,
094                    OrderByComparator orderByComparator) throws SystemException {
095                    return getPersistence()
096                                       .findWithDynamicQuery(dynamicQuery, start, end,
097                            orderByComparator);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
102             */
103            public static MBDiscussion update(MBDiscussion mbDiscussion)
104                    throws SystemException {
105                    return getPersistence().update(mbDiscussion);
106            }
107    
108            /**
109             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
110             */
111            public static MBDiscussion update(MBDiscussion mbDiscussion,
112                    ServiceContext serviceContext) throws SystemException {
113                    return getPersistence().update(mbDiscussion, serviceContext);
114            }
115    
116            /**
117            * Returns all the message boards discussions where uuid = &#63;.
118            *
119            * @param uuid the uuid
120            * @return the matching message boards discussions
121            * @throws SystemException if a system exception occurred
122            */
123            public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByUuid(
124                    java.lang.String uuid)
125                    throws com.liferay.portal.kernel.exception.SystemException {
126                    return getPersistence().findByUuid(uuid);
127            }
128    
129            /**
130            * Returns a range of all the message boards discussions where uuid = &#63;.
131            *
132            * <p>
133            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
134            * </p>
135            *
136            * @param uuid the uuid
137            * @param start the lower bound of the range of message boards discussions
138            * @param end the upper bound of the range of message boards discussions (not inclusive)
139            * @return the range of matching message boards discussions
140            * @throws SystemException if a system exception occurred
141            */
142            public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByUuid(
143                    java.lang.String uuid, int start, int end)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return getPersistence().findByUuid(uuid, start, end);
146            }
147    
148            /**
149            * Returns an ordered range of all the message boards discussions where uuid = &#63;.
150            *
151            * <p>
152            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
153            * </p>
154            *
155            * @param uuid the uuid
156            * @param start the lower bound of the range of message boards discussions
157            * @param end the upper bound of the range of message boards discussions (not inclusive)
158            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
159            * @return the ordered range of matching message boards discussions
160            * @throws SystemException if a system exception occurred
161            */
162            public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByUuid(
163                    java.lang.String uuid, int start, int end,
164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
167            }
168    
169            /**
170            * Returns the first message boards discussion in the ordered set where uuid = &#63;.
171            *
172            * @param uuid the uuid
173            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
174            * @return the first matching message boards discussion
175            * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a matching message boards discussion could not be found
176            * @throws SystemException if a system exception occurred
177            */
178            public static com.liferay.portlet.messageboards.model.MBDiscussion findByUuid_First(
179                    java.lang.String uuid,
180                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181                    throws com.liferay.portal.kernel.exception.SystemException,
182                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
183                    return getPersistence().findByUuid_First(uuid, orderByComparator);
184            }
185    
186            /**
187            * Returns the first message boards discussion in the ordered set where uuid = &#63;.
188            *
189            * @param uuid the uuid
190            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
191            * @return the first matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found
192            * @throws SystemException if a system exception occurred
193            */
194            public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByUuid_First(
195                    java.lang.String uuid,
196                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
199            }
200    
201            /**
202            * Returns the last message boards discussion in the ordered set where uuid = &#63;.
203            *
204            * @param uuid the uuid
205            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
206            * @return the last matching message boards discussion
207            * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a matching message boards discussion could not be found
208            * @throws SystemException if a system exception occurred
209            */
210            public static com.liferay.portlet.messageboards.model.MBDiscussion findByUuid_Last(
211                    java.lang.String uuid,
212                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
213                    throws com.liferay.portal.kernel.exception.SystemException,
214                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
215                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
216            }
217    
218            /**
219            * Returns the last message boards discussion in the ordered set where uuid = &#63;.
220            *
221            * @param uuid the uuid
222            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
223            * @return the last matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found
224            * @throws SystemException if a system exception occurred
225            */
226            public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByUuid_Last(
227                    java.lang.String uuid,
228                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
231            }
232    
233            /**
234            * Returns the message boards discussions before and after the current message boards discussion in the ordered set where uuid = &#63;.
235            *
236            * @param discussionId the primary key of the current message boards discussion
237            * @param uuid the uuid
238            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
239            * @return the previous, current, and next message boards discussion
240            * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a message boards discussion with the primary key could not be found
241            * @throws SystemException if a system exception occurred
242            */
243            public static com.liferay.portlet.messageboards.model.MBDiscussion[] findByUuid_PrevAndNext(
244                    long discussionId, java.lang.String uuid,
245                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246                    throws com.liferay.portal.kernel.exception.SystemException,
247                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
248                    return getPersistence()
249                                       .findByUuid_PrevAndNext(discussionId, uuid, orderByComparator);
250            }
251    
252            /**
253            * Removes all the message boards discussions where uuid = &#63; from the database.
254            *
255            * @param uuid the uuid
256            * @throws SystemException if a system exception occurred
257            */
258            public static void removeByUuid(java.lang.String uuid)
259                    throws com.liferay.portal.kernel.exception.SystemException {
260                    getPersistence().removeByUuid(uuid);
261            }
262    
263            /**
264            * Returns the number of message boards discussions where uuid = &#63;.
265            *
266            * @param uuid the uuid
267            * @return the number of matching message boards discussions
268            * @throws SystemException if a system exception occurred
269            */
270            public static int countByUuid(java.lang.String uuid)
271                    throws com.liferay.portal.kernel.exception.SystemException {
272                    return getPersistence().countByUuid(uuid);
273            }
274    
275            /**
276            * Returns the message boards discussion where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.messageboards.NoSuchDiscussionException} if it could not be found.
277            *
278            * @param uuid the uuid
279            * @param groupId the group ID
280            * @return the 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 findByUUID_G(
285                    java.lang.String uuid, long groupId)
286                    throws com.liferay.portal.kernel.exception.SystemException,
287                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
288                    return getPersistence().findByUUID_G(uuid, groupId);
289            }
290    
291            /**
292            * Returns the message boards discussion where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
293            *
294            * @param uuid the uuid
295            * @param groupId the group ID
296            * @return the matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found
297            * @throws SystemException if a system exception occurred
298            */
299            public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByUUID_G(
300                    java.lang.String uuid, long groupId)
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    return getPersistence().fetchByUUID_G(uuid, groupId);
303            }
304    
305            /**
306            * Returns the message boards discussion where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
307            *
308            * @param uuid the uuid
309            * @param groupId the group ID
310            * @param retrieveFromCache whether to use the finder cache
311            * @return the matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found
312            * @throws SystemException if a system exception occurred
313            */
314            public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByUUID_G(
315                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
316                    throws com.liferay.portal.kernel.exception.SystemException {
317                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
318            }
319    
320            /**
321            * Removes the message boards discussion where uuid = &#63; and groupId = &#63; from the database.
322            *
323            * @param uuid the uuid
324            * @param groupId the group ID
325            * @return the message boards discussion that was removed
326            * @throws SystemException if a system exception occurred
327            */
328            public static com.liferay.portlet.messageboards.model.MBDiscussion removeByUUID_G(
329                    java.lang.String uuid, long groupId)
330                    throws com.liferay.portal.kernel.exception.SystemException,
331                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
332                    return getPersistence().removeByUUID_G(uuid, groupId);
333            }
334    
335            /**
336            * Returns the number of message boards discussions where uuid = &#63; and groupId = &#63;.
337            *
338            * @param uuid the uuid
339            * @param groupId the group ID
340            * @return the number of matching message boards discussions
341            * @throws SystemException if a system exception occurred
342            */
343            public static int countByUUID_G(java.lang.String uuid, long groupId)
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    return getPersistence().countByUUID_G(uuid, groupId);
346            }
347    
348            /**
349            * Returns all the message boards discussions where uuid = &#63; and companyId = &#63;.
350            *
351            * @param uuid the uuid
352            * @param companyId the company ID
353            * @return the matching message boards discussions
354            * @throws SystemException if a system exception occurred
355            */
356            public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByUuid_C(
357                    java.lang.String uuid, long companyId)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return getPersistence().findByUuid_C(uuid, companyId);
360            }
361    
362            /**
363            * Returns a range of all the message boards discussions where uuid = &#63; and companyId = &#63;.
364            *
365            * <p>
366            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
367            * </p>
368            *
369            * @param uuid the uuid
370            * @param companyId the company ID
371            * @param start the lower bound of the range of message boards discussions
372            * @param end the upper bound of the range of message boards discussions (not inclusive)
373            * @return the range of matching message boards discussions
374            * @throws SystemException if a system exception occurred
375            */
376            public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByUuid_C(
377                    java.lang.String uuid, long companyId, int start, int end)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return getPersistence().findByUuid_C(uuid, companyId, start, end);
380            }
381    
382            /**
383            * Returns an ordered range of all the message boards discussions where uuid = &#63; and companyId = &#63;.
384            *
385            * <p>
386            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
387            * </p>
388            *
389            * @param uuid the uuid
390            * @param companyId the company ID
391            * @param start the lower bound of the range of message boards discussions
392            * @param end the upper bound of the range of message boards discussions (not inclusive)
393            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
394            * @return the ordered range of matching message boards discussions
395            * @throws SystemException if a system exception occurred
396            */
397            public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByUuid_C(
398                    java.lang.String uuid, long companyId, int start, int end,
399                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
400                    throws com.liferay.portal.kernel.exception.SystemException {
401                    return getPersistence()
402                                       .findByUuid_C(uuid, companyId, start, end, orderByComparator);
403            }
404    
405            /**
406            * Returns the first message boards discussion in the ordered set where uuid = &#63; and companyId = &#63;.
407            *
408            * @param uuid the uuid
409            * @param companyId the company ID
410            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
411            * @return the first matching message boards discussion
412            * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a matching message boards discussion could not be found
413            * @throws SystemException if a system exception occurred
414            */
415            public static com.liferay.portlet.messageboards.model.MBDiscussion findByUuid_C_First(
416                    java.lang.String uuid, long companyId,
417                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
418                    throws com.liferay.portal.kernel.exception.SystemException,
419                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
420                    return getPersistence()
421                                       .findByUuid_C_First(uuid, companyId, orderByComparator);
422            }
423    
424            /**
425            * Returns the first message boards discussion in the ordered set where uuid = &#63; and companyId = &#63;.
426            *
427            * @param uuid the uuid
428            * @param companyId the company ID
429            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
430            * @return the first matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found
431            * @throws SystemException if a system exception occurred
432            */
433            public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByUuid_C_First(
434                    java.lang.String uuid, long companyId,
435                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
436                    throws com.liferay.portal.kernel.exception.SystemException {
437                    return getPersistence()
438                                       .fetchByUuid_C_First(uuid, companyId, orderByComparator);
439            }
440    
441            /**
442            * Returns the last message boards discussion in the ordered set where uuid = &#63; and companyId = &#63;.
443            *
444            * @param uuid the uuid
445            * @param companyId the company ID
446            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
447            * @return the last matching message boards discussion
448            * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a matching message boards discussion could not be found
449            * @throws SystemException if a system exception occurred
450            */
451            public static com.liferay.portlet.messageboards.model.MBDiscussion findByUuid_C_Last(
452                    java.lang.String uuid, long companyId,
453                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
454                    throws com.liferay.portal.kernel.exception.SystemException,
455                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
456                    return getPersistence()
457                                       .findByUuid_C_Last(uuid, companyId, orderByComparator);
458            }
459    
460            /**
461            * Returns the last message boards discussion in the ordered set where uuid = &#63; and companyId = &#63;.
462            *
463            * @param uuid the uuid
464            * @param companyId the company ID
465            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
466            * @return the last matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found
467            * @throws SystemException if a system exception occurred
468            */
469            public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByUuid_C_Last(
470                    java.lang.String uuid, long companyId,
471                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
472                    throws com.liferay.portal.kernel.exception.SystemException {
473                    return getPersistence()
474                                       .fetchByUuid_C_Last(uuid, companyId, orderByComparator);
475            }
476    
477            /**
478            * Returns the message boards discussions before and after the current message boards discussion in the ordered set where uuid = &#63; and companyId = &#63;.
479            *
480            * @param discussionId the primary key of the current message boards discussion
481            * @param uuid the uuid
482            * @param companyId the company ID
483            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
484            * @return the previous, current, and next message boards discussion
485            * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a message boards discussion with the primary key could not be found
486            * @throws SystemException if a system exception occurred
487            */
488            public static com.liferay.portlet.messageboards.model.MBDiscussion[] findByUuid_C_PrevAndNext(
489                    long discussionId, java.lang.String uuid, long companyId,
490                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
491                    throws com.liferay.portal.kernel.exception.SystemException,
492                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
493                    return getPersistence()
494                                       .findByUuid_C_PrevAndNext(discussionId, uuid, companyId,
495                            orderByComparator);
496            }
497    
498            /**
499            * Removes all the message boards discussions where uuid = &#63; and companyId = &#63; from the database.
500            *
501            * @param uuid the uuid
502            * @param companyId the company ID
503            * @throws SystemException if a system exception occurred
504            */
505            public static void removeByUuid_C(java.lang.String uuid, long companyId)
506                    throws com.liferay.portal.kernel.exception.SystemException {
507                    getPersistence().removeByUuid_C(uuid, companyId);
508            }
509    
510            /**
511            * Returns the number of message boards discussions where uuid = &#63; and companyId = &#63;.
512            *
513            * @param uuid the uuid
514            * @param companyId the company ID
515            * @return the number of matching message boards discussions
516            * @throws SystemException if a system exception occurred
517            */
518            public static int countByUuid_C(java.lang.String uuid, long companyId)
519                    throws com.liferay.portal.kernel.exception.SystemException {
520                    return getPersistence().countByUuid_C(uuid, companyId);
521            }
522    
523            /**
524            * Returns all the message boards discussions where classNameId = &#63;.
525            *
526            * @param classNameId the class name ID
527            * @return the matching message boards discussions
528            * @throws SystemException if a system exception occurred
529            */
530            public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId(
531                    long classNameId)
532                    throws com.liferay.portal.kernel.exception.SystemException {
533                    return getPersistence().findByClassNameId(classNameId);
534            }
535    
536            /**
537            * Returns a range of all the message boards discussions where classNameId = &#63;.
538            *
539            * <p>
540            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
541            * </p>
542            *
543            * @param classNameId the class name ID
544            * @param start the lower bound of the range of message boards discussions
545            * @param end the upper bound of the range of message boards discussions (not inclusive)
546            * @return the range of matching message boards discussions
547            * @throws SystemException if a system exception occurred
548            */
549            public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId(
550                    long classNameId, int start, int end)
551                    throws com.liferay.portal.kernel.exception.SystemException {
552                    return getPersistence().findByClassNameId(classNameId, start, end);
553            }
554    
555            /**
556            * Returns an ordered range of all the message boards discussions where classNameId = &#63;.
557            *
558            * <p>
559            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
560            * </p>
561            *
562            * @param classNameId the class name ID
563            * @param start the lower bound of the range of message boards discussions
564            * @param end the upper bound of the range of message boards discussions (not inclusive)
565            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
566            * @return the ordered range of matching message boards discussions
567            * @throws SystemException if a system exception occurred
568            */
569            public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId(
570                    long classNameId, int start, int end,
571                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
572                    throws com.liferay.portal.kernel.exception.SystemException {
573                    return getPersistence()
574                                       .findByClassNameId(classNameId, start, end, orderByComparator);
575            }
576    
577            /**
578            * Returns the first message boards discussion in the ordered set where classNameId = &#63;.
579            *
580            * @param classNameId the class name ID
581            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
582            * @return the first matching message boards discussion
583            * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a matching message boards discussion could not be found
584            * @throws SystemException if a system exception occurred
585            */
586            public static com.liferay.portlet.messageboards.model.MBDiscussion findByClassNameId_First(
587                    long classNameId,
588                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
589                    throws com.liferay.portal.kernel.exception.SystemException,
590                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
591                    return getPersistence()
592                                       .findByClassNameId_First(classNameId, orderByComparator);
593            }
594    
595            /**
596            * Returns the first message boards discussion in the ordered set where classNameId = &#63;.
597            *
598            * @param classNameId the class name ID
599            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
600            * @return the first matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found
601            * @throws SystemException if a system exception occurred
602            */
603            public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByClassNameId_First(
604                    long classNameId,
605                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
606                    throws com.liferay.portal.kernel.exception.SystemException {
607                    return getPersistence()
608                                       .fetchByClassNameId_First(classNameId, orderByComparator);
609            }
610    
611            /**
612            * Returns the last message boards discussion in the ordered set where classNameId = &#63;.
613            *
614            * @param classNameId the class name ID
615            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
616            * @return the last matching message boards discussion
617            * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a matching message boards discussion could not be found
618            * @throws SystemException if a system exception occurred
619            */
620            public static com.liferay.portlet.messageboards.model.MBDiscussion findByClassNameId_Last(
621                    long classNameId,
622                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
623                    throws com.liferay.portal.kernel.exception.SystemException,
624                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
625                    return getPersistence()
626                                       .findByClassNameId_Last(classNameId, orderByComparator);
627            }
628    
629            /**
630            * Returns the last message boards discussion in the ordered set where classNameId = &#63;.
631            *
632            * @param classNameId the class name ID
633            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
634            * @return the last matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found
635            * @throws SystemException if a system exception occurred
636            */
637            public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByClassNameId_Last(
638                    long classNameId,
639                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
640                    throws com.liferay.portal.kernel.exception.SystemException {
641                    return getPersistence()
642                                       .fetchByClassNameId_Last(classNameId, orderByComparator);
643            }
644    
645            /**
646            * Returns the message boards discussions before and after the current message boards discussion in the ordered set where classNameId = &#63;.
647            *
648            * @param discussionId the primary key of the current message boards discussion
649            * @param classNameId the class name ID
650            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
651            * @return the previous, current, and next message boards discussion
652            * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a message boards discussion with the primary key could not be found
653            * @throws SystemException if a system exception occurred
654            */
655            public static com.liferay.portlet.messageboards.model.MBDiscussion[] findByClassNameId_PrevAndNext(
656                    long discussionId, long classNameId,
657                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
658                    throws com.liferay.portal.kernel.exception.SystemException,
659                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
660                    return getPersistence()
661                                       .findByClassNameId_PrevAndNext(discussionId, classNameId,
662                            orderByComparator);
663            }
664    
665            /**
666            * Removes all the message boards discussions where classNameId = &#63; from the database.
667            *
668            * @param classNameId the class name ID
669            * @throws SystemException if a system exception occurred
670            */
671            public static void removeByClassNameId(long classNameId)
672                    throws com.liferay.portal.kernel.exception.SystemException {
673                    getPersistence().removeByClassNameId(classNameId);
674            }
675    
676            /**
677            * Returns the number of message boards discussions where classNameId = &#63;.
678            *
679            * @param classNameId the class name ID
680            * @return the number of matching message boards discussions
681            * @throws SystemException if a system exception occurred
682            */
683            public static int countByClassNameId(long classNameId)
684                    throws com.liferay.portal.kernel.exception.SystemException {
685                    return getPersistence().countByClassNameId(classNameId);
686            }
687    
688            /**
689            * Returns the message boards discussion where threadId = &#63; or throws a {@link com.liferay.portlet.messageboards.NoSuchDiscussionException} if it could not be found.
690            *
691            * @param threadId the thread ID
692            * @return the matching message boards discussion
693            * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a matching message boards discussion could not be found
694            * @throws SystemException if a system exception occurred
695            */
696            public static com.liferay.portlet.messageboards.model.MBDiscussion findByThreadId(
697                    long threadId)
698                    throws com.liferay.portal.kernel.exception.SystemException,
699                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
700                    return getPersistence().findByThreadId(threadId);
701            }
702    
703            /**
704            * Returns the message boards discussion where threadId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
705            *
706            * @param threadId the thread ID
707            * @return the matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found
708            * @throws SystemException if a system exception occurred
709            */
710            public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByThreadId(
711                    long threadId)
712                    throws com.liferay.portal.kernel.exception.SystemException {
713                    return getPersistence().fetchByThreadId(threadId);
714            }
715    
716            /**
717            * Returns the message boards discussion where threadId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
718            *
719            * @param threadId the thread ID
720            * @param retrieveFromCache whether to use the finder cache
721            * @return the matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found
722            * @throws SystemException if a system exception occurred
723            */
724            public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByThreadId(
725                    long threadId, boolean retrieveFromCache)
726                    throws com.liferay.portal.kernel.exception.SystemException {
727                    return getPersistence().fetchByThreadId(threadId, retrieveFromCache);
728            }
729    
730            /**
731            * Removes the message boards discussion where threadId = &#63; from the database.
732            *
733            * @param threadId the thread ID
734            * @return the message boards discussion that was removed
735            * @throws SystemException if a system exception occurred
736            */
737            public static com.liferay.portlet.messageboards.model.MBDiscussion removeByThreadId(
738                    long threadId)
739                    throws com.liferay.portal.kernel.exception.SystemException,
740                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
741                    return getPersistence().removeByThreadId(threadId);
742            }
743    
744            /**
745            * Returns the number of message boards discussions where threadId = &#63;.
746            *
747            * @param threadId the thread ID
748            * @return the number of matching message boards discussions
749            * @throws SystemException if a system exception occurred
750            */
751            public static int countByThreadId(long threadId)
752                    throws com.liferay.portal.kernel.exception.SystemException {
753                    return getPersistence().countByThreadId(threadId);
754            }
755    
756            /**
757            * Returns 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.
758            *
759            * @param classNameId the class name ID
760            * @param classPK the class p k
761            * @return the matching message boards discussion
762            * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a matching message boards discussion could not be found
763            * @throws SystemException if a system exception occurred
764            */
765            public static com.liferay.portlet.messageboards.model.MBDiscussion findByC_C(
766                    long classNameId, long classPK)
767                    throws com.liferay.portal.kernel.exception.SystemException,
768                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
769                    return getPersistence().findByC_C(classNameId, classPK);
770            }
771    
772            /**
773            * Returns 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.
774            *
775            * @param classNameId the class name ID
776            * @param classPK the class p k
777            * @return the matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found
778            * @throws SystemException if a system exception occurred
779            */
780            public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByC_C(
781                    long classNameId, long classPK)
782                    throws com.liferay.portal.kernel.exception.SystemException {
783                    return getPersistence().fetchByC_C(classNameId, classPK);
784            }
785    
786            /**
787            * Returns 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.
788            *
789            * @param classNameId the class name ID
790            * @param classPK the class p k
791            * @param retrieveFromCache whether to use the finder cache
792            * @return the matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found
793            * @throws SystemException if a system exception occurred
794            */
795            public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByC_C(
796                    long classNameId, long classPK, boolean retrieveFromCache)
797                    throws com.liferay.portal.kernel.exception.SystemException {
798                    return getPersistence()
799                                       .fetchByC_C(classNameId, classPK, retrieveFromCache);
800            }
801    
802            /**
803            * Removes the message boards discussion where classNameId = &#63; and classPK = &#63; from the database.
804            *
805            * @param classNameId the class name ID
806            * @param classPK the class p k
807            * @return the message boards discussion that was removed
808            * @throws SystemException if a system exception occurred
809            */
810            public static com.liferay.portlet.messageboards.model.MBDiscussion removeByC_C(
811                    long classNameId, long classPK)
812                    throws com.liferay.portal.kernel.exception.SystemException,
813                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
814                    return getPersistence().removeByC_C(classNameId, classPK);
815            }
816    
817            /**
818            * Returns the number of message boards discussions where classNameId = &#63; and classPK = &#63;.
819            *
820            * @param classNameId the class name ID
821            * @param classPK the class p k
822            * @return the number of matching message boards discussions
823            * @throws SystemException if a system exception occurred
824            */
825            public static int countByC_C(long classNameId, long classPK)
826                    throws com.liferay.portal.kernel.exception.SystemException {
827                    return getPersistence().countByC_C(classNameId, classPK);
828            }
829    
830            /**
831            * Caches the message boards discussion in the entity cache if it is enabled.
832            *
833            * @param mbDiscussion the message boards discussion
834            */
835            public static void cacheResult(
836                    com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion) {
837                    getPersistence().cacheResult(mbDiscussion);
838            }
839    
840            /**
841            * Caches the message boards discussions in the entity cache if it is enabled.
842            *
843            * @param mbDiscussions the message boards discussions
844            */
845            public static void cacheResult(
846                    java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> mbDiscussions) {
847                    getPersistence().cacheResult(mbDiscussions);
848            }
849    
850            /**
851            * Creates a new message boards discussion with the primary key. Does not add the message boards discussion to the database.
852            *
853            * @param discussionId the primary key for the new message boards discussion
854            * @return the new message boards discussion
855            */
856            public static com.liferay.portlet.messageboards.model.MBDiscussion create(
857                    long discussionId) {
858                    return getPersistence().create(discussionId);
859            }
860    
861            /**
862            * Removes the message boards discussion with the primary key from the database. Also notifies the appropriate model listeners.
863            *
864            * @param discussionId the primary key of the message boards discussion
865            * @return the message boards discussion that was removed
866            * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a message boards discussion with the primary key could not be found
867            * @throws SystemException if a system exception occurred
868            */
869            public static com.liferay.portlet.messageboards.model.MBDiscussion remove(
870                    long discussionId)
871                    throws com.liferay.portal.kernel.exception.SystemException,
872                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
873                    return getPersistence().remove(discussionId);
874            }
875    
876            public static com.liferay.portlet.messageboards.model.MBDiscussion updateImpl(
877                    com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion)
878                    throws com.liferay.portal.kernel.exception.SystemException {
879                    return getPersistence().updateImpl(mbDiscussion);
880            }
881    
882            /**
883            * Returns the message boards discussion with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchDiscussionException} if it could not be found.
884            *
885            * @param discussionId the primary key of the message boards discussion
886            * @return the message boards discussion
887            * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a message boards discussion with the primary key could not be found
888            * @throws SystemException if a system exception occurred
889            */
890            public static com.liferay.portlet.messageboards.model.MBDiscussion findByPrimaryKey(
891                    long discussionId)
892                    throws com.liferay.portal.kernel.exception.SystemException,
893                            com.liferay.portlet.messageboards.NoSuchDiscussionException {
894                    return getPersistence().findByPrimaryKey(discussionId);
895            }
896    
897            /**
898            * Returns the message boards discussion with the primary key or returns <code>null</code> if it could not be found.
899            *
900            * @param discussionId the primary key of the message boards discussion
901            * @return the message boards discussion, or <code>null</code> if a message boards discussion with the primary key could not be found
902            * @throws SystemException if a system exception occurred
903            */
904            public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByPrimaryKey(
905                    long discussionId)
906                    throws com.liferay.portal.kernel.exception.SystemException {
907                    return getPersistence().fetchByPrimaryKey(discussionId);
908            }
909    
910            /**
911            * Returns all the message boards discussions.
912            *
913            * @return the message boards discussions
914            * @throws SystemException if a system exception occurred
915            */
916            public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll()
917                    throws com.liferay.portal.kernel.exception.SystemException {
918                    return getPersistence().findAll();
919            }
920    
921            /**
922            * Returns a range of all the message boards discussions.
923            *
924            * <p>
925            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
926            * </p>
927            *
928            * @param start the lower bound of the range of message boards discussions
929            * @param end the upper bound of the range of message boards discussions (not inclusive)
930            * @return the range of message boards discussions
931            * @throws SystemException if a system exception occurred
932            */
933            public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll(
934                    int start, int end)
935                    throws com.liferay.portal.kernel.exception.SystemException {
936                    return getPersistence().findAll(start, end);
937            }
938    
939            /**
940            * Returns an ordered range of all the message boards discussions.
941            *
942            * <p>
943            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.messageboards.model.impl.MBDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
944            * </p>
945            *
946            * @param start the lower bound of the range of message boards discussions
947            * @param end the upper bound of the range of message boards discussions (not inclusive)
948            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
949            * @return the ordered range of message boards discussions
950            * @throws SystemException if a system exception occurred
951            */
952            public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll(
953                    int start, int end,
954                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
955                    throws com.liferay.portal.kernel.exception.SystemException {
956                    return getPersistence().findAll(start, end, orderByComparator);
957            }
958    
959            /**
960            * Removes all the message boards discussions from the database.
961            *
962            * @throws SystemException if a system exception occurred
963            */
964            public static void removeAll()
965                    throws com.liferay.portal.kernel.exception.SystemException {
966                    getPersistence().removeAll();
967            }
968    
969            /**
970            * Returns the number of message boards discussions.
971            *
972            * @return the number of message boards discussions
973            * @throws SystemException if a system exception occurred
974            */
975            public static int countAll()
976                    throws com.liferay.portal.kernel.exception.SystemException {
977                    return getPersistence().countAll();
978            }
979    
980            public static MBDiscussionPersistence getPersistence() {
981                    if (_persistence == null) {
982                            _persistence = (MBDiscussionPersistence)PortalBeanLocatorUtil.locate(MBDiscussionPersistence.class.getName());
983    
984                            ReferenceRegistry.registerReference(MBDiscussionUtil.class,
985                                    "_persistence");
986                    }
987    
988                    return _persistence;
989            }
990    
991            /**
992             * @deprecated As of 6.2.0
993             */
994            public void setPersistence(MBDiscussionPersistence persistence) {
995            }
996    
997            private static MBDiscussionPersistence _persistence;
998    }