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