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.documentlibrary.service.DLFileEntryTypeLocalService;
035 import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService;
036 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
037 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
038 import com.liferay.portlet.dynamicdatamapping.model.DDMStructure;
039 import com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalService;
040 import com.liferay.portlet.dynamicdatamapping.service.DDMStorageLinkLocalService;
041 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService;
042 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService;
043 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureService;
044 import com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService;
045 import com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService;
046 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMContentPersistence;
047 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStorageLinkPersistence;
048 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
049 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence;
050 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
051 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplateFinder;
052 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplatePersistence;
053
054 import javax.sql.DataSource;
055
056
068 public abstract class DDMStructureServiceBaseImpl extends BaseServiceImpl
069 implements DDMStructureService, IdentifiableBean {
070
075
076
081 public DDMContentLocalService getDDMContentLocalService() {
082 return ddmContentLocalService;
083 }
084
085
090 public void setDDMContentLocalService(
091 DDMContentLocalService ddmContentLocalService) {
092 this.ddmContentLocalService = ddmContentLocalService;
093 }
094
095
100 public DDMContentPersistence getDDMContentPersistence() {
101 return ddmContentPersistence;
102 }
103
104
109 public void setDDMContentPersistence(
110 DDMContentPersistence ddmContentPersistence) {
111 this.ddmContentPersistence = ddmContentPersistence;
112 }
113
114
119 public DDMStorageLinkLocalService getDDMStorageLinkLocalService() {
120 return ddmStorageLinkLocalService;
121 }
122
123
128 public void setDDMStorageLinkLocalService(
129 DDMStorageLinkLocalService ddmStorageLinkLocalService) {
130 this.ddmStorageLinkLocalService = ddmStorageLinkLocalService;
131 }
132
133
138 public DDMStorageLinkPersistence getDDMStorageLinkPersistence() {
139 return ddmStorageLinkPersistence;
140 }
141
142
147 public void setDDMStorageLinkPersistence(
148 DDMStorageLinkPersistence ddmStorageLinkPersistence) {
149 this.ddmStorageLinkPersistence = ddmStorageLinkPersistence;
150 }
151
152
157 public DDMStructureLocalService getDDMStructureLocalService() {
158 return ddmStructureLocalService;
159 }
160
161
166 public void setDDMStructureLocalService(
167 DDMStructureLocalService ddmStructureLocalService) {
168 this.ddmStructureLocalService = ddmStructureLocalService;
169 }
170
171
176 public DDMStructureService getDDMStructureService() {
177 return ddmStructureService;
178 }
179
180
185 public void setDDMStructureService(DDMStructureService ddmStructureService) {
186 this.ddmStructureService = ddmStructureService;
187 }
188
189
194 public DDMStructurePersistence getDDMStructurePersistence() {
195 return ddmStructurePersistence;
196 }
197
198
203 public void setDDMStructurePersistence(
204 DDMStructurePersistence ddmStructurePersistence) {
205 this.ddmStructurePersistence = ddmStructurePersistence;
206 }
207
208
213 public DDMStructureFinder getDDMStructureFinder() {
214 return ddmStructureFinder;
215 }
216
217
222 public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
223 this.ddmStructureFinder = ddmStructureFinder;
224 }
225
226
231 public DDMStructureLinkLocalService getDDMStructureLinkLocalService() {
232 return ddmStructureLinkLocalService;
233 }
234
235
240 public void setDDMStructureLinkLocalService(
241 DDMStructureLinkLocalService ddmStructureLinkLocalService) {
242 this.ddmStructureLinkLocalService = ddmStructureLinkLocalService;
243 }
244
245
250 public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
251 return ddmStructureLinkPersistence;
252 }
253
254
259 public void setDDMStructureLinkPersistence(
260 DDMStructureLinkPersistence ddmStructureLinkPersistence) {
261 this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
262 }
263
264
269 public DDMTemplateLocalService getDDMTemplateLocalService() {
270 return ddmTemplateLocalService;
271 }
272
273
278 public void setDDMTemplateLocalService(
279 DDMTemplateLocalService ddmTemplateLocalService) {
280 this.ddmTemplateLocalService = ddmTemplateLocalService;
281 }
282
283
288 public DDMTemplateService getDDMTemplateService() {
289 return ddmTemplateService;
290 }
291
292
297 public void setDDMTemplateService(DDMTemplateService ddmTemplateService) {
298 this.ddmTemplateService = ddmTemplateService;
299 }
300
301
306 public DDMTemplatePersistence getDDMTemplatePersistence() {
307 return ddmTemplatePersistence;
308 }
309
310
315 public void setDDMTemplatePersistence(
316 DDMTemplatePersistence ddmTemplatePersistence) {
317 this.ddmTemplatePersistence = ddmTemplatePersistence;
318 }
319
320
325 public DDMTemplateFinder getDDMTemplateFinder() {
326 return ddmTemplateFinder;
327 }
328
329
334 public void setDDMTemplateFinder(DDMTemplateFinder ddmTemplateFinder) {
335 this.ddmTemplateFinder = ddmTemplateFinder;
336 }
337
338
343 public CounterLocalService getCounterLocalService() {
344 return counterLocalService;
345 }
346
347
352 public void setCounterLocalService(CounterLocalService counterLocalService) {
353 this.counterLocalService = counterLocalService;
354 }
355
356
361 public ResourceLocalService getResourceLocalService() {
362 return resourceLocalService;
363 }
364
365
370 public void setResourceLocalService(
371 ResourceLocalService resourceLocalService) {
372 this.resourceLocalService = resourceLocalService;
373 }
374
375
380 public ResourceService getResourceService() {
381 return resourceService;
382 }
383
384
389 public void setResourceService(ResourceService resourceService) {
390 this.resourceService = resourceService;
391 }
392
393
398 public ResourcePersistence getResourcePersistence() {
399 return resourcePersistence;
400 }
401
402
407 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
408 this.resourcePersistence = resourcePersistence;
409 }
410
411
416 public ResourceFinder getResourceFinder() {
417 return resourceFinder;
418 }
419
420
425 public void setResourceFinder(ResourceFinder resourceFinder) {
426 this.resourceFinder = resourceFinder;
427 }
428
429
434 public UserLocalService getUserLocalService() {
435 return userLocalService;
436 }
437
438
443 public void setUserLocalService(UserLocalService userLocalService) {
444 this.userLocalService = userLocalService;
445 }
446
447
452 public UserService getUserService() {
453 return userService;
454 }
455
456
461 public void setUserService(UserService userService) {
462 this.userService = userService;
463 }
464
465
470 public UserPersistence getUserPersistence() {
471 return userPersistence;
472 }
473
474
479 public void setUserPersistence(UserPersistence userPersistence) {
480 this.userPersistence = userPersistence;
481 }
482
483
488 public UserFinder getUserFinder() {
489 return userFinder;
490 }
491
492
497 public void setUserFinder(UserFinder userFinder) {
498 this.userFinder = userFinder;
499 }
500
501
506 public DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
507 return dlFileEntryTypeLocalService;
508 }
509
510
515 public void setDLFileEntryTypeLocalService(
516 DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
517 this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
518 }
519
520
525 public DLFileEntryTypeService getDLFileEntryTypeService() {
526 return dlFileEntryTypeService;
527 }
528
529
534 public void setDLFileEntryTypeService(
535 DLFileEntryTypeService dlFileEntryTypeService) {
536 this.dlFileEntryTypeService = dlFileEntryTypeService;
537 }
538
539
544 public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
545 return dlFileEntryTypePersistence;
546 }
547
548
553 public void setDLFileEntryTypePersistence(
554 DLFileEntryTypePersistence dlFileEntryTypePersistence) {
555 this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
556 }
557
558
563 public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
564 return dlFileEntryTypeFinder;
565 }
566
567
572 public void setDLFileEntryTypeFinder(
573 DLFileEntryTypeFinder dlFileEntryTypeFinder) {
574 this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
575 }
576
577 public void afterPropertiesSet() {
578 }
579
580 public void destroy() {
581 }
582
583
588 public String getBeanIdentifier() {
589 return _beanIdentifier;
590 }
591
592
597 public void setBeanIdentifier(String beanIdentifier) {
598 _beanIdentifier = beanIdentifier;
599 }
600
601 protected Class<?> getModelClass() {
602 return DDMStructure.class;
603 }
604
605 protected String getModelClassName() {
606 return DDMStructure.class.getName();
607 }
608
609
614 protected void runSQL(String sql) throws SystemException {
615 try {
616 DataSource dataSource = ddmStructurePersistence.getDataSource();
617
618 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
619 sql, new int[0]);
620
621 sqlUpdate.update();
622 }
623 catch (Exception e) {
624 throw new SystemException(e);
625 }
626 }
627
628 @BeanReference(type = DDMContentLocalService.class)
629 protected DDMContentLocalService ddmContentLocalService;
630 @BeanReference(type = DDMContentPersistence.class)
631 protected DDMContentPersistence ddmContentPersistence;
632 @BeanReference(type = DDMStorageLinkLocalService.class)
633 protected DDMStorageLinkLocalService ddmStorageLinkLocalService;
634 @BeanReference(type = DDMStorageLinkPersistence.class)
635 protected DDMStorageLinkPersistence ddmStorageLinkPersistence;
636 @BeanReference(type = DDMStructureLocalService.class)
637 protected DDMStructureLocalService ddmStructureLocalService;
638 @BeanReference(type = DDMStructureService.class)
639 protected DDMStructureService ddmStructureService;
640 @BeanReference(type = DDMStructurePersistence.class)
641 protected DDMStructurePersistence ddmStructurePersistence;
642 @BeanReference(type = DDMStructureFinder.class)
643 protected DDMStructureFinder ddmStructureFinder;
644 @BeanReference(type = DDMStructureLinkLocalService.class)
645 protected DDMStructureLinkLocalService ddmStructureLinkLocalService;
646 @BeanReference(type = DDMStructureLinkPersistence.class)
647 protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
648 @BeanReference(type = DDMTemplateLocalService.class)
649 protected DDMTemplateLocalService ddmTemplateLocalService;
650 @BeanReference(type = DDMTemplateService.class)
651 protected DDMTemplateService ddmTemplateService;
652 @BeanReference(type = DDMTemplatePersistence.class)
653 protected DDMTemplatePersistence ddmTemplatePersistence;
654 @BeanReference(type = DDMTemplateFinder.class)
655 protected DDMTemplateFinder ddmTemplateFinder;
656 @BeanReference(type = CounterLocalService.class)
657 protected CounterLocalService counterLocalService;
658 @BeanReference(type = ResourceLocalService.class)
659 protected ResourceLocalService resourceLocalService;
660 @BeanReference(type = ResourceService.class)
661 protected ResourceService resourceService;
662 @BeanReference(type = ResourcePersistence.class)
663 protected ResourcePersistence resourcePersistence;
664 @BeanReference(type = ResourceFinder.class)
665 protected ResourceFinder resourceFinder;
666 @BeanReference(type = UserLocalService.class)
667 protected UserLocalService userLocalService;
668 @BeanReference(type = UserService.class)
669 protected UserService userService;
670 @BeanReference(type = UserPersistence.class)
671 protected UserPersistence userPersistence;
672 @BeanReference(type = UserFinder.class)
673 protected UserFinder userFinder;
674 @BeanReference(type = DLFileEntryTypeLocalService.class)
675 protected DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
676 @BeanReference(type = DLFileEntryTypeService.class)
677 protected DLFileEntryTypeService dlFileEntryTypeService;
678 @BeanReference(type = DLFileEntryTypePersistence.class)
679 protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
680 @BeanReference(type = DLFileEntryTypeFinder.class)
681 protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
682 private String _beanIdentifier;
683 }