001
014
015 package com.liferay.portlet.dynamicdatamapping.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.dynamicdatamapping.model.DDMTemplate;
035 import com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalService;
036 import com.liferay.portlet.dynamicdatamapping.service.DDMStorageLinkLocalService;
037 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService;
038 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService;
039 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureService;
040 import com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService;
041 import com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService;
042 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMContentPersistence;
043 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStorageLinkPersistence;
044 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
045 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence;
046 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
047 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplateFinder;
048 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplatePersistence;
049
050 import javax.sql.DataSource;
051
052
064 public abstract class DDMTemplateServiceBaseImpl extends BaseServiceImpl
065 implements DDMTemplateService, IdentifiableBean {
066
071
072
077 public DDMContentLocalService getDDMContentLocalService() {
078 return ddmContentLocalService;
079 }
080
081
086 public void setDDMContentLocalService(
087 DDMContentLocalService ddmContentLocalService) {
088 this.ddmContentLocalService = ddmContentLocalService;
089 }
090
091
096 public DDMContentPersistence getDDMContentPersistence() {
097 return ddmContentPersistence;
098 }
099
100
105 public void setDDMContentPersistence(
106 DDMContentPersistence ddmContentPersistence) {
107 this.ddmContentPersistence = ddmContentPersistence;
108 }
109
110
115 public DDMStorageLinkLocalService getDDMStorageLinkLocalService() {
116 return ddmStorageLinkLocalService;
117 }
118
119
124 public void setDDMStorageLinkLocalService(
125 DDMStorageLinkLocalService ddmStorageLinkLocalService) {
126 this.ddmStorageLinkLocalService = ddmStorageLinkLocalService;
127 }
128
129
134 public DDMStorageLinkPersistence getDDMStorageLinkPersistence() {
135 return ddmStorageLinkPersistence;
136 }
137
138
143 public void setDDMStorageLinkPersistence(
144 DDMStorageLinkPersistence ddmStorageLinkPersistence) {
145 this.ddmStorageLinkPersistence = ddmStorageLinkPersistence;
146 }
147
148
153 public DDMStructureLocalService getDDMStructureLocalService() {
154 return ddmStructureLocalService;
155 }
156
157
162 public void setDDMStructureLocalService(
163 DDMStructureLocalService ddmStructureLocalService) {
164 this.ddmStructureLocalService = ddmStructureLocalService;
165 }
166
167
172 public DDMStructureService getDDMStructureService() {
173 return ddmStructureService;
174 }
175
176
181 public void setDDMStructureService(DDMStructureService ddmStructureService) {
182 this.ddmStructureService = ddmStructureService;
183 }
184
185
190 public DDMStructurePersistence getDDMStructurePersistence() {
191 return ddmStructurePersistence;
192 }
193
194
199 public void setDDMStructurePersistence(
200 DDMStructurePersistence ddmStructurePersistence) {
201 this.ddmStructurePersistence = ddmStructurePersistence;
202 }
203
204
209 public DDMStructureFinder getDDMStructureFinder() {
210 return ddmStructureFinder;
211 }
212
213
218 public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
219 this.ddmStructureFinder = ddmStructureFinder;
220 }
221
222
227 public DDMStructureLinkLocalService getDDMStructureLinkLocalService() {
228 return ddmStructureLinkLocalService;
229 }
230
231
236 public void setDDMStructureLinkLocalService(
237 DDMStructureLinkLocalService ddmStructureLinkLocalService) {
238 this.ddmStructureLinkLocalService = ddmStructureLinkLocalService;
239 }
240
241
246 public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
247 return ddmStructureLinkPersistence;
248 }
249
250
255 public void setDDMStructureLinkPersistence(
256 DDMStructureLinkPersistence ddmStructureLinkPersistence) {
257 this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
258 }
259
260
265 public DDMTemplateLocalService getDDMTemplateLocalService() {
266 return ddmTemplateLocalService;
267 }
268
269
274 public void setDDMTemplateLocalService(
275 DDMTemplateLocalService ddmTemplateLocalService) {
276 this.ddmTemplateLocalService = ddmTemplateLocalService;
277 }
278
279
284 public DDMTemplateService getDDMTemplateService() {
285 return ddmTemplateService;
286 }
287
288
293 public void setDDMTemplateService(DDMTemplateService ddmTemplateService) {
294 this.ddmTemplateService = ddmTemplateService;
295 }
296
297
302 public DDMTemplatePersistence getDDMTemplatePersistence() {
303 return ddmTemplatePersistence;
304 }
305
306
311 public void setDDMTemplatePersistence(
312 DDMTemplatePersistence ddmTemplatePersistence) {
313 this.ddmTemplatePersistence = ddmTemplatePersistence;
314 }
315
316
321 public DDMTemplateFinder getDDMTemplateFinder() {
322 return ddmTemplateFinder;
323 }
324
325
330 public void setDDMTemplateFinder(DDMTemplateFinder ddmTemplateFinder) {
331 this.ddmTemplateFinder = ddmTemplateFinder;
332 }
333
334
339 public CounterLocalService getCounterLocalService() {
340 return counterLocalService;
341 }
342
343
348 public void setCounterLocalService(CounterLocalService counterLocalService) {
349 this.counterLocalService = counterLocalService;
350 }
351
352
357 public ResourceLocalService getResourceLocalService() {
358 return resourceLocalService;
359 }
360
361
366 public void setResourceLocalService(
367 ResourceLocalService resourceLocalService) {
368 this.resourceLocalService = resourceLocalService;
369 }
370
371
376 public ResourceService getResourceService() {
377 return resourceService;
378 }
379
380
385 public void setResourceService(ResourceService resourceService) {
386 this.resourceService = resourceService;
387 }
388
389
394 public ResourcePersistence getResourcePersistence() {
395 return resourcePersistence;
396 }
397
398
403 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
404 this.resourcePersistence = resourcePersistence;
405 }
406
407
412 public ResourceFinder getResourceFinder() {
413 return resourceFinder;
414 }
415
416
421 public void setResourceFinder(ResourceFinder resourceFinder) {
422 this.resourceFinder = resourceFinder;
423 }
424
425
430 public UserLocalService getUserLocalService() {
431 return userLocalService;
432 }
433
434
439 public void setUserLocalService(UserLocalService userLocalService) {
440 this.userLocalService = userLocalService;
441 }
442
443
448 public UserService getUserService() {
449 return userService;
450 }
451
452
457 public void setUserService(UserService userService) {
458 this.userService = userService;
459 }
460
461
466 public UserPersistence getUserPersistence() {
467 return userPersistence;
468 }
469
470
475 public void setUserPersistence(UserPersistence userPersistence) {
476 this.userPersistence = userPersistence;
477 }
478
479
484 public UserFinder getUserFinder() {
485 return userFinder;
486 }
487
488
493 public void setUserFinder(UserFinder userFinder) {
494 this.userFinder = userFinder;
495 }
496
497 public void afterPropertiesSet() {
498 }
499
500 public void destroy() {
501 }
502
503
508 public String getBeanIdentifier() {
509 return _beanIdentifier;
510 }
511
512
517 public void setBeanIdentifier(String beanIdentifier) {
518 _beanIdentifier = beanIdentifier;
519 }
520
521 protected Class<?> getModelClass() {
522 return DDMTemplate.class;
523 }
524
525 protected String getModelClassName() {
526 return DDMTemplate.class.getName();
527 }
528
529
534 protected void runSQL(String sql) throws SystemException {
535 try {
536 DataSource dataSource = ddmTemplatePersistence.getDataSource();
537
538 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
539 sql, new int[0]);
540
541 sqlUpdate.update();
542 }
543 catch (Exception e) {
544 throw new SystemException(e);
545 }
546 }
547
548 @BeanReference(type = DDMContentLocalService.class)
549 protected DDMContentLocalService ddmContentLocalService;
550 @BeanReference(type = DDMContentPersistence.class)
551 protected DDMContentPersistence ddmContentPersistence;
552 @BeanReference(type = DDMStorageLinkLocalService.class)
553 protected DDMStorageLinkLocalService ddmStorageLinkLocalService;
554 @BeanReference(type = DDMStorageLinkPersistence.class)
555 protected DDMStorageLinkPersistence ddmStorageLinkPersistence;
556 @BeanReference(type = DDMStructureLocalService.class)
557 protected DDMStructureLocalService ddmStructureLocalService;
558 @BeanReference(type = DDMStructureService.class)
559 protected DDMStructureService ddmStructureService;
560 @BeanReference(type = DDMStructurePersistence.class)
561 protected DDMStructurePersistence ddmStructurePersistence;
562 @BeanReference(type = DDMStructureFinder.class)
563 protected DDMStructureFinder ddmStructureFinder;
564 @BeanReference(type = DDMStructureLinkLocalService.class)
565 protected DDMStructureLinkLocalService ddmStructureLinkLocalService;
566 @BeanReference(type = DDMStructureLinkPersistence.class)
567 protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
568 @BeanReference(type = DDMTemplateLocalService.class)
569 protected DDMTemplateLocalService ddmTemplateLocalService;
570 @BeanReference(type = DDMTemplateService.class)
571 protected DDMTemplateService ddmTemplateService;
572 @BeanReference(type = DDMTemplatePersistence.class)
573 protected DDMTemplatePersistence ddmTemplatePersistence;
574 @BeanReference(type = DDMTemplateFinder.class)
575 protected DDMTemplateFinder ddmTemplateFinder;
576 @BeanReference(type = CounterLocalService.class)
577 protected CounterLocalService counterLocalService;
578 @BeanReference(type = ResourceLocalService.class)
579 protected ResourceLocalService resourceLocalService;
580 @BeanReference(type = ResourceService.class)
581 protected ResourceService resourceService;
582 @BeanReference(type = ResourcePersistence.class)
583 protected ResourcePersistence resourcePersistence;
584 @BeanReference(type = ResourceFinder.class)
585 protected ResourceFinder resourceFinder;
586 @BeanReference(type = UserLocalService.class)
587 protected UserLocalService userLocalService;
588 @BeanReference(type = UserService.class)
589 protected UserService userService;
590 @BeanReference(type = UserPersistence.class)
591 protected UserPersistence userPersistence;
592 @BeanReference(type = UserFinder.class)
593 protected UserFinder userFinder;
594 private String _beanIdentifier;
595 }