001
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
070 public abstract class MDRRuleGroupInstanceServiceBaseImpl
071 extends BaseServiceImpl implements MDRRuleGroupInstanceService,
072 IdentifiableBean {
073
078
079
084 public MDRActionLocalService getMDRActionLocalService() {
085 return mdrActionLocalService;
086 }
087
088
093 public void setMDRActionLocalService(
094 MDRActionLocalService mdrActionLocalService) {
095 this.mdrActionLocalService = mdrActionLocalService;
096 }
097
098
103 public MDRActionService getMDRActionService() {
104 return mdrActionService;
105 }
106
107
112 public void setMDRActionService(MDRActionService mdrActionService) {
113 this.mdrActionService = mdrActionService;
114 }
115
116
121 public MDRActionPersistence getMDRActionPersistence() {
122 return mdrActionPersistence;
123 }
124
125
130 public void setMDRActionPersistence(
131 MDRActionPersistence mdrActionPersistence) {
132 this.mdrActionPersistence = mdrActionPersistence;
133 }
134
135
140 public MDRRuleLocalService getMDRRuleLocalService() {
141 return mdrRuleLocalService;
142 }
143
144
149 public void setMDRRuleLocalService(MDRRuleLocalService mdrRuleLocalService) {
150 this.mdrRuleLocalService = mdrRuleLocalService;
151 }
152
153
158 public MDRRuleService getMDRRuleService() {
159 return mdrRuleService;
160 }
161
162
167 public void setMDRRuleService(MDRRuleService mdrRuleService) {
168 this.mdrRuleService = mdrRuleService;
169 }
170
171
176 public MDRRulePersistence getMDRRulePersistence() {
177 return mdrRulePersistence;
178 }
179
180
185 public void setMDRRulePersistence(MDRRulePersistence mdrRulePersistence) {
186 this.mdrRulePersistence = mdrRulePersistence;
187 }
188
189
194 public MDRRuleGroupLocalService getMDRRuleGroupLocalService() {
195 return mdrRuleGroupLocalService;
196 }
197
198
203 public void setMDRRuleGroupLocalService(
204 MDRRuleGroupLocalService mdrRuleGroupLocalService) {
205 this.mdrRuleGroupLocalService = mdrRuleGroupLocalService;
206 }
207
208
213 public MDRRuleGroupService getMDRRuleGroupService() {
214 return mdrRuleGroupService;
215 }
216
217
222 public void setMDRRuleGroupService(MDRRuleGroupService mdrRuleGroupService) {
223 this.mdrRuleGroupService = mdrRuleGroupService;
224 }
225
226
231 public MDRRuleGroupPersistence getMDRRuleGroupPersistence() {
232 return mdrRuleGroupPersistence;
233 }
234
235
240 public void setMDRRuleGroupPersistence(
241 MDRRuleGroupPersistence mdrRuleGroupPersistence) {
242 this.mdrRuleGroupPersistence = mdrRuleGroupPersistence;
243 }
244
245
250 public MDRRuleGroupFinder getMDRRuleGroupFinder() {
251 return mdrRuleGroupFinder;
252 }
253
254
259 public void setMDRRuleGroupFinder(MDRRuleGroupFinder mdrRuleGroupFinder) {
260 this.mdrRuleGroupFinder = mdrRuleGroupFinder;
261 }
262
263
268 public MDRRuleGroupInstanceLocalService getMDRRuleGroupInstanceLocalService() {
269 return mdrRuleGroupInstanceLocalService;
270 }
271
272
277 public void setMDRRuleGroupInstanceLocalService(
278 MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService) {
279 this.mdrRuleGroupInstanceLocalService = mdrRuleGroupInstanceLocalService;
280 }
281
282
287 public MDRRuleGroupInstanceService getMDRRuleGroupInstanceService() {
288 return mdrRuleGroupInstanceService;
289 }
290
291
296 public void setMDRRuleGroupInstanceService(
297 MDRRuleGroupInstanceService mdrRuleGroupInstanceService) {
298 this.mdrRuleGroupInstanceService = mdrRuleGroupInstanceService;
299 }
300
301
306 public MDRRuleGroupInstancePersistence getMDRRuleGroupInstancePersistence() {
307 return mdrRuleGroupInstancePersistence;
308 }
309
310
315 public void setMDRRuleGroupInstancePersistence(
316 MDRRuleGroupInstancePersistence mdrRuleGroupInstancePersistence) {
317 this.mdrRuleGroupInstancePersistence = mdrRuleGroupInstancePersistence;
318 }
319
320
325 public CounterLocalService getCounterLocalService() {
326 return counterLocalService;
327 }
328
329
334 public void setCounterLocalService(CounterLocalService counterLocalService) {
335 this.counterLocalService = counterLocalService;
336 }
337
338
343 public LayoutLocalService getLayoutLocalService() {
344 return layoutLocalService;
345 }
346
347
352 public void setLayoutLocalService(LayoutLocalService layoutLocalService) {
353 this.layoutLocalService = layoutLocalService;
354 }
355
356
361 public LayoutService getLayoutService() {
362 return layoutService;
363 }
364
365
370 public void setLayoutService(LayoutService layoutService) {
371 this.layoutService = layoutService;
372 }
373
374
379 public LayoutPersistence getLayoutPersistence() {
380 return layoutPersistence;
381 }
382
383
388 public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
389 this.layoutPersistence = layoutPersistence;
390 }
391
392
397 public LayoutFinder getLayoutFinder() {
398 return layoutFinder;
399 }
400
401
406 public void setLayoutFinder(LayoutFinder layoutFinder) {
407 this.layoutFinder = layoutFinder;
408 }
409
410
415 public LayoutSetLocalService getLayoutSetLocalService() {
416 return layoutSetLocalService;
417 }
418
419
424 public void setLayoutSetLocalService(
425 LayoutSetLocalService layoutSetLocalService) {
426 this.layoutSetLocalService = layoutSetLocalService;
427 }
428
429
434 public LayoutSetService getLayoutSetService() {
435 return layoutSetService;
436 }
437
438
443 public void setLayoutSetService(LayoutSetService layoutSetService) {
444 this.layoutSetService = layoutSetService;
445 }
446
447
452 public LayoutSetPersistence getLayoutSetPersistence() {
453 return layoutSetPersistence;
454 }
455
456
461 public void setLayoutSetPersistence(
462 LayoutSetPersistence layoutSetPersistence) {
463 this.layoutSetPersistence = layoutSetPersistence;
464 }
465
466
471 public ResourceLocalService getResourceLocalService() {
472 return resourceLocalService;
473 }
474
475
480 public void setResourceLocalService(
481 ResourceLocalService resourceLocalService) {
482 this.resourceLocalService = resourceLocalService;
483 }
484
485
490 public ResourceService getResourceService() {
491 return resourceService;
492 }
493
494
499 public void setResourceService(ResourceService resourceService) {
500 this.resourceService = resourceService;
501 }
502
503
508 public ResourcePersistence getResourcePersistence() {
509 return resourcePersistence;
510 }
511
512
517 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
518 this.resourcePersistence = resourcePersistence;
519 }
520
521
526 public ResourceFinder getResourceFinder() {
527 return resourceFinder;
528 }
529
530
535 public void setResourceFinder(ResourceFinder resourceFinder) {
536 this.resourceFinder = resourceFinder;
537 }
538
539
544 public UserLocalService getUserLocalService() {
545 return userLocalService;
546 }
547
548
553 public void setUserLocalService(UserLocalService userLocalService) {
554 this.userLocalService = userLocalService;
555 }
556
557
562 public UserService getUserService() {
563 return userService;
564 }
565
566
571 public void setUserService(UserService userService) {
572 this.userService = userService;
573 }
574
575
580 public UserPersistence getUserPersistence() {
581 return userPersistence;
582 }
583
584
589 public void setUserPersistence(UserPersistence userPersistence) {
590 this.userPersistence = userPersistence;
591 }
592
593
598 public UserFinder getUserFinder() {
599 return userFinder;
600 }
601
602
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
622 public String getBeanIdentifier() {
623 return _beanIdentifier;
624 }
625
626
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
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 }