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.blogs.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.exception.PortalException;
025    import com.liferay.portal.kernel.exception.SystemException;
026    import com.liferay.portal.kernel.log.Log;
027    import com.liferay.portal.kernel.log.LogFactoryUtil;
028    import com.liferay.portal.kernel.search.Indexer;
029    import com.liferay.portal.kernel.search.IndexerRegistryUtil;
030    import com.liferay.portal.kernel.search.SearchException;
031    import com.liferay.portal.kernel.util.OrderByComparator;
032    import com.liferay.portal.model.PersistedModel;
033    import com.liferay.portal.service.GroupLocalService;
034    import com.liferay.portal.service.GroupService;
035    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
036    import com.liferay.portal.service.ResourceLocalService;
037    import com.liferay.portal.service.ResourceService;
038    import com.liferay.portal.service.UserLocalService;
039    import com.liferay.portal.service.UserService;
040    import com.liferay.portal.service.persistence.GroupFinder;
041    import com.liferay.portal.service.persistence.GroupPersistence;
042    import com.liferay.portal.service.persistence.ResourceFinder;
043    import com.liferay.portal.service.persistence.ResourcePersistence;
044    import com.liferay.portal.service.persistence.UserFinder;
045    import com.liferay.portal.service.persistence.UserPersistence;
046    
047    import com.liferay.portlet.blogs.model.BlogsStatsUser;
048    import com.liferay.portlet.blogs.service.BlogsEntryLocalService;
049    import com.liferay.portlet.blogs.service.BlogsEntryService;
050    import com.liferay.portlet.blogs.service.BlogsStatsUserLocalService;
051    import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
052    import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
053    import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
054    import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
055    
056    import java.io.Serializable;
057    
058    import java.util.List;
059    
060    import javax.sql.DataSource;
061    
062    /**
063     * The base implementation of the blogs stats user local service.
064     *
065     * <p>
066     * 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.blogs.service.impl.BlogsStatsUserLocalServiceImpl}.
067     * </p>
068     *
069     * @author Brian Wing Shun Chan
070     * @see com.liferay.portlet.blogs.service.impl.BlogsStatsUserLocalServiceImpl
071     * @see com.liferay.portlet.blogs.service.BlogsStatsUserLocalServiceUtil
072     * @generated
073     */
074    public abstract class BlogsStatsUserLocalServiceBaseImpl
075            implements BlogsStatsUserLocalService, IdentifiableBean {
076            /*
077             * NOTE FOR DEVELOPERS:
078             *
079             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.blogs.service.BlogsStatsUserLocalServiceUtil} to access the blogs stats user local service.
080             */
081    
082            /**
083             * Adds the blogs stats user to the database. Also notifies the appropriate model listeners.
084             *
085             * @param blogsStatsUser the blogs stats user
086             * @return the blogs stats user that was added
087             * @throws SystemException if a system exception occurred
088             */
089            public BlogsStatsUser addBlogsStatsUser(BlogsStatsUser blogsStatsUser)
090                    throws SystemException {
091                    blogsStatsUser.setNew(true);
092    
093                    blogsStatsUser = blogsStatsUserPersistence.update(blogsStatsUser, false);
094    
095                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
096    
097                    if (indexer != null) {
098                            try {
099                                    indexer.reindex(blogsStatsUser);
100                            }
101                            catch (SearchException se) {
102                                    if (_log.isWarnEnabled()) {
103                                            _log.warn(se, se);
104                                    }
105                            }
106                    }
107    
108                    return blogsStatsUser;
109            }
110    
111            /**
112             * Creates a new blogs stats user with the primary key. Does not add the blogs stats user to the database.
113             *
114             * @param statsUserId the primary key for the new blogs stats user
115             * @return the new blogs stats user
116             */
117            public BlogsStatsUser createBlogsStatsUser(long statsUserId) {
118                    return blogsStatsUserPersistence.create(statsUserId);
119            }
120    
121            /**
122             * Deletes the blogs stats user with the primary key from the database. Also notifies the appropriate model listeners.
123             *
124             * @param statsUserId the primary key of the blogs stats user
125             * @throws PortalException if a blogs stats user with the primary key could not be found
126             * @throws SystemException if a system exception occurred
127             */
128            public void deleteBlogsStatsUser(long statsUserId)
129                    throws PortalException, SystemException {
130                    BlogsStatsUser blogsStatsUser = blogsStatsUserPersistence.remove(statsUserId);
131    
132                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
133    
134                    if (indexer != null) {
135                            try {
136                                    indexer.delete(blogsStatsUser);
137                            }
138                            catch (SearchException se) {
139                                    if (_log.isWarnEnabled()) {
140                                            _log.warn(se, se);
141                                    }
142                            }
143                    }
144            }
145    
146            /**
147             * Deletes the blogs stats user from the database. Also notifies the appropriate model listeners.
148             *
149             * @param blogsStatsUser the blogs stats user
150             * @throws SystemException if a system exception occurred
151             */
152            public void deleteBlogsStatsUser(BlogsStatsUser blogsStatsUser)
153                    throws SystemException {
154                    blogsStatsUserPersistence.remove(blogsStatsUser);
155    
156                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
157    
158                    if (indexer != null) {
159                            try {
160                                    indexer.delete(blogsStatsUser);
161                            }
162                            catch (SearchException se) {
163                                    if (_log.isWarnEnabled()) {
164                                            _log.warn(se, se);
165                                    }
166                            }
167                    }
168            }
169    
170            /**
171             * Performs a dynamic query on the database and returns the matching rows.
172             *
173             * @param dynamicQuery the dynamic query
174             * @return the matching rows
175             * @throws SystemException if a system exception occurred
176             */
177            @SuppressWarnings("rawtypes")
178            public List dynamicQuery(DynamicQuery dynamicQuery)
179                    throws SystemException {
180                    return blogsStatsUserPersistence.findWithDynamicQuery(dynamicQuery);
181            }
182    
183            /**
184             * Performs a dynamic query on the database and returns a range of the matching rows.
185             *
186             * <p>
187             * 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.
188             * </p>
189             *
190             * @param dynamicQuery the dynamic query
191             * @param start the lower bound of the range of model instances
192             * @param end the upper bound of the range of model instances (not inclusive)
193             * @return the range of matching rows
194             * @throws SystemException if a system exception occurred
195             */
196            @SuppressWarnings("rawtypes")
197            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
198                    throws SystemException {
199                    return blogsStatsUserPersistence.findWithDynamicQuery(dynamicQuery,
200                            start, end);
201            }
202    
203            /**
204             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
205             *
206             * <p>
207             * 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.
208             * </p>
209             *
210             * @param dynamicQuery the dynamic query
211             * @param start the lower bound of the range of model instances
212             * @param end the upper bound of the range of model instances (not inclusive)
213             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
214             * @return the ordered range of matching rows
215             * @throws SystemException if a system exception occurred
216             */
217            @SuppressWarnings("rawtypes")
218            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
219                    OrderByComparator orderByComparator) throws SystemException {
220                    return blogsStatsUserPersistence.findWithDynamicQuery(dynamicQuery,
221                            start, end, orderByComparator);
222            }
223    
224            /**
225             * Returns the number of rows that match the dynamic query.
226             *
227             * @param dynamicQuery the dynamic query
228             * @return the number of rows that match the dynamic query
229             * @throws SystemException if a system exception occurred
230             */
231            public long dynamicQueryCount(DynamicQuery dynamicQuery)
232                    throws SystemException {
233                    return blogsStatsUserPersistence.countWithDynamicQuery(dynamicQuery);
234            }
235    
236            public BlogsStatsUser fetchBlogsStatsUser(long statsUserId)
237                    throws SystemException {
238                    return blogsStatsUserPersistence.fetchByPrimaryKey(statsUserId);
239            }
240    
241            /**
242             * Returns the blogs stats user with the primary key.
243             *
244             * @param statsUserId the primary key of the blogs stats user
245             * @return the blogs stats user
246             * @throws PortalException if a blogs stats user with the primary key could not be found
247             * @throws SystemException if a system exception occurred
248             */
249            public BlogsStatsUser getBlogsStatsUser(long statsUserId)
250                    throws PortalException, SystemException {
251                    return blogsStatsUserPersistence.findByPrimaryKey(statsUserId);
252            }
253    
254            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
255                    throws PortalException, SystemException {
256                    return blogsStatsUserPersistence.findByPrimaryKey(primaryKeyObj);
257            }
258    
259            /**
260             * Returns a range of all the blogs stats users.
261             *
262             * <p>
263             * 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.
264             * </p>
265             *
266             * @param start the lower bound of the range of blogs stats users
267             * @param end the upper bound of the range of blogs stats users (not inclusive)
268             * @return the range of blogs stats users
269             * @throws SystemException if a system exception occurred
270             */
271            public List<BlogsStatsUser> getBlogsStatsUsers(int start, int end)
272                    throws SystemException {
273                    return blogsStatsUserPersistence.findAll(start, end);
274            }
275    
276            /**
277             * Returns the number of blogs stats users.
278             *
279             * @return the number of blogs stats users
280             * @throws SystemException if a system exception occurred
281             */
282            public int getBlogsStatsUsersCount() throws SystemException {
283                    return blogsStatsUserPersistence.countAll();
284            }
285    
286            /**
287             * Updates the blogs stats user in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
288             *
289             * @param blogsStatsUser the blogs stats user
290             * @return the blogs stats user that was updated
291             * @throws SystemException if a system exception occurred
292             */
293            public BlogsStatsUser updateBlogsStatsUser(BlogsStatsUser blogsStatsUser)
294                    throws SystemException {
295                    return updateBlogsStatsUser(blogsStatsUser, true);
296            }
297    
298            /**
299             * Updates the blogs stats user in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
300             *
301             * @param blogsStatsUser the blogs stats user
302             * @param merge whether to merge the blogs stats user with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
303             * @return the blogs stats user that was updated
304             * @throws SystemException if a system exception occurred
305             */
306            public BlogsStatsUser updateBlogsStatsUser(BlogsStatsUser blogsStatsUser,
307                    boolean merge) throws SystemException {
308                    blogsStatsUser.setNew(false);
309    
310                    blogsStatsUser = blogsStatsUserPersistence.update(blogsStatsUser, merge);
311    
312                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
313    
314                    if (indexer != null) {
315                            try {
316                                    indexer.reindex(blogsStatsUser);
317                            }
318                            catch (SearchException se) {
319                                    if (_log.isWarnEnabled()) {
320                                            _log.warn(se, se);
321                                    }
322                            }
323                    }
324    
325                    return blogsStatsUser;
326            }
327    
328            /**
329             * Returns the blogs entry local service.
330             *
331             * @return the blogs entry local service
332             */
333            public BlogsEntryLocalService getBlogsEntryLocalService() {
334                    return blogsEntryLocalService;
335            }
336    
337            /**
338             * Sets the blogs entry local service.
339             *
340             * @param blogsEntryLocalService the blogs entry local service
341             */
342            public void setBlogsEntryLocalService(
343                    BlogsEntryLocalService blogsEntryLocalService) {
344                    this.blogsEntryLocalService = blogsEntryLocalService;
345            }
346    
347            /**
348             * Returns the blogs entry remote service.
349             *
350             * @return the blogs entry remote service
351             */
352            public BlogsEntryService getBlogsEntryService() {
353                    return blogsEntryService;
354            }
355    
356            /**
357             * Sets the blogs entry remote service.
358             *
359             * @param blogsEntryService the blogs entry remote service
360             */
361            public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
362                    this.blogsEntryService = blogsEntryService;
363            }
364    
365            /**
366             * Returns the blogs entry persistence.
367             *
368             * @return the blogs entry persistence
369             */
370            public BlogsEntryPersistence getBlogsEntryPersistence() {
371                    return blogsEntryPersistence;
372            }
373    
374            /**
375             * Sets the blogs entry persistence.
376             *
377             * @param blogsEntryPersistence the blogs entry persistence
378             */
379            public void setBlogsEntryPersistence(
380                    BlogsEntryPersistence blogsEntryPersistence) {
381                    this.blogsEntryPersistence = blogsEntryPersistence;
382            }
383    
384            /**
385             * Returns the blogs entry finder.
386             *
387             * @return the blogs entry finder
388             */
389            public BlogsEntryFinder getBlogsEntryFinder() {
390                    return blogsEntryFinder;
391            }
392    
393            /**
394             * Sets the blogs entry finder.
395             *
396             * @param blogsEntryFinder the blogs entry finder
397             */
398            public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
399                    this.blogsEntryFinder = blogsEntryFinder;
400            }
401    
402            /**
403             * Returns the blogs stats user local service.
404             *
405             * @return the blogs stats user local service
406             */
407            public BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
408                    return blogsStatsUserLocalService;
409            }
410    
411            /**
412             * Sets the blogs stats user local service.
413             *
414             * @param blogsStatsUserLocalService the blogs stats user local service
415             */
416            public void setBlogsStatsUserLocalService(
417                    BlogsStatsUserLocalService blogsStatsUserLocalService) {
418                    this.blogsStatsUserLocalService = blogsStatsUserLocalService;
419            }
420    
421            /**
422             * Returns the blogs stats user persistence.
423             *
424             * @return the blogs stats user persistence
425             */
426            public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
427                    return blogsStatsUserPersistence;
428            }
429    
430            /**
431             * Sets the blogs stats user persistence.
432             *
433             * @param blogsStatsUserPersistence the blogs stats user persistence
434             */
435            public void setBlogsStatsUserPersistence(
436                    BlogsStatsUserPersistence blogsStatsUserPersistence) {
437                    this.blogsStatsUserPersistence = blogsStatsUserPersistence;
438            }
439    
440            /**
441             * Returns the blogs stats user finder.
442             *
443             * @return the blogs stats user finder
444             */
445            public BlogsStatsUserFinder getBlogsStatsUserFinder() {
446                    return blogsStatsUserFinder;
447            }
448    
449            /**
450             * Sets the blogs stats user finder.
451             *
452             * @param blogsStatsUserFinder the blogs stats user finder
453             */
454            public void setBlogsStatsUserFinder(
455                    BlogsStatsUserFinder blogsStatsUserFinder) {
456                    this.blogsStatsUserFinder = blogsStatsUserFinder;
457            }
458    
459            /**
460             * Returns the counter local service.
461             *
462             * @return the counter local service
463             */
464            public CounterLocalService getCounterLocalService() {
465                    return counterLocalService;
466            }
467    
468            /**
469             * Sets the counter local service.
470             *
471             * @param counterLocalService the counter local service
472             */
473            public void setCounterLocalService(CounterLocalService counterLocalService) {
474                    this.counterLocalService = counterLocalService;
475            }
476    
477            /**
478             * Returns the group local service.
479             *
480             * @return the group local service
481             */
482            public GroupLocalService getGroupLocalService() {
483                    return groupLocalService;
484            }
485    
486            /**
487             * Sets the group local service.
488             *
489             * @param groupLocalService the group local service
490             */
491            public void setGroupLocalService(GroupLocalService groupLocalService) {
492                    this.groupLocalService = groupLocalService;
493            }
494    
495            /**
496             * Returns the group remote service.
497             *
498             * @return the group remote service
499             */
500            public GroupService getGroupService() {
501                    return groupService;
502            }
503    
504            /**
505             * Sets the group remote service.
506             *
507             * @param groupService the group remote service
508             */
509            public void setGroupService(GroupService groupService) {
510                    this.groupService = groupService;
511            }
512    
513            /**
514             * Returns the group persistence.
515             *
516             * @return the group persistence
517             */
518            public GroupPersistence getGroupPersistence() {
519                    return groupPersistence;
520            }
521    
522            /**
523             * Sets the group persistence.
524             *
525             * @param groupPersistence the group persistence
526             */
527            public void setGroupPersistence(GroupPersistence groupPersistence) {
528                    this.groupPersistence = groupPersistence;
529            }
530    
531            /**
532             * Returns the group finder.
533             *
534             * @return the group finder
535             */
536            public GroupFinder getGroupFinder() {
537                    return groupFinder;
538            }
539    
540            /**
541             * Sets the group finder.
542             *
543             * @param groupFinder the group finder
544             */
545            public void setGroupFinder(GroupFinder groupFinder) {
546                    this.groupFinder = groupFinder;
547            }
548    
549            /**
550             * Returns the resource local service.
551             *
552             * @return the resource local service
553             */
554            public ResourceLocalService getResourceLocalService() {
555                    return resourceLocalService;
556            }
557    
558            /**
559             * Sets the resource local service.
560             *
561             * @param resourceLocalService the resource local service
562             */
563            public void setResourceLocalService(
564                    ResourceLocalService resourceLocalService) {
565                    this.resourceLocalService = resourceLocalService;
566            }
567    
568            /**
569             * Returns the resource remote service.
570             *
571             * @return the resource remote service
572             */
573            public ResourceService getResourceService() {
574                    return resourceService;
575            }
576    
577            /**
578             * Sets the resource remote service.
579             *
580             * @param resourceService the resource remote service
581             */
582            public void setResourceService(ResourceService resourceService) {
583                    this.resourceService = resourceService;
584            }
585    
586            /**
587             * Returns the resource persistence.
588             *
589             * @return the resource persistence
590             */
591            public ResourcePersistence getResourcePersistence() {
592                    return resourcePersistence;
593            }
594    
595            /**
596             * Sets the resource persistence.
597             *
598             * @param resourcePersistence the resource persistence
599             */
600            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
601                    this.resourcePersistence = resourcePersistence;
602            }
603    
604            /**
605             * Returns the resource finder.
606             *
607             * @return the resource finder
608             */
609            public ResourceFinder getResourceFinder() {
610                    return resourceFinder;
611            }
612    
613            /**
614             * Sets the resource finder.
615             *
616             * @param resourceFinder the resource finder
617             */
618            public void setResourceFinder(ResourceFinder resourceFinder) {
619                    this.resourceFinder = resourceFinder;
620            }
621    
622            /**
623             * Returns the user local service.
624             *
625             * @return the user local service
626             */
627            public UserLocalService getUserLocalService() {
628                    return userLocalService;
629            }
630    
631            /**
632             * Sets the user local service.
633             *
634             * @param userLocalService the user local service
635             */
636            public void setUserLocalService(UserLocalService userLocalService) {
637                    this.userLocalService = userLocalService;
638            }
639    
640            /**
641             * Returns the user remote service.
642             *
643             * @return the user remote service
644             */
645            public UserService getUserService() {
646                    return userService;
647            }
648    
649            /**
650             * Sets the user remote service.
651             *
652             * @param userService the user remote service
653             */
654            public void setUserService(UserService userService) {
655                    this.userService = userService;
656            }
657    
658            /**
659             * Returns the user persistence.
660             *
661             * @return the user persistence
662             */
663            public UserPersistence getUserPersistence() {
664                    return userPersistence;
665            }
666    
667            /**
668             * Sets the user persistence.
669             *
670             * @param userPersistence the user persistence
671             */
672            public void setUserPersistence(UserPersistence userPersistence) {
673                    this.userPersistence = userPersistence;
674            }
675    
676            /**
677             * Returns the user finder.
678             *
679             * @return the user finder
680             */
681            public UserFinder getUserFinder() {
682                    return userFinder;
683            }
684    
685            /**
686             * Sets the user finder.
687             *
688             * @param userFinder the user finder
689             */
690            public void setUserFinder(UserFinder userFinder) {
691                    this.userFinder = userFinder;
692            }
693    
694            public void afterPropertiesSet() {
695                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.blogs.model.BlogsStatsUser",
696                            blogsStatsUserLocalService);
697            }
698    
699            public void destroy() {
700                    persistedModelLocalServiceRegistry.unregister(
701                            "com.liferay.portlet.blogs.model.BlogsStatsUser");
702            }
703    
704            /**
705             * Returns the Spring bean ID for this bean.
706             *
707             * @return the Spring bean ID for this bean
708             */
709            public String getBeanIdentifier() {
710                    return _beanIdentifier;
711            }
712    
713            /**
714             * Sets the Spring bean ID for this bean.
715             *
716             * @param beanIdentifier the Spring bean ID for this bean
717             */
718            public void setBeanIdentifier(String beanIdentifier) {
719                    _beanIdentifier = beanIdentifier;
720            }
721    
722            protected ClassLoader getClassLoader() {
723                    Class<?> clazz = getClass();
724    
725                    return clazz.getClassLoader();
726            }
727    
728            protected Class<?> getModelClass() {
729                    return BlogsStatsUser.class;
730            }
731    
732            protected String getModelClassName() {
733                    return BlogsStatsUser.class.getName();
734            }
735    
736            /**
737             * Performs an SQL query.
738             *
739             * @param sql the sql query
740             */
741            protected void runSQL(String sql) throws SystemException {
742                    try {
743                            DataSource dataSource = blogsStatsUserPersistence.getDataSource();
744    
745                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
746                                            sql, new int[0]);
747    
748                            sqlUpdate.update();
749                    }
750                    catch (Exception e) {
751                            throw new SystemException(e);
752                    }
753            }
754    
755            @BeanReference(type = BlogsEntryLocalService.class)
756            protected BlogsEntryLocalService blogsEntryLocalService;
757            @BeanReference(type = BlogsEntryService.class)
758            protected BlogsEntryService blogsEntryService;
759            @BeanReference(type = BlogsEntryPersistence.class)
760            protected BlogsEntryPersistence blogsEntryPersistence;
761            @BeanReference(type = BlogsEntryFinder.class)
762            protected BlogsEntryFinder blogsEntryFinder;
763            @BeanReference(type = BlogsStatsUserLocalService.class)
764            protected BlogsStatsUserLocalService blogsStatsUserLocalService;
765            @BeanReference(type = BlogsStatsUserPersistence.class)
766            protected BlogsStatsUserPersistence blogsStatsUserPersistence;
767            @BeanReference(type = BlogsStatsUserFinder.class)
768            protected BlogsStatsUserFinder blogsStatsUserFinder;
769            @BeanReference(type = CounterLocalService.class)
770            protected CounterLocalService counterLocalService;
771            @BeanReference(type = GroupLocalService.class)
772            protected GroupLocalService groupLocalService;
773            @BeanReference(type = GroupService.class)
774            protected GroupService groupService;
775            @BeanReference(type = GroupPersistence.class)
776            protected GroupPersistence groupPersistence;
777            @BeanReference(type = GroupFinder.class)
778            protected GroupFinder groupFinder;
779            @BeanReference(type = ResourceLocalService.class)
780            protected ResourceLocalService resourceLocalService;
781            @BeanReference(type = ResourceService.class)
782            protected ResourceService resourceService;
783            @BeanReference(type = ResourcePersistence.class)
784            protected ResourcePersistence resourcePersistence;
785            @BeanReference(type = ResourceFinder.class)
786            protected ResourceFinder resourceFinder;
787            @BeanReference(type = UserLocalService.class)
788            protected UserLocalService userLocalService;
789            @BeanReference(type = UserService.class)
790            protected UserService userService;
791            @BeanReference(type = UserPersistence.class)
792            protected UserPersistence userPersistence;
793            @BeanReference(type = UserFinder.class)
794            protected UserFinder userFinder;
795            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
796            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
797            private static Log _log = LogFactoryUtil.getLog(BlogsStatsUserLocalServiceBaseImpl.class);
798            private String _beanIdentifier;
799    }