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