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.CompanyPersistence;
033    import com.liferay.portal.service.persistence.GroupFinder;
034    import com.liferay.portal.service.persistence.GroupPersistence;
035    import com.liferay.portal.service.persistence.LockFinder;
036    import com.liferay.portal.service.persistence.LockPersistence;
037    import com.liferay.portal.service.persistence.PortletPreferencesFinder;
038    import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
039    import com.liferay.portal.service.persistence.SubscriptionPersistence;
040    import com.liferay.portal.service.persistence.UserFinder;
041    import com.liferay.portal.service.persistence.UserPersistence;
042    import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
043    
044    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
045    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
046    import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
047    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
048    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
049    import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
050    import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
051    import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
052    import com.liferay.portlet.messageboards.model.MBMessage;
053    import com.liferay.portlet.messageboards.service.MBMessageLocalService;
054    import com.liferay.portlet.messageboards.service.persistence.MBBanPersistence;
055    import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
056    import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
057    import com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence;
058    import com.liferay.portlet.messageboards.service.persistence.MBMailingListPersistence;
059    import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
060    import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
061    import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
062    import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
063    import com.liferay.portlet.messageboards.service.persistence.MBThreadFlagPersistence;
064    import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
065    import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
066    import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
067    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
068    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
069    import com.liferay.portlet.wiki.service.persistence.WikiPageFinder;
070    import com.liferay.portlet.wiki.service.persistence.WikiPagePersistence;
071    
072    import java.io.Serializable;
073    
074    import java.util.List;
075    
076    import javax.sql.DataSource;
077    
078    /**
079     * Provides the base implementation for the message-boards message local service.
080     *
081     * <p>
082     * 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.MBMessageLocalServiceImpl}.
083     * </p>
084     *
085     * @author Brian Wing Shun Chan
086     * @see com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl
087     * @see com.liferay.portlet.messageboards.service.MBMessageLocalServiceUtil
088     * @generated
089     */
090    public abstract class MBMessageLocalServiceBaseImpl extends BaseLocalServiceImpl
091            implements MBMessageLocalService, IdentifiableBean {
092            /*
093             * NOTE FOR DEVELOPERS:
094             *
095             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.messageboards.service.MBMessageLocalServiceUtil} to access the message-boards message local service.
096             */
097    
098            /**
099             * Adds the message-boards message to the database. Also notifies the appropriate model listeners.
100             *
101             * @param mbMessage the message-boards message
102             * @return the message-boards message that was added
103             * @throws SystemException if a system exception occurred
104             */
105            @Indexable(type = IndexableType.REINDEX)
106            @Override
107            public MBMessage addMBMessage(MBMessage mbMessage)
108                    throws SystemException {
109                    mbMessage.setNew(true);
110    
111                    return mbMessagePersistence.update(mbMessage);
112            }
113    
114            /**
115             * Creates a new message-boards message with the primary key. Does not add the message-boards message to the database.
116             *
117             * @param messageId the primary key for the new message-boards message
118             * @return the new message-boards message
119             */
120            @Override
121            public MBMessage createMBMessage(long messageId) {
122                    return mbMessagePersistence.create(messageId);
123            }
124    
125            /**
126             * Deletes the message-boards message with the primary key from the database. Also notifies the appropriate model listeners.
127             *
128             * @param messageId the primary key of the message-boards message
129             * @return the message-boards message that was removed
130             * @throws PortalException if a message-boards message with the primary key could not be found
131             * @throws SystemException if a system exception occurred
132             */
133            @Indexable(type = IndexableType.DELETE)
134            @Override
135            public MBMessage deleteMBMessage(long messageId)
136                    throws PortalException, SystemException {
137                    return mbMessagePersistence.remove(messageId);
138            }
139    
140            /**
141             * Deletes the message-boards message from the database. Also notifies the appropriate model listeners.
142             *
143             * @param mbMessage the message-boards message
144             * @return the message-boards message that was removed
145             * @throws SystemException if a system exception occurred
146             */
147            @Indexable(type = IndexableType.DELETE)
148            @Override
149            public MBMessage deleteMBMessage(MBMessage mbMessage)
150                    throws SystemException {
151                    return mbMessagePersistence.remove(mbMessage);
152            }
153    
154            @Override
155            public DynamicQuery dynamicQuery() {
156                    Class<?> clazz = getClass();
157    
158                    return DynamicQueryFactoryUtil.forClass(MBMessage.class,
159                            clazz.getClassLoader());
160            }
161    
162            /**
163             * Performs a dynamic query on the database and returns the matching rows.
164             *
165             * @param dynamicQuery the dynamic query
166             * @return the matching rows
167             * @throws SystemException if a system exception occurred
168             */
169            @Override
170            @SuppressWarnings("rawtypes")
171            public List dynamicQuery(DynamicQuery dynamicQuery)
172                    throws SystemException {
173                    return mbMessagePersistence.findWithDynamicQuery(dynamicQuery);
174            }
175    
176            /**
177             * Performs a dynamic query on the database and returns a range of the matching rows.
178             *
179             * <p>
180             * 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.MBMessageModelImpl}. 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.
181             * </p>
182             *
183             * @param dynamicQuery the dynamic query
184             * @param start the lower bound of the range of model instances
185             * @param end the upper bound of the range of model instances (not inclusive)
186             * @return the range of matching rows
187             * @throws SystemException if a system exception occurred
188             */
189            @Override
190            @SuppressWarnings("rawtypes")
191            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
192                    throws SystemException {
193                    return mbMessagePersistence.findWithDynamicQuery(dynamicQuery, start,
194                            end);
195            }
196    
197            /**
198             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
199             *
200             * <p>
201             * 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.MBMessageModelImpl}. 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.
202             * </p>
203             *
204             * @param dynamicQuery the dynamic query
205             * @param start the lower bound of the range of model instances
206             * @param end the upper bound of the range of model instances (not inclusive)
207             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
208             * @return the ordered range of matching rows
209             * @throws SystemException if a system exception occurred
210             */
211            @Override
212            @SuppressWarnings("rawtypes")
213            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
214                    OrderByComparator orderByComparator) throws SystemException {
215                    return mbMessagePersistence.findWithDynamicQuery(dynamicQuery, start,
216                            end, orderByComparator);
217            }
218    
219            /**
220             * Returns the number of rows that match the dynamic query.
221             *
222             * @param dynamicQuery the dynamic query
223             * @return the number of rows that match the dynamic query
224             * @throws SystemException if a system exception occurred
225             */
226            @Override
227            public long dynamicQueryCount(DynamicQuery dynamicQuery)
228                    throws SystemException {
229                    return mbMessagePersistence.countWithDynamicQuery(dynamicQuery);
230            }
231    
232            /**
233             * Returns the number of rows that match the dynamic query.
234             *
235             * @param dynamicQuery the dynamic query
236             * @param projection the projection to apply to the query
237             * @return the number of rows that match the dynamic query
238             * @throws SystemException if a system exception occurred
239             */
240            @Override
241            public long dynamicQueryCount(DynamicQuery dynamicQuery,
242                    Projection projection) throws SystemException {
243                    return mbMessagePersistence.countWithDynamicQuery(dynamicQuery,
244                            projection);
245            }
246    
247            @Override
248            public MBMessage fetchMBMessage(long messageId) throws SystemException {
249                    return mbMessagePersistence.fetchByPrimaryKey(messageId);
250            }
251    
252            /**
253             * Returns the message-boards message with the matching UUID and company.
254             *
255             * @param uuid the message-boards message's UUID
256             * @param  companyId the primary key of the company
257             * @return the matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
258             * @throws SystemException if a system exception occurred
259             */
260            @Override
261            public MBMessage fetchMBMessageByUuidAndCompanyId(String uuid,
262                    long companyId) throws SystemException {
263                    return mbMessagePersistence.fetchByUuid_C_First(uuid, companyId, null);
264            }
265    
266            /**
267             * Returns the message-boards message matching the UUID and group.
268             *
269             * @param uuid the message-boards message's UUID
270             * @param groupId the primary key of the group
271             * @return the matching message-boards message, or <code>null</code> if a matching message-boards message could not be found
272             * @throws SystemException if a system exception occurred
273             */
274            @Override
275            public MBMessage fetchMBMessageByUuidAndGroupId(String uuid, long groupId)
276                    throws SystemException {
277                    return mbMessagePersistence.fetchByUUID_G(uuid, groupId);
278            }
279    
280            /**
281             * Returns the message-boards message with the primary key.
282             *
283             * @param messageId the primary key of the message-boards message
284             * @return the message-boards message
285             * @throws PortalException if a message-boards message with the primary key could not be found
286             * @throws SystemException if a system exception occurred
287             */
288            @Override
289            public MBMessage getMBMessage(long messageId)
290                    throws PortalException, SystemException {
291                    return mbMessagePersistence.findByPrimaryKey(messageId);
292            }
293    
294            @Override
295            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
296                    throws PortalException, SystemException {
297                    return mbMessagePersistence.findByPrimaryKey(primaryKeyObj);
298            }
299    
300            /**
301             * Returns the message-boards message with the matching UUID and company.
302             *
303             * @param uuid the message-boards message's UUID
304             * @param  companyId the primary key of the company
305             * @return the matching message-boards message
306             * @throws PortalException if a matching message-boards message could not be found
307             * @throws SystemException if a system exception occurred
308             */
309            @Override
310            public MBMessage getMBMessageByUuidAndCompanyId(String uuid, long companyId)
311                    throws PortalException, SystemException {
312                    return mbMessagePersistence.findByUuid_C_First(uuid, companyId, null);
313            }
314    
315            /**
316             * Returns the message-boards message matching the UUID and group.
317             *
318             * @param uuid the message-boards message's UUID
319             * @param groupId the primary key of the group
320             * @return the matching message-boards message
321             * @throws PortalException if a matching message-boards message could not be found
322             * @throws SystemException if a system exception occurred
323             */
324            @Override
325            public MBMessage getMBMessageByUuidAndGroupId(String uuid, long groupId)
326                    throws PortalException, SystemException {
327                    return mbMessagePersistence.findByUUID_G(uuid, groupId);
328            }
329    
330            /**
331             * Returns a range of all the message-boards messages.
332             *
333             * <p>
334             * 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.MBMessageModelImpl}. 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.
335             * </p>
336             *
337             * @param start the lower bound of the range of message-boards messages
338             * @param end the upper bound of the range of message-boards messages (not inclusive)
339             * @return the range of message-boards messages
340             * @throws SystemException if a system exception occurred
341             */
342            @Override
343            public List<MBMessage> getMBMessages(int start, int end)
344                    throws SystemException {
345                    return mbMessagePersistence.findAll(start, end);
346            }
347    
348            /**
349             * Returns the number of message-boards messages.
350             *
351             * @return the number of message-boards messages
352             * @throws SystemException if a system exception occurred
353             */
354            @Override
355            public int getMBMessagesCount() throws SystemException {
356                    return mbMessagePersistence.countAll();
357            }
358    
359            /**
360             * Updates the message-boards message in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
361             *
362             * @param mbMessage the message-boards message
363             * @return the message-boards message that was updated
364             * @throws SystemException if a system exception occurred
365             */
366            @Indexable(type = IndexableType.REINDEX)
367            @Override
368            public MBMessage updateMBMessage(MBMessage mbMessage)
369                    throws SystemException {
370                    return mbMessagePersistence.update(mbMessage);
371            }
372    
373            /**
374             * Returns the message boards ban local service.
375             *
376             * @return the message boards ban local service
377             */
378            public com.liferay.portlet.messageboards.service.MBBanLocalService getMBBanLocalService() {
379                    return mbBanLocalService;
380            }
381    
382            /**
383             * Sets the message boards ban local service.
384             *
385             * @param mbBanLocalService the message boards ban local service
386             */
387            public void setMBBanLocalService(
388                    com.liferay.portlet.messageboards.service.MBBanLocalService mbBanLocalService) {
389                    this.mbBanLocalService = mbBanLocalService;
390            }
391    
392            /**
393             * Returns the message boards ban remote service.
394             *
395             * @return the message boards ban remote service
396             */
397            public com.liferay.portlet.messageboards.service.MBBanService getMBBanService() {
398                    return mbBanService;
399            }
400    
401            /**
402             * Sets the message boards ban remote service.
403             *
404             * @param mbBanService the message boards ban remote service
405             */
406            public void setMBBanService(
407                    com.liferay.portlet.messageboards.service.MBBanService mbBanService) {
408                    this.mbBanService = mbBanService;
409            }
410    
411            /**
412             * Returns the message boards ban persistence.
413             *
414             * @return the message boards ban persistence
415             */
416            public MBBanPersistence getMBBanPersistence() {
417                    return mbBanPersistence;
418            }
419    
420            /**
421             * Sets the message boards ban persistence.
422             *
423             * @param mbBanPersistence the message boards ban persistence
424             */
425            public void setMBBanPersistence(MBBanPersistence mbBanPersistence) {
426                    this.mbBanPersistence = mbBanPersistence;
427            }
428    
429            /**
430             * Returns the message boards category local service.
431             *
432             * @return the message boards category local service
433             */
434            public com.liferay.portlet.messageboards.service.MBCategoryLocalService getMBCategoryLocalService() {
435                    return mbCategoryLocalService;
436            }
437    
438            /**
439             * Sets the message boards category local service.
440             *
441             * @param mbCategoryLocalService the message boards category local service
442             */
443            public void setMBCategoryLocalService(
444                    com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService) {
445                    this.mbCategoryLocalService = mbCategoryLocalService;
446            }
447    
448            /**
449             * Returns the message boards category remote service.
450             *
451             * @return the message boards category remote service
452             */
453            public com.liferay.portlet.messageboards.service.MBCategoryService getMBCategoryService() {
454                    return mbCategoryService;
455            }
456    
457            /**
458             * Sets the message boards category remote service.
459             *
460             * @param mbCategoryService the message boards category remote service
461             */
462            public void setMBCategoryService(
463                    com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService) {
464                    this.mbCategoryService = mbCategoryService;
465            }
466    
467            /**
468             * Returns the message boards category persistence.
469             *
470             * @return the message boards category persistence
471             */
472            public MBCategoryPersistence getMBCategoryPersistence() {
473                    return mbCategoryPersistence;
474            }
475    
476            /**
477             * Sets the message boards category persistence.
478             *
479             * @param mbCategoryPersistence the message boards category persistence
480             */
481            public void setMBCategoryPersistence(
482                    MBCategoryPersistence mbCategoryPersistence) {
483                    this.mbCategoryPersistence = mbCategoryPersistence;
484            }
485    
486            /**
487             * Returns the message boards category finder.
488             *
489             * @return the message boards category finder
490             */
491            public MBCategoryFinder getMBCategoryFinder() {
492                    return mbCategoryFinder;
493            }
494    
495            /**
496             * Sets the message boards category finder.
497             *
498             * @param mbCategoryFinder the message boards category finder
499             */
500            public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
501                    this.mbCategoryFinder = mbCategoryFinder;
502            }
503    
504            /**
505             * Returns the message boards discussion local service.
506             *
507             * @return the message boards discussion local service
508             */
509            public com.liferay.portlet.messageboards.service.MBDiscussionLocalService getMBDiscussionLocalService() {
510                    return mbDiscussionLocalService;
511            }
512    
513            /**
514             * Sets the message boards discussion local service.
515             *
516             * @param mbDiscussionLocalService the message boards discussion local service
517             */
518            public void setMBDiscussionLocalService(
519                    com.liferay.portlet.messageboards.service.MBDiscussionLocalService mbDiscussionLocalService) {
520                    this.mbDiscussionLocalService = mbDiscussionLocalService;
521            }
522    
523            /**
524             * Returns the message boards discussion persistence.
525             *
526             * @return the message boards discussion persistence
527             */
528            public MBDiscussionPersistence getMBDiscussionPersistence() {
529                    return mbDiscussionPersistence;
530            }
531    
532            /**
533             * Sets the message boards discussion persistence.
534             *
535             * @param mbDiscussionPersistence the message boards discussion persistence
536             */
537            public void setMBDiscussionPersistence(
538                    MBDiscussionPersistence mbDiscussionPersistence) {
539                    this.mbDiscussionPersistence = mbDiscussionPersistence;
540            }
541    
542            /**
543             * Returns the message boards mailing list local service.
544             *
545             * @return the message boards mailing list local service
546             */
547            public com.liferay.portlet.messageboards.service.MBMailingListLocalService getMBMailingListLocalService() {
548                    return mbMailingListLocalService;
549            }
550    
551            /**
552             * Sets the message boards mailing list local service.
553             *
554             * @param mbMailingListLocalService the message boards mailing list local service
555             */
556            public void setMBMailingListLocalService(
557                    com.liferay.portlet.messageboards.service.MBMailingListLocalService mbMailingListLocalService) {
558                    this.mbMailingListLocalService = mbMailingListLocalService;
559            }
560    
561            /**
562             * Returns the message boards mailing list persistence.
563             *
564             * @return the message boards mailing list persistence
565             */
566            public MBMailingListPersistence getMBMailingListPersistence() {
567                    return mbMailingListPersistence;
568            }
569    
570            /**
571             * Sets the message boards mailing list persistence.
572             *
573             * @param mbMailingListPersistence the message boards mailing list persistence
574             */
575            public void setMBMailingListPersistence(
576                    MBMailingListPersistence mbMailingListPersistence) {
577                    this.mbMailingListPersistence = mbMailingListPersistence;
578            }
579    
580            /**
581             * Returns the message-boards message local service.
582             *
583             * @return the message-boards message local service
584             */
585            public com.liferay.portlet.messageboards.service.MBMessageLocalService getMBMessageLocalService() {
586                    return mbMessageLocalService;
587            }
588    
589            /**
590             * Sets the message-boards message local service.
591             *
592             * @param mbMessageLocalService the message-boards message local service
593             */
594            public void setMBMessageLocalService(
595                    com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService) {
596                    this.mbMessageLocalService = mbMessageLocalService;
597            }
598    
599            /**
600             * Returns the message-boards message remote service.
601             *
602             * @return the message-boards message remote service
603             */
604            public com.liferay.portlet.messageboards.service.MBMessageService getMBMessageService() {
605                    return mbMessageService;
606            }
607    
608            /**
609             * Sets the message-boards message remote service.
610             *
611             * @param mbMessageService the message-boards message remote service
612             */
613            public void setMBMessageService(
614                    com.liferay.portlet.messageboards.service.MBMessageService mbMessageService) {
615                    this.mbMessageService = mbMessageService;
616            }
617    
618            /**
619             * Returns the message-boards message persistence.
620             *
621             * @return the message-boards message persistence
622             */
623            public MBMessagePersistence getMBMessagePersistence() {
624                    return mbMessagePersistence;
625            }
626    
627            /**
628             * Sets the message-boards message persistence.
629             *
630             * @param mbMessagePersistence the message-boards message persistence
631             */
632            public void setMBMessagePersistence(
633                    MBMessagePersistence mbMessagePersistence) {
634                    this.mbMessagePersistence = mbMessagePersistence;
635            }
636    
637            /**
638             * Returns the message-boards message finder.
639             *
640             * @return the message-boards message finder
641             */
642            public MBMessageFinder getMBMessageFinder() {
643                    return mbMessageFinder;
644            }
645    
646            /**
647             * Sets the message-boards message finder.
648             *
649             * @param mbMessageFinder the message-boards message finder
650             */
651            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
652                    this.mbMessageFinder = mbMessageFinder;
653            }
654    
655            /**
656             * Returns the message boards stats user local service.
657             *
658             * @return the message boards stats user local service
659             */
660            public com.liferay.portlet.messageboards.service.MBStatsUserLocalService getMBStatsUserLocalService() {
661                    return mbStatsUserLocalService;
662            }
663    
664            /**
665             * Sets the message boards stats user local service.
666             *
667             * @param mbStatsUserLocalService the message boards stats user local service
668             */
669            public void setMBStatsUserLocalService(
670                    com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService) {
671                    this.mbStatsUserLocalService = mbStatsUserLocalService;
672            }
673    
674            /**
675             * Returns the message boards stats user persistence.
676             *
677             * @return the message boards stats user persistence
678             */
679            public MBStatsUserPersistence getMBStatsUserPersistence() {
680                    return mbStatsUserPersistence;
681            }
682    
683            /**
684             * Sets the message boards stats user persistence.
685             *
686             * @param mbStatsUserPersistence the message boards stats user persistence
687             */
688            public void setMBStatsUserPersistence(
689                    MBStatsUserPersistence mbStatsUserPersistence) {
690                    this.mbStatsUserPersistence = mbStatsUserPersistence;
691            }
692    
693            /**
694             * Returns the message boards thread local service.
695             *
696             * @return the message boards thread local service
697             */
698            public com.liferay.portlet.messageboards.service.MBThreadLocalService getMBThreadLocalService() {
699                    return mbThreadLocalService;
700            }
701    
702            /**
703             * Sets the message boards thread local service.
704             *
705             * @param mbThreadLocalService the message boards thread local service
706             */
707            public void setMBThreadLocalService(
708                    com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService) {
709                    this.mbThreadLocalService = mbThreadLocalService;
710            }
711    
712            /**
713             * Returns the message boards thread remote service.
714             *
715             * @return the message boards thread remote service
716             */
717            public com.liferay.portlet.messageboards.service.MBThreadService getMBThreadService() {
718                    return mbThreadService;
719            }
720    
721            /**
722             * Sets the message boards thread remote service.
723             *
724             * @param mbThreadService the message boards thread remote service
725             */
726            public void setMBThreadService(
727                    com.liferay.portlet.messageboards.service.MBThreadService mbThreadService) {
728                    this.mbThreadService = mbThreadService;
729            }
730    
731            /**
732             * Returns the message boards thread persistence.
733             *
734             * @return the message boards thread persistence
735             */
736            public MBThreadPersistence getMBThreadPersistence() {
737                    return mbThreadPersistence;
738            }
739    
740            /**
741             * Sets the message boards thread persistence.
742             *
743             * @param mbThreadPersistence the message boards thread persistence
744             */
745            public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
746                    this.mbThreadPersistence = mbThreadPersistence;
747            }
748    
749            /**
750             * Returns the message boards thread finder.
751             *
752             * @return the message boards thread finder
753             */
754            public MBThreadFinder getMBThreadFinder() {
755                    return mbThreadFinder;
756            }
757    
758            /**
759             * Sets the message boards thread finder.
760             *
761             * @param mbThreadFinder the message boards thread finder
762             */
763            public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
764                    this.mbThreadFinder = mbThreadFinder;
765            }
766    
767            /**
768             * Returns the message boards thread flag local service.
769             *
770             * @return the message boards thread flag local service
771             */
772            public com.liferay.portlet.messageboards.service.MBThreadFlagLocalService getMBThreadFlagLocalService() {
773                    return mbThreadFlagLocalService;
774            }
775    
776            /**
777             * Sets the message boards thread flag local service.
778             *
779             * @param mbThreadFlagLocalService the message boards thread flag local service
780             */
781            public void setMBThreadFlagLocalService(
782                    com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService) {
783                    this.mbThreadFlagLocalService = mbThreadFlagLocalService;
784            }
785    
786            /**
787             * Returns the message boards thread flag persistence.
788             *
789             * @return the message boards thread flag persistence
790             */
791            public MBThreadFlagPersistence getMBThreadFlagPersistence() {
792                    return mbThreadFlagPersistence;
793            }
794    
795            /**
796             * Sets the message boards thread flag persistence.
797             *
798             * @param mbThreadFlagPersistence the message boards thread flag persistence
799             */
800            public void setMBThreadFlagPersistence(
801                    MBThreadFlagPersistence mbThreadFlagPersistence) {
802                    this.mbThreadFlagPersistence = mbThreadFlagPersistence;
803            }
804    
805            /**
806             * Returns the counter local service.
807             *
808             * @return the counter local service
809             */
810            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
811                    return counterLocalService;
812            }
813    
814            /**
815             * Sets the counter local service.
816             *
817             * @param counterLocalService the counter local service
818             */
819            public void setCounterLocalService(
820                    com.liferay.counter.service.CounterLocalService counterLocalService) {
821                    this.counterLocalService = counterLocalService;
822            }
823    
824            /**
825             * Returns the mail remote service.
826             *
827             * @return the mail remote service
828             */
829            public com.liferay.mail.service.MailService getMailService() {
830                    return mailService;
831            }
832    
833            /**
834             * Sets the mail remote service.
835             *
836             * @param mailService the mail remote service
837             */
838            public void setMailService(com.liferay.mail.service.MailService mailService) {
839                    this.mailService = mailService;
840            }
841    
842            /**
843             * Returns the company local service.
844             *
845             * @return the company local service
846             */
847            public com.liferay.portal.service.CompanyLocalService getCompanyLocalService() {
848                    return companyLocalService;
849            }
850    
851            /**
852             * Sets the company local service.
853             *
854             * @param companyLocalService the company local service
855             */
856            public void setCompanyLocalService(
857                    com.liferay.portal.service.CompanyLocalService companyLocalService) {
858                    this.companyLocalService = companyLocalService;
859            }
860    
861            /**
862             * Returns the company remote service.
863             *
864             * @return the company remote service
865             */
866            public com.liferay.portal.service.CompanyService getCompanyService() {
867                    return companyService;
868            }
869    
870            /**
871             * Sets the company remote service.
872             *
873             * @param companyService the company remote service
874             */
875            public void setCompanyService(
876                    com.liferay.portal.service.CompanyService companyService) {
877                    this.companyService = companyService;
878            }
879    
880            /**
881             * Returns the company persistence.
882             *
883             * @return the company persistence
884             */
885            public CompanyPersistence getCompanyPersistence() {
886                    return companyPersistence;
887            }
888    
889            /**
890             * Sets the company persistence.
891             *
892             * @param companyPersistence the company persistence
893             */
894            public void setCompanyPersistence(CompanyPersistence companyPersistence) {
895                    this.companyPersistence = companyPersistence;
896            }
897    
898            /**
899             * Returns the group local service.
900             *
901             * @return the group local service
902             */
903            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
904                    return groupLocalService;
905            }
906    
907            /**
908             * Sets the group local service.
909             *
910             * @param groupLocalService the group local service
911             */
912            public void setGroupLocalService(
913                    com.liferay.portal.service.GroupLocalService groupLocalService) {
914                    this.groupLocalService = groupLocalService;
915            }
916    
917            /**
918             * Returns the group remote service.
919             *
920             * @return the group remote service
921             */
922            public com.liferay.portal.service.GroupService getGroupService() {
923                    return groupService;
924            }
925    
926            /**
927             * Sets the group remote service.
928             *
929             * @param groupService the group remote service
930             */
931            public void setGroupService(
932                    com.liferay.portal.service.GroupService groupService) {
933                    this.groupService = groupService;
934            }
935    
936            /**
937             * Returns the group persistence.
938             *
939             * @return the group persistence
940             */
941            public GroupPersistence getGroupPersistence() {
942                    return groupPersistence;
943            }
944    
945            /**
946             * Sets the group persistence.
947             *
948             * @param groupPersistence the group persistence
949             */
950            public void setGroupPersistence(GroupPersistence groupPersistence) {
951                    this.groupPersistence = groupPersistence;
952            }
953    
954            /**
955             * Returns the group finder.
956             *
957             * @return the group finder
958             */
959            public GroupFinder getGroupFinder() {
960                    return groupFinder;
961            }
962    
963            /**
964             * Sets the group finder.
965             *
966             * @param groupFinder the group finder
967             */
968            public void setGroupFinder(GroupFinder groupFinder) {
969                    this.groupFinder = groupFinder;
970            }
971    
972            /**
973             * Returns the lock local service.
974             *
975             * @return the lock local service
976             */
977            public com.liferay.portal.service.LockLocalService getLockLocalService() {
978                    return lockLocalService;
979            }
980    
981            /**
982             * Sets the lock local service.
983             *
984             * @param lockLocalService the lock local service
985             */
986            public void setLockLocalService(
987                    com.liferay.portal.service.LockLocalService lockLocalService) {
988                    this.lockLocalService = lockLocalService;
989            }
990    
991            /**
992             * Returns the lock persistence.
993             *
994             * @return the lock persistence
995             */
996            public LockPersistence getLockPersistence() {
997                    return lockPersistence;
998            }
999    
1000            /**
1001             * Sets the lock persistence.
1002             *
1003             * @param lockPersistence the lock persistence
1004             */
1005            public void setLockPersistence(LockPersistence lockPersistence) {
1006                    this.lockPersistence = lockPersistence;
1007            }
1008    
1009            /**
1010             * Returns the lock finder.
1011             *
1012             * @return the lock finder
1013             */
1014            public LockFinder getLockFinder() {
1015                    return lockFinder;
1016            }
1017    
1018            /**
1019             * Sets the lock finder.
1020             *
1021             * @param lockFinder the lock finder
1022             */
1023            public void setLockFinder(LockFinder lockFinder) {
1024                    this.lockFinder = lockFinder;
1025            }
1026    
1027            /**
1028             * Returns the portlet preferences local service.
1029             *
1030             * @return the portlet preferences local service
1031             */
1032            public com.liferay.portal.service.PortletPreferencesLocalService getPortletPreferencesLocalService() {
1033                    return portletPreferencesLocalService;
1034            }
1035    
1036            /**
1037             * Sets the portlet preferences local service.
1038             *
1039             * @param portletPreferencesLocalService the portlet preferences local service
1040             */
1041            public void setPortletPreferencesLocalService(
1042                    com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService) {
1043                    this.portletPreferencesLocalService = portletPreferencesLocalService;
1044            }
1045    
1046            /**
1047             * Returns the portlet preferences remote service.
1048             *
1049             * @return the portlet preferences remote service
1050             */
1051            public com.liferay.portal.service.PortletPreferencesService getPortletPreferencesService() {
1052                    return portletPreferencesService;
1053            }
1054    
1055            /**
1056             * Sets the portlet preferences remote service.
1057             *
1058             * @param portletPreferencesService the portlet preferences remote service
1059             */
1060            public void setPortletPreferencesService(
1061                    com.liferay.portal.service.PortletPreferencesService portletPreferencesService) {
1062                    this.portletPreferencesService = portletPreferencesService;
1063            }
1064    
1065            /**
1066             * Returns the portlet preferences persistence.
1067             *
1068             * @return the portlet preferences persistence
1069             */
1070            public PortletPreferencesPersistence getPortletPreferencesPersistence() {
1071                    return portletPreferencesPersistence;
1072            }
1073    
1074            /**
1075             * Sets the portlet preferences persistence.
1076             *
1077             * @param portletPreferencesPersistence the portlet preferences persistence
1078             */
1079            public void setPortletPreferencesPersistence(
1080                    PortletPreferencesPersistence portletPreferencesPersistence) {
1081                    this.portletPreferencesPersistence = portletPreferencesPersistence;
1082            }
1083    
1084            /**
1085             * Returns the portlet preferences finder.
1086             *
1087             * @return the portlet preferences finder
1088             */
1089            public PortletPreferencesFinder getPortletPreferencesFinder() {
1090                    return portletPreferencesFinder;
1091            }
1092    
1093            /**
1094             * Sets the portlet preferences finder.
1095             *
1096             * @param portletPreferencesFinder the portlet preferences finder
1097             */
1098            public void setPortletPreferencesFinder(
1099                    PortletPreferencesFinder portletPreferencesFinder) {
1100                    this.portletPreferencesFinder = portletPreferencesFinder;
1101            }
1102    
1103            /**
1104             * Returns the resource local service.
1105             *
1106             * @return the resource local service
1107             */
1108            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
1109                    return resourceLocalService;
1110            }
1111    
1112            /**
1113             * Sets the resource local service.
1114             *
1115             * @param resourceLocalService the resource local service
1116             */
1117            public void setResourceLocalService(
1118                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
1119                    this.resourceLocalService = resourceLocalService;
1120            }
1121    
1122            /**
1123             * Returns the subscription local service.
1124             *
1125             * @return the subscription local service
1126             */
1127            public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
1128                    return subscriptionLocalService;
1129            }
1130    
1131            /**
1132             * Sets the subscription local service.
1133             *
1134             * @param subscriptionLocalService the subscription local service
1135             */
1136            public void setSubscriptionLocalService(
1137                    com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
1138                    this.subscriptionLocalService = subscriptionLocalService;
1139            }
1140    
1141            /**
1142             * Returns the subscription persistence.
1143             *
1144             * @return the subscription persistence
1145             */
1146            public SubscriptionPersistence getSubscriptionPersistence() {
1147                    return subscriptionPersistence;
1148            }
1149    
1150            /**
1151             * Sets the subscription persistence.
1152             *
1153             * @param subscriptionPersistence the subscription persistence
1154             */
1155            public void setSubscriptionPersistence(
1156                    SubscriptionPersistence subscriptionPersistence) {
1157                    this.subscriptionPersistence = subscriptionPersistence;
1158            }
1159    
1160            /**
1161             * Returns the user local service.
1162             *
1163             * @return the user local service
1164             */
1165            public com.liferay.portal.service.UserLocalService getUserLocalService() {
1166                    return userLocalService;
1167            }
1168    
1169            /**
1170             * Sets the user local service.
1171             *
1172             * @param userLocalService the user local service
1173             */
1174            public void setUserLocalService(
1175                    com.liferay.portal.service.UserLocalService userLocalService) {
1176                    this.userLocalService = userLocalService;
1177            }
1178    
1179            /**
1180             * Returns the user remote service.
1181             *
1182             * @return the user remote service
1183             */
1184            public com.liferay.portal.service.UserService getUserService() {
1185                    return userService;
1186            }
1187    
1188            /**
1189             * Sets the user remote service.
1190             *
1191             * @param userService the user remote service
1192             */
1193            public void setUserService(
1194                    com.liferay.portal.service.UserService userService) {
1195                    this.userService = userService;
1196            }
1197    
1198            /**
1199             * Returns the user persistence.
1200             *
1201             * @return the user persistence
1202             */
1203            public UserPersistence getUserPersistence() {
1204                    return userPersistence;
1205            }
1206    
1207            /**
1208             * Sets the user persistence.
1209             *
1210             * @param userPersistence the user persistence
1211             */
1212            public void setUserPersistence(UserPersistence userPersistence) {
1213                    this.userPersistence = userPersistence;
1214            }
1215    
1216            /**
1217             * Returns the user finder.
1218             *
1219             * @return the user finder
1220             */
1221            public UserFinder getUserFinder() {
1222                    return userFinder;
1223            }
1224    
1225            /**
1226             * Sets the user finder.
1227             *
1228             * @param userFinder the user finder
1229             */
1230            public void setUserFinder(UserFinder userFinder) {
1231                    this.userFinder = userFinder;
1232            }
1233    
1234            /**
1235             * Returns the workflow instance link local service.
1236             *
1237             * @return the workflow instance link local service
1238             */
1239            public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
1240                    return workflowInstanceLinkLocalService;
1241            }
1242    
1243            /**
1244             * Sets the workflow instance link local service.
1245             *
1246             * @param workflowInstanceLinkLocalService the workflow instance link local service
1247             */
1248            public void setWorkflowInstanceLinkLocalService(
1249                    com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
1250                    this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
1251            }
1252    
1253            /**
1254             * Returns the workflow instance link persistence.
1255             *
1256             * @return the workflow instance link persistence
1257             */
1258            public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
1259                    return workflowInstanceLinkPersistence;
1260            }
1261    
1262            /**
1263             * Sets the workflow instance link persistence.
1264             *
1265             * @param workflowInstanceLinkPersistence the workflow instance link persistence
1266             */
1267            public void setWorkflowInstanceLinkPersistence(
1268                    WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
1269                    this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
1270            }
1271    
1272            /**
1273             * Returns the asset entry local service.
1274             *
1275             * @return the asset entry local service
1276             */
1277            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
1278                    return assetEntryLocalService;
1279            }
1280    
1281            /**
1282             * Sets the asset entry local service.
1283             *
1284             * @param assetEntryLocalService the asset entry local service
1285             */
1286            public void setAssetEntryLocalService(
1287                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
1288                    this.assetEntryLocalService = assetEntryLocalService;
1289            }
1290    
1291            /**
1292             * Returns the asset entry remote service.
1293             *
1294             * @return the asset entry remote service
1295             */
1296            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
1297                    return assetEntryService;
1298            }
1299    
1300            /**
1301             * Sets the asset entry remote service.
1302             *
1303             * @param assetEntryService the asset entry remote service
1304             */
1305            public void setAssetEntryService(
1306                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
1307                    this.assetEntryService = assetEntryService;
1308            }
1309    
1310            /**
1311             * Returns the asset entry persistence.
1312             *
1313             * @return the asset entry persistence
1314             */
1315            public AssetEntryPersistence getAssetEntryPersistence() {
1316                    return assetEntryPersistence;
1317            }
1318    
1319            /**
1320             * Sets the asset entry persistence.
1321             *
1322             * @param assetEntryPersistence the asset entry persistence
1323             */
1324            public void setAssetEntryPersistence(
1325                    AssetEntryPersistence assetEntryPersistence) {
1326                    this.assetEntryPersistence = assetEntryPersistence;
1327            }
1328    
1329            /**
1330             * Returns the asset entry finder.
1331             *
1332             * @return the asset entry finder
1333             */
1334            public AssetEntryFinder getAssetEntryFinder() {
1335                    return assetEntryFinder;
1336            }
1337    
1338            /**
1339             * Sets the asset entry finder.
1340             *
1341             * @param assetEntryFinder the asset entry finder
1342             */
1343            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1344                    this.assetEntryFinder = assetEntryFinder;
1345            }
1346    
1347            /**
1348             * Returns the asset link local service.
1349             *
1350             * @return the asset link local service
1351             */
1352            public com.liferay.portlet.asset.service.AssetLinkLocalService getAssetLinkLocalService() {
1353                    return assetLinkLocalService;
1354            }
1355    
1356            /**
1357             * Sets the asset link local service.
1358             *
1359             * @param assetLinkLocalService the asset link local service
1360             */
1361            public void setAssetLinkLocalService(
1362                    com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService) {
1363                    this.assetLinkLocalService = assetLinkLocalService;
1364            }
1365    
1366            /**
1367             * Returns the asset link persistence.
1368             *
1369             * @return the asset link persistence
1370             */
1371            public AssetLinkPersistence getAssetLinkPersistence() {
1372                    return assetLinkPersistence;
1373            }
1374    
1375            /**
1376             * Sets the asset link persistence.
1377             *
1378             * @param assetLinkPersistence the asset link persistence
1379             */
1380            public void setAssetLinkPersistence(
1381                    AssetLinkPersistence assetLinkPersistence) {
1382                    this.assetLinkPersistence = assetLinkPersistence;
1383            }
1384    
1385            /**
1386             * Returns the asset tag local service.
1387             *
1388             * @return the asset tag local service
1389             */
1390            public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
1391                    return assetTagLocalService;
1392            }
1393    
1394            /**
1395             * Sets the asset tag local service.
1396             *
1397             * @param assetTagLocalService the asset tag local service
1398             */
1399            public void setAssetTagLocalService(
1400                    com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
1401                    this.assetTagLocalService = assetTagLocalService;
1402            }
1403    
1404            /**
1405             * Returns the asset tag remote service.
1406             *
1407             * @return the asset tag remote service
1408             */
1409            public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
1410                    return assetTagService;
1411            }
1412    
1413            /**
1414             * Sets the asset tag remote service.
1415             *
1416             * @param assetTagService the asset tag remote service
1417             */
1418            public void setAssetTagService(
1419                    com.liferay.portlet.asset.service.AssetTagService assetTagService) {
1420                    this.assetTagService = assetTagService;
1421            }
1422    
1423            /**
1424             * Returns the asset tag persistence.
1425             *
1426             * @return the asset tag persistence
1427             */
1428            public AssetTagPersistence getAssetTagPersistence() {
1429                    return assetTagPersistence;
1430            }
1431    
1432            /**
1433             * Sets the asset tag persistence.
1434             *
1435             * @param assetTagPersistence the asset tag persistence
1436             */
1437            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1438                    this.assetTagPersistence = assetTagPersistence;
1439            }
1440    
1441            /**
1442             * Returns the asset tag finder.
1443             *
1444             * @return the asset tag finder
1445             */
1446            public AssetTagFinder getAssetTagFinder() {
1447                    return assetTagFinder;
1448            }
1449    
1450            /**
1451             * Sets the asset tag finder.
1452             *
1453             * @param assetTagFinder the asset tag finder
1454             */
1455            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1456                    this.assetTagFinder = assetTagFinder;
1457            }
1458    
1459            /**
1460             * Returns the blogs entry local service.
1461             *
1462             * @return the blogs entry local service
1463             */
1464            public com.liferay.portlet.blogs.service.BlogsEntryLocalService getBlogsEntryLocalService() {
1465                    return blogsEntryLocalService;
1466            }
1467    
1468            /**
1469             * Sets the blogs entry local service.
1470             *
1471             * @param blogsEntryLocalService the blogs entry local service
1472             */
1473            public void setBlogsEntryLocalService(
1474                    com.liferay.portlet.blogs.service.BlogsEntryLocalService blogsEntryLocalService) {
1475                    this.blogsEntryLocalService = blogsEntryLocalService;
1476            }
1477    
1478            /**
1479             * Returns the blogs entry remote service.
1480             *
1481             * @return the blogs entry remote service
1482             */
1483            public com.liferay.portlet.blogs.service.BlogsEntryService getBlogsEntryService() {
1484                    return blogsEntryService;
1485            }
1486    
1487            /**
1488             * Sets the blogs entry remote service.
1489             *
1490             * @param blogsEntryService the blogs entry remote service
1491             */
1492            public void setBlogsEntryService(
1493                    com.liferay.portlet.blogs.service.BlogsEntryService blogsEntryService) {
1494                    this.blogsEntryService = blogsEntryService;
1495            }
1496    
1497            /**
1498             * Returns the blogs entry persistence.
1499             *
1500             * @return the blogs entry persistence
1501             */
1502            public BlogsEntryPersistence getBlogsEntryPersistence() {
1503                    return blogsEntryPersistence;
1504            }
1505    
1506            /**
1507             * Sets the blogs entry persistence.
1508             *
1509             * @param blogsEntryPersistence the blogs entry persistence
1510             */
1511            public void setBlogsEntryPersistence(
1512                    BlogsEntryPersistence blogsEntryPersistence) {
1513                    this.blogsEntryPersistence = blogsEntryPersistence;
1514            }
1515    
1516            /**
1517             * Returns the blogs entry finder.
1518             *
1519             * @return the blogs entry finder
1520             */
1521            public BlogsEntryFinder getBlogsEntryFinder() {
1522                    return blogsEntryFinder;
1523            }
1524    
1525            /**
1526             * Sets the blogs entry finder.
1527             *
1528             * @param blogsEntryFinder the blogs entry finder
1529             */
1530            public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
1531                    this.blogsEntryFinder = blogsEntryFinder;
1532            }
1533    
1534            /**
1535             * Returns the expando row local service.
1536             *
1537             * @return the expando row local service
1538             */
1539            public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
1540                    return expandoRowLocalService;
1541            }
1542    
1543            /**
1544             * Sets the expando row local service.
1545             *
1546             * @param expandoRowLocalService the expando row local service
1547             */
1548            public void setExpandoRowLocalService(
1549                    com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
1550                    this.expandoRowLocalService = expandoRowLocalService;
1551            }
1552    
1553            /**
1554             * Returns the expando row persistence.
1555             *
1556             * @return the expando row persistence
1557             */
1558            public ExpandoRowPersistence getExpandoRowPersistence() {
1559                    return expandoRowPersistence;
1560            }
1561    
1562            /**
1563             * Sets the expando row persistence.
1564             *
1565             * @param expandoRowPersistence the expando row persistence
1566             */
1567            public void setExpandoRowPersistence(
1568                    ExpandoRowPersistence expandoRowPersistence) {
1569                    this.expandoRowPersistence = expandoRowPersistence;
1570            }
1571    
1572            /**
1573             * Returns the ratings stats local service.
1574             *
1575             * @return the ratings stats local service
1576             */
1577            public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
1578                    return ratingsStatsLocalService;
1579            }
1580    
1581            /**
1582             * Sets the ratings stats local service.
1583             *
1584             * @param ratingsStatsLocalService the ratings stats local service
1585             */
1586            public void setRatingsStatsLocalService(
1587                    com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
1588                    this.ratingsStatsLocalService = ratingsStatsLocalService;
1589            }
1590    
1591            /**
1592             * Returns the ratings stats persistence.
1593             *
1594             * @return the ratings stats persistence
1595             */
1596            public RatingsStatsPersistence getRatingsStatsPersistence() {
1597                    return ratingsStatsPersistence;
1598            }
1599    
1600            /**
1601             * Sets the ratings stats persistence.
1602             *
1603             * @param ratingsStatsPersistence the ratings stats persistence
1604             */
1605            public void setRatingsStatsPersistence(
1606                    RatingsStatsPersistence ratingsStatsPersistence) {
1607                    this.ratingsStatsPersistence = ratingsStatsPersistence;
1608            }
1609    
1610            /**
1611             * Returns the ratings stats finder.
1612             *
1613             * @return the ratings stats finder
1614             */
1615            public RatingsStatsFinder getRatingsStatsFinder() {
1616                    return ratingsStatsFinder;
1617            }
1618    
1619            /**
1620             * Sets the ratings stats finder.
1621             *
1622             * @param ratingsStatsFinder the ratings stats finder
1623             */
1624            public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1625                    this.ratingsStatsFinder = ratingsStatsFinder;
1626            }
1627    
1628            /**
1629             * Returns the social activity local service.
1630             *
1631             * @return the social activity local service
1632             */
1633            public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
1634                    return socialActivityLocalService;
1635            }
1636    
1637            /**
1638             * Sets the social activity local service.
1639             *
1640             * @param socialActivityLocalService the social activity local service
1641             */
1642            public void setSocialActivityLocalService(
1643                    com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
1644                    this.socialActivityLocalService = socialActivityLocalService;
1645            }
1646    
1647            /**
1648             * Returns the social activity remote service.
1649             *
1650             * @return the social activity remote service
1651             */
1652            public com.liferay.portlet.social.service.SocialActivityService getSocialActivityService() {
1653                    return socialActivityService;
1654            }
1655    
1656            /**
1657             * Sets the social activity remote service.
1658             *
1659             * @param socialActivityService the social activity remote service
1660             */
1661            public void setSocialActivityService(
1662                    com.liferay.portlet.social.service.SocialActivityService socialActivityService) {
1663                    this.socialActivityService = socialActivityService;
1664            }
1665    
1666            /**
1667             * Returns the social activity persistence.
1668             *
1669             * @return the social activity persistence
1670             */
1671            public SocialActivityPersistence getSocialActivityPersistence() {
1672                    return socialActivityPersistence;
1673            }
1674    
1675            /**
1676             * Sets the social activity persistence.
1677             *
1678             * @param socialActivityPersistence the social activity persistence
1679             */
1680            public void setSocialActivityPersistence(
1681                    SocialActivityPersistence socialActivityPersistence) {
1682                    this.socialActivityPersistence = socialActivityPersistence;
1683            }
1684    
1685            /**
1686             * Returns the social activity finder.
1687             *
1688             * @return the social activity finder
1689             */
1690            public SocialActivityFinder getSocialActivityFinder() {
1691                    return socialActivityFinder;
1692            }
1693    
1694            /**
1695             * Sets the social activity finder.
1696             *
1697             * @param socialActivityFinder the social activity finder
1698             */
1699            public void setSocialActivityFinder(
1700                    SocialActivityFinder socialActivityFinder) {
1701                    this.socialActivityFinder = socialActivityFinder;
1702            }
1703    
1704            /**
1705             * Returns the wiki page local service.
1706             *
1707             * @return the wiki page local service
1708             */
1709            public com.liferay.portlet.wiki.service.WikiPageLocalService getWikiPageLocalService() {
1710                    return wikiPageLocalService;
1711            }
1712    
1713            /**
1714             * Sets the wiki page local service.
1715             *
1716             * @param wikiPageLocalService the wiki page local service
1717             */
1718            public void setWikiPageLocalService(
1719                    com.liferay.portlet.wiki.service.WikiPageLocalService wikiPageLocalService) {
1720                    this.wikiPageLocalService = wikiPageLocalService;
1721            }
1722    
1723            /**
1724             * Returns the wiki page remote service.
1725             *
1726             * @return the wiki page remote service
1727             */
1728            public com.liferay.portlet.wiki.service.WikiPageService getWikiPageService() {
1729                    return wikiPageService;
1730            }
1731    
1732            /**
1733             * Sets the wiki page remote service.
1734             *
1735             * @param wikiPageService the wiki page remote service
1736             */
1737            public void setWikiPageService(
1738                    com.liferay.portlet.wiki.service.WikiPageService wikiPageService) {
1739                    this.wikiPageService = wikiPageService;
1740            }
1741    
1742            /**
1743             * Returns the wiki page persistence.
1744             *
1745             * @return the wiki page persistence
1746             */
1747            public WikiPagePersistence getWikiPagePersistence() {
1748                    return wikiPagePersistence;
1749            }
1750    
1751            /**
1752             * Sets the wiki page persistence.
1753             *
1754             * @param wikiPagePersistence the wiki page persistence
1755             */
1756            public void setWikiPagePersistence(WikiPagePersistence wikiPagePersistence) {
1757                    this.wikiPagePersistence = wikiPagePersistence;
1758            }
1759    
1760            /**
1761             * Returns the wiki page finder.
1762             *
1763             * @return the wiki page finder
1764             */
1765            public WikiPageFinder getWikiPageFinder() {
1766                    return wikiPageFinder;
1767            }
1768    
1769            /**
1770             * Sets the wiki page finder.
1771             *
1772             * @param wikiPageFinder the wiki page finder
1773             */
1774            public void setWikiPageFinder(WikiPageFinder wikiPageFinder) {
1775                    this.wikiPageFinder = wikiPageFinder;
1776            }
1777    
1778            public void afterPropertiesSet() {
1779                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.messageboards.model.MBMessage",
1780                            mbMessageLocalService);
1781            }
1782    
1783            public void destroy() {
1784                    persistedModelLocalServiceRegistry.unregister(
1785                            "com.liferay.portlet.messageboards.model.MBMessage");
1786            }
1787    
1788            /**
1789             * Returns the Spring bean ID for this bean.
1790             *
1791             * @return the Spring bean ID for this bean
1792             */
1793            @Override
1794            public String getBeanIdentifier() {
1795                    return _beanIdentifier;
1796            }
1797    
1798            /**
1799             * Sets the Spring bean ID for this bean.
1800             *
1801             * @param beanIdentifier the Spring bean ID for this bean
1802             */
1803            @Override
1804            public void setBeanIdentifier(String beanIdentifier) {
1805                    _beanIdentifier = beanIdentifier;
1806            }
1807    
1808            protected Class<?> getModelClass() {
1809                    return MBMessage.class;
1810            }
1811    
1812            protected String getModelClassName() {
1813                    return MBMessage.class.getName();
1814            }
1815    
1816            /**
1817             * Performs an SQL query.
1818             *
1819             * @param sql the sql query
1820             */
1821            protected void runSQL(String sql) throws SystemException {
1822                    try {
1823                            DataSource dataSource = mbMessagePersistence.getDataSource();
1824    
1825                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1826                                            sql, new int[0]);
1827    
1828                            sqlUpdate.update();
1829                    }
1830                    catch (Exception e) {
1831                            throw new SystemException(e);
1832                    }
1833            }
1834    
1835            @BeanReference(type = com.liferay.portlet.messageboards.service.MBBanLocalService.class)
1836            protected com.liferay.portlet.messageboards.service.MBBanLocalService mbBanLocalService;
1837            @BeanReference(type = com.liferay.portlet.messageboards.service.MBBanService.class)
1838            protected com.liferay.portlet.messageboards.service.MBBanService mbBanService;
1839            @BeanReference(type = MBBanPersistence.class)
1840            protected MBBanPersistence mbBanPersistence;
1841            @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryLocalService.class)
1842            protected com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService;
1843            @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryService.class)
1844            protected com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService;
1845            @BeanReference(type = MBCategoryPersistence.class)
1846            protected MBCategoryPersistence mbCategoryPersistence;
1847            @BeanReference(type = MBCategoryFinder.class)
1848            protected MBCategoryFinder mbCategoryFinder;
1849            @BeanReference(type = com.liferay.portlet.messageboards.service.MBDiscussionLocalService.class)
1850            protected com.liferay.portlet.messageboards.service.MBDiscussionLocalService mbDiscussionLocalService;
1851            @BeanReference(type = MBDiscussionPersistence.class)
1852            protected MBDiscussionPersistence mbDiscussionPersistence;
1853            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMailingListLocalService.class)
1854            protected com.liferay.portlet.messageboards.service.MBMailingListLocalService mbMailingListLocalService;
1855            @BeanReference(type = MBMailingListPersistence.class)
1856            protected MBMailingListPersistence mbMailingListPersistence;
1857            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageLocalService.class)
1858            protected com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService;
1859            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageService.class)
1860            protected com.liferay.portlet.messageboards.service.MBMessageService mbMessageService;
1861            @BeanReference(type = MBMessagePersistence.class)
1862            protected MBMessagePersistence mbMessagePersistence;
1863            @BeanReference(type = MBMessageFinder.class)
1864            protected MBMessageFinder mbMessageFinder;
1865            @BeanReference(type = com.liferay.portlet.messageboards.service.MBStatsUserLocalService.class)
1866            protected com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService;
1867            @BeanReference(type = MBStatsUserPersistence.class)
1868            protected MBStatsUserPersistence mbStatsUserPersistence;
1869            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadLocalService.class)
1870            protected com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService;
1871            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadService.class)
1872            protected com.liferay.portlet.messageboards.service.MBThreadService mbThreadService;
1873            @BeanReference(type = MBThreadPersistence.class)
1874            protected MBThreadPersistence mbThreadPersistence;
1875            @BeanReference(type = MBThreadFinder.class)
1876            protected MBThreadFinder mbThreadFinder;
1877            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadFlagLocalService.class)
1878            protected com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService;
1879            @BeanReference(type = MBThreadFlagPersistence.class)
1880            protected MBThreadFlagPersistence mbThreadFlagPersistence;
1881            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1882            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1883            @BeanReference(type = com.liferay.mail.service.MailService.class)
1884            protected com.liferay.mail.service.MailService mailService;
1885            @BeanReference(type = com.liferay.portal.service.CompanyLocalService.class)
1886            protected com.liferay.portal.service.CompanyLocalService companyLocalService;
1887            @BeanReference(type = com.liferay.portal.service.CompanyService.class)
1888            protected com.liferay.portal.service.CompanyService companyService;
1889            @BeanReference(type = CompanyPersistence.class)
1890            protected CompanyPersistence companyPersistence;
1891            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1892            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1893            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1894            protected com.liferay.portal.service.GroupService groupService;
1895            @BeanReference(type = GroupPersistence.class)
1896            protected GroupPersistence groupPersistence;
1897            @BeanReference(type = GroupFinder.class)
1898            protected GroupFinder groupFinder;
1899            @BeanReference(type = com.liferay.portal.service.LockLocalService.class)
1900            protected com.liferay.portal.service.LockLocalService lockLocalService;
1901            @BeanReference(type = LockPersistence.class)
1902            protected LockPersistence lockPersistence;
1903            @BeanReference(type = LockFinder.class)
1904            protected LockFinder lockFinder;
1905            @BeanReference(type = com.liferay.portal.service.PortletPreferencesLocalService.class)
1906            protected com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService;
1907            @BeanReference(type = com.liferay.portal.service.PortletPreferencesService.class)
1908            protected com.liferay.portal.service.PortletPreferencesService portletPreferencesService;
1909            @BeanReference(type = PortletPreferencesPersistence.class)
1910            protected PortletPreferencesPersistence portletPreferencesPersistence;
1911            @BeanReference(type = PortletPreferencesFinder.class)
1912            protected PortletPreferencesFinder portletPreferencesFinder;
1913            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1914            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1915            @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1916            protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1917            @BeanReference(type = SubscriptionPersistence.class)
1918            protected SubscriptionPersistence subscriptionPersistence;
1919            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1920            protected com.liferay.portal.service.UserLocalService userLocalService;
1921            @BeanReference(type = com.liferay.portal.service.UserService.class)
1922            protected com.liferay.portal.service.UserService userService;
1923            @BeanReference(type = UserPersistence.class)
1924            protected UserPersistence userPersistence;
1925            @BeanReference(type = UserFinder.class)
1926            protected UserFinder userFinder;
1927            @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1928            protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1929            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1930            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1931            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1932            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1933            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1934            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1935            @BeanReference(type = AssetEntryPersistence.class)
1936            protected AssetEntryPersistence assetEntryPersistence;
1937            @BeanReference(type = AssetEntryFinder.class)
1938            protected AssetEntryFinder assetEntryFinder;
1939            @BeanReference(type = com.liferay.portlet.asset.service.AssetLinkLocalService.class)
1940            protected com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService;
1941            @BeanReference(type = AssetLinkPersistence.class)
1942            protected AssetLinkPersistence assetLinkPersistence;
1943            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1944            protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1945            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
1946            protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
1947            @BeanReference(type = AssetTagPersistence.class)
1948            protected AssetTagPersistence assetTagPersistence;
1949            @BeanReference(type = AssetTagFinder.class)
1950            protected AssetTagFinder assetTagFinder;
1951            @BeanReference(type = com.liferay.portlet.blogs.service.BlogsEntryLocalService.class)
1952            protected com.liferay.portlet.blogs.service.BlogsEntryLocalService blogsEntryLocalService;
1953            @BeanReference(type = com.liferay.portlet.blogs.service.BlogsEntryService.class)
1954            protected com.liferay.portlet.blogs.service.BlogsEntryService blogsEntryService;
1955            @BeanReference(type = BlogsEntryPersistence.class)
1956            protected BlogsEntryPersistence blogsEntryPersistence;
1957            @BeanReference(type = BlogsEntryFinder.class)
1958            protected BlogsEntryFinder blogsEntryFinder;
1959            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1960            protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1961            @BeanReference(type = ExpandoRowPersistence.class)
1962            protected ExpandoRowPersistence expandoRowPersistence;
1963            @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
1964            protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
1965            @BeanReference(type = RatingsStatsPersistence.class)
1966            protected RatingsStatsPersistence ratingsStatsPersistence;
1967            @BeanReference(type = RatingsStatsFinder.class)
1968            protected RatingsStatsFinder ratingsStatsFinder;
1969            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1970            protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1971            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityService.class)
1972            protected com.liferay.portlet.social.service.SocialActivityService socialActivityService;
1973            @BeanReference(type = SocialActivityPersistence.class)
1974            protected SocialActivityPersistence socialActivityPersistence;
1975            @BeanReference(type = SocialActivityFinder.class)
1976            protected SocialActivityFinder socialActivityFinder;
1977            @BeanReference(type = com.liferay.portlet.wiki.service.WikiPageLocalService.class)
1978            protected com.liferay.portlet.wiki.service.WikiPageLocalService wikiPageLocalService;
1979            @BeanReference(type = com.liferay.portlet.wiki.service.WikiPageService.class)
1980            protected com.liferay.portlet.wiki.service.WikiPageService wikiPageService;
1981            @BeanReference(type = WikiPagePersistence.class)
1982            protected WikiPagePersistence wikiPagePersistence;
1983            @BeanReference(type = WikiPageFinder.class)
1984            protected WikiPageFinder wikiPageFinder;
1985            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1986            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1987            private String _beanIdentifier;
1988    }