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.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.GroupFinder;
024 import com.liferay.portal.service.persistence.GroupPersistence;
025 import com.liferay.portal.service.persistence.SystemEventPersistence;
026 import com.liferay.portal.service.persistence.UserFinder;
027 import com.liferay.portal.service.persistence.UserPersistence;
028
029 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
030 import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
031 import com.liferay.portlet.dynamicdatamapping.model.DDMStructure;
032 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureService;
033 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMContentPersistence;
034 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStorageLinkPersistence;
035 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
036 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence;
037 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
038 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplateFinder;
039 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplatePersistence;
040
041 import javax.sql.DataSource;
042
043
055 public abstract class DDMStructureServiceBaseImpl extends BaseServiceImpl
056 implements DDMStructureService, IdentifiableBean {
057
062
063
068 public com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalService getDDMContentLocalService() {
069 return ddmContentLocalService;
070 }
071
072
077 public void setDDMContentLocalService(
078 com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalService ddmContentLocalService) {
079 this.ddmContentLocalService = ddmContentLocalService;
080 }
081
082
087 public DDMContentPersistence getDDMContentPersistence() {
088 return ddmContentPersistence;
089 }
090
091
096 public void setDDMContentPersistence(
097 DDMContentPersistence ddmContentPersistence) {
098 this.ddmContentPersistence = ddmContentPersistence;
099 }
100
101
106 public com.liferay.portlet.dynamicdatamapping.service.DDMStorageLinkLocalService getDDMStorageLinkLocalService() {
107 return ddmStorageLinkLocalService;
108 }
109
110
115 public void setDDMStorageLinkLocalService(
116 com.liferay.portlet.dynamicdatamapping.service.DDMStorageLinkLocalService ddmStorageLinkLocalService) {
117 this.ddmStorageLinkLocalService = ddmStorageLinkLocalService;
118 }
119
120
125 public DDMStorageLinkPersistence getDDMStorageLinkPersistence() {
126 return ddmStorageLinkPersistence;
127 }
128
129
134 public void setDDMStorageLinkPersistence(
135 DDMStorageLinkPersistence ddmStorageLinkPersistence) {
136 this.ddmStorageLinkPersistence = ddmStorageLinkPersistence;
137 }
138
139
144 public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService getDDMStructureLocalService() {
145 return ddmStructureLocalService;
146 }
147
148
153 public void setDDMStructureLocalService(
154 com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService) {
155 this.ddmStructureLocalService = ddmStructureLocalService;
156 }
157
158
163 public com.liferay.portlet.dynamicdatamapping.service.DDMStructureService getDDMStructureService() {
164 return ddmStructureService;
165 }
166
167
172 public void setDDMStructureService(
173 com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService) {
174 this.ddmStructureService = ddmStructureService;
175 }
176
177
182 public DDMStructurePersistence getDDMStructurePersistence() {
183 return ddmStructurePersistence;
184 }
185
186
191 public void setDDMStructurePersistence(
192 DDMStructurePersistence ddmStructurePersistence) {
193 this.ddmStructurePersistence = ddmStructurePersistence;
194 }
195
196
201 public DDMStructureFinder getDDMStructureFinder() {
202 return ddmStructureFinder;
203 }
204
205
210 public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
211 this.ddmStructureFinder = ddmStructureFinder;
212 }
213
214
219 public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService getDDMStructureLinkLocalService() {
220 return ddmStructureLinkLocalService;
221 }
222
223
228 public void setDDMStructureLinkLocalService(
229 com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService ddmStructureLinkLocalService) {
230 this.ddmStructureLinkLocalService = ddmStructureLinkLocalService;
231 }
232
233
238 public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
239 return ddmStructureLinkPersistence;
240 }
241
242
247 public void setDDMStructureLinkPersistence(
248 DDMStructureLinkPersistence ddmStructureLinkPersistence) {
249 this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
250 }
251
252
257 public com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService getDDMTemplateLocalService() {
258 return ddmTemplateLocalService;
259 }
260
261
266 public void setDDMTemplateLocalService(
267 com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService ddmTemplateLocalService) {
268 this.ddmTemplateLocalService = ddmTemplateLocalService;
269 }
270
271
276 public com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService getDDMTemplateService() {
277 return ddmTemplateService;
278 }
279
280
285 public void setDDMTemplateService(
286 com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService ddmTemplateService) {
287 this.ddmTemplateService = ddmTemplateService;
288 }
289
290
295 public DDMTemplatePersistence getDDMTemplatePersistence() {
296 return ddmTemplatePersistence;
297 }
298
299
304 public void setDDMTemplatePersistence(
305 DDMTemplatePersistence ddmTemplatePersistence) {
306 this.ddmTemplatePersistence = ddmTemplatePersistence;
307 }
308
309
314 public DDMTemplateFinder getDDMTemplateFinder() {
315 return ddmTemplateFinder;
316 }
317
318
323 public void setDDMTemplateFinder(DDMTemplateFinder ddmTemplateFinder) {
324 this.ddmTemplateFinder = ddmTemplateFinder;
325 }
326
327
332 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
333 return counterLocalService;
334 }
335
336
341 public void setCounterLocalService(
342 com.liferay.counter.service.CounterLocalService counterLocalService) {
343 this.counterLocalService = counterLocalService;
344 }
345
346
351 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
352 return groupLocalService;
353 }
354
355
360 public void setGroupLocalService(
361 com.liferay.portal.service.GroupLocalService groupLocalService) {
362 this.groupLocalService = groupLocalService;
363 }
364
365
370 public com.liferay.portal.service.GroupService getGroupService() {
371 return groupService;
372 }
373
374
379 public void setGroupService(
380 com.liferay.portal.service.GroupService groupService) {
381 this.groupService = groupService;
382 }
383
384
389 public GroupPersistence getGroupPersistence() {
390 return groupPersistence;
391 }
392
393
398 public void setGroupPersistence(GroupPersistence groupPersistence) {
399 this.groupPersistence = groupPersistence;
400 }
401
402
407 public GroupFinder getGroupFinder() {
408 return groupFinder;
409 }
410
411
416 public void setGroupFinder(GroupFinder groupFinder) {
417 this.groupFinder = groupFinder;
418 }
419
420
425 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
426 return resourceLocalService;
427 }
428
429
434 public void setResourceLocalService(
435 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
436 this.resourceLocalService = resourceLocalService;
437 }
438
439
444 public com.liferay.portal.service.SystemEventLocalService getSystemEventLocalService() {
445 return systemEventLocalService;
446 }
447
448
453 public void setSystemEventLocalService(
454 com.liferay.portal.service.SystemEventLocalService systemEventLocalService) {
455 this.systemEventLocalService = systemEventLocalService;
456 }
457
458
463 public SystemEventPersistence getSystemEventPersistence() {
464 return systemEventPersistence;
465 }
466
467
472 public void setSystemEventPersistence(
473 SystemEventPersistence systemEventPersistence) {
474 this.systemEventPersistence = systemEventPersistence;
475 }
476
477
482 public com.liferay.portal.service.UserLocalService getUserLocalService() {
483 return userLocalService;
484 }
485
486
491 public void setUserLocalService(
492 com.liferay.portal.service.UserLocalService userLocalService) {
493 this.userLocalService = userLocalService;
494 }
495
496
501 public com.liferay.portal.service.UserService getUserService() {
502 return userService;
503 }
504
505
510 public void setUserService(
511 com.liferay.portal.service.UserService userService) {
512 this.userService = userService;
513 }
514
515
520 public UserPersistence getUserPersistence() {
521 return userPersistence;
522 }
523
524
529 public void setUserPersistence(UserPersistence userPersistence) {
530 this.userPersistence = userPersistence;
531 }
532
533
538 public UserFinder getUserFinder() {
539 return userFinder;
540 }
541
542
547 public void setUserFinder(UserFinder userFinder) {
548 this.userFinder = userFinder;
549 }
550
551
556 public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
557 return dlFileEntryTypeLocalService;
558 }
559
560
565 public void setDLFileEntryTypeLocalService(
566 com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
567 this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
568 }
569
570
575 public com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService getDLFileEntryTypeService() {
576 return dlFileEntryTypeService;
577 }
578
579
584 public void setDLFileEntryTypeService(
585 com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService) {
586 this.dlFileEntryTypeService = dlFileEntryTypeService;
587 }
588
589
594 public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
595 return dlFileEntryTypePersistence;
596 }
597
598
603 public void setDLFileEntryTypePersistence(
604 DLFileEntryTypePersistence dlFileEntryTypePersistence) {
605 this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
606 }
607
608
613 public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
614 return dlFileEntryTypeFinder;
615 }
616
617
622 public void setDLFileEntryTypeFinder(
623 DLFileEntryTypeFinder dlFileEntryTypeFinder) {
624 this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
625 }
626
627 public void afterPropertiesSet() {
628 }
629
630 public void destroy() {
631 }
632
633
638 @Override
639 public String getBeanIdentifier() {
640 return _beanIdentifier;
641 }
642
643
648 @Override
649 public void setBeanIdentifier(String beanIdentifier) {
650 _beanIdentifier = beanIdentifier;
651 }
652
653 protected Class<?> getModelClass() {
654 return DDMStructure.class;
655 }
656
657 protected String getModelClassName() {
658 return DDMStructure.class.getName();
659 }
660
661
666 protected void runSQL(String sql) throws SystemException {
667 try {
668 DataSource dataSource = ddmStructurePersistence.getDataSource();
669
670 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
671 sql, new int[0]);
672
673 sqlUpdate.update();
674 }
675 catch (Exception e) {
676 throw new SystemException(e);
677 }
678 }
679
680 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalService.class)
681 protected com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalService ddmContentLocalService;
682 @BeanReference(type = DDMContentPersistence.class)
683 protected DDMContentPersistence ddmContentPersistence;
684 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStorageLinkLocalService.class)
685 protected com.liferay.portlet.dynamicdatamapping.service.DDMStorageLinkLocalService ddmStorageLinkLocalService;
686 @BeanReference(type = DDMStorageLinkPersistence.class)
687 protected DDMStorageLinkPersistence ddmStorageLinkPersistence;
688 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService.class)
689 protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService;
690 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureService.class)
691 protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService;
692 @BeanReference(type = DDMStructurePersistence.class)
693 protected DDMStructurePersistence ddmStructurePersistence;
694 @BeanReference(type = DDMStructureFinder.class)
695 protected DDMStructureFinder ddmStructureFinder;
696 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService.class)
697 protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService ddmStructureLinkLocalService;
698 @BeanReference(type = DDMStructureLinkPersistence.class)
699 protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
700 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService.class)
701 protected com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService ddmTemplateLocalService;
702 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService.class)
703 protected com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService ddmTemplateService;
704 @BeanReference(type = DDMTemplatePersistence.class)
705 protected DDMTemplatePersistence ddmTemplatePersistence;
706 @BeanReference(type = DDMTemplateFinder.class)
707 protected DDMTemplateFinder ddmTemplateFinder;
708 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
709 protected com.liferay.counter.service.CounterLocalService counterLocalService;
710 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
711 protected com.liferay.portal.service.GroupLocalService groupLocalService;
712 @BeanReference(type = com.liferay.portal.service.GroupService.class)
713 protected com.liferay.portal.service.GroupService groupService;
714 @BeanReference(type = GroupPersistence.class)
715 protected GroupPersistence groupPersistence;
716 @BeanReference(type = GroupFinder.class)
717 protected GroupFinder groupFinder;
718 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
719 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
720 @BeanReference(type = com.liferay.portal.service.SystemEventLocalService.class)
721 protected com.liferay.portal.service.SystemEventLocalService systemEventLocalService;
722 @BeanReference(type = SystemEventPersistence.class)
723 protected SystemEventPersistence systemEventPersistence;
724 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
725 protected com.liferay.portal.service.UserLocalService userLocalService;
726 @BeanReference(type = com.liferay.portal.service.UserService.class)
727 protected com.liferay.portal.service.UserService userService;
728 @BeanReference(type = UserPersistence.class)
729 protected UserPersistence userPersistence;
730 @BeanReference(type = UserFinder.class)
731 protected UserFinder userFinder;
732 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService.class)
733 protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
734 @BeanReference(type = com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService.class)
735 protected com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService dlFileEntryTypeService;
736 @BeanReference(type = DLFileEntryTypePersistence.class)
737 protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
738 @BeanReference(type = DLFileEntryTypeFinder.class)
739 protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
740 private String _beanIdentifier;
741 }