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.ResourceLocalService;
026 import com.liferay.portal.service.ResourceService;
027 import com.liferay.portal.service.UserLocalService;
028 import com.liferay.portal.service.UserService;
029 import com.liferay.portal.service.persistence.ResourceFinder;
030 import com.liferay.portal.service.persistence.ResourcePersistence;
031 import com.liferay.portal.service.persistence.UserFinder;
032 import com.liferay.portal.service.persistence.UserPersistence;
033
034 import com.liferay.portlet.mobiledevicerules.model.MDRAction;
035 import com.liferay.portlet.mobiledevicerules.service.MDRActionLocalService;
036 import com.liferay.portlet.mobiledevicerules.service.MDRActionService;
037 import com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceLocalService;
038 import com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceService;
039 import com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupLocalService;
040 import com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupService;
041 import com.liferay.portlet.mobiledevicerules.service.MDRRuleLocalService;
042 import com.liferay.portlet.mobiledevicerules.service.MDRRuleService;
043 import com.liferay.portlet.mobiledevicerules.service.persistence.MDRActionPersistence;
044 import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRuleGroupFinder;
045 import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRuleGroupInstancePersistence;
046 import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRuleGroupPersistence;
047 import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRulePersistence;
048
049 import javax.sql.DataSource;
050
051
063 public abstract class MDRActionServiceBaseImpl extends BaseServiceImpl
064 implements MDRActionService, IdentifiableBean {
065
070
071
076 public MDRActionLocalService getMDRActionLocalService() {
077 return mdrActionLocalService;
078 }
079
080
085 public void setMDRActionLocalService(
086 MDRActionLocalService mdrActionLocalService) {
087 this.mdrActionLocalService = mdrActionLocalService;
088 }
089
090
095 public MDRActionService getMDRActionService() {
096 return mdrActionService;
097 }
098
099
104 public void setMDRActionService(MDRActionService mdrActionService) {
105 this.mdrActionService = mdrActionService;
106 }
107
108
113 public MDRActionPersistence getMDRActionPersistence() {
114 return mdrActionPersistence;
115 }
116
117
122 public void setMDRActionPersistence(
123 MDRActionPersistence mdrActionPersistence) {
124 this.mdrActionPersistence = mdrActionPersistence;
125 }
126
127
132 public MDRRuleLocalService getMDRRuleLocalService() {
133 return mdrRuleLocalService;
134 }
135
136
141 public void setMDRRuleLocalService(MDRRuleLocalService mdrRuleLocalService) {
142 this.mdrRuleLocalService = mdrRuleLocalService;
143 }
144
145
150 public MDRRuleService getMDRRuleService() {
151 return mdrRuleService;
152 }
153
154
159 public void setMDRRuleService(MDRRuleService mdrRuleService) {
160 this.mdrRuleService = mdrRuleService;
161 }
162
163
168 public MDRRulePersistence getMDRRulePersistence() {
169 return mdrRulePersistence;
170 }
171
172
177 public void setMDRRulePersistence(MDRRulePersistence mdrRulePersistence) {
178 this.mdrRulePersistence = mdrRulePersistence;
179 }
180
181
186 public MDRRuleGroupLocalService getMDRRuleGroupLocalService() {
187 return mdrRuleGroupLocalService;
188 }
189
190
195 public void setMDRRuleGroupLocalService(
196 MDRRuleGroupLocalService mdrRuleGroupLocalService) {
197 this.mdrRuleGroupLocalService = mdrRuleGroupLocalService;
198 }
199
200
205 public MDRRuleGroupService getMDRRuleGroupService() {
206 return mdrRuleGroupService;
207 }
208
209
214 public void setMDRRuleGroupService(MDRRuleGroupService mdrRuleGroupService) {
215 this.mdrRuleGroupService = mdrRuleGroupService;
216 }
217
218
223 public MDRRuleGroupPersistence getMDRRuleGroupPersistence() {
224 return mdrRuleGroupPersistence;
225 }
226
227
232 public void setMDRRuleGroupPersistence(
233 MDRRuleGroupPersistence mdrRuleGroupPersistence) {
234 this.mdrRuleGroupPersistence = mdrRuleGroupPersistence;
235 }
236
237
242 public MDRRuleGroupFinder getMDRRuleGroupFinder() {
243 return mdrRuleGroupFinder;
244 }
245
246
251 public void setMDRRuleGroupFinder(MDRRuleGroupFinder mdrRuleGroupFinder) {
252 this.mdrRuleGroupFinder = mdrRuleGroupFinder;
253 }
254
255
260 public MDRRuleGroupInstanceLocalService getMDRRuleGroupInstanceLocalService() {
261 return mdrRuleGroupInstanceLocalService;
262 }
263
264
269 public void setMDRRuleGroupInstanceLocalService(
270 MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService) {
271 this.mdrRuleGroupInstanceLocalService = mdrRuleGroupInstanceLocalService;
272 }
273
274
279 public MDRRuleGroupInstanceService getMDRRuleGroupInstanceService() {
280 return mdrRuleGroupInstanceService;
281 }
282
283
288 public void setMDRRuleGroupInstanceService(
289 MDRRuleGroupInstanceService mdrRuleGroupInstanceService) {
290 this.mdrRuleGroupInstanceService = mdrRuleGroupInstanceService;
291 }
292
293
298 public MDRRuleGroupInstancePersistence getMDRRuleGroupInstancePersistence() {
299 return mdrRuleGroupInstancePersistence;
300 }
301
302
307 public void setMDRRuleGroupInstancePersistence(
308 MDRRuleGroupInstancePersistence mdrRuleGroupInstancePersistence) {
309 this.mdrRuleGroupInstancePersistence = mdrRuleGroupInstancePersistence;
310 }
311
312
317 public CounterLocalService getCounterLocalService() {
318 return counterLocalService;
319 }
320
321
326 public void setCounterLocalService(CounterLocalService counterLocalService) {
327 this.counterLocalService = counterLocalService;
328 }
329
330
335 public ResourceLocalService getResourceLocalService() {
336 return resourceLocalService;
337 }
338
339
344 public void setResourceLocalService(
345 ResourceLocalService resourceLocalService) {
346 this.resourceLocalService = resourceLocalService;
347 }
348
349
354 public ResourceService getResourceService() {
355 return resourceService;
356 }
357
358
363 public void setResourceService(ResourceService resourceService) {
364 this.resourceService = resourceService;
365 }
366
367
372 public ResourcePersistence getResourcePersistence() {
373 return resourcePersistence;
374 }
375
376
381 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
382 this.resourcePersistence = resourcePersistence;
383 }
384
385
390 public ResourceFinder getResourceFinder() {
391 return resourceFinder;
392 }
393
394
399 public void setResourceFinder(ResourceFinder resourceFinder) {
400 this.resourceFinder = resourceFinder;
401 }
402
403
408 public UserLocalService getUserLocalService() {
409 return userLocalService;
410 }
411
412
417 public void setUserLocalService(UserLocalService userLocalService) {
418 this.userLocalService = userLocalService;
419 }
420
421
426 public UserService getUserService() {
427 return userService;
428 }
429
430
435 public void setUserService(UserService userService) {
436 this.userService = userService;
437 }
438
439
444 public UserPersistence getUserPersistence() {
445 return userPersistence;
446 }
447
448
453 public void setUserPersistence(UserPersistence userPersistence) {
454 this.userPersistence = userPersistence;
455 }
456
457
462 public UserFinder getUserFinder() {
463 return userFinder;
464 }
465
466
471 public void setUserFinder(UserFinder userFinder) {
472 this.userFinder = userFinder;
473 }
474
475 public void afterPropertiesSet() {
476 }
477
478 public void destroy() {
479 }
480
481
486 public String getBeanIdentifier() {
487 return _beanIdentifier;
488 }
489
490
495 public void setBeanIdentifier(String beanIdentifier) {
496 _beanIdentifier = beanIdentifier;
497 }
498
499 protected Class<?> getModelClass() {
500 return MDRAction.class;
501 }
502
503 protected String getModelClassName() {
504 return MDRAction.class.getName();
505 }
506
507
512 protected void runSQL(String sql) throws SystemException {
513 try {
514 DataSource dataSource = mdrActionPersistence.getDataSource();
515
516 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
517 sql, new int[0]);
518
519 sqlUpdate.update();
520 }
521 catch (Exception e) {
522 throw new SystemException(e);
523 }
524 }
525
526 @BeanReference(type = MDRActionLocalService.class)
527 protected MDRActionLocalService mdrActionLocalService;
528 @BeanReference(type = MDRActionService.class)
529 protected MDRActionService mdrActionService;
530 @BeanReference(type = MDRActionPersistence.class)
531 protected MDRActionPersistence mdrActionPersistence;
532 @BeanReference(type = MDRRuleLocalService.class)
533 protected MDRRuleLocalService mdrRuleLocalService;
534 @BeanReference(type = MDRRuleService.class)
535 protected MDRRuleService mdrRuleService;
536 @BeanReference(type = MDRRulePersistence.class)
537 protected MDRRulePersistence mdrRulePersistence;
538 @BeanReference(type = MDRRuleGroupLocalService.class)
539 protected MDRRuleGroupLocalService mdrRuleGroupLocalService;
540 @BeanReference(type = MDRRuleGroupService.class)
541 protected MDRRuleGroupService mdrRuleGroupService;
542 @BeanReference(type = MDRRuleGroupPersistence.class)
543 protected MDRRuleGroupPersistence mdrRuleGroupPersistence;
544 @BeanReference(type = MDRRuleGroupFinder.class)
545 protected MDRRuleGroupFinder mdrRuleGroupFinder;
546 @BeanReference(type = MDRRuleGroupInstanceLocalService.class)
547 protected MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService;
548 @BeanReference(type = MDRRuleGroupInstanceService.class)
549 protected MDRRuleGroupInstanceService mdrRuleGroupInstanceService;
550 @BeanReference(type = MDRRuleGroupInstancePersistence.class)
551 protected MDRRuleGroupInstancePersistence mdrRuleGroupInstancePersistence;
552 @BeanReference(type = CounterLocalService.class)
553 protected CounterLocalService counterLocalService;
554 @BeanReference(type = ResourceLocalService.class)
555 protected ResourceLocalService resourceLocalService;
556 @BeanReference(type = ResourceService.class)
557 protected ResourceService resourceService;
558 @BeanReference(type = ResourcePersistence.class)
559 protected ResourcePersistence resourcePersistence;
560 @BeanReference(type = ResourceFinder.class)
561 protected ResourceFinder resourceFinder;
562 @BeanReference(type = UserLocalService.class)
563 protected UserLocalService userLocalService;
564 @BeanReference(type = UserService.class)
565 protected UserService userService;
566 @BeanReference(type = UserPersistence.class)
567 protected UserPersistence userPersistence;
568 @BeanReference(type = UserFinder.class)
569 protected UserFinder userFinder;
570 private String _beanIdentifier;
571 }