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