001
014
015 package com.liferay.portlet.dynamicdatamapping.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.db.DB;
020 import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
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.persistence.ClassNamePersistence;
026 import com.liferay.portal.service.persistence.GroupFinder;
027 import com.liferay.portal.service.persistence.GroupPersistence;
028 import com.liferay.portal.service.persistence.SystemEventPersistence;
029 import com.liferay.portal.service.persistence.UserFinder;
030 import com.liferay.portal.service.persistence.UserPersistence;
031 import com.liferay.portal.util.PortalUtil;
032
033 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
034 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
035 import com.liferay.portlet.dynamicdatamapping.model.DDMStructure;
036 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureService;
037 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
038 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence;
039 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
040 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplateFinder;
041 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplatePersistence;
042 import com.liferay.portlet.journal.service.persistence.JournalFolderFinder;
043 import com.liferay.portlet.journal.service.persistence.JournalFolderPersistence;
044
045 import javax.sql.DataSource;
046
047
059 public abstract class DDMStructureServiceBaseImpl extends BaseServiceImpl
060 implements DDMStructureService, IdentifiableBean {
061
066
067
072 public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService getDDMStructureLocalService() {
073 return ddmStructureLocalService;
074 }
075
076
081 public void setDDMStructureLocalService(
082 com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService) {
083 this.ddmStructureLocalService = ddmStructureLocalService;
084 }
085
086
091 public com.liferay.portlet.dynamicdatamapping.service.DDMStructureService getDDMStructureService() {
092 return ddmStructureService;
093 }
094
095
100 public void setDDMStructureService(
101 com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService) {
102 this.ddmStructureService = ddmStructureService;
103 }
104
105
110 public DDMStructurePersistence getDDMStructurePersistence() {
111 return ddmStructurePersistence;
112 }
113
114
119 public void setDDMStructurePersistence(
120 DDMStructurePersistence ddmStructurePersistence) {
121 this.ddmStructurePersistence = ddmStructurePersistence;
122 }
123
124
129 public DDMStructureFinder getDDMStructureFinder() {
130 return ddmStructureFinder;
131 }
132
133
138 public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
139 this.ddmStructureFinder = ddmStructureFinder;
140 }
141
142
147 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
148 return counterLocalService;
149 }
150
151
156 public void setCounterLocalService(
157 com.liferay.counter.service.CounterLocalService counterLocalService) {
158 this.counterLocalService = counterLocalService;
159 }
160
161
166 public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
167 return classNameLocalService;
168 }
169
170
175 public void setClassNameLocalService(
176 com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
177 this.classNameLocalService = classNameLocalService;
178 }
179
180
185 public com.liferay.portal.service.ClassNameService getClassNameService() {
186 return classNameService;
187 }
188
189
194 public void setClassNameService(
195 com.liferay.portal.service.ClassNameService classNameService) {
196 this.classNameService = classNameService;
197 }
198
199
204 public ClassNamePersistence getClassNamePersistence() {
205 return classNamePersistence;
206 }
207
208
213 public void setClassNamePersistence(
214 ClassNamePersistence classNamePersistence) {
215 this.classNamePersistence = classNamePersistence;
216 }
217
218
223 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
224 return groupLocalService;
225 }
226
227
232 public void setGroupLocalService(
233 com.liferay.portal.service.GroupLocalService groupLocalService) {
234 this.groupLocalService = groupLocalService;
235 }
236
237
242 public com.liferay.portal.service.GroupService getGroupService() {
243 return groupService;
244 }
245
246
251 public void setGroupService(
252 com.liferay.portal.service.GroupService groupService) {
253 this.groupService = groupService;
254 }
255
256
261 public GroupPersistence getGroupPersistence() {
262 return groupPersistence;
263 }
264
265
270 public void setGroupPersistence(GroupPersistence groupPersistence) {
271 this.groupPersistence = groupPersistence;
272 }
273
274
279 public GroupFinder getGroupFinder() {
280 return groupFinder;
281 }
282
283
288 public void setGroupFinder(GroupFinder groupFinder) {
289 this.groupFinder = groupFinder;
290 }
291
292
297 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
298 return resourceLocalService;
299 }
300
301
306 public void setResourceLocalService(
307 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
308 this.resourceLocalService = resourceLocalService;
309 }
310
311
316 public com.liferay.portal.service.SystemEventLocalService getSystemEventLocalService() {
317 return systemEventLocalService;
318 }
319
320
325 public void setSystemEventLocalService(
326 com.liferay.portal.service.SystemEventLocalService systemEventLocalService) {
327 this.systemEventLocalService = systemEventLocalService;
328 }
329
330
335 public SystemEventPersistence getSystemEventPersistence() {
336 return systemEventPersistence;
337 }
338
339
344 public void setSystemEventPersistence(
345 SystemEventPersistence systemEventPersistence) {
346 this.systemEventPersistence = systemEventPersistence;
347 }
348
349
354 public com.liferay.portal.service.UserLocalService getUserLocalService() {
355 return userLocalService;
356 }
357
358
363 public void setUserLocalService(
364 com.liferay.portal.service.UserLocalService userLocalService) {
365 this.userLocalService = userLocalService;
366 }
367
368
373 public com.liferay.portal.service.UserService getUserService() {
374 return userService;
375 }
376
377
382 public void setUserService(
383 com.liferay.portal.service.UserService userService) {
384 this.userService = userService;
385 }
386
387
392 public UserPersistence getUserPersistence() {
393 return userPersistence;
394 }
395
396
401 public void setUserPersistence(UserPersistence userPersistence) {
402 this.userPersistence = userPersistence;
403 }
404
405
410 public UserFinder getUserFinder() {
411 return userFinder;
412 }
413
414
419 public void setUserFinder(UserFinder userFinder) {
420 this.userFinder = userFinder;
421 }
422
423
428 public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
429 return dlFileEntryTypeLocalService;
430 }
431
432
437 public void setDLFileEntryTypeLocalService(
438 com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
439 this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
440 }
441
442
447 public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService getDLFileEntryTypeService() {
448 return dlFileEntryTypeService;
449 }
450
451
456 public void setDLFileEntryTypeService(
457 com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService) {
458 this.dlFileEntryTypeService = dlFileEntryTypeService;
459 }
460
461
466 public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
467 return dlFileEntryTypePersistence;
468 }
469
470
475 public void setDLFileEntryTypePersistence(
476 DLFileEntryTypePersistence dlFileEntryTypePersistence) {
477 this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
478 }
479
480
485 public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
486 return dlFileEntryTypeFinder;
487 }
488
489
494 public void setDLFileEntryTypeFinder(
495 DLFileEntryTypeFinder dlFileEntryTypeFinder) {
496 this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
497 }
498
499
504 public com.liferay.portlet.journal.service.JournalFolderLocalService getJournalFolderLocalService() {
505 return journalFolderLocalService;
506 }
507
508
513 public void setJournalFolderLocalService(
514 com.liferay.portlet.journal.service.JournalFolderLocalService journalFolderLocalService) {
515 this.journalFolderLocalService = journalFolderLocalService;
516 }
517
518
523 public com.liferay.portlet.journal.service.JournalFolderService getJournalFolderService() {
524 return journalFolderService;
525 }
526
527
532 public void setJournalFolderService(
533 com.liferay.portlet.journal.service.JournalFolderService journalFolderService) {
534 this.journalFolderService = journalFolderService;
535 }
536
537
542 public JournalFolderPersistence getJournalFolderPersistence() {
543 return journalFolderPersistence;
544 }
545
546
551 public void setJournalFolderPersistence(
552 JournalFolderPersistence journalFolderPersistence) {
553 this.journalFolderPersistence = journalFolderPersistence;
554 }
555
556
561 public JournalFolderFinder getJournalFolderFinder() {
562 return journalFolderFinder;
563 }
564
565
570 public void setJournalFolderFinder(JournalFolderFinder journalFolderFinder) {
571 this.journalFolderFinder = journalFolderFinder;
572 }
573
574
579 public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService getDDMStructureLinkLocalService() {
580 return ddmStructureLinkLocalService;
581 }
582
583
588 public void setDDMStructureLinkLocalService(
589 com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService ddmStructureLinkLocalService) {
590 this.ddmStructureLinkLocalService = ddmStructureLinkLocalService;
591 }
592
593
598 public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
599 return ddmStructureLinkPersistence;
600 }
601
602
607 public void setDDMStructureLinkPersistence(
608 DDMStructureLinkPersistence ddmStructureLinkPersistence) {
609 this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
610 }
611
612
617 public com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService getDDMTemplateLocalService() {
618 return ddmTemplateLocalService;
619 }
620
621
626 public void setDDMTemplateLocalService(
627 com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService ddmTemplateLocalService) {
628 this.ddmTemplateLocalService = ddmTemplateLocalService;
629 }
630
631
636 public com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService getDDMTemplateService() {
637 return ddmTemplateService;
638 }
639
640
645 public void setDDMTemplateService(
646 com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService ddmTemplateService) {
647 this.ddmTemplateService = ddmTemplateService;
648 }
649
650
655 public DDMTemplatePersistence getDDMTemplatePersistence() {
656 return ddmTemplatePersistence;
657 }
658
659
664 public void setDDMTemplatePersistence(
665 DDMTemplatePersistence ddmTemplatePersistence) {
666 this.ddmTemplatePersistence = ddmTemplatePersistence;
667 }
668
669
674 public DDMTemplateFinder getDDMTemplateFinder() {
675 return ddmTemplateFinder;
676 }
677
678
683 public void setDDMTemplateFinder(DDMTemplateFinder ddmTemplateFinder) {
684 this.ddmTemplateFinder = ddmTemplateFinder;
685 }
686
687 public void afterPropertiesSet() {
688 }
689
690 public void destroy() {
691 }
692
693
698 @Override
699 public String getBeanIdentifier() {
700 return _beanIdentifier;
701 }
702
703
708 @Override
709 public void setBeanIdentifier(String beanIdentifier) {
710 _beanIdentifier = beanIdentifier;
711 }
712
713 protected Class<?> getModelClass() {
714 return DDMStructure.class;
715 }
716
717 protected String getModelClassName() {
718 return DDMStructure.class.getName();
719 }
720
721
726 protected void runSQL(String sql) {
727 try {
728 DataSource dataSource = ddmStructurePersistence.getDataSource();
729
730 DB db = DBFactoryUtil.getDB();
731
732 sql = db.buildSQL(sql);
733 sql = PortalUtil.transformSQL(sql);
734
735 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
736 sql, new int[0]);
737
738 sqlUpdate.update();
739 }
740 catch (Exception e) {
741 throw new SystemException(e);
742 }
743 }
744
745 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService.class)
746 protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService;
747 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureService.class)
748 protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService;
749 @BeanReference(type = DDMStructurePersistence.class)
750 protected DDMStructurePersistence ddmStructurePersistence;
751 @BeanReference(type = DDMStructureFinder.class)
752 protected DDMStructureFinder ddmStructureFinder;
753 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
754 protected com.liferay.counter.service.CounterLocalService counterLocalService;
755 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
756 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
757 @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
758 protected com.liferay.portal.service.ClassNameService classNameService;
759 @BeanReference(type = ClassNamePersistence.class)
760 protected ClassNamePersistence classNamePersistence;
761 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
762 protected com.liferay.portal.service.GroupLocalService groupLocalService;
763 @BeanReference(type = com.liferay.portal.service.GroupService.class)
764 protected com.liferay.portal.service.GroupService groupService;
765 @BeanReference(type = GroupPersistence.class)
766 protected GroupPersistence groupPersistence;
767 @BeanReference(type = GroupFinder.class)
768 protected GroupFinder groupFinder;
769 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
770 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
771 @BeanReference(type = com.liferay.portal.service.SystemEventLocalService.class)
772 protected com.liferay.portal.service.SystemEventLocalService systemEventLocalService;
773 @BeanReference(type = SystemEventPersistence.class)
774 protected SystemEventPersistence systemEventPersistence;
775 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
776 protected com.liferay.portal.service.UserLocalService userLocalService;
777 @BeanReference(type = com.liferay.portal.service.UserService.class)
778 protected com.liferay.portal.service.UserService userService;
779 @BeanReference(type = UserPersistence.class)
780 protected UserPersistence userPersistence;
781 @BeanReference(type = UserFinder.class)
782 protected UserFinder userFinder;
783 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService.class)
784 protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
785 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService.class)
786 protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService;
787 @BeanReference(type = DLFileEntryTypePersistence.class)
788 protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
789 @BeanReference(type = DLFileEntryTypeFinder.class)
790 protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
791 @BeanReference(type = com.liferay.portlet.journal.service.JournalFolderLocalService.class)
792 protected com.liferay.portlet.journal.service.JournalFolderLocalService journalFolderLocalService;
793 @BeanReference(type = com.liferay.portlet.journal.service.JournalFolderService.class)
794 protected com.liferay.portlet.journal.service.JournalFolderService journalFolderService;
795 @BeanReference(type = JournalFolderPersistence.class)
796 protected JournalFolderPersistence journalFolderPersistence;
797 @BeanReference(type = JournalFolderFinder.class)
798 protected JournalFolderFinder journalFolderFinder;
799 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService.class)
800 protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService ddmStructureLinkLocalService;
801 @BeanReference(type = DDMStructureLinkPersistence.class)
802 protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
803 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService.class)
804 protected com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService ddmTemplateLocalService;
805 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService.class)
806 protected com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService ddmTemplateService;
807 @BeanReference(type = DDMTemplatePersistence.class)
808 protected DDMTemplatePersistence ddmTemplatePersistence;
809 @BeanReference(type = DDMTemplateFinder.class)
810 protected DDMTemplateFinder ddmTemplateFinder;
811 private String _beanIdentifier;
812 }