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.UserLocalService;
027 import com.liferay.portal.service.UserService;
028 import com.liferay.portal.service.persistence.UserFinder;
029 import com.liferay.portal.service.persistence.UserPersistence;
030
031 import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService;
032 import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService;
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.DDMContentLocalService;
037 import com.liferay.portlet.dynamicdatamapping.service.DDMStorageLinkLocalService;
038 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService;
039 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService;
040 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureService;
041 import com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService;
042 import com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService;
043 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMContentPersistence;
044 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStorageLinkPersistence;
045 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
046 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence;
047 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
048 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplateFinder;
049 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplatePersistence;
050
051 import javax.sql.DataSource;
052
053
065 public abstract class DDMStructureServiceBaseImpl extends BaseServiceImpl
066 implements DDMStructureService, IdentifiableBean {
067
072
073
078 public DDMContentLocalService getDDMContentLocalService() {
079 return ddmContentLocalService;
080 }
081
082
087 public void setDDMContentLocalService(
088 DDMContentLocalService ddmContentLocalService) {
089 this.ddmContentLocalService = ddmContentLocalService;
090 }
091
092
097 public DDMContentPersistence getDDMContentPersistence() {
098 return ddmContentPersistence;
099 }
100
101
106 public void setDDMContentPersistence(
107 DDMContentPersistence ddmContentPersistence) {
108 this.ddmContentPersistence = ddmContentPersistence;
109 }
110
111
116 public DDMStorageLinkLocalService getDDMStorageLinkLocalService() {
117 return ddmStorageLinkLocalService;
118 }
119
120
125 public void setDDMStorageLinkLocalService(
126 DDMStorageLinkLocalService ddmStorageLinkLocalService) {
127 this.ddmStorageLinkLocalService = ddmStorageLinkLocalService;
128 }
129
130
135 public DDMStorageLinkPersistence getDDMStorageLinkPersistence() {
136 return ddmStorageLinkPersistence;
137 }
138
139
144 public void setDDMStorageLinkPersistence(
145 DDMStorageLinkPersistence ddmStorageLinkPersistence) {
146 this.ddmStorageLinkPersistence = ddmStorageLinkPersistence;
147 }
148
149
154 public DDMStructureLocalService getDDMStructureLocalService() {
155 return ddmStructureLocalService;
156 }
157
158
163 public void setDDMStructureLocalService(
164 DDMStructureLocalService ddmStructureLocalService) {
165 this.ddmStructureLocalService = ddmStructureLocalService;
166 }
167
168
173 public DDMStructureService getDDMStructureService() {
174 return ddmStructureService;
175 }
176
177
182 public void setDDMStructureService(DDMStructureService ddmStructureService) {
183 this.ddmStructureService = ddmStructureService;
184 }
185
186
191 public DDMStructurePersistence getDDMStructurePersistence() {
192 return ddmStructurePersistence;
193 }
194
195
200 public void setDDMStructurePersistence(
201 DDMStructurePersistence ddmStructurePersistence) {
202 this.ddmStructurePersistence = ddmStructurePersistence;
203 }
204
205
210 public DDMStructureFinder getDDMStructureFinder() {
211 return ddmStructureFinder;
212 }
213
214
219 public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
220 this.ddmStructureFinder = ddmStructureFinder;
221 }
222
223
228 public DDMStructureLinkLocalService getDDMStructureLinkLocalService() {
229 return ddmStructureLinkLocalService;
230 }
231
232
237 public void setDDMStructureLinkLocalService(
238 DDMStructureLinkLocalService ddmStructureLinkLocalService) {
239 this.ddmStructureLinkLocalService = ddmStructureLinkLocalService;
240 }
241
242
247 public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
248 return ddmStructureLinkPersistence;
249 }
250
251
256 public void setDDMStructureLinkPersistence(
257 DDMStructureLinkPersistence ddmStructureLinkPersistence) {
258 this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
259 }
260
261
266 public DDMTemplateLocalService getDDMTemplateLocalService() {
267 return ddmTemplateLocalService;
268 }
269
270
275 public void setDDMTemplateLocalService(
276 DDMTemplateLocalService ddmTemplateLocalService) {
277 this.ddmTemplateLocalService = ddmTemplateLocalService;
278 }
279
280
285 public DDMTemplateService getDDMTemplateService() {
286 return ddmTemplateService;
287 }
288
289
294 public void setDDMTemplateService(DDMTemplateService ddmTemplateService) {
295 this.ddmTemplateService = ddmTemplateService;
296 }
297
298
303 public DDMTemplatePersistence getDDMTemplatePersistence() {
304 return ddmTemplatePersistence;
305 }
306
307
312 public void setDDMTemplatePersistence(
313 DDMTemplatePersistence ddmTemplatePersistence) {
314 this.ddmTemplatePersistence = ddmTemplatePersistence;
315 }
316
317
322 public DDMTemplateFinder getDDMTemplateFinder() {
323 return ddmTemplateFinder;
324 }
325
326
331 public void setDDMTemplateFinder(DDMTemplateFinder ddmTemplateFinder) {
332 this.ddmTemplateFinder = ddmTemplateFinder;
333 }
334
335
340 public CounterLocalService getCounterLocalService() {
341 return counterLocalService;
342 }
343
344
349 public void setCounterLocalService(CounterLocalService counterLocalService) {
350 this.counterLocalService = counterLocalService;
351 }
352
353
358 public ResourceLocalService getResourceLocalService() {
359 return resourceLocalService;
360 }
361
362
367 public void setResourceLocalService(
368 ResourceLocalService resourceLocalService) {
369 this.resourceLocalService = resourceLocalService;
370 }
371
372
377 public UserLocalService getUserLocalService() {
378 return userLocalService;
379 }
380
381
386 public void setUserLocalService(UserLocalService userLocalService) {
387 this.userLocalService = userLocalService;
388 }
389
390
395 public UserService getUserService() {
396 return userService;
397 }
398
399
404 public void setUserService(UserService userService) {
405 this.userService = userService;
406 }
407
408
413 public UserPersistence getUserPersistence() {
414 return userPersistence;
415 }
416
417
422 public void setUserPersistence(UserPersistence userPersistence) {
423 this.userPersistence = userPersistence;
424 }
425
426
431 public UserFinder getUserFinder() {
432 return userFinder;
433 }
434
435
440 public void setUserFinder(UserFinder userFinder) {
441 this.userFinder = userFinder;
442 }
443
444
449 public DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
450 return dlFileEntryTypeLocalService;
451 }
452
453
458 public void setDLFileEntryTypeLocalService(
459 DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
460 this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
461 }
462
463
468 public DLFileEntryTypeService getDLFileEntryTypeService() {
469 return dlFileEntryTypeService;
470 }
471
472
477 public void setDLFileEntryTypeService(
478 DLFileEntryTypeService dlFileEntryTypeService) {
479 this.dlFileEntryTypeService = dlFileEntryTypeService;
480 }
481
482
487 public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
488 return dlFileEntryTypePersistence;
489 }
490
491
496 public void setDLFileEntryTypePersistence(
497 DLFileEntryTypePersistence dlFileEntryTypePersistence) {
498 this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
499 }
500
501
506 public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
507 return dlFileEntryTypeFinder;
508 }
509
510
515 public void setDLFileEntryTypeFinder(
516 DLFileEntryTypeFinder dlFileEntryTypeFinder) {
517 this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
518 }
519
520 public void afterPropertiesSet() {
521 }
522
523 public void destroy() {
524 }
525
526
531 public String getBeanIdentifier() {
532 return _beanIdentifier;
533 }
534
535
540 public void setBeanIdentifier(String beanIdentifier) {
541 _beanIdentifier = beanIdentifier;
542 }
543
544 protected Class<?> getModelClass() {
545 return DDMStructure.class;
546 }
547
548 protected String getModelClassName() {
549 return DDMStructure.class.getName();
550 }
551
552
557 protected void runSQL(String sql) throws SystemException {
558 try {
559 DataSource dataSource = ddmStructurePersistence.getDataSource();
560
561 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
562 sql, new int[0]);
563
564 sqlUpdate.update();
565 }
566 catch (Exception e) {
567 throw new SystemException(e);
568 }
569 }
570
571 @BeanReference(type = DDMContentLocalService.class)
572 protected DDMContentLocalService ddmContentLocalService;
573 @BeanReference(type = DDMContentPersistence.class)
574 protected DDMContentPersistence ddmContentPersistence;
575 @BeanReference(type = DDMStorageLinkLocalService.class)
576 protected DDMStorageLinkLocalService ddmStorageLinkLocalService;
577 @BeanReference(type = DDMStorageLinkPersistence.class)
578 protected DDMStorageLinkPersistence ddmStorageLinkPersistence;
579 @BeanReference(type = DDMStructureLocalService.class)
580 protected DDMStructureLocalService ddmStructureLocalService;
581 @BeanReference(type = DDMStructureService.class)
582 protected DDMStructureService ddmStructureService;
583 @BeanReference(type = DDMStructurePersistence.class)
584 protected DDMStructurePersistence ddmStructurePersistence;
585 @BeanReference(type = DDMStructureFinder.class)
586 protected DDMStructureFinder ddmStructureFinder;
587 @BeanReference(type = DDMStructureLinkLocalService.class)
588 protected DDMStructureLinkLocalService ddmStructureLinkLocalService;
589 @BeanReference(type = DDMStructureLinkPersistence.class)
590 protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
591 @BeanReference(type = DDMTemplateLocalService.class)
592 protected DDMTemplateLocalService ddmTemplateLocalService;
593 @BeanReference(type = DDMTemplateService.class)
594 protected DDMTemplateService ddmTemplateService;
595 @BeanReference(type = DDMTemplatePersistence.class)
596 protected DDMTemplatePersistence ddmTemplatePersistence;
597 @BeanReference(type = DDMTemplateFinder.class)
598 protected DDMTemplateFinder ddmTemplateFinder;
599 @BeanReference(type = CounterLocalService.class)
600 protected CounterLocalService counterLocalService;
601 @BeanReference(type = ResourceLocalService.class)
602 protected ResourceLocalService resourceLocalService;
603 @BeanReference(type = UserLocalService.class)
604 protected UserLocalService userLocalService;
605 @BeanReference(type = UserService.class)
606 protected UserService userService;
607 @BeanReference(type = UserPersistence.class)
608 protected UserPersistence userPersistence;
609 @BeanReference(type = UserFinder.class)
610 protected UserFinder userFinder;
611 @BeanReference(type = DLFileEntryTypeLocalService.class)
612 protected DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
613 @BeanReference(type = DLFileEntryTypeService.class)
614 protected DLFileEntryTypeService dlFileEntryTypeService;
615 @BeanReference(type = DLFileEntryTypePersistence.class)
616 protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
617 @BeanReference(type = DLFileEntryTypeFinder.class)
618 protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
619 private String _beanIdentifier;
620 }