001
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.SystemEventPersistence;
024 import com.liferay.portal.service.persistence.UserFinder;
025 import com.liferay.portal.service.persistence.UserPersistence;
026
027 import com.liferay.portlet.mobiledevicerules.model.MDRAction;
028 import com.liferay.portlet.mobiledevicerules.service.MDRActionService;
029 import com.liferay.portlet.mobiledevicerules.service.persistence.MDRActionPersistence;
030 import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRuleGroupFinder;
031 import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRuleGroupInstancePersistence;
032 import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRuleGroupPersistence;
033 import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRulePersistence;
034
035 import javax.sql.DataSource;
036
037
049 public abstract class MDRActionServiceBaseImpl extends BaseServiceImpl
050 implements MDRActionService, IdentifiableBean {
051
056
057
062 public com.liferay.portlet.mobiledevicerules.service.MDRActionLocalService getMDRActionLocalService() {
063 return mdrActionLocalService;
064 }
065
066
071 public void setMDRActionLocalService(
072 com.liferay.portlet.mobiledevicerules.service.MDRActionLocalService mdrActionLocalService) {
073 this.mdrActionLocalService = mdrActionLocalService;
074 }
075
076
081 public com.liferay.portlet.mobiledevicerules.service.MDRActionService getMDRActionService() {
082 return mdrActionService;
083 }
084
085
090 public void setMDRActionService(
091 com.liferay.portlet.mobiledevicerules.service.MDRActionService mdrActionService) {
092 this.mdrActionService = mdrActionService;
093 }
094
095
100 public MDRActionPersistence getMDRActionPersistence() {
101 return mdrActionPersistence;
102 }
103
104
109 public void setMDRActionPersistence(
110 MDRActionPersistence mdrActionPersistence) {
111 this.mdrActionPersistence = mdrActionPersistence;
112 }
113
114
119 public com.liferay.portlet.mobiledevicerules.service.MDRRuleLocalService getMDRRuleLocalService() {
120 return mdrRuleLocalService;
121 }
122
123
128 public void setMDRRuleLocalService(
129 com.liferay.portlet.mobiledevicerules.service.MDRRuleLocalService mdrRuleLocalService) {
130 this.mdrRuleLocalService = mdrRuleLocalService;
131 }
132
133
138 public com.liferay.portlet.mobiledevicerules.service.MDRRuleService getMDRRuleService() {
139 return mdrRuleService;
140 }
141
142
147 public void setMDRRuleService(
148 com.liferay.portlet.mobiledevicerules.service.MDRRuleService mdrRuleService) {
149 this.mdrRuleService = mdrRuleService;
150 }
151
152
157 public MDRRulePersistence getMDRRulePersistence() {
158 return mdrRulePersistence;
159 }
160
161
166 public void setMDRRulePersistence(MDRRulePersistence mdrRulePersistence) {
167 this.mdrRulePersistence = mdrRulePersistence;
168 }
169
170
175 public com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupLocalService getMDRRuleGroupLocalService() {
176 return mdrRuleGroupLocalService;
177 }
178
179
184 public void setMDRRuleGroupLocalService(
185 com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupLocalService mdrRuleGroupLocalService) {
186 this.mdrRuleGroupLocalService = mdrRuleGroupLocalService;
187 }
188
189
194 public com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupService getMDRRuleGroupService() {
195 return mdrRuleGroupService;
196 }
197
198
203 public void setMDRRuleGroupService(
204 com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupService mdrRuleGroupService) {
205 this.mdrRuleGroupService = mdrRuleGroupService;
206 }
207
208
213 public MDRRuleGroupPersistence getMDRRuleGroupPersistence() {
214 return mdrRuleGroupPersistence;
215 }
216
217
222 public void setMDRRuleGroupPersistence(
223 MDRRuleGroupPersistence mdrRuleGroupPersistence) {
224 this.mdrRuleGroupPersistence = mdrRuleGroupPersistence;
225 }
226
227
232 public MDRRuleGroupFinder getMDRRuleGroupFinder() {
233 return mdrRuleGroupFinder;
234 }
235
236
241 public void setMDRRuleGroupFinder(MDRRuleGroupFinder mdrRuleGroupFinder) {
242 this.mdrRuleGroupFinder = mdrRuleGroupFinder;
243 }
244
245
250 public com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceLocalService getMDRRuleGroupInstanceLocalService() {
251 return mdrRuleGroupInstanceLocalService;
252 }
253
254
259 public void setMDRRuleGroupInstanceLocalService(
260 com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService) {
261 this.mdrRuleGroupInstanceLocalService = mdrRuleGroupInstanceLocalService;
262 }
263
264
269 public com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceService getMDRRuleGroupInstanceService() {
270 return mdrRuleGroupInstanceService;
271 }
272
273
278 public void setMDRRuleGroupInstanceService(
279 com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceService mdrRuleGroupInstanceService) {
280 this.mdrRuleGroupInstanceService = mdrRuleGroupInstanceService;
281 }
282
283
288 public MDRRuleGroupInstancePersistence getMDRRuleGroupInstancePersistence() {
289 return mdrRuleGroupInstancePersistence;
290 }
291
292
297 public void setMDRRuleGroupInstancePersistence(
298 MDRRuleGroupInstancePersistence mdrRuleGroupInstancePersistence) {
299 this.mdrRuleGroupInstancePersistence = mdrRuleGroupInstancePersistence;
300 }
301
302
307 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
308 return counterLocalService;
309 }
310
311
316 public void setCounterLocalService(
317 com.liferay.counter.service.CounterLocalService counterLocalService) {
318 this.counterLocalService = counterLocalService;
319 }
320
321
326 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
327 return resourceLocalService;
328 }
329
330
335 public void setResourceLocalService(
336 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
337 this.resourceLocalService = resourceLocalService;
338 }
339
340
345 public com.liferay.portal.service.SystemEventLocalService getSystemEventLocalService() {
346 return systemEventLocalService;
347 }
348
349
354 public void setSystemEventLocalService(
355 com.liferay.portal.service.SystemEventLocalService systemEventLocalService) {
356 this.systemEventLocalService = systemEventLocalService;
357 }
358
359
364 public SystemEventPersistence getSystemEventPersistence() {
365 return systemEventPersistence;
366 }
367
368
373 public void setSystemEventPersistence(
374 SystemEventPersistence systemEventPersistence) {
375 this.systemEventPersistence = systemEventPersistence;
376 }
377
378
383 public com.liferay.portal.service.UserLocalService getUserLocalService() {
384 return userLocalService;
385 }
386
387
392 public void setUserLocalService(
393 com.liferay.portal.service.UserLocalService userLocalService) {
394 this.userLocalService = userLocalService;
395 }
396
397
402 public com.liferay.portal.service.UserService getUserService() {
403 return userService;
404 }
405
406
411 public void setUserService(
412 com.liferay.portal.service.UserService userService) {
413 this.userService = userService;
414 }
415
416
421 public UserPersistence getUserPersistence() {
422 return userPersistence;
423 }
424
425
430 public void setUserPersistence(UserPersistence userPersistence) {
431 this.userPersistence = userPersistence;
432 }
433
434
439 public UserFinder getUserFinder() {
440 return userFinder;
441 }
442
443
448 public void setUserFinder(UserFinder userFinder) {
449 this.userFinder = userFinder;
450 }
451
452 public void afterPropertiesSet() {
453 }
454
455 public void destroy() {
456 }
457
458
463 @Override
464 public String getBeanIdentifier() {
465 return _beanIdentifier;
466 }
467
468
473 @Override
474 public void setBeanIdentifier(String beanIdentifier) {
475 _beanIdentifier = beanIdentifier;
476 }
477
478 protected Class<?> getModelClass() {
479 return MDRAction.class;
480 }
481
482 protected String getModelClassName() {
483 return MDRAction.class.getName();
484 }
485
486
491 protected void runSQL(String sql) throws SystemException {
492 try {
493 DataSource dataSource = mdrActionPersistence.getDataSource();
494
495 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
496 sql, new int[0]);
497
498 sqlUpdate.update();
499 }
500 catch (Exception e) {
501 throw new SystemException(e);
502 }
503 }
504
505 @BeanReference(type = com.liferay.portlet.mobiledevicerules.service.MDRActionLocalService.class)
506 protected com.liferay.portlet.mobiledevicerules.service.MDRActionLocalService mdrActionLocalService;
507 @BeanReference(type = com.liferay.portlet.mobiledevicerules.service.MDRActionService.class)
508 protected com.liferay.portlet.mobiledevicerules.service.MDRActionService mdrActionService;
509 @BeanReference(type = MDRActionPersistence.class)
510 protected MDRActionPersistence mdrActionPersistence;
511 @BeanReference(type = com.liferay.portlet.mobiledevicerules.service.MDRRuleLocalService.class)
512 protected com.liferay.portlet.mobiledevicerules.service.MDRRuleLocalService mdrRuleLocalService;
513 @BeanReference(type = com.liferay.portlet.mobiledevicerules.service.MDRRuleService.class)
514 protected com.liferay.portlet.mobiledevicerules.service.MDRRuleService mdrRuleService;
515 @BeanReference(type = MDRRulePersistence.class)
516 protected MDRRulePersistence mdrRulePersistence;
517 @BeanReference(type = com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupLocalService.class)
518 protected com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupLocalService mdrRuleGroupLocalService;
519 @BeanReference(type = com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupService.class)
520 protected com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupService mdrRuleGroupService;
521 @BeanReference(type = MDRRuleGroupPersistence.class)
522 protected MDRRuleGroupPersistence mdrRuleGroupPersistence;
523 @BeanReference(type = MDRRuleGroupFinder.class)
524 protected MDRRuleGroupFinder mdrRuleGroupFinder;
525 @BeanReference(type = com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceLocalService.class)
526 protected com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService;
527 @BeanReference(type = com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceService.class)
528 protected com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceService mdrRuleGroupInstanceService;
529 @BeanReference(type = MDRRuleGroupInstancePersistence.class)
530 protected MDRRuleGroupInstancePersistence mdrRuleGroupInstancePersistence;
531 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
532 protected com.liferay.counter.service.CounterLocalService counterLocalService;
533 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
534 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
535 @BeanReference(type = com.liferay.portal.service.SystemEventLocalService.class)
536 protected com.liferay.portal.service.SystemEventLocalService systemEventLocalService;
537 @BeanReference(type = SystemEventPersistence.class)
538 protected SystemEventPersistence systemEventPersistence;
539 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
540 protected com.liferay.portal.service.UserLocalService userLocalService;
541 @BeanReference(type = com.liferay.portal.service.UserService.class)
542 protected com.liferay.portal.service.UserService userService;
543 @BeanReference(type = UserPersistence.class)
544 protected UserPersistence userPersistence;
545 @BeanReference(type = UserFinder.class)
546 protected UserFinder userFinder;
547 private String _beanIdentifier;
548 }