001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service.base;
016    
017    import com.liferay.portal.kernel.bean.BeanReference;
018    import com.liferay.portal.kernel.bean.IdentifiableBean;
019    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
021    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
022    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
023    import com.liferay.portal.kernel.dao.orm.Projection;
024    import com.liferay.portal.kernel.exception.PortalException;
025    import com.liferay.portal.kernel.exception.SystemException;
026    import com.liferay.portal.kernel.search.Indexable;
027    import com.liferay.portal.kernel.search.IndexableType;
028    import com.liferay.portal.kernel.util.OrderByComparator;
029    import com.liferay.portal.model.PersistedModel;
030    import com.liferay.portal.service.BaseLocalServiceImpl;
031    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
032    import com.liferay.portal.service.persistence.GroupFinder;
033    import com.liferay.portal.service.persistence.GroupPersistence;
034    import com.liferay.portal.service.persistence.UserFinder;
035    import com.liferay.portal.service.persistence.UserPersistence;
036    
037    import com.liferay.portlet.messageboards.model.MBStatsUser;
038    import com.liferay.portlet.messageboards.service.MBStatsUserLocalService;
039    import com.liferay.portlet.messageboards.service.persistence.MBBanPersistence;
040    import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
041    import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
042    import com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence;
043    import com.liferay.portlet.messageboards.service.persistence.MBMailingListPersistence;
044    import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
045    import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
046    import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
047    import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
048    import com.liferay.portlet.messageboards.service.persistence.MBThreadFlagPersistence;
049    import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
050    
051    import java.io.Serializable;
052    
053    import java.util.List;
054    
055    import javax.sql.DataSource;
056    
057    /**
058     * Provides the base implementation for the message boards stats user local service.
059     *
060     * <p>
061     * 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.MBStatsUserLocalServiceImpl}.
062     * </p>
063     *
064     * @author Brian Wing Shun Chan
065     * @see com.liferay.portlet.messageboards.service.impl.MBStatsUserLocalServiceImpl
066     * @see com.liferay.portlet.messageboards.service.MBStatsUserLocalServiceUtil
067     * @generated
068     */
069    public abstract class MBStatsUserLocalServiceBaseImpl
070            extends BaseLocalServiceImpl implements MBStatsUserLocalService,
071                    IdentifiableBean {
072            /*
073             * NOTE FOR DEVELOPERS:
074             *
075             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.messageboards.service.MBStatsUserLocalServiceUtil} to access the message boards stats user local service.
076             */
077    
078            /**
079             * Adds the message boards stats user to the database. Also notifies the appropriate model listeners.
080             *
081             * @param mbStatsUser the message boards stats user
082             * @return the message boards stats user that was added
083             * @throws SystemException if a system exception occurred
084             */
085            @Indexable(type = IndexableType.REINDEX)
086            @Override
087            public MBStatsUser addMBStatsUser(MBStatsUser mbStatsUser)
088                    throws SystemException {
089                    mbStatsUser.setNew(true);
090    
091                    return mbStatsUserPersistence.update(mbStatsUser);
092            }
093    
094            /**
095             * Creates a new message boards stats user with the primary key. Does not add the message boards stats user to the database.
096             *
097             * @param statsUserId the primary key for the new message boards stats user
098             * @return the new message boards stats user
099             */
100            @Override
101            public MBStatsUser createMBStatsUser(long statsUserId) {
102                    return mbStatsUserPersistence.create(statsUserId);
103            }
104    
105            /**
106             * Deletes the message boards stats user with the primary key from the database. Also notifies the appropriate model listeners.
107             *
108             * @param statsUserId the primary key of the message boards stats user
109             * @return the message boards stats user that was removed
110             * @throws PortalException if a message boards stats user with the primary key could not be found
111             * @throws SystemException if a system exception occurred
112             */
113            @Indexable(type = IndexableType.DELETE)
114            @Override
115            public MBStatsUser deleteMBStatsUser(long statsUserId)
116                    throws PortalException, SystemException {
117                    return mbStatsUserPersistence.remove(statsUserId);
118            }
119    
120            /**
121             * Deletes the message boards stats user from the database. Also notifies the appropriate model listeners.
122             *
123             * @param mbStatsUser the message boards stats user
124             * @return the message boards stats user that was removed
125             * @throws SystemException if a system exception occurred
126             */
127            @Indexable(type = IndexableType.DELETE)
128            @Override
129            public MBStatsUser deleteMBStatsUser(MBStatsUser mbStatsUser)
130                    throws SystemException {
131                    return mbStatsUserPersistence.remove(mbStatsUser);
132            }
133    
134            @Override
135            public DynamicQuery dynamicQuery() {
136                    Class<?> clazz = getClass();
137    
138                    return DynamicQueryFactoryUtil.forClass(MBStatsUser.class,
139                            clazz.getClassLoader());
140            }
141    
142            /**
143             * Performs a dynamic query on the database and returns the matching rows.
144             *
145             * @param dynamicQuery the dynamic query
146             * @return the matching rows
147             * @throws SystemException if a system exception occurred
148             */
149            @Override
150            @SuppressWarnings("rawtypes")
151            public List dynamicQuery(DynamicQuery dynamicQuery)
152                    throws SystemException {
153                    return mbStatsUserPersistence.findWithDynamicQuery(dynamicQuery);
154            }
155    
156            /**
157             * Performs a dynamic query on the database and returns a range of the matching rows.
158             *
159             * <p>
160             * 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.MBStatsUserModelImpl}. 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.
161             * </p>
162             *
163             * @param dynamicQuery the dynamic query
164             * @param start the lower bound of the range of model instances
165             * @param end the upper bound of the range of model instances (not inclusive)
166             * @return the range of matching rows
167             * @throws SystemException if a system exception occurred
168             */
169            @Override
170            @SuppressWarnings("rawtypes")
171            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
172                    throws SystemException {
173                    return mbStatsUserPersistence.findWithDynamicQuery(dynamicQuery, start,
174                            end);
175            }
176    
177            /**
178             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
179             *
180             * <p>
181             * 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.MBStatsUserModelImpl}. 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.
182             * </p>
183             *
184             * @param dynamicQuery the dynamic query
185             * @param start the lower bound of the range of model instances
186             * @param end the upper bound of the range of model instances (not inclusive)
187             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
188             * @return the ordered range of matching rows
189             * @throws SystemException if a system exception occurred
190             */
191            @Override
192            @SuppressWarnings("rawtypes")
193            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
194                    OrderByComparator orderByComparator) throws SystemException {
195                    return mbStatsUserPersistence.findWithDynamicQuery(dynamicQuery, start,
196                            end, orderByComparator);
197            }
198    
199            /**
200             * Returns the number of rows that match the dynamic query.
201             *
202             * @param dynamicQuery the dynamic query
203             * @return the number of rows that match the dynamic query
204             * @throws SystemException if a system exception occurred
205             */
206            @Override
207            public long dynamicQueryCount(DynamicQuery dynamicQuery)
208                    throws SystemException {
209                    return mbStatsUserPersistence.countWithDynamicQuery(dynamicQuery);
210            }
211    
212            /**
213             * Returns the number of rows that match the dynamic query.
214             *
215             * @param dynamicQuery the dynamic query
216             * @param projection the projection to apply to the query
217             * @return the number of rows that match the dynamic query
218             * @throws SystemException if a system exception occurred
219             */
220            @Override
221            public long dynamicQueryCount(DynamicQuery dynamicQuery,
222                    Projection projection) throws SystemException {
223                    return mbStatsUserPersistence.countWithDynamicQuery(dynamicQuery,
224                            projection);
225            }
226    
227            @Override
228            public MBStatsUser fetchMBStatsUser(long statsUserId)
229                    throws SystemException {
230                    return mbStatsUserPersistence.fetchByPrimaryKey(statsUserId);
231            }
232    
233            /**
234             * Returns the message boards stats user with the primary key.
235             *
236             * @param statsUserId the primary key of the message boards stats user
237             * @return the message boards stats user
238             * @throws PortalException if a message boards stats user with the primary key could not be found
239             * @throws SystemException if a system exception occurred
240             */
241            @Override
242            public MBStatsUser getMBStatsUser(long statsUserId)
243                    throws PortalException, SystemException {
244                    return mbStatsUserPersistence.findByPrimaryKey(statsUserId);
245            }
246    
247            @Override
248            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
249                    throws PortalException, SystemException {
250                    return mbStatsUserPersistence.findByPrimaryKey(primaryKeyObj);
251            }
252    
253            /**
254             * Returns a range of all the message boards stats users.
255             *
256             * <p>
257             * 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.MBStatsUserModelImpl}. 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.
258             * </p>
259             *
260             * @param start the lower bound of the range of message boards stats users
261             * @param end the upper bound of the range of message boards stats users (not inclusive)
262             * @return the range of message boards stats users
263             * @throws SystemException if a system exception occurred
264             */
265            @Override
266            public List<MBStatsUser> getMBStatsUsers(int start, int end)
267                    throws SystemException {
268                    return mbStatsUserPersistence.findAll(start, end);
269            }
270    
271            /**
272             * Returns the number of message boards stats users.
273             *
274             * @return the number of message boards stats users
275             * @throws SystemException if a system exception occurred
276             */
277            @Override
278            public int getMBStatsUsersCount() throws SystemException {
279                    return mbStatsUserPersistence.countAll();
280            }
281    
282            /**
283             * Updates the message boards stats user in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
284             *
285             * @param mbStatsUser the message boards stats user
286             * @return the message boards stats user that was updated
287             * @throws SystemException if a system exception occurred
288             */
289            @Indexable(type = IndexableType.REINDEX)
290            @Override
291            public MBStatsUser updateMBStatsUser(MBStatsUser mbStatsUser)
292                    throws SystemException {
293                    return mbStatsUserPersistence.update(mbStatsUser);
294            }
295    
296            /**
297             * Returns the message boards ban local service.
298             *
299             * @return the message boards ban local service
300             */
301            public com.liferay.portlet.messageboards.service.MBBanLocalService getMBBanLocalService() {
302                    return mbBanLocalService;
303            }
304    
305            /**
306             * Sets the message boards ban local service.
307             *
308             * @param mbBanLocalService the message boards ban local service
309             */
310            public void setMBBanLocalService(
311                    com.liferay.portlet.messageboards.service.MBBanLocalService mbBanLocalService) {
312                    this.mbBanLocalService = mbBanLocalService;
313            }
314    
315            /**
316             * Returns the message boards ban remote service.
317             *
318             * @return the message boards ban remote service
319             */
320            public com.liferay.portlet.messageboards.service.MBBanService getMBBanService() {
321                    return mbBanService;
322            }
323    
324            /**
325             * Sets the message boards ban remote service.
326             *
327             * @param mbBanService the message boards ban remote service
328             */
329            public void setMBBanService(
330                    com.liferay.portlet.messageboards.service.MBBanService mbBanService) {
331                    this.mbBanService = mbBanService;
332            }
333    
334            /**
335             * Returns the message boards ban persistence.
336             *
337             * @return the message boards ban persistence
338             */
339            public MBBanPersistence getMBBanPersistence() {
340                    return mbBanPersistence;
341            }
342    
343            /**
344             * Sets the message boards ban persistence.
345             *
346             * @param mbBanPersistence the message boards ban persistence
347             */
348            public void setMBBanPersistence(MBBanPersistence mbBanPersistence) {
349                    this.mbBanPersistence = mbBanPersistence;
350            }
351    
352            /**
353             * Returns the message boards category local service.
354             *
355             * @return the message boards category local service
356             */
357            public com.liferay.portlet.messageboards.service.MBCategoryLocalService getMBCategoryLocalService() {
358                    return mbCategoryLocalService;
359            }
360    
361            /**
362             * Sets the message boards category local service.
363             *
364             * @param mbCategoryLocalService the message boards category local service
365             */
366            public void setMBCategoryLocalService(
367                    com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService) {
368                    this.mbCategoryLocalService = mbCategoryLocalService;
369            }
370    
371            /**
372             * Returns the message boards category remote service.
373             *
374             * @return the message boards category remote service
375             */
376            public com.liferay.portlet.messageboards.service.MBCategoryService getMBCategoryService() {
377                    return mbCategoryService;
378            }
379    
380            /**
381             * Sets the message boards category remote service.
382             *
383             * @param mbCategoryService the message boards category remote service
384             */
385            public void setMBCategoryService(
386                    com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService) {
387                    this.mbCategoryService = mbCategoryService;
388            }
389    
390            /**
391             * Returns the message boards category persistence.
392             *
393             * @return the message boards category persistence
394             */
395            public MBCategoryPersistence getMBCategoryPersistence() {
396                    return mbCategoryPersistence;
397            }
398    
399            /**
400             * Sets the message boards category persistence.
401             *
402             * @param mbCategoryPersistence the message boards category persistence
403             */
404            public void setMBCategoryPersistence(
405                    MBCategoryPersistence mbCategoryPersistence) {
406                    this.mbCategoryPersistence = mbCategoryPersistence;
407            }
408    
409            /**
410             * Returns the message boards category finder.
411             *
412             * @return the message boards category finder
413             */
414            public MBCategoryFinder getMBCategoryFinder() {
415                    return mbCategoryFinder;
416            }
417    
418            /**
419             * Sets the message boards category finder.
420             *
421             * @param mbCategoryFinder the message boards category finder
422             */
423            public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
424                    this.mbCategoryFinder = mbCategoryFinder;
425            }
426    
427            /**
428             * Returns the message boards discussion local service.
429             *
430             * @return the message boards discussion local service
431             */
432            public com.liferay.portlet.messageboards.service.MBDiscussionLocalService getMBDiscussionLocalService() {
433                    return mbDiscussionLocalService;
434            }
435    
436            /**
437             * Sets the message boards discussion local service.
438             *
439             * @param mbDiscussionLocalService the message boards discussion local service
440             */
441            public void setMBDiscussionLocalService(
442                    com.liferay.portlet.messageboards.service.MBDiscussionLocalService mbDiscussionLocalService) {
443                    this.mbDiscussionLocalService = mbDiscussionLocalService;
444            }
445    
446            /**
447             * Returns the message boards discussion persistence.
448             *
449             * @return the message boards discussion persistence
450             */
451            public MBDiscussionPersistence getMBDiscussionPersistence() {
452                    return mbDiscussionPersistence;
453            }
454    
455            /**
456             * Sets the message boards discussion persistence.
457             *
458             * @param mbDiscussionPersistence the message boards discussion persistence
459             */
460            public void setMBDiscussionPersistence(
461                    MBDiscussionPersistence mbDiscussionPersistence) {
462                    this.mbDiscussionPersistence = mbDiscussionPersistence;
463            }
464    
465            /**
466             * Returns the message boards mailing list local service.
467             *
468             * @return the message boards mailing list local service
469             */
470            public com.liferay.portlet.messageboards.service.MBMailingListLocalService getMBMailingListLocalService() {
471                    return mbMailingListLocalService;
472            }
473    
474            /**
475             * Sets the message boards mailing list local service.
476             *
477             * @param mbMailingListLocalService the message boards mailing list local service
478             */
479            public void setMBMailingListLocalService(
480                    com.liferay.portlet.messageboards.service.MBMailingListLocalService mbMailingListLocalService) {
481                    this.mbMailingListLocalService = mbMailingListLocalService;
482            }
483    
484            /**
485             * Returns the message boards mailing list persistence.
486             *
487             * @return the message boards mailing list persistence
488             */
489            public MBMailingListPersistence getMBMailingListPersistence() {
490                    return mbMailingListPersistence;
491            }
492    
493            /**
494             * Sets the message boards mailing list persistence.
495             *
496             * @param mbMailingListPersistence the message boards mailing list persistence
497             */
498            public void setMBMailingListPersistence(
499                    MBMailingListPersistence mbMailingListPersistence) {
500                    this.mbMailingListPersistence = mbMailingListPersistence;
501            }
502    
503            /**
504             * Returns the message-boards message local service.
505             *
506             * @return the message-boards message local service
507             */
508            public com.liferay.portlet.messageboards.service.MBMessageLocalService getMBMessageLocalService() {
509                    return mbMessageLocalService;
510            }
511    
512            /**
513             * Sets the message-boards message local service.
514             *
515             * @param mbMessageLocalService the message-boards message local service
516             */
517            public void setMBMessageLocalService(
518                    com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService) {
519                    this.mbMessageLocalService = mbMessageLocalService;
520            }
521    
522            /**
523             * Returns the message-boards message remote service.
524             *
525             * @return the message-boards message remote service
526             */
527            public com.liferay.portlet.messageboards.service.MBMessageService getMBMessageService() {
528                    return mbMessageService;
529            }
530    
531            /**
532             * Sets the message-boards message remote service.
533             *
534             * @param mbMessageService the message-boards message remote service
535             */
536            public void setMBMessageService(
537                    com.liferay.portlet.messageboards.service.MBMessageService mbMessageService) {
538                    this.mbMessageService = mbMessageService;
539            }
540    
541            /**
542             * Returns the message-boards message persistence.
543             *
544             * @return the message-boards message persistence
545             */
546            public MBMessagePersistence getMBMessagePersistence() {
547                    return mbMessagePersistence;
548            }
549    
550            /**
551             * Sets the message-boards message persistence.
552             *
553             * @param mbMessagePersistence the message-boards message persistence
554             */
555            public void setMBMessagePersistence(
556                    MBMessagePersistence mbMessagePersistence) {
557                    this.mbMessagePersistence = mbMessagePersistence;
558            }
559    
560            /**
561             * Returns the message-boards message finder.
562             *
563             * @return the message-boards message finder
564             */
565            public MBMessageFinder getMBMessageFinder() {
566                    return mbMessageFinder;
567            }
568    
569            /**
570             * Sets the message-boards message finder.
571             *
572             * @param mbMessageFinder the message-boards message finder
573             */
574            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
575                    this.mbMessageFinder = mbMessageFinder;
576            }
577    
578            /**
579             * Returns the message boards stats user local service.
580             *
581             * @return the message boards stats user local service
582             */
583            public com.liferay.portlet.messageboards.service.MBStatsUserLocalService getMBStatsUserLocalService() {
584                    return mbStatsUserLocalService;
585            }
586    
587            /**
588             * Sets the message boards stats user local service.
589             *
590             * @param mbStatsUserLocalService the message boards stats user local service
591             */
592            public void setMBStatsUserLocalService(
593                    com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService) {
594                    this.mbStatsUserLocalService = mbStatsUserLocalService;
595            }
596    
597            /**
598             * Returns the message boards stats user persistence.
599             *
600             * @return the message boards stats user persistence
601             */
602            public MBStatsUserPersistence getMBStatsUserPersistence() {
603                    return mbStatsUserPersistence;
604            }
605    
606            /**
607             * Sets the message boards stats user persistence.
608             *
609             * @param mbStatsUserPersistence the message boards stats user persistence
610             */
611            public void setMBStatsUserPersistence(
612                    MBStatsUserPersistence mbStatsUserPersistence) {
613                    this.mbStatsUserPersistence = mbStatsUserPersistence;
614            }
615    
616            /**
617             * Returns the message boards thread local service.
618             *
619             * @return the message boards thread local service
620             */
621            public com.liferay.portlet.messageboards.service.MBThreadLocalService getMBThreadLocalService() {
622                    return mbThreadLocalService;
623            }
624    
625            /**
626             * Sets the message boards thread local service.
627             *
628             * @param mbThreadLocalService the message boards thread local service
629             */
630            public void setMBThreadLocalService(
631                    com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService) {
632                    this.mbThreadLocalService = mbThreadLocalService;
633            }
634    
635            /**
636             * Returns the message boards thread remote service.
637             *
638             * @return the message boards thread remote service
639             */
640            public com.liferay.portlet.messageboards.service.MBThreadService getMBThreadService() {
641                    return mbThreadService;
642            }
643    
644            /**
645             * Sets the message boards thread remote service.
646             *
647             * @param mbThreadService the message boards thread remote service
648             */
649            public void setMBThreadService(
650                    com.liferay.portlet.messageboards.service.MBThreadService mbThreadService) {
651                    this.mbThreadService = mbThreadService;
652            }
653    
654            /**
655             * Returns the message boards thread persistence.
656             *
657             * @return the message boards thread persistence
658             */
659            public MBThreadPersistence getMBThreadPersistence() {
660                    return mbThreadPersistence;
661            }
662    
663            /**
664             * Sets the message boards thread persistence.
665             *
666             * @param mbThreadPersistence the message boards thread persistence
667             */
668            public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
669                    this.mbThreadPersistence = mbThreadPersistence;
670            }
671    
672            /**
673             * Returns the message boards thread finder.
674             *
675             * @return the message boards thread finder
676             */
677            public MBThreadFinder getMBThreadFinder() {
678                    return mbThreadFinder;
679            }
680    
681            /**
682             * Sets the message boards thread finder.
683             *
684             * @param mbThreadFinder the message boards thread finder
685             */
686            public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
687                    this.mbThreadFinder = mbThreadFinder;
688            }
689    
690            /**
691             * Returns the message boards thread flag local service.
692             *
693             * @return the message boards thread flag local service
694             */
695            public com.liferay.portlet.messageboards.service.MBThreadFlagLocalService getMBThreadFlagLocalService() {
696                    return mbThreadFlagLocalService;
697            }
698    
699            /**
700             * Sets the message boards thread flag local service.
701             *
702             * @param mbThreadFlagLocalService the message boards thread flag local service
703             */
704            public void setMBThreadFlagLocalService(
705                    com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService) {
706                    this.mbThreadFlagLocalService = mbThreadFlagLocalService;
707            }
708    
709            /**
710             * Returns the message boards thread flag persistence.
711             *
712             * @return the message boards thread flag persistence
713             */
714            public MBThreadFlagPersistence getMBThreadFlagPersistence() {
715                    return mbThreadFlagPersistence;
716            }
717    
718            /**
719             * Sets the message boards thread flag persistence.
720             *
721             * @param mbThreadFlagPersistence the message boards thread flag persistence
722             */
723            public void setMBThreadFlagPersistence(
724                    MBThreadFlagPersistence mbThreadFlagPersistence) {
725                    this.mbThreadFlagPersistence = mbThreadFlagPersistence;
726            }
727    
728            /**
729             * Returns the counter local service.
730             *
731             * @return the counter local service
732             */
733            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
734                    return counterLocalService;
735            }
736    
737            /**
738             * Sets the counter local service.
739             *
740             * @param counterLocalService the counter local service
741             */
742            public void setCounterLocalService(
743                    com.liferay.counter.service.CounterLocalService counterLocalService) {
744                    this.counterLocalService = counterLocalService;
745            }
746    
747            /**
748             * Returns the group local service.
749             *
750             * @return the group local service
751             */
752            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
753                    return groupLocalService;
754            }
755    
756            /**
757             * Sets the group local service.
758             *
759             * @param groupLocalService the group local service
760             */
761            public void setGroupLocalService(
762                    com.liferay.portal.service.GroupLocalService groupLocalService) {
763                    this.groupLocalService = groupLocalService;
764            }
765    
766            /**
767             * Returns the group remote service.
768             *
769             * @return the group remote service
770             */
771            public com.liferay.portal.service.GroupService getGroupService() {
772                    return groupService;
773            }
774    
775            /**
776             * Sets the group remote service.
777             *
778             * @param groupService the group remote service
779             */
780            public void setGroupService(
781                    com.liferay.portal.service.GroupService groupService) {
782                    this.groupService = groupService;
783            }
784    
785            /**
786             * Returns the group persistence.
787             *
788             * @return the group persistence
789             */
790            public GroupPersistence getGroupPersistence() {
791                    return groupPersistence;
792            }
793    
794            /**
795             * Sets the group persistence.
796             *
797             * @param groupPersistence the group persistence
798             */
799            public void setGroupPersistence(GroupPersistence groupPersistence) {
800                    this.groupPersistence = groupPersistence;
801            }
802    
803            /**
804             * Returns the group finder.
805             *
806             * @return the group finder
807             */
808            public GroupFinder getGroupFinder() {
809                    return groupFinder;
810            }
811    
812            /**
813             * Sets the group finder.
814             *
815             * @param groupFinder the group finder
816             */
817            public void setGroupFinder(GroupFinder groupFinder) {
818                    this.groupFinder = groupFinder;
819            }
820    
821            /**
822             * Returns the resource local service.
823             *
824             * @return the resource local service
825             */
826            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
827                    return resourceLocalService;
828            }
829    
830            /**
831             * Sets the resource local service.
832             *
833             * @param resourceLocalService the resource local service
834             */
835            public void setResourceLocalService(
836                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
837                    this.resourceLocalService = resourceLocalService;
838            }
839    
840            /**
841             * Returns the user local service.
842             *
843             * @return the user local service
844             */
845            public com.liferay.portal.service.UserLocalService getUserLocalService() {
846                    return userLocalService;
847            }
848    
849            /**
850             * Sets the user local service.
851             *
852             * @param userLocalService the user local service
853             */
854            public void setUserLocalService(
855                    com.liferay.portal.service.UserLocalService userLocalService) {
856                    this.userLocalService = userLocalService;
857            }
858    
859            /**
860             * Returns the user remote service.
861             *
862             * @return the user remote service
863             */
864            public com.liferay.portal.service.UserService getUserService() {
865                    return userService;
866            }
867    
868            /**
869             * Sets the user remote service.
870             *
871             * @param userService the user remote service
872             */
873            public void setUserService(
874                    com.liferay.portal.service.UserService userService) {
875                    this.userService = userService;
876            }
877    
878            /**
879             * Returns the user persistence.
880             *
881             * @return the user persistence
882             */
883            public UserPersistence getUserPersistence() {
884                    return userPersistence;
885            }
886    
887            /**
888             * Sets the user persistence.
889             *
890             * @param userPersistence the user persistence
891             */
892            public void setUserPersistence(UserPersistence userPersistence) {
893                    this.userPersistence = userPersistence;
894            }
895    
896            /**
897             * Returns the user finder.
898             *
899             * @return the user finder
900             */
901            public UserFinder getUserFinder() {
902                    return userFinder;
903            }
904    
905            /**
906             * Sets the user finder.
907             *
908             * @param userFinder the user finder
909             */
910            public void setUserFinder(UserFinder userFinder) {
911                    this.userFinder = userFinder;
912            }
913    
914            public void afterPropertiesSet() {
915                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.messageboards.model.MBStatsUser",
916                            mbStatsUserLocalService);
917            }
918    
919            public void destroy() {
920                    persistedModelLocalServiceRegistry.unregister(
921                            "com.liferay.portlet.messageboards.model.MBStatsUser");
922            }
923    
924            /**
925             * Returns the Spring bean ID for this bean.
926             *
927             * @return the Spring bean ID for this bean
928             */
929            @Override
930            public String getBeanIdentifier() {
931                    return _beanIdentifier;
932            }
933    
934            /**
935             * Sets the Spring bean ID for this bean.
936             *
937             * @param beanIdentifier the Spring bean ID for this bean
938             */
939            @Override
940            public void setBeanIdentifier(String beanIdentifier) {
941                    _beanIdentifier = beanIdentifier;
942            }
943    
944            protected Class<?> getModelClass() {
945                    return MBStatsUser.class;
946            }
947    
948            protected String getModelClassName() {
949                    return MBStatsUser.class.getName();
950            }
951    
952            /**
953             * Performs an SQL query.
954             *
955             * @param sql the sql query
956             */
957            protected void runSQL(String sql) throws SystemException {
958                    try {
959                            DataSource dataSource = mbStatsUserPersistence.getDataSource();
960    
961                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
962                                            sql, new int[0]);
963    
964                            sqlUpdate.update();
965                    }
966                    catch (Exception e) {
967                            throw new SystemException(e);
968                    }
969            }
970    
971            @BeanReference(type = com.liferay.portlet.messageboards.service.MBBanLocalService.class)
972            protected com.liferay.portlet.messageboards.service.MBBanLocalService mbBanLocalService;
973            @BeanReference(type = com.liferay.portlet.messageboards.service.MBBanService.class)
974            protected com.liferay.portlet.messageboards.service.MBBanService mbBanService;
975            @BeanReference(type = MBBanPersistence.class)
976            protected MBBanPersistence mbBanPersistence;
977            @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryLocalService.class)
978            protected com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService;
979            @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryService.class)
980            protected com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService;
981            @BeanReference(type = MBCategoryPersistence.class)
982            protected MBCategoryPersistence mbCategoryPersistence;
983            @BeanReference(type = MBCategoryFinder.class)
984            protected MBCategoryFinder mbCategoryFinder;
985            @BeanReference(type = com.liferay.portlet.messageboards.service.MBDiscussionLocalService.class)
986            protected com.liferay.portlet.messageboards.service.MBDiscussionLocalService mbDiscussionLocalService;
987            @BeanReference(type = MBDiscussionPersistence.class)
988            protected MBDiscussionPersistence mbDiscussionPersistence;
989            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMailingListLocalService.class)
990            protected com.liferay.portlet.messageboards.service.MBMailingListLocalService mbMailingListLocalService;
991            @BeanReference(type = MBMailingListPersistence.class)
992            protected MBMailingListPersistence mbMailingListPersistence;
993            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageLocalService.class)
994            protected com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService;
995            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageService.class)
996            protected com.liferay.portlet.messageboards.service.MBMessageService mbMessageService;
997            @BeanReference(type = MBMessagePersistence.class)
998            protected MBMessagePersistence mbMessagePersistence;
999            @BeanReference(type = MBMessageFinder.class)
1000            protected MBMessageFinder mbMessageFinder;
1001            @BeanReference(type = com.liferay.portlet.messageboards.service.MBStatsUserLocalService.class)
1002            protected com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService;
1003            @BeanReference(type = MBStatsUserPersistence.class)
1004            protected MBStatsUserPersistence mbStatsUserPersistence;
1005            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadLocalService.class)
1006            protected com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService;
1007            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadService.class)
1008            protected com.liferay.portlet.messageboards.service.MBThreadService mbThreadService;
1009            @BeanReference(type = MBThreadPersistence.class)
1010            protected MBThreadPersistence mbThreadPersistence;
1011            @BeanReference(type = MBThreadFinder.class)
1012            protected MBThreadFinder mbThreadFinder;
1013            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadFlagLocalService.class)
1014            protected com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService;
1015            @BeanReference(type = MBThreadFlagPersistence.class)
1016            protected MBThreadFlagPersistence mbThreadFlagPersistence;
1017            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1018            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1019            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1020            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1021            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1022            protected com.liferay.portal.service.GroupService groupService;
1023            @BeanReference(type = GroupPersistence.class)
1024            protected GroupPersistence groupPersistence;
1025            @BeanReference(type = GroupFinder.class)
1026            protected GroupFinder groupFinder;
1027            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1028            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1029            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1030            protected com.liferay.portal.service.UserLocalService userLocalService;
1031            @BeanReference(type = com.liferay.portal.service.UserService.class)
1032            protected com.liferay.portal.service.UserService userService;
1033            @BeanReference(type = UserPersistence.class)
1034            protected UserPersistence userPersistence;
1035            @BeanReference(type = UserFinder.class)
1036            protected UserFinder userFinder;
1037            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1038            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1039            private String _beanIdentifier;
1040    }