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.DDMStructureVersionPersistence;
041 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplateFinder;
042 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplatePersistence;
043 import com.liferay.portlet.journal.service.persistence.JournalFolderFinder;
044 import com.liferay.portlet.journal.service.persistence.JournalFolderPersistence;
045
046 import javax.sql.DataSource;
047
048
060 public abstract class DDMStructureServiceBaseImpl extends BaseServiceImpl
061 implements DDMStructureService, IdentifiableBean {
062
067
068
073 public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService getDDMStructureLocalService() {
074 return ddmStructureLocalService;
075 }
076
077
082 public void setDDMStructureLocalService(
083 com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService) {
084 this.ddmStructureLocalService = ddmStructureLocalService;
085 }
086
087
092 public com.liferay.portlet.dynamicdatamapping.service.DDMStructureService getDDMStructureService() {
093 return ddmStructureService;
094 }
095
096
101 public void setDDMStructureService(
102 com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService) {
103 this.ddmStructureService = ddmStructureService;
104 }
105
106
111 public DDMStructurePersistence getDDMStructurePersistence() {
112 return ddmStructurePersistence;
113 }
114
115
120 public void setDDMStructurePersistence(
121 DDMStructurePersistence ddmStructurePersistence) {
122 this.ddmStructurePersistence = ddmStructurePersistence;
123 }
124
125
130 public DDMStructureFinder getDDMStructureFinder() {
131 return ddmStructureFinder;
132 }
133
134
139 public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
140 this.ddmStructureFinder = ddmStructureFinder;
141 }
142
143
148 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
149 return counterLocalService;
150 }
151
152
157 public void setCounterLocalService(
158 com.liferay.counter.service.CounterLocalService counterLocalService) {
159 this.counterLocalService = counterLocalService;
160 }
161
162
167 public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
168 return classNameLocalService;
169 }
170
171
176 public void setClassNameLocalService(
177 com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
178 this.classNameLocalService = classNameLocalService;
179 }
180
181
186 public com.liferay.portal.service.ClassNameService getClassNameService() {
187 return classNameService;
188 }
189
190
195 public void setClassNameService(
196 com.liferay.portal.service.ClassNameService classNameService) {
197 this.classNameService = classNameService;
198 }
199
200
205 public ClassNamePersistence getClassNamePersistence() {
206 return classNamePersistence;
207 }
208
209
214 public void setClassNamePersistence(
215 ClassNamePersistence classNamePersistence) {
216 this.classNamePersistence = classNamePersistence;
217 }
218
219
224 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
225 return groupLocalService;
226 }
227
228
233 public void setGroupLocalService(
234 com.liferay.portal.service.GroupLocalService groupLocalService) {
235 this.groupLocalService = groupLocalService;
236 }
237
238
243 public com.liferay.portal.service.GroupService getGroupService() {
244 return groupService;
245 }
246
247
252 public void setGroupService(
253 com.liferay.portal.service.GroupService groupService) {
254 this.groupService = groupService;
255 }
256
257
262 public GroupPersistence getGroupPersistence() {
263 return groupPersistence;
264 }
265
266
271 public void setGroupPersistence(GroupPersistence groupPersistence) {
272 this.groupPersistence = groupPersistence;
273 }
274
275
280 public GroupFinder getGroupFinder() {
281 return groupFinder;
282 }
283
284
289 public void setGroupFinder(GroupFinder groupFinder) {
290 this.groupFinder = groupFinder;
291 }
292
293
298 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
299 return resourceLocalService;
300 }
301
302
307 public void setResourceLocalService(
308 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
309 this.resourceLocalService = resourceLocalService;
310 }
311
312
317 public com.liferay.portal.service.SystemEventLocalService getSystemEventLocalService() {
318 return systemEventLocalService;
319 }
320
321
326 public void setSystemEventLocalService(
327 com.liferay.portal.service.SystemEventLocalService systemEventLocalService) {
328 this.systemEventLocalService = systemEventLocalService;
329 }
330
331
336 public SystemEventPersistence getSystemEventPersistence() {
337 return systemEventPersistence;
338 }
339
340
345 public void setSystemEventPersistence(
346 SystemEventPersistence systemEventPersistence) {
347 this.systemEventPersistence = systemEventPersistence;
348 }
349
350
355 public com.liferay.portal.service.UserLocalService getUserLocalService() {
356 return userLocalService;
357 }
358
359
364 public void setUserLocalService(
365 com.liferay.portal.service.UserLocalService userLocalService) {
366 this.userLocalService = userLocalService;
367 }
368
369
374 public com.liferay.portal.service.UserService getUserService() {
375 return userService;
376 }
377
378
383 public void setUserService(
384 com.liferay.portal.service.UserService userService) {
385 this.userService = userService;
386 }
387
388
393 public UserPersistence getUserPersistence() {
394 return userPersistence;
395 }
396
397
402 public void setUserPersistence(UserPersistence userPersistence) {
403 this.userPersistence = userPersistence;
404 }
405
406
411 public UserFinder getUserFinder() {
412 return userFinder;
413 }
414
415
420 public void setUserFinder(UserFinder userFinder) {
421 this.userFinder = userFinder;
422 }
423
424
429 public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
430 return dlFileEntryTypeLocalService;
431 }
432
433
438 public void setDLFileEntryTypeLocalService(
439 com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
440 this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
441 }
442
443
448 public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService getDLFileEntryTypeService() {
449 return dlFileEntryTypeService;
450 }
451
452
457 public void setDLFileEntryTypeService(
458 com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService) {
459 this.dlFileEntryTypeService = dlFileEntryTypeService;
460 }
461
462
467 public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
468 return dlFileEntryTypePersistence;
469 }
470
471
476 public void setDLFileEntryTypePersistence(
477 DLFileEntryTypePersistence dlFileEntryTypePersistence) {
478 this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
479 }
480
481
486 public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
487 return dlFileEntryTypeFinder;
488 }
489
490
495 public void setDLFileEntryTypeFinder(
496 DLFileEntryTypeFinder dlFileEntryTypeFinder) {
497 this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
498 }
499
500
505 public com.liferay.portlet.journal.service.JournalFolderLocalService getJournalFolderLocalService() {
506 return journalFolderLocalService;
507 }
508
509
514 public void setJournalFolderLocalService(
515 com.liferay.portlet.journal.service.JournalFolderLocalService journalFolderLocalService) {
516 this.journalFolderLocalService = journalFolderLocalService;
517 }
518
519
524 public com.liferay.portlet.journal.service.JournalFolderService getJournalFolderService() {
525 return journalFolderService;
526 }
527
528
533 public void setJournalFolderService(
534 com.liferay.portlet.journal.service.JournalFolderService journalFolderService) {
535 this.journalFolderService = journalFolderService;
536 }
537
538
543 public JournalFolderPersistence getJournalFolderPersistence() {
544 return journalFolderPersistence;
545 }
546
547
552 public void setJournalFolderPersistence(
553 JournalFolderPersistence journalFolderPersistence) {
554 this.journalFolderPersistence = journalFolderPersistence;
555 }
556
557
562 public JournalFolderFinder getJournalFolderFinder() {
563 return journalFolderFinder;
564 }
565
566
571 public void setJournalFolderFinder(JournalFolderFinder journalFolderFinder) {
572 this.journalFolderFinder = journalFolderFinder;
573 }
574
575
580 public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService getDDMStructureLinkLocalService() {
581 return ddmStructureLinkLocalService;
582 }
583
584
589 public void setDDMStructureLinkLocalService(
590 com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService ddmStructureLinkLocalService) {
591 this.ddmStructureLinkLocalService = ddmStructureLinkLocalService;
592 }
593
594
599 public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
600 return ddmStructureLinkPersistence;
601 }
602
603
608 public void setDDMStructureLinkPersistence(
609 DDMStructureLinkPersistence ddmStructureLinkPersistence) {
610 this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
611 }
612
613
618 public com.liferay.portlet.dynamicdatamapping.service.DDMStructureVersionLocalService getDDMStructureVersionLocalService() {
619 return ddmStructureVersionLocalService;
620 }
621
622
627 public void setDDMStructureVersionLocalService(
628 com.liferay.portlet.dynamicdatamapping.service.DDMStructureVersionLocalService ddmStructureVersionLocalService) {
629 this.ddmStructureVersionLocalService = ddmStructureVersionLocalService;
630 }
631
632
637 public com.liferay.portlet.dynamicdatamapping.service.DDMStructureVersionService getDDMStructureVersionService() {
638 return ddmStructureVersionService;
639 }
640
641
646 public void setDDMStructureVersionService(
647 com.liferay.portlet.dynamicdatamapping.service.DDMStructureVersionService ddmStructureVersionService) {
648 this.ddmStructureVersionService = ddmStructureVersionService;
649 }
650
651
656 public DDMStructureVersionPersistence getDDMStructureVersionPersistence() {
657 return ddmStructureVersionPersistence;
658 }
659
660
665 public void setDDMStructureVersionPersistence(
666 DDMStructureVersionPersistence ddmStructureVersionPersistence) {
667 this.ddmStructureVersionPersistence = ddmStructureVersionPersistence;
668 }
669
670
675 public com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService getDDMTemplateLocalService() {
676 return ddmTemplateLocalService;
677 }
678
679
684 public void setDDMTemplateLocalService(
685 com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService ddmTemplateLocalService) {
686 this.ddmTemplateLocalService = ddmTemplateLocalService;
687 }
688
689
694 public com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService getDDMTemplateService() {
695 return ddmTemplateService;
696 }
697
698
703 public void setDDMTemplateService(
704 com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService ddmTemplateService) {
705 this.ddmTemplateService = ddmTemplateService;
706 }
707
708
713 public DDMTemplatePersistence getDDMTemplatePersistence() {
714 return ddmTemplatePersistence;
715 }
716
717
722 public void setDDMTemplatePersistence(
723 DDMTemplatePersistence ddmTemplatePersistence) {
724 this.ddmTemplatePersistence = ddmTemplatePersistence;
725 }
726
727
732 public DDMTemplateFinder getDDMTemplateFinder() {
733 return ddmTemplateFinder;
734 }
735
736
741 public void setDDMTemplateFinder(DDMTemplateFinder ddmTemplateFinder) {
742 this.ddmTemplateFinder = ddmTemplateFinder;
743 }
744
745 public void afterPropertiesSet() {
746 }
747
748 public void destroy() {
749 }
750
751
756 @Override
757 public String getBeanIdentifier() {
758 return _beanIdentifier;
759 }
760
761
766 @Override
767 public void setBeanIdentifier(String beanIdentifier) {
768 _beanIdentifier = beanIdentifier;
769 }
770
771 protected Class<?> getModelClass() {
772 return DDMStructure.class;
773 }
774
775 protected String getModelClassName() {
776 return DDMStructure.class.getName();
777 }
778
779
784 protected void runSQL(String sql) {
785 try {
786 DataSource dataSource = ddmStructurePersistence.getDataSource();
787
788 DB db = DBFactoryUtil.getDB();
789
790 sql = db.buildSQL(sql);
791 sql = PortalUtil.transformSQL(sql);
792
793 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
794 sql, new int[0]);
795
796 sqlUpdate.update();
797 }
798 catch (Exception e) {
799 throw new SystemException(e);
800 }
801 }
802
803 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService.class)
804 protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService;
805 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureService.class)
806 protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService;
807 @BeanReference(type = DDMStructurePersistence.class)
808 protected DDMStructurePersistence ddmStructurePersistence;
809 @BeanReference(type = DDMStructureFinder.class)
810 protected DDMStructureFinder ddmStructureFinder;
811 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
812 protected com.liferay.counter.service.CounterLocalService counterLocalService;
813 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
814 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
815 @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
816 protected com.liferay.portal.service.ClassNameService classNameService;
817 @BeanReference(type = ClassNamePersistence.class)
818 protected ClassNamePersistence classNamePersistence;
819 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
820 protected com.liferay.portal.service.GroupLocalService groupLocalService;
821 @BeanReference(type = com.liferay.portal.service.GroupService.class)
822 protected com.liferay.portal.service.GroupService groupService;
823 @BeanReference(type = GroupPersistence.class)
824 protected GroupPersistence groupPersistence;
825 @BeanReference(type = GroupFinder.class)
826 protected GroupFinder groupFinder;
827 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
828 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
829 @BeanReference(type = com.liferay.portal.service.SystemEventLocalService.class)
830 protected com.liferay.portal.service.SystemEventLocalService systemEventLocalService;
831 @BeanReference(type = SystemEventPersistence.class)
832 protected SystemEventPersistence systemEventPersistence;
833 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
834 protected com.liferay.portal.service.UserLocalService userLocalService;
835 @BeanReference(type = com.liferay.portal.service.UserService.class)
836 protected com.liferay.portal.service.UserService userService;
837 @BeanReference(type = UserPersistence.class)
838 protected UserPersistence userPersistence;
839 @BeanReference(type = UserFinder.class)
840 protected UserFinder userFinder;
841 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService.class)
842 protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
843 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService.class)
844 protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService;
845 @BeanReference(type = DLFileEntryTypePersistence.class)
846 protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
847 @BeanReference(type = DLFileEntryTypeFinder.class)
848 protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
849 @BeanReference(type = com.liferay.portlet.journal.service.JournalFolderLocalService.class)
850 protected com.liferay.portlet.journal.service.JournalFolderLocalService journalFolderLocalService;
851 @BeanReference(type = com.liferay.portlet.journal.service.JournalFolderService.class)
852 protected com.liferay.portlet.journal.service.JournalFolderService journalFolderService;
853 @BeanReference(type = JournalFolderPersistence.class)
854 protected JournalFolderPersistence journalFolderPersistence;
855 @BeanReference(type = JournalFolderFinder.class)
856 protected JournalFolderFinder journalFolderFinder;
857 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService.class)
858 protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService ddmStructureLinkLocalService;
859 @BeanReference(type = DDMStructureLinkPersistence.class)
860 protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
861 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureVersionLocalService.class)
862 protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureVersionLocalService ddmStructureVersionLocalService;
863 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureVersionService.class)
864 protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureVersionService ddmStructureVersionService;
865 @BeanReference(type = DDMStructureVersionPersistence.class)
866 protected DDMStructureVersionPersistence ddmStructureVersionPersistence;
867 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService.class)
868 protected com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService ddmTemplateLocalService;
869 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService.class)
870 protected com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService ddmTemplateService;
871 @BeanReference(type = DDMTemplatePersistence.class)
872 protected DDMTemplatePersistence ddmTemplatePersistence;
873 @BeanReference(type = DDMTemplateFinder.class)
874 protected DDMTemplateFinder ddmTemplateFinder;
875 private String _beanIdentifier;
876 }