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.mobiledevicerules.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.exception.SystemException;
024    import com.liferay.portal.service.BaseServiceImpl;
025    import com.liferay.portal.service.LayoutLocalService;
026    import com.liferay.portal.service.LayoutService;
027    import com.liferay.portal.service.LayoutSetLocalService;
028    import com.liferay.portal.service.LayoutSetService;
029    import com.liferay.portal.service.ResourceLocalService;
030    import com.liferay.portal.service.ResourceService;
031    import com.liferay.portal.service.UserLocalService;
032    import com.liferay.portal.service.UserService;
033    import com.liferay.portal.service.persistence.LayoutFinder;
034    import com.liferay.portal.service.persistence.LayoutPersistence;
035    import com.liferay.portal.service.persistence.LayoutSetPersistence;
036    import com.liferay.portal.service.persistence.ResourceFinder;
037    import com.liferay.portal.service.persistence.ResourcePersistence;
038    import com.liferay.portal.service.persistence.UserFinder;
039    import com.liferay.portal.service.persistence.UserPersistence;
040    
041    import com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance;
042    import com.liferay.portlet.mobiledevicerules.service.MDRActionLocalService;
043    import com.liferay.portlet.mobiledevicerules.service.MDRActionService;
044    import com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceLocalService;
045    import com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceService;
046    import com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupLocalService;
047    import com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupService;
048    import com.liferay.portlet.mobiledevicerules.service.MDRRuleLocalService;
049    import com.liferay.portlet.mobiledevicerules.service.MDRRuleService;
050    import com.liferay.portlet.mobiledevicerules.service.persistence.MDRActionPersistence;
051    import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRuleGroupFinder;
052    import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRuleGroupInstancePersistence;
053    import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRuleGroupPersistence;
054    import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRulePersistence;
055    
056    import javax.sql.DataSource;
057    
058    /**
059     * The base implementation of the m d r rule group instance remote service.
060     *
061     * <p>
062     * 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.mobiledevicerules.service.impl.MDRRuleGroupInstanceServiceImpl}.
063     * </p>
064     *
065     * @author Edward C. Han
066     * @see com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleGroupInstanceServiceImpl
067     * @see com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceServiceUtil
068     * @generated
069     */
070    public abstract class MDRRuleGroupInstanceServiceBaseImpl
071            extends BaseServiceImpl implements MDRRuleGroupInstanceService,
072                    IdentifiableBean {
073            /*
074             * NOTE FOR DEVELOPERS:
075             *
076             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceServiceUtil} to access the m d r rule group instance remote service.
077             */
078    
079            /**
080             * Returns the m d r action local service.
081             *
082             * @return the m d r action local service
083             */
084            public MDRActionLocalService getMDRActionLocalService() {
085                    return mdrActionLocalService;
086            }
087    
088            /**
089             * Sets the m d r action local service.
090             *
091             * @param mdrActionLocalService the m d r action local service
092             */
093            public void setMDRActionLocalService(
094                    MDRActionLocalService mdrActionLocalService) {
095                    this.mdrActionLocalService = mdrActionLocalService;
096            }
097    
098            /**
099             * Returns the m d r action remote service.
100             *
101             * @return the m d r action remote service
102             */
103            public MDRActionService getMDRActionService() {
104                    return mdrActionService;
105            }
106    
107            /**
108             * Sets the m d r action remote service.
109             *
110             * @param mdrActionService the m d r action remote service
111             */
112            public void setMDRActionService(MDRActionService mdrActionService) {
113                    this.mdrActionService = mdrActionService;
114            }
115    
116            /**
117             * Returns the m d r action persistence.
118             *
119             * @return the m d r action persistence
120             */
121            public MDRActionPersistence getMDRActionPersistence() {
122                    return mdrActionPersistence;
123            }
124    
125            /**
126             * Sets the m d r action persistence.
127             *
128             * @param mdrActionPersistence the m d r action persistence
129             */
130            public void setMDRActionPersistence(
131                    MDRActionPersistence mdrActionPersistence) {
132                    this.mdrActionPersistence = mdrActionPersistence;
133            }
134    
135            /**
136             * Returns the m d r rule local service.
137             *
138             * @return the m d r rule local service
139             */
140            public MDRRuleLocalService getMDRRuleLocalService() {
141                    return mdrRuleLocalService;
142            }
143    
144            /**
145             * Sets the m d r rule local service.
146             *
147             * @param mdrRuleLocalService the m d r rule local service
148             */
149            public void setMDRRuleLocalService(MDRRuleLocalService mdrRuleLocalService) {
150                    this.mdrRuleLocalService = mdrRuleLocalService;
151            }
152    
153            /**
154             * Returns the m d r rule remote service.
155             *
156             * @return the m d r rule remote service
157             */
158            public MDRRuleService getMDRRuleService() {
159                    return mdrRuleService;
160            }
161    
162            /**
163             * Sets the m d r rule remote service.
164             *
165             * @param mdrRuleService the m d r rule remote service
166             */
167            public void setMDRRuleService(MDRRuleService mdrRuleService) {
168                    this.mdrRuleService = mdrRuleService;
169            }
170    
171            /**
172             * Returns the m d r rule persistence.
173             *
174             * @return the m d r rule persistence
175             */
176            public MDRRulePersistence getMDRRulePersistence() {
177                    return mdrRulePersistence;
178            }
179    
180            /**
181             * Sets the m d r rule persistence.
182             *
183             * @param mdrRulePersistence the m d r rule persistence
184             */
185            public void setMDRRulePersistence(MDRRulePersistence mdrRulePersistence) {
186                    this.mdrRulePersistence = mdrRulePersistence;
187            }
188    
189            /**
190             * Returns the m d r rule group local service.
191             *
192             * @return the m d r rule group local service
193             */
194            public MDRRuleGroupLocalService getMDRRuleGroupLocalService() {
195                    return mdrRuleGroupLocalService;
196            }
197    
198            /**
199             * Sets the m d r rule group local service.
200             *
201             * @param mdrRuleGroupLocalService the m d r rule group local service
202             */
203            public void setMDRRuleGroupLocalService(
204                    MDRRuleGroupLocalService mdrRuleGroupLocalService) {
205                    this.mdrRuleGroupLocalService = mdrRuleGroupLocalService;
206            }
207    
208            /**
209             * Returns the m d r rule group remote service.
210             *
211             * @return the m d r rule group remote service
212             */
213            public MDRRuleGroupService getMDRRuleGroupService() {
214                    return mdrRuleGroupService;
215            }
216    
217            /**
218             * Sets the m d r rule group remote service.
219             *
220             * @param mdrRuleGroupService the m d r rule group remote service
221             */
222            public void setMDRRuleGroupService(MDRRuleGroupService mdrRuleGroupService) {
223                    this.mdrRuleGroupService = mdrRuleGroupService;
224            }
225    
226            /**
227             * Returns the m d r rule group persistence.
228             *
229             * @return the m d r rule group persistence
230             */
231            public MDRRuleGroupPersistence getMDRRuleGroupPersistence() {
232                    return mdrRuleGroupPersistence;
233            }
234    
235            /**
236             * Sets the m d r rule group persistence.
237             *
238             * @param mdrRuleGroupPersistence the m d r rule group persistence
239             */
240            public void setMDRRuleGroupPersistence(
241                    MDRRuleGroupPersistence mdrRuleGroupPersistence) {
242                    this.mdrRuleGroupPersistence = mdrRuleGroupPersistence;
243            }
244    
245            /**
246             * Returns the m d r rule group finder.
247             *
248             * @return the m d r rule group finder
249             */
250            public MDRRuleGroupFinder getMDRRuleGroupFinder() {
251                    return mdrRuleGroupFinder;
252            }
253    
254            /**
255             * Sets the m d r rule group finder.
256             *
257             * @param mdrRuleGroupFinder the m d r rule group finder
258             */
259            public void setMDRRuleGroupFinder(MDRRuleGroupFinder mdrRuleGroupFinder) {
260                    this.mdrRuleGroupFinder = mdrRuleGroupFinder;
261            }
262    
263            /**
264             * Returns the m d r rule group instance local service.
265             *
266             * @return the m d r rule group instance local service
267             */
268            public MDRRuleGroupInstanceLocalService getMDRRuleGroupInstanceLocalService() {
269                    return mdrRuleGroupInstanceLocalService;
270            }
271    
272            /**
273             * Sets the m d r rule group instance local service.
274             *
275             * @param mdrRuleGroupInstanceLocalService the m d r rule group instance local service
276             */
277            public void setMDRRuleGroupInstanceLocalService(
278                    MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService) {
279                    this.mdrRuleGroupInstanceLocalService = mdrRuleGroupInstanceLocalService;
280            }
281    
282            /**
283             * Returns the m d r rule group instance remote service.
284             *
285             * @return the m d r rule group instance remote service
286             */
287            public MDRRuleGroupInstanceService getMDRRuleGroupInstanceService() {
288                    return mdrRuleGroupInstanceService;
289            }
290    
291            /**
292             * Sets the m d r rule group instance remote service.
293             *
294             * @param mdrRuleGroupInstanceService the m d r rule group instance remote service
295             */
296            public void setMDRRuleGroupInstanceService(
297                    MDRRuleGroupInstanceService mdrRuleGroupInstanceService) {
298                    this.mdrRuleGroupInstanceService = mdrRuleGroupInstanceService;
299            }
300    
301            /**
302             * Returns the m d r rule group instance persistence.
303             *
304             * @return the m d r rule group instance persistence
305             */
306            public MDRRuleGroupInstancePersistence getMDRRuleGroupInstancePersistence() {
307                    return mdrRuleGroupInstancePersistence;
308            }
309    
310            /**
311             * Sets the m d r rule group instance persistence.
312             *
313             * @param mdrRuleGroupInstancePersistence the m d r rule group instance persistence
314             */
315            public void setMDRRuleGroupInstancePersistence(
316                    MDRRuleGroupInstancePersistence mdrRuleGroupInstancePersistence) {
317                    this.mdrRuleGroupInstancePersistence = mdrRuleGroupInstancePersistence;
318            }
319    
320            /**
321             * Returns the counter local service.
322             *
323             * @return the counter local service
324             */
325            public CounterLocalService getCounterLocalService() {
326                    return counterLocalService;
327            }
328    
329            /**
330             * Sets the counter local service.
331             *
332             * @param counterLocalService the counter local service
333             */
334            public void setCounterLocalService(CounterLocalService counterLocalService) {
335                    this.counterLocalService = counterLocalService;
336            }
337    
338            /**
339             * Returns the layout local service.
340             *
341             * @return the layout local service
342             */
343            public LayoutLocalService getLayoutLocalService() {
344                    return layoutLocalService;
345            }
346    
347            /**
348             * Sets the layout local service.
349             *
350             * @param layoutLocalService the layout local service
351             */
352            public void setLayoutLocalService(LayoutLocalService layoutLocalService) {
353                    this.layoutLocalService = layoutLocalService;
354            }
355    
356            /**
357             * Returns the layout remote service.
358             *
359             * @return the layout remote service
360             */
361            public LayoutService getLayoutService() {
362                    return layoutService;
363            }
364    
365            /**
366             * Sets the layout remote service.
367             *
368             * @param layoutService the layout remote service
369             */
370            public void setLayoutService(LayoutService layoutService) {
371                    this.layoutService = layoutService;
372            }
373    
374            /**
375             * Returns the layout persistence.
376             *
377             * @return the layout persistence
378             */
379            public LayoutPersistence getLayoutPersistence() {
380                    return layoutPersistence;
381            }
382    
383            /**
384             * Sets the layout persistence.
385             *
386             * @param layoutPersistence the layout persistence
387             */
388            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
389                    this.layoutPersistence = layoutPersistence;
390            }
391    
392            /**
393             * Returns the layout finder.
394             *
395             * @return the layout finder
396             */
397            public LayoutFinder getLayoutFinder() {
398                    return layoutFinder;
399            }
400    
401            /**
402             * Sets the layout finder.
403             *
404             * @param layoutFinder the layout finder
405             */
406            public void setLayoutFinder(LayoutFinder layoutFinder) {
407                    this.layoutFinder = layoutFinder;
408            }
409    
410            /**
411             * Returns the layout set local service.
412             *
413             * @return the layout set local service
414             */
415            public LayoutSetLocalService getLayoutSetLocalService() {
416                    return layoutSetLocalService;
417            }
418    
419            /**
420             * Sets the layout set local service.
421             *
422             * @param layoutSetLocalService the layout set local service
423             */
424            public void setLayoutSetLocalService(
425                    LayoutSetLocalService layoutSetLocalService) {
426                    this.layoutSetLocalService = layoutSetLocalService;
427            }
428    
429            /**
430             * Returns the layout set remote service.
431             *
432             * @return the layout set remote service
433             */
434            public LayoutSetService getLayoutSetService() {
435                    return layoutSetService;
436            }
437    
438            /**
439             * Sets the layout set remote service.
440             *
441             * @param layoutSetService the layout set remote service
442             */
443            public void setLayoutSetService(LayoutSetService layoutSetService) {
444                    this.layoutSetService = layoutSetService;
445            }
446    
447            /**
448             * Returns the layout set persistence.
449             *
450             * @return the layout set persistence
451             */
452            public LayoutSetPersistence getLayoutSetPersistence() {
453                    return layoutSetPersistence;
454            }
455    
456            /**
457             * Sets the layout set persistence.
458             *
459             * @param layoutSetPersistence the layout set persistence
460             */
461            public void setLayoutSetPersistence(
462                    LayoutSetPersistence layoutSetPersistence) {
463                    this.layoutSetPersistence = layoutSetPersistence;
464            }
465    
466            /**
467             * Returns the resource local service.
468             *
469             * @return the resource local service
470             */
471            public ResourceLocalService getResourceLocalService() {
472                    return resourceLocalService;
473            }
474    
475            /**
476             * Sets the resource local service.
477             *
478             * @param resourceLocalService the resource local service
479             */
480            public void setResourceLocalService(
481                    ResourceLocalService resourceLocalService) {
482                    this.resourceLocalService = resourceLocalService;
483            }
484    
485            /**
486             * Returns the resource remote service.
487             *
488             * @return the resource remote service
489             */
490            public ResourceService getResourceService() {
491                    return resourceService;
492            }
493    
494            /**
495             * Sets the resource remote service.
496             *
497             * @param resourceService the resource remote service
498             */
499            public void setResourceService(ResourceService resourceService) {
500                    this.resourceService = resourceService;
501            }
502    
503            /**
504             * Returns the resource persistence.
505             *
506             * @return the resource persistence
507             */
508            public ResourcePersistence getResourcePersistence() {
509                    return resourcePersistence;
510            }
511    
512            /**
513             * Sets the resource persistence.
514             *
515             * @param resourcePersistence the resource persistence
516             */
517            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
518                    this.resourcePersistence = resourcePersistence;
519            }
520    
521            /**
522             * Returns the resource finder.
523             *
524             * @return the resource finder
525             */
526            public ResourceFinder getResourceFinder() {
527                    return resourceFinder;
528            }
529    
530            /**
531             * Sets the resource finder.
532             *
533             * @param resourceFinder the resource finder
534             */
535            public void setResourceFinder(ResourceFinder resourceFinder) {
536                    this.resourceFinder = resourceFinder;
537            }
538    
539            /**
540             * Returns the user local service.
541             *
542             * @return the user local service
543             */
544            public UserLocalService getUserLocalService() {
545                    return userLocalService;
546            }
547    
548            /**
549             * Sets the user local service.
550             *
551             * @param userLocalService the user local service
552             */
553            public void setUserLocalService(UserLocalService userLocalService) {
554                    this.userLocalService = userLocalService;
555            }
556    
557            /**
558             * Returns the user remote service.
559             *
560             * @return the user remote service
561             */
562            public UserService getUserService() {
563                    return userService;
564            }
565    
566            /**
567             * Sets the user remote service.
568             *
569             * @param userService the user remote service
570             */
571            public void setUserService(UserService userService) {
572                    this.userService = userService;
573            }
574    
575            /**
576             * Returns the user persistence.
577             *
578             * @return the user persistence
579             */
580            public UserPersistence getUserPersistence() {
581                    return userPersistence;
582            }
583    
584            /**
585             * Sets the user persistence.
586             *
587             * @param userPersistence the user persistence
588             */
589            public void setUserPersistence(UserPersistence userPersistence) {
590                    this.userPersistence = userPersistence;
591            }
592    
593            /**
594             * Returns the user finder.
595             *
596             * @return the user finder
597             */
598            public UserFinder getUserFinder() {
599                    return userFinder;
600            }
601    
602            /**
603             * Sets the user finder.
604             *
605             * @param userFinder the user finder
606             */
607            public void setUserFinder(UserFinder userFinder) {
608                    this.userFinder = userFinder;
609            }
610    
611            public void afterPropertiesSet() {
612            }
613    
614            public void destroy() {
615            }
616    
617            /**
618             * Returns the Spring bean ID for this bean.
619             *
620             * @return the Spring bean ID for this bean
621             */
622            public String getBeanIdentifier() {
623                    return _beanIdentifier;
624            }
625    
626            /**
627             * Sets the Spring bean ID for this bean.
628             *
629             * @param beanIdentifier the Spring bean ID for this bean
630             */
631            public void setBeanIdentifier(String beanIdentifier) {
632                    _beanIdentifier = beanIdentifier;
633            }
634    
635            protected Class<?> getModelClass() {
636                    return MDRRuleGroupInstance.class;
637            }
638    
639            protected String getModelClassName() {
640                    return MDRRuleGroupInstance.class.getName();
641            }
642    
643            /**
644             * Performs an SQL query.
645             *
646             * @param sql the sql query
647             */
648            protected void runSQL(String sql) throws SystemException {
649                    try {
650                            DataSource dataSource = mdrRuleGroupInstancePersistence.getDataSource();
651    
652                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
653                                            sql, new int[0]);
654    
655                            sqlUpdate.update();
656                    }
657                    catch (Exception e) {
658                            throw new SystemException(e);
659                    }
660            }
661    
662            @BeanReference(type = MDRActionLocalService.class)
663            protected MDRActionLocalService mdrActionLocalService;
664            @BeanReference(type = MDRActionService.class)
665            protected MDRActionService mdrActionService;
666            @BeanReference(type = MDRActionPersistence.class)
667            protected MDRActionPersistence mdrActionPersistence;
668            @BeanReference(type = MDRRuleLocalService.class)
669            protected MDRRuleLocalService mdrRuleLocalService;
670            @BeanReference(type = MDRRuleService.class)
671            protected MDRRuleService mdrRuleService;
672            @BeanReference(type = MDRRulePersistence.class)
673            protected MDRRulePersistence mdrRulePersistence;
674            @BeanReference(type = MDRRuleGroupLocalService.class)
675            protected MDRRuleGroupLocalService mdrRuleGroupLocalService;
676            @BeanReference(type = MDRRuleGroupService.class)
677            protected MDRRuleGroupService mdrRuleGroupService;
678            @BeanReference(type = MDRRuleGroupPersistence.class)
679            protected MDRRuleGroupPersistence mdrRuleGroupPersistence;
680            @BeanReference(type = MDRRuleGroupFinder.class)
681            protected MDRRuleGroupFinder mdrRuleGroupFinder;
682            @BeanReference(type = MDRRuleGroupInstanceLocalService.class)
683            protected MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService;
684            @BeanReference(type = MDRRuleGroupInstanceService.class)
685            protected MDRRuleGroupInstanceService mdrRuleGroupInstanceService;
686            @BeanReference(type = MDRRuleGroupInstancePersistence.class)
687            protected MDRRuleGroupInstancePersistence mdrRuleGroupInstancePersistence;
688            @BeanReference(type = CounterLocalService.class)
689            protected CounterLocalService counterLocalService;
690            @BeanReference(type = LayoutLocalService.class)
691            protected LayoutLocalService layoutLocalService;
692            @BeanReference(type = LayoutService.class)
693            protected LayoutService layoutService;
694            @BeanReference(type = LayoutPersistence.class)
695            protected LayoutPersistence layoutPersistence;
696            @BeanReference(type = LayoutFinder.class)
697            protected LayoutFinder layoutFinder;
698            @BeanReference(type = LayoutSetLocalService.class)
699            protected LayoutSetLocalService layoutSetLocalService;
700            @BeanReference(type = LayoutSetService.class)
701            protected LayoutSetService layoutSetService;
702            @BeanReference(type = LayoutSetPersistence.class)
703            protected LayoutSetPersistence layoutSetPersistence;
704            @BeanReference(type = ResourceLocalService.class)
705            protected ResourceLocalService resourceLocalService;
706            @BeanReference(type = ResourceService.class)
707            protected ResourceService resourceService;
708            @BeanReference(type = ResourcePersistence.class)
709            protected ResourcePersistence resourcePersistence;
710            @BeanReference(type = ResourceFinder.class)
711            protected ResourceFinder resourceFinder;
712            @BeanReference(type = UserLocalService.class)
713            protected UserLocalService userLocalService;
714            @BeanReference(type = UserService.class)
715            protected UserService userService;
716            @BeanReference(type = UserPersistence.class)
717            protected UserPersistence userPersistence;
718            @BeanReference(type = UserFinder.class)
719            protected UserFinder userFinder;
720            private String _beanIdentifier;
721    }