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.base;
016    
017    import com.liferay.portal.kernel.bean.BeanReference;
018    import com.liferay.portal.kernel.bean.IdentifiableBean;
019    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
021    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
022    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
023    import com.liferay.portal.kernel.dao.orm.Projection;
024    import com.liferay.portal.kernel.exception.PortalException;
025    import com.liferay.portal.kernel.exception.SystemException;
026    import com.liferay.portal.kernel.search.Indexable;
027    import com.liferay.portal.kernel.search.IndexableType;
028    import com.liferay.portal.kernel.util.OrderByComparator;
029    import com.liferay.portal.model.PersistedModel;
030    import com.liferay.portal.service.BaseLocalServiceImpl;
031    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
032    import com.liferay.portal.service.persistence.GroupFinder;
033    import com.liferay.portal.service.persistence.GroupPersistence;
034    import com.liferay.portal.service.persistence.LockFinder;
035    import com.liferay.portal.service.persistence.LockPersistence;
036    import com.liferay.portal.service.persistence.SubscriptionPersistence;
037    import com.liferay.portal.service.persistence.UserFinder;
038    import com.liferay.portal.service.persistence.UserPersistence;
039    import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
040    
041    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
042    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
043    import com.liferay.portlet.messageboards.model.MBThread;
044    import com.liferay.portlet.messageboards.service.MBThreadLocalService;
045    import com.liferay.portlet.messageboards.service.persistence.MBBanPersistence;
046    import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
047    import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
048    import com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence;
049    import com.liferay.portlet.messageboards.service.persistence.MBMailingListPersistence;
050    import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
051    import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
052    import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
053    import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
054    import com.liferay.portlet.messageboards.service.persistence.MBThreadFlagPersistence;
055    import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
056    import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
057    import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
058    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
059    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
060    import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
061    
062    import java.io.Serializable;
063    
064    import java.util.List;
065    
066    import javax.sql.DataSource;
067    
068    /**
069     * Provides the base implementation for the message boards thread local service.
070     *
071     * <p>
072     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portlet.messageboards.service.impl.MBThreadLocalServiceImpl}.
073     * </p>
074     *
075     * @author Brian Wing Shun Chan
076     * @see com.liferay.portlet.messageboards.service.impl.MBThreadLocalServiceImpl
077     * @see com.liferay.portlet.messageboards.service.MBThreadLocalServiceUtil
078     * @generated
079     */
080    public abstract class MBThreadLocalServiceBaseImpl extends BaseLocalServiceImpl
081            implements MBThreadLocalService, IdentifiableBean {
082            /*
083             * NOTE FOR DEVELOPERS:
084             *
085             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.messageboards.service.MBThreadLocalServiceUtil} to access the message boards thread local service.
086             */
087    
088            /**
089             * Adds the message boards thread to the database. Also notifies the appropriate model listeners.
090             *
091             * @param mbThread the message boards thread
092             * @return the message boards thread that was added
093             * @throws SystemException if a system exception occurred
094             */
095            @Indexable(type = IndexableType.REINDEX)
096            @Override
097            public MBThread addMBThread(MBThread mbThread) throws SystemException {
098                    mbThread.setNew(true);
099    
100                    return mbThreadPersistence.update(mbThread);
101            }
102    
103            /**
104             * Creates a new message boards thread with the primary key. Does not add the message boards thread to the database.
105             *
106             * @param threadId the primary key for the new message boards thread
107             * @return the new message boards thread
108             */
109            @Override
110            public MBThread createMBThread(long threadId) {
111                    return mbThreadPersistence.create(threadId);
112            }
113    
114            /**
115             * Deletes the message boards thread with the primary key from the database. Also notifies the appropriate model listeners.
116             *
117             * @param threadId the primary key of the message boards thread
118             * @return the message boards thread that was removed
119             * @throws PortalException if a message boards thread with the primary key could not be found
120             * @throws SystemException if a system exception occurred
121             */
122            @Indexable(type = IndexableType.DELETE)
123            @Override
124            public MBThread deleteMBThread(long threadId)
125                    throws PortalException, SystemException {
126                    return mbThreadPersistence.remove(threadId);
127            }
128    
129            /**
130             * Deletes the message boards thread from the database. Also notifies the appropriate model listeners.
131             *
132             * @param mbThread the message boards thread
133             * @return the message boards thread that was removed
134             * @throws SystemException if a system exception occurred
135             */
136            @Indexable(type = IndexableType.DELETE)
137            @Override
138            public MBThread deleteMBThread(MBThread mbThread) throws SystemException {
139                    return mbThreadPersistence.remove(mbThread);
140            }
141    
142            @Override
143            public DynamicQuery dynamicQuery() {
144                    Class<?> clazz = getClass();
145    
146                    return DynamicQueryFactoryUtil.forClass(MBThread.class,
147                            clazz.getClassLoader());
148            }
149    
150            /**
151             * Performs a dynamic query on the database and returns the matching rows.
152             *
153             * @param dynamicQuery the dynamic query
154             * @return the matching rows
155             * @throws SystemException if a system exception occurred
156             */
157            @Override
158            @SuppressWarnings("rawtypes")
159            public List dynamicQuery(DynamicQuery dynamicQuery)
160                    throws SystemException {
161                    return mbThreadPersistence.findWithDynamicQuery(dynamicQuery);
162            }
163    
164            /**
165             * Performs a dynamic query on the database and returns a range of the matching rows.
166             *
167             * <p>
168             * 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.MBThreadModelImpl}. 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.
169             * </p>
170             *
171             * @param dynamicQuery the dynamic query
172             * @param start the lower bound of the range of model instances
173             * @param end the upper bound of the range of model instances (not inclusive)
174             * @return the range of matching rows
175             * @throws SystemException if a system exception occurred
176             */
177            @Override
178            @SuppressWarnings("rawtypes")
179            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
180                    throws SystemException {
181                    return mbThreadPersistence.findWithDynamicQuery(dynamicQuery, start, end);
182            }
183    
184            /**
185             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
186             *
187             * <p>
188             * 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.MBThreadModelImpl}. 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.
189             * </p>
190             *
191             * @param dynamicQuery the dynamic query
192             * @param start the lower bound of the range of model instances
193             * @param end the upper bound of the range of model instances (not inclusive)
194             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
195             * @return the ordered range of matching rows
196             * @throws SystemException if a system exception occurred
197             */
198            @Override
199            @SuppressWarnings("rawtypes")
200            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
201                    OrderByComparator orderByComparator) throws SystemException {
202                    return mbThreadPersistence.findWithDynamicQuery(dynamicQuery, start,
203                            end, orderByComparator);
204            }
205    
206            /**
207             * Returns the number of rows that match the dynamic query.
208             *
209             * @param dynamicQuery the dynamic query
210             * @return the number of rows that match the dynamic query
211             * @throws SystemException if a system exception occurred
212             */
213            @Override
214            public long dynamicQueryCount(DynamicQuery dynamicQuery)
215                    throws SystemException {
216                    return mbThreadPersistence.countWithDynamicQuery(dynamicQuery);
217            }
218    
219            /**
220             * Returns the number of rows that match the dynamic query.
221             *
222             * @param dynamicQuery the dynamic query
223             * @param projection the projection to apply to the query
224             * @return the number of rows that match the dynamic query
225             * @throws SystemException if a system exception occurred
226             */
227            @Override
228            public long dynamicQueryCount(DynamicQuery dynamicQuery,
229                    Projection projection) throws SystemException {
230                    return mbThreadPersistence.countWithDynamicQuery(dynamicQuery,
231                            projection);
232            }
233    
234            @Override
235            public MBThread fetchMBThread(long threadId) throws SystemException {
236                    return mbThreadPersistence.fetchByPrimaryKey(threadId);
237            }
238    
239            /**
240             * Returns the message boards thread with the matching UUID and company.
241             *
242             * @param uuid the message boards thread's UUID
243             * @param  companyId the primary key of the company
244             * @return the matching message boards thread, or <code>null</code> if a matching message boards thread could not be found
245             * @throws SystemException if a system exception occurred
246             */
247            @Override
248            public MBThread fetchMBThreadByUuidAndCompanyId(String uuid, long companyId)
249                    throws SystemException {
250                    return mbThreadPersistence.fetchByUuid_C_First(uuid, companyId, null);
251            }
252    
253            /**
254             * Returns the message boards thread matching the UUID and group.
255             *
256             * @param uuid the message boards thread's UUID
257             * @param groupId the primary key of the group
258             * @return the matching message boards thread, or <code>null</code> if a matching message boards thread could not be found
259             * @throws SystemException if a system exception occurred
260             */
261            @Override
262            public MBThread fetchMBThreadByUuidAndGroupId(String uuid, long groupId)
263                    throws SystemException {
264                    return mbThreadPersistence.fetchByUUID_G(uuid, groupId);
265            }
266    
267            /**
268             * Returns the message boards thread with the primary key.
269             *
270             * @param threadId the primary key of the message boards thread
271             * @return the message boards thread
272             * @throws PortalException if a message boards thread with the primary key could not be found
273             * @throws SystemException if a system exception occurred
274             */
275            @Override
276            public MBThread getMBThread(long threadId)
277                    throws PortalException, SystemException {
278                    return mbThreadPersistence.findByPrimaryKey(threadId);
279            }
280    
281            @Override
282            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
283                    throws PortalException, SystemException {
284                    return mbThreadPersistence.findByPrimaryKey(primaryKeyObj);
285            }
286    
287            /**
288             * Returns the message boards thread with the matching UUID and company.
289             *
290             * @param uuid the message boards thread's UUID
291             * @param  companyId the primary key of the company
292             * @return the matching message boards thread
293             * @throws PortalException if a matching message boards thread could not be found
294             * @throws SystemException if a system exception occurred
295             */
296            @Override
297            public MBThread getMBThreadByUuidAndCompanyId(String uuid, long companyId)
298                    throws PortalException, SystemException {
299                    return mbThreadPersistence.findByUuid_C_First(uuid, companyId, null);
300            }
301    
302            /**
303             * Returns the message boards thread matching the UUID and group.
304             *
305             * @param uuid the message boards thread's UUID
306             * @param groupId the primary key of the group
307             * @return the matching message boards thread
308             * @throws PortalException if a matching message boards thread could not be found
309             * @throws SystemException if a system exception occurred
310             */
311            @Override
312            public MBThread getMBThreadByUuidAndGroupId(String uuid, long groupId)
313                    throws PortalException, SystemException {
314                    return mbThreadPersistence.findByUUID_G(uuid, groupId);
315            }
316    
317            /**
318             * Returns a range of all the message boards threads.
319             *
320             * <p>
321             * 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.MBThreadModelImpl}. 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.
322             * </p>
323             *
324             * @param start the lower bound of the range of message boards threads
325             * @param end the upper bound of the range of message boards threads (not inclusive)
326             * @return the range of message boards threads
327             * @throws SystemException if a system exception occurred
328             */
329            @Override
330            public List<MBThread> getMBThreads(int start, int end)
331                    throws SystemException {
332                    return mbThreadPersistence.findAll(start, end);
333            }
334    
335            /**
336             * Returns the number of message boards threads.
337             *
338             * @return the number of message boards threads
339             * @throws SystemException if a system exception occurred
340             */
341            @Override
342            public int getMBThreadsCount() throws SystemException {
343                    return mbThreadPersistence.countAll();
344            }
345    
346            /**
347             * Updates the message boards thread in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
348             *
349             * @param mbThread the message boards thread
350             * @return the message boards thread that was updated
351             * @throws SystemException if a system exception occurred
352             */
353            @Indexable(type = IndexableType.REINDEX)
354            @Override
355            public MBThread updateMBThread(MBThread mbThread) throws SystemException {
356                    return mbThreadPersistence.update(mbThread);
357            }
358    
359            /**
360             * Returns the message boards ban local service.
361             *
362             * @return the message boards ban local service
363             */
364            public com.liferay.portlet.messageboards.service.MBBanLocalService getMBBanLocalService() {
365                    return mbBanLocalService;
366            }
367    
368            /**
369             * Sets the message boards ban local service.
370             *
371             * @param mbBanLocalService the message boards ban local service
372             */
373            public void setMBBanLocalService(
374                    com.liferay.portlet.messageboards.service.MBBanLocalService mbBanLocalService) {
375                    this.mbBanLocalService = mbBanLocalService;
376            }
377    
378            /**
379             * Returns the message boards ban remote service.
380             *
381             * @return the message boards ban remote service
382             */
383            public com.liferay.portlet.messageboards.service.MBBanService getMBBanService() {
384                    return mbBanService;
385            }
386    
387            /**
388             * Sets the message boards ban remote service.
389             *
390             * @param mbBanService the message boards ban remote service
391             */
392            public void setMBBanService(
393                    com.liferay.portlet.messageboards.service.MBBanService mbBanService) {
394                    this.mbBanService = mbBanService;
395            }
396    
397            /**
398             * Returns the message boards ban persistence.
399             *
400             * @return the message boards ban persistence
401             */
402            public MBBanPersistence getMBBanPersistence() {
403                    return mbBanPersistence;
404            }
405    
406            /**
407             * Sets the message boards ban persistence.
408             *
409             * @param mbBanPersistence the message boards ban persistence
410             */
411            public void setMBBanPersistence(MBBanPersistence mbBanPersistence) {
412                    this.mbBanPersistence = mbBanPersistence;
413            }
414    
415            /**
416             * Returns the message boards category local service.
417             *
418             * @return the message boards category local service
419             */
420            public com.liferay.portlet.messageboards.service.MBCategoryLocalService getMBCategoryLocalService() {
421                    return mbCategoryLocalService;
422            }
423    
424            /**
425             * Sets the message boards category local service.
426             *
427             * @param mbCategoryLocalService the message boards category local service
428             */
429            public void setMBCategoryLocalService(
430                    com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService) {
431                    this.mbCategoryLocalService = mbCategoryLocalService;
432            }
433    
434            /**
435             * Returns the message boards category remote service.
436             *
437             * @return the message boards category remote service
438             */
439            public com.liferay.portlet.messageboards.service.MBCategoryService getMBCategoryService() {
440                    return mbCategoryService;
441            }
442    
443            /**
444             * Sets the message boards category remote service.
445             *
446             * @param mbCategoryService the message boards category remote service
447             */
448            public void setMBCategoryService(
449                    com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService) {
450                    this.mbCategoryService = mbCategoryService;
451            }
452    
453            /**
454             * Returns the message boards category persistence.
455             *
456             * @return the message boards category persistence
457             */
458            public MBCategoryPersistence getMBCategoryPersistence() {
459                    return mbCategoryPersistence;
460            }
461    
462            /**
463             * Sets the message boards category persistence.
464             *
465             * @param mbCategoryPersistence the message boards category persistence
466             */
467            public void setMBCategoryPersistence(
468                    MBCategoryPersistence mbCategoryPersistence) {
469                    this.mbCategoryPersistence = mbCategoryPersistence;
470            }
471    
472            /**
473             * Returns the message boards category finder.
474             *
475             * @return the message boards category finder
476             */
477            public MBCategoryFinder getMBCategoryFinder() {
478                    return mbCategoryFinder;
479            }
480    
481            /**
482             * Sets the message boards category finder.
483             *
484             * @param mbCategoryFinder the message boards category finder
485             */
486            public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
487                    this.mbCategoryFinder = mbCategoryFinder;
488            }
489    
490            /**
491             * Returns the message boards discussion local service.
492             *
493             * @return the message boards discussion local service
494             */
495            public com.liferay.portlet.messageboards.service.MBDiscussionLocalService getMBDiscussionLocalService() {
496                    return mbDiscussionLocalService;
497            }
498    
499            /**
500             * Sets the message boards discussion local service.
501             *
502             * @param mbDiscussionLocalService the message boards discussion local service
503             */
504            public void setMBDiscussionLocalService(
505                    com.liferay.portlet.messageboards.service.MBDiscussionLocalService mbDiscussionLocalService) {
506                    this.mbDiscussionLocalService = mbDiscussionLocalService;
507            }
508    
509            /**
510             * Returns the message boards discussion persistence.
511             *
512             * @return the message boards discussion persistence
513             */
514            public MBDiscussionPersistence getMBDiscussionPersistence() {
515                    return mbDiscussionPersistence;
516            }
517    
518            /**
519             * Sets the message boards discussion persistence.
520             *
521             * @param mbDiscussionPersistence the message boards discussion persistence
522             */
523            public void setMBDiscussionPersistence(
524                    MBDiscussionPersistence mbDiscussionPersistence) {
525                    this.mbDiscussionPersistence = mbDiscussionPersistence;
526            }
527    
528            /**
529             * Returns the message boards mailing list local service.
530             *
531             * @return the message boards mailing list local service
532             */
533            public com.liferay.portlet.messageboards.service.MBMailingListLocalService getMBMailingListLocalService() {
534                    return mbMailingListLocalService;
535            }
536    
537            /**
538             * Sets the message boards mailing list local service.
539             *
540             * @param mbMailingListLocalService the message boards mailing list local service
541             */
542            public void setMBMailingListLocalService(
543                    com.liferay.portlet.messageboards.service.MBMailingListLocalService mbMailingListLocalService) {
544                    this.mbMailingListLocalService = mbMailingListLocalService;
545            }
546    
547            /**
548             * Returns the message boards mailing list persistence.
549             *
550             * @return the message boards mailing list persistence
551             */
552            public MBMailingListPersistence getMBMailingListPersistence() {
553                    return mbMailingListPersistence;
554            }
555    
556            /**
557             * Sets the message boards mailing list persistence.
558             *
559             * @param mbMailingListPersistence the message boards mailing list persistence
560             */
561            public void setMBMailingListPersistence(
562                    MBMailingListPersistence mbMailingListPersistence) {
563                    this.mbMailingListPersistence = mbMailingListPersistence;
564            }
565    
566            /**
567             * Returns the message-boards message local service.
568             *
569             * @return the message-boards message local service
570             */
571            public com.liferay.portlet.messageboards.service.MBMessageLocalService getMBMessageLocalService() {
572                    return mbMessageLocalService;
573            }
574    
575            /**
576             * Sets the message-boards message local service.
577             *
578             * @param mbMessageLocalService the message-boards message local service
579             */
580            public void setMBMessageLocalService(
581                    com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService) {
582                    this.mbMessageLocalService = mbMessageLocalService;
583            }
584    
585            /**
586             * Returns the message-boards message remote service.
587             *
588             * @return the message-boards message remote service
589             */
590            public com.liferay.portlet.messageboards.service.MBMessageService getMBMessageService() {
591                    return mbMessageService;
592            }
593    
594            /**
595             * Sets the message-boards message remote service.
596             *
597             * @param mbMessageService the message-boards message remote service
598             */
599            public void setMBMessageService(
600                    com.liferay.portlet.messageboards.service.MBMessageService mbMessageService) {
601                    this.mbMessageService = mbMessageService;
602            }
603    
604            /**
605             * Returns the message-boards message persistence.
606             *
607             * @return the message-boards message persistence
608             */
609            public MBMessagePersistence getMBMessagePersistence() {
610                    return mbMessagePersistence;
611            }
612    
613            /**
614             * Sets the message-boards message persistence.
615             *
616             * @param mbMessagePersistence the message-boards message persistence
617             */
618            public void setMBMessagePersistence(
619                    MBMessagePersistence mbMessagePersistence) {
620                    this.mbMessagePersistence = mbMessagePersistence;
621            }
622    
623            /**
624             * Returns the message-boards message finder.
625             *
626             * @return the message-boards message finder
627             */
628            public MBMessageFinder getMBMessageFinder() {
629                    return mbMessageFinder;
630            }
631    
632            /**
633             * Sets the message-boards message finder.
634             *
635             * @param mbMessageFinder the message-boards message finder
636             */
637            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
638                    this.mbMessageFinder = mbMessageFinder;
639            }
640    
641            /**
642             * Returns the message boards stats user local service.
643             *
644             * @return the message boards stats user local service
645             */
646            public com.liferay.portlet.messageboards.service.MBStatsUserLocalService getMBStatsUserLocalService() {
647                    return mbStatsUserLocalService;
648            }
649    
650            /**
651             * Sets the message boards stats user local service.
652             *
653             * @param mbStatsUserLocalService the message boards stats user local service
654             */
655            public void setMBStatsUserLocalService(
656                    com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService) {
657                    this.mbStatsUserLocalService = mbStatsUserLocalService;
658            }
659    
660            /**
661             * Returns the message boards stats user persistence.
662             *
663             * @return the message boards stats user persistence
664             */
665            public MBStatsUserPersistence getMBStatsUserPersistence() {
666                    return mbStatsUserPersistence;
667            }
668    
669            /**
670             * Sets the message boards stats user persistence.
671             *
672             * @param mbStatsUserPersistence the message boards stats user persistence
673             */
674            public void setMBStatsUserPersistence(
675                    MBStatsUserPersistence mbStatsUserPersistence) {
676                    this.mbStatsUserPersistence = mbStatsUserPersistence;
677            }
678    
679            /**
680             * Returns the message boards thread local service.
681             *
682             * @return the message boards thread local service
683             */
684            public com.liferay.portlet.messageboards.service.MBThreadLocalService getMBThreadLocalService() {
685                    return mbThreadLocalService;
686            }
687    
688            /**
689             * Sets the message boards thread local service.
690             *
691             * @param mbThreadLocalService the message boards thread local service
692             */
693            public void setMBThreadLocalService(
694                    com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService) {
695                    this.mbThreadLocalService = mbThreadLocalService;
696            }
697    
698            /**
699             * Returns the message boards thread remote service.
700             *
701             * @return the message boards thread remote service
702             */
703            public com.liferay.portlet.messageboards.service.MBThreadService getMBThreadService() {
704                    return mbThreadService;
705            }
706    
707            /**
708             * Sets the message boards thread remote service.
709             *
710             * @param mbThreadService the message boards thread remote service
711             */
712            public void setMBThreadService(
713                    com.liferay.portlet.messageboards.service.MBThreadService mbThreadService) {
714                    this.mbThreadService = mbThreadService;
715            }
716    
717            /**
718             * Returns the message boards thread persistence.
719             *
720             * @return the message boards thread persistence
721             */
722            public MBThreadPersistence getMBThreadPersistence() {
723                    return mbThreadPersistence;
724            }
725    
726            /**
727             * Sets the message boards thread persistence.
728             *
729             * @param mbThreadPersistence the message boards thread persistence
730             */
731            public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
732                    this.mbThreadPersistence = mbThreadPersistence;
733            }
734    
735            /**
736             * Returns the message boards thread finder.
737             *
738             * @return the message boards thread finder
739             */
740            public MBThreadFinder getMBThreadFinder() {
741                    return mbThreadFinder;
742            }
743    
744            /**
745             * Sets the message boards thread finder.
746             *
747             * @param mbThreadFinder the message boards thread finder
748             */
749            public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
750                    this.mbThreadFinder = mbThreadFinder;
751            }
752    
753            /**
754             * Returns the message boards thread flag local service.
755             *
756             * @return the message boards thread flag local service
757             */
758            public com.liferay.portlet.messageboards.service.MBThreadFlagLocalService getMBThreadFlagLocalService() {
759                    return mbThreadFlagLocalService;
760            }
761    
762            /**
763             * Sets the message boards thread flag local service.
764             *
765             * @param mbThreadFlagLocalService the message boards thread flag local service
766             */
767            public void setMBThreadFlagLocalService(
768                    com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService) {
769                    this.mbThreadFlagLocalService = mbThreadFlagLocalService;
770            }
771    
772            /**
773             * Returns the message boards thread flag persistence.
774             *
775             * @return the message boards thread flag persistence
776             */
777            public MBThreadFlagPersistence getMBThreadFlagPersistence() {
778                    return mbThreadFlagPersistence;
779            }
780    
781            /**
782             * Sets the message boards thread flag persistence.
783             *
784             * @param mbThreadFlagPersistence the message boards thread flag persistence
785             */
786            public void setMBThreadFlagPersistence(
787                    MBThreadFlagPersistence mbThreadFlagPersistence) {
788                    this.mbThreadFlagPersistence = mbThreadFlagPersistence;
789            }
790    
791            /**
792             * Returns the counter local service.
793             *
794             * @return the counter local service
795             */
796            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
797                    return counterLocalService;
798            }
799    
800            /**
801             * Sets the counter local service.
802             *
803             * @param counterLocalService the counter local service
804             */
805            public void setCounterLocalService(
806                    com.liferay.counter.service.CounterLocalService counterLocalService) {
807                    this.counterLocalService = counterLocalService;
808            }
809    
810            /**
811             * Returns the group local service.
812             *
813             * @return the group local service
814             */
815            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
816                    return groupLocalService;
817            }
818    
819            /**
820             * Sets the group local service.
821             *
822             * @param groupLocalService the group local service
823             */
824            public void setGroupLocalService(
825                    com.liferay.portal.service.GroupLocalService groupLocalService) {
826                    this.groupLocalService = groupLocalService;
827            }
828    
829            /**
830             * Returns the group remote service.
831             *
832             * @return the group remote service
833             */
834            public com.liferay.portal.service.GroupService getGroupService() {
835                    return groupService;
836            }
837    
838            /**
839             * Sets the group remote service.
840             *
841             * @param groupService the group remote service
842             */
843            public void setGroupService(
844                    com.liferay.portal.service.GroupService groupService) {
845                    this.groupService = groupService;
846            }
847    
848            /**
849             * Returns the group persistence.
850             *
851             * @return the group persistence
852             */
853            public GroupPersistence getGroupPersistence() {
854                    return groupPersistence;
855            }
856    
857            /**
858             * Sets the group persistence.
859             *
860             * @param groupPersistence the group persistence
861             */
862            public void setGroupPersistence(GroupPersistence groupPersistence) {
863                    this.groupPersistence = groupPersistence;
864            }
865    
866            /**
867             * Returns the group finder.
868             *
869             * @return the group finder
870             */
871            public GroupFinder getGroupFinder() {
872                    return groupFinder;
873            }
874    
875            /**
876             * Sets the group finder.
877             *
878             * @param groupFinder the group finder
879             */
880            public void setGroupFinder(GroupFinder groupFinder) {
881                    this.groupFinder = groupFinder;
882            }
883    
884            /**
885             * Returns the lock local service.
886             *
887             * @return the lock local service
888             */
889            public com.liferay.portal.service.LockLocalService getLockLocalService() {
890                    return lockLocalService;
891            }
892    
893            /**
894             * Sets the lock local service.
895             *
896             * @param lockLocalService the lock local service
897             */
898            public void setLockLocalService(
899                    com.liferay.portal.service.LockLocalService lockLocalService) {
900                    this.lockLocalService = lockLocalService;
901            }
902    
903            /**
904             * Returns the lock persistence.
905             *
906             * @return the lock persistence
907             */
908            public LockPersistence getLockPersistence() {
909                    return lockPersistence;
910            }
911    
912            /**
913             * Sets the lock persistence.
914             *
915             * @param lockPersistence the lock persistence
916             */
917            public void setLockPersistence(LockPersistence lockPersistence) {
918                    this.lockPersistence = lockPersistence;
919            }
920    
921            /**
922             * Returns the lock finder.
923             *
924             * @return the lock finder
925             */
926            public LockFinder getLockFinder() {
927                    return lockFinder;
928            }
929    
930            /**
931             * Sets the lock finder.
932             *
933             * @param lockFinder the lock finder
934             */
935            public void setLockFinder(LockFinder lockFinder) {
936                    this.lockFinder = lockFinder;
937            }
938    
939            /**
940             * Returns the resource local service.
941             *
942             * @return the resource local service
943             */
944            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
945                    return resourceLocalService;
946            }
947    
948            /**
949             * Sets the resource local service.
950             *
951             * @param resourceLocalService the resource local service
952             */
953            public void setResourceLocalService(
954                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
955                    this.resourceLocalService = resourceLocalService;
956            }
957    
958            /**
959             * Returns the subscription local service.
960             *
961             * @return the subscription local service
962             */
963            public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
964                    return subscriptionLocalService;
965            }
966    
967            /**
968             * Sets the subscription local service.
969             *
970             * @param subscriptionLocalService the subscription local service
971             */
972            public void setSubscriptionLocalService(
973                    com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
974                    this.subscriptionLocalService = subscriptionLocalService;
975            }
976    
977            /**
978             * Returns the subscription persistence.
979             *
980             * @return the subscription persistence
981             */
982            public SubscriptionPersistence getSubscriptionPersistence() {
983                    return subscriptionPersistence;
984            }
985    
986            /**
987             * Sets the subscription persistence.
988             *
989             * @param subscriptionPersistence the subscription persistence
990             */
991            public void setSubscriptionPersistence(
992                    SubscriptionPersistence subscriptionPersistence) {
993                    this.subscriptionPersistence = subscriptionPersistence;
994            }
995    
996            /**
997             * Returns the user local service.
998             *
999             * @return the user local service
1000             */
1001            public com.liferay.portal.service.UserLocalService getUserLocalService() {
1002                    return userLocalService;
1003            }
1004    
1005            /**
1006             * Sets the user local service.
1007             *
1008             * @param userLocalService the user local service
1009             */
1010            public void setUserLocalService(
1011                    com.liferay.portal.service.UserLocalService userLocalService) {
1012                    this.userLocalService = userLocalService;
1013            }
1014    
1015            /**
1016             * Returns the user remote service.
1017             *
1018             * @return the user remote service
1019             */
1020            public com.liferay.portal.service.UserService getUserService() {
1021                    return userService;
1022            }
1023    
1024            /**
1025             * Sets the user remote service.
1026             *
1027             * @param userService the user remote service
1028             */
1029            public void setUserService(
1030                    com.liferay.portal.service.UserService userService) {
1031                    this.userService = userService;
1032            }
1033    
1034            /**
1035             * Returns the user persistence.
1036             *
1037             * @return the user persistence
1038             */
1039            public UserPersistence getUserPersistence() {
1040                    return userPersistence;
1041            }
1042    
1043            /**
1044             * Sets the user persistence.
1045             *
1046             * @param userPersistence the user persistence
1047             */
1048            public void setUserPersistence(UserPersistence userPersistence) {
1049                    this.userPersistence = userPersistence;
1050            }
1051    
1052            /**
1053             * Returns the user finder.
1054             *
1055             * @return the user finder
1056             */
1057            public UserFinder getUserFinder() {
1058                    return userFinder;
1059            }
1060    
1061            /**
1062             * Sets the user finder.
1063             *
1064             * @param userFinder the user finder
1065             */
1066            public void setUserFinder(UserFinder userFinder) {
1067                    this.userFinder = userFinder;
1068            }
1069    
1070            /**
1071             * Returns the workflow instance link local service.
1072             *
1073             * @return the workflow instance link local service
1074             */
1075            public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
1076                    return workflowInstanceLinkLocalService;
1077            }
1078    
1079            /**
1080             * Sets the workflow instance link local service.
1081             *
1082             * @param workflowInstanceLinkLocalService the workflow instance link local service
1083             */
1084            public void setWorkflowInstanceLinkLocalService(
1085                    com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
1086                    this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
1087            }
1088    
1089            /**
1090             * Returns the workflow instance link persistence.
1091             *
1092             * @return the workflow instance link persistence
1093             */
1094            public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
1095                    return workflowInstanceLinkPersistence;
1096            }
1097    
1098            /**
1099             * Sets the workflow instance link persistence.
1100             *
1101             * @param workflowInstanceLinkPersistence the workflow instance link persistence
1102             */
1103            public void setWorkflowInstanceLinkPersistence(
1104                    WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
1105                    this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
1106            }
1107    
1108            /**
1109             * Returns the asset entry local service.
1110             *
1111             * @return the asset entry local service
1112             */
1113            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
1114                    return assetEntryLocalService;
1115            }
1116    
1117            /**
1118             * Sets the asset entry local service.
1119             *
1120             * @param assetEntryLocalService the asset entry local service
1121             */
1122            public void setAssetEntryLocalService(
1123                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
1124                    this.assetEntryLocalService = assetEntryLocalService;
1125            }
1126    
1127            /**
1128             * Returns the asset entry remote service.
1129             *
1130             * @return the asset entry remote service
1131             */
1132            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
1133                    return assetEntryService;
1134            }
1135    
1136            /**
1137             * Sets the asset entry remote service.
1138             *
1139             * @param assetEntryService the asset entry remote service
1140             */
1141            public void setAssetEntryService(
1142                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
1143                    this.assetEntryService = assetEntryService;
1144            }
1145    
1146            /**
1147             * Returns the asset entry persistence.
1148             *
1149             * @return the asset entry persistence
1150             */
1151            public AssetEntryPersistence getAssetEntryPersistence() {
1152                    return assetEntryPersistence;
1153            }
1154    
1155            /**
1156             * Sets the asset entry persistence.
1157             *
1158             * @param assetEntryPersistence the asset entry persistence
1159             */
1160            public void setAssetEntryPersistence(
1161                    AssetEntryPersistence assetEntryPersistence) {
1162                    this.assetEntryPersistence = assetEntryPersistence;
1163            }
1164    
1165            /**
1166             * Returns the asset entry finder.
1167             *
1168             * @return the asset entry finder
1169             */
1170            public AssetEntryFinder getAssetEntryFinder() {
1171                    return assetEntryFinder;
1172            }
1173    
1174            /**
1175             * Sets the asset entry finder.
1176             *
1177             * @param assetEntryFinder the asset entry finder
1178             */
1179            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1180                    this.assetEntryFinder = assetEntryFinder;
1181            }
1182    
1183            /**
1184             * Returns the ratings stats local service.
1185             *
1186             * @return the ratings stats local service
1187             */
1188            public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
1189                    return ratingsStatsLocalService;
1190            }
1191    
1192            /**
1193             * Sets the ratings stats local service.
1194             *
1195             * @param ratingsStatsLocalService the ratings stats local service
1196             */
1197            public void setRatingsStatsLocalService(
1198                    com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
1199                    this.ratingsStatsLocalService = ratingsStatsLocalService;
1200            }
1201    
1202            /**
1203             * Returns the ratings stats persistence.
1204             *
1205             * @return the ratings stats persistence
1206             */
1207            public RatingsStatsPersistence getRatingsStatsPersistence() {
1208                    return ratingsStatsPersistence;
1209            }
1210    
1211            /**
1212             * Sets the ratings stats persistence.
1213             *
1214             * @param ratingsStatsPersistence the ratings stats persistence
1215             */
1216            public void setRatingsStatsPersistence(
1217                    RatingsStatsPersistence ratingsStatsPersistence) {
1218                    this.ratingsStatsPersistence = ratingsStatsPersistence;
1219            }
1220    
1221            /**
1222             * Returns the ratings stats finder.
1223             *
1224             * @return the ratings stats finder
1225             */
1226            public RatingsStatsFinder getRatingsStatsFinder() {
1227                    return ratingsStatsFinder;
1228            }
1229    
1230            /**
1231             * Sets the ratings stats finder.
1232             *
1233             * @param ratingsStatsFinder the ratings stats finder
1234             */
1235            public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1236                    this.ratingsStatsFinder = ratingsStatsFinder;
1237            }
1238    
1239            /**
1240             * Returns the social activity local service.
1241             *
1242             * @return the social activity local service
1243             */
1244            public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
1245                    return socialActivityLocalService;
1246            }
1247    
1248            /**
1249             * Sets the social activity local service.
1250             *
1251             * @param socialActivityLocalService the social activity local service
1252             */
1253            public void setSocialActivityLocalService(
1254                    com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
1255                    this.socialActivityLocalService = socialActivityLocalService;
1256            }
1257    
1258            /**
1259             * Returns the social activity persistence.
1260             *
1261             * @return the social activity persistence
1262             */
1263            public SocialActivityPersistence getSocialActivityPersistence() {
1264                    return socialActivityPersistence;
1265            }
1266    
1267            /**
1268             * Sets the social activity persistence.
1269             *
1270             * @param socialActivityPersistence the social activity persistence
1271             */
1272            public void setSocialActivityPersistence(
1273                    SocialActivityPersistence socialActivityPersistence) {
1274                    this.socialActivityPersistence = socialActivityPersistence;
1275            }
1276    
1277            /**
1278             * Returns the social activity finder.
1279             *
1280             * @return the social activity finder
1281             */
1282            public SocialActivityFinder getSocialActivityFinder() {
1283                    return socialActivityFinder;
1284            }
1285    
1286            /**
1287             * Sets the social activity finder.
1288             *
1289             * @param socialActivityFinder the social activity finder
1290             */
1291            public void setSocialActivityFinder(
1292                    SocialActivityFinder socialActivityFinder) {
1293                    this.socialActivityFinder = socialActivityFinder;
1294            }
1295    
1296            /**
1297             * Returns the trash entry local service.
1298             *
1299             * @return the trash entry local service
1300             */
1301            public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
1302                    return trashEntryLocalService;
1303            }
1304    
1305            /**
1306             * Sets the trash entry local service.
1307             *
1308             * @param trashEntryLocalService the trash entry local service
1309             */
1310            public void setTrashEntryLocalService(
1311                    com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
1312                    this.trashEntryLocalService = trashEntryLocalService;
1313            }
1314    
1315            /**
1316             * Returns the trash entry remote service.
1317             *
1318             * @return the trash entry remote service
1319             */
1320            public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
1321                    return trashEntryService;
1322            }
1323    
1324            /**
1325             * Sets the trash entry remote service.
1326             *
1327             * @param trashEntryService the trash entry remote service
1328             */
1329            public void setTrashEntryService(
1330                    com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
1331                    this.trashEntryService = trashEntryService;
1332            }
1333    
1334            /**
1335             * Returns the trash entry persistence.
1336             *
1337             * @return the trash entry persistence
1338             */
1339            public TrashEntryPersistence getTrashEntryPersistence() {
1340                    return trashEntryPersistence;
1341            }
1342    
1343            /**
1344             * Sets the trash entry persistence.
1345             *
1346             * @param trashEntryPersistence the trash entry persistence
1347             */
1348            public void setTrashEntryPersistence(
1349                    TrashEntryPersistence trashEntryPersistence) {
1350                    this.trashEntryPersistence = trashEntryPersistence;
1351            }
1352    
1353            public void afterPropertiesSet() {
1354                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.messageboards.model.MBThread",
1355                            mbThreadLocalService);
1356            }
1357    
1358            public void destroy() {
1359                    persistedModelLocalServiceRegistry.unregister(
1360                            "com.liferay.portlet.messageboards.model.MBThread");
1361            }
1362    
1363            /**
1364             * Returns the Spring bean ID for this bean.
1365             *
1366             * @return the Spring bean ID for this bean
1367             */
1368            @Override
1369            public String getBeanIdentifier() {
1370                    return _beanIdentifier;
1371            }
1372    
1373            /**
1374             * Sets the Spring bean ID for this bean.
1375             *
1376             * @param beanIdentifier the Spring bean ID for this bean
1377             */
1378            @Override
1379            public void setBeanIdentifier(String beanIdentifier) {
1380                    _beanIdentifier = beanIdentifier;
1381            }
1382    
1383            protected Class<?> getModelClass() {
1384                    return MBThread.class;
1385            }
1386    
1387            protected String getModelClassName() {
1388                    return MBThread.class.getName();
1389            }
1390    
1391            /**
1392             * Performs an SQL query.
1393             *
1394             * @param sql the sql query
1395             */
1396            protected void runSQL(String sql) throws SystemException {
1397                    try {
1398                            DataSource dataSource = mbThreadPersistence.getDataSource();
1399    
1400                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1401                                            sql, new int[0]);
1402    
1403                            sqlUpdate.update();
1404                    }
1405                    catch (Exception e) {
1406                            throw new SystemException(e);
1407                    }
1408            }
1409    
1410            @BeanReference(type = com.liferay.portlet.messageboards.service.MBBanLocalService.class)
1411            protected com.liferay.portlet.messageboards.service.MBBanLocalService mbBanLocalService;
1412            @BeanReference(type = com.liferay.portlet.messageboards.service.MBBanService.class)
1413            protected com.liferay.portlet.messageboards.service.MBBanService mbBanService;
1414            @BeanReference(type = MBBanPersistence.class)
1415            protected MBBanPersistence mbBanPersistence;
1416            @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryLocalService.class)
1417            protected com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService;
1418            @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryService.class)
1419            protected com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService;
1420            @BeanReference(type = MBCategoryPersistence.class)
1421            protected MBCategoryPersistence mbCategoryPersistence;
1422            @BeanReference(type = MBCategoryFinder.class)
1423            protected MBCategoryFinder mbCategoryFinder;
1424            @BeanReference(type = com.liferay.portlet.messageboards.service.MBDiscussionLocalService.class)
1425            protected com.liferay.portlet.messageboards.service.MBDiscussionLocalService mbDiscussionLocalService;
1426            @BeanReference(type = MBDiscussionPersistence.class)
1427            protected MBDiscussionPersistence mbDiscussionPersistence;
1428            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMailingListLocalService.class)
1429            protected com.liferay.portlet.messageboards.service.MBMailingListLocalService mbMailingListLocalService;
1430            @BeanReference(type = MBMailingListPersistence.class)
1431            protected MBMailingListPersistence mbMailingListPersistence;
1432            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageLocalService.class)
1433            protected com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService;
1434            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageService.class)
1435            protected com.liferay.portlet.messageboards.service.MBMessageService mbMessageService;
1436            @BeanReference(type = MBMessagePersistence.class)
1437            protected MBMessagePersistence mbMessagePersistence;
1438            @BeanReference(type = MBMessageFinder.class)
1439            protected MBMessageFinder mbMessageFinder;
1440            @BeanReference(type = com.liferay.portlet.messageboards.service.MBStatsUserLocalService.class)
1441            protected com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService;
1442            @BeanReference(type = MBStatsUserPersistence.class)
1443            protected MBStatsUserPersistence mbStatsUserPersistence;
1444            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadLocalService.class)
1445            protected com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService;
1446            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadService.class)
1447            protected com.liferay.portlet.messageboards.service.MBThreadService mbThreadService;
1448            @BeanReference(type = MBThreadPersistence.class)
1449            protected MBThreadPersistence mbThreadPersistence;
1450            @BeanReference(type = MBThreadFinder.class)
1451            protected MBThreadFinder mbThreadFinder;
1452            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadFlagLocalService.class)
1453            protected com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService;
1454            @BeanReference(type = MBThreadFlagPersistence.class)
1455            protected MBThreadFlagPersistence mbThreadFlagPersistence;
1456            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1457            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1458            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1459            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1460            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1461            protected com.liferay.portal.service.GroupService groupService;
1462            @BeanReference(type = GroupPersistence.class)
1463            protected GroupPersistence groupPersistence;
1464            @BeanReference(type = GroupFinder.class)
1465            protected GroupFinder groupFinder;
1466            @BeanReference(type = com.liferay.portal.service.LockLocalService.class)
1467            protected com.liferay.portal.service.LockLocalService lockLocalService;
1468            @BeanReference(type = LockPersistence.class)
1469            protected LockPersistence lockPersistence;
1470            @BeanReference(type = LockFinder.class)
1471            protected LockFinder lockFinder;
1472            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1473            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1474            @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1475            protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1476            @BeanReference(type = SubscriptionPersistence.class)
1477            protected SubscriptionPersistence subscriptionPersistence;
1478            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1479            protected com.liferay.portal.service.UserLocalService userLocalService;
1480            @BeanReference(type = com.liferay.portal.service.UserService.class)
1481            protected com.liferay.portal.service.UserService userService;
1482            @BeanReference(type = UserPersistence.class)
1483            protected UserPersistence userPersistence;
1484            @BeanReference(type = UserFinder.class)
1485            protected UserFinder userFinder;
1486            @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1487            protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1488            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1489            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1490            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1491            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1492            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1493            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1494            @BeanReference(type = AssetEntryPersistence.class)
1495            protected AssetEntryPersistence assetEntryPersistence;
1496            @BeanReference(type = AssetEntryFinder.class)
1497            protected AssetEntryFinder assetEntryFinder;
1498            @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
1499            protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
1500            @BeanReference(type = RatingsStatsPersistence.class)
1501            protected RatingsStatsPersistence ratingsStatsPersistence;
1502            @BeanReference(type = RatingsStatsFinder.class)
1503            protected RatingsStatsFinder ratingsStatsFinder;
1504            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1505            protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1506            @BeanReference(type = SocialActivityPersistence.class)
1507            protected SocialActivityPersistence socialActivityPersistence;
1508            @BeanReference(type = SocialActivityFinder.class)
1509            protected SocialActivityFinder socialActivityFinder;
1510            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1511            protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1512            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1513            protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1514            @BeanReference(type = TrashEntryPersistence.class)
1515            protected TrashEntryPersistence trashEntryPersistence;
1516            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1517            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1518            private String _beanIdentifier;
1519    }