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.ResourceLocalService;
025 import com.liferay.portal.service.ResourceService;
026 import com.liferay.portal.service.UserLocalService;
027 import com.liferay.portal.service.UserService;
028 import com.liferay.portal.service.base.PrincipalBean;
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.dynamicdatamapping.model.DDMStructureLink;
035 import com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalService;
036 import com.liferay.portlet.dynamicdatamapping.service.DDMStorageLinkLocalService;
037 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService;
038 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkService;
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 DDMStructureLinkServiceBaseImpl extends PrincipalBean
066 implements DDMStructureLinkService, 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 DDMStructureLinkService getDDMStructureLinkService() {
248 return ddmStructureLinkService;
249 }
250
251
256 public void setDDMStructureLinkService(
257 DDMStructureLinkService ddmStructureLinkService) {
258 this.ddmStructureLinkService = ddmStructureLinkService;
259 }
260
261
266 public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
267 return ddmStructureLinkPersistence;
268 }
269
270
275 public void setDDMStructureLinkPersistence(
276 DDMStructureLinkPersistence ddmStructureLinkPersistence) {
277 this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
278 }
279
280
285 public DDMTemplateLocalService getDDMTemplateLocalService() {
286 return ddmTemplateLocalService;
287 }
288
289
294 public void setDDMTemplateLocalService(
295 DDMTemplateLocalService ddmTemplateLocalService) {
296 this.ddmTemplateLocalService = ddmTemplateLocalService;
297 }
298
299
304 public DDMTemplateService getDDMTemplateService() {
305 return ddmTemplateService;
306 }
307
308
313 public void setDDMTemplateService(DDMTemplateService ddmTemplateService) {
314 this.ddmTemplateService = ddmTemplateService;
315 }
316
317
322 public DDMTemplatePersistence getDDMTemplatePersistence() {
323 return ddmTemplatePersistence;
324 }
325
326
331 public void setDDMTemplatePersistence(
332 DDMTemplatePersistence ddmTemplatePersistence) {
333 this.ddmTemplatePersistence = ddmTemplatePersistence;
334 }
335
336
341 public DDMTemplateFinder getDDMTemplateFinder() {
342 return ddmTemplateFinder;
343 }
344
345
350 public void setDDMTemplateFinder(DDMTemplateFinder ddmTemplateFinder) {
351 this.ddmTemplateFinder = ddmTemplateFinder;
352 }
353
354
359 public CounterLocalService getCounterLocalService() {
360 return counterLocalService;
361 }
362
363
368 public void setCounterLocalService(CounterLocalService counterLocalService) {
369 this.counterLocalService = counterLocalService;
370 }
371
372
377 public ResourceLocalService getResourceLocalService() {
378 return resourceLocalService;
379 }
380
381
386 public void setResourceLocalService(
387 ResourceLocalService resourceLocalService) {
388 this.resourceLocalService = resourceLocalService;
389 }
390
391
396 public ResourceService getResourceService() {
397 return resourceService;
398 }
399
400
405 public void setResourceService(ResourceService resourceService) {
406 this.resourceService = resourceService;
407 }
408
409
414 public ResourcePersistence getResourcePersistence() {
415 return resourcePersistence;
416 }
417
418
423 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
424 this.resourcePersistence = resourcePersistence;
425 }
426
427
432 public ResourceFinder getResourceFinder() {
433 return resourceFinder;
434 }
435
436
441 public void setResourceFinder(ResourceFinder resourceFinder) {
442 this.resourceFinder = resourceFinder;
443 }
444
445
450 public UserLocalService getUserLocalService() {
451 return userLocalService;
452 }
453
454
459 public void setUserLocalService(UserLocalService userLocalService) {
460 this.userLocalService = userLocalService;
461 }
462
463
468 public UserService getUserService() {
469 return userService;
470 }
471
472
477 public void setUserService(UserService userService) {
478 this.userService = userService;
479 }
480
481
486 public UserPersistence getUserPersistence() {
487 return userPersistence;
488 }
489
490
495 public void setUserPersistence(UserPersistence userPersistence) {
496 this.userPersistence = userPersistence;
497 }
498
499
504 public UserFinder getUserFinder() {
505 return userFinder;
506 }
507
508
513 public void setUserFinder(UserFinder userFinder) {
514 this.userFinder = userFinder;
515 }
516
517 public void afterPropertiesSet() {
518 }
519
520 public void destroy() {
521 }
522
523
528 public String getBeanIdentifier() {
529 return _beanIdentifier;
530 }
531
532
537 public void setBeanIdentifier(String beanIdentifier) {
538 _beanIdentifier = beanIdentifier;
539 }
540
541 protected Class<?> getModelClass() {
542 return DDMStructureLink.class;
543 }
544
545 protected String getModelClassName() {
546 return DDMStructureLink.class.getName();
547 }
548
549
554 protected void runSQL(String sql) throws SystemException {
555 try {
556 DataSource dataSource = ddmStructureLinkPersistence.getDataSource();
557
558 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
559 sql, new int[0]);
560
561 sqlUpdate.update();
562 }
563 catch (Exception e) {
564 throw new SystemException(e);
565 }
566 }
567
568 @BeanReference(type = DDMContentLocalService.class)
569 protected DDMContentLocalService ddmContentLocalService;
570 @BeanReference(type = DDMContentPersistence.class)
571 protected DDMContentPersistence ddmContentPersistence;
572 @BeanReference(type = DDMStorageLinkLocalService.class)
573 protected DDMStorageLinkLocalService ddmStorageLinkLocalService;
574 @BeanReference(type = DDMStorageLinkPersistence.class)
575 protected DDMStorageLinkPersistence ddmStorageLinkPersistence;
576 @BeanReference(type = DDMStructureLocalService.class)
577 protected DDMStructureLocalService ddmStructureLocalService;
578 @BeanReference(type = DDMStructureService.class)
579 protected DDMStructureService ddmStructureService;
580 @BeanReference(type = DDMStructurePersistence.class)
581 protected DDMStructurePersistence ddmStructurePersistence;
582 @BeanReference(type = DDMStructureFinder.class)
583 protected DDMStructureFinder ddmStructureFinder;
584 @BeanReference(type = DDMStructureLinkLocalService.class)
585 protected DDMStructureLinkLocalService ddmStructureLinkLocalService;
586 @BeanReference(type = DDMStructureLinkService.class)
587 protected DDMStructureLinkService ddmStructureLinkService;
588 @BeanReference(type = DDMStructureLinkPersistence.class)
589 protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
590 @BeanReference(type = DDMTemplateLocalService.class)
591 protected DDMTemplateLocalService ddmTemplateLocalService;
592 @BeanReference(type = DDMTemplateService.class)
593 protected DDMTemplateService ddmTemplateService;
594 @BeanReference(type = DDMTemplatePersistence.class)
595 protected DDMTemplatePersistence ddmTemplatePersistence;
596 @BeanReference(type = DDMTemplateFinder.class)
597 protected DDMTemplateFinder ddmTemplateFinder;
598 @BeanReference(type = CounterLocalService.class)
599 protected CounterLocalService counterLocalService;
600 @BeanReference(type = ResourceLocalService.class)
601 protected ResourceLocalService resourceLocalService;
602 @BeanReference(type = ResourceService.class)
603 protected ResourceService resourceService;
604 @BeanReference(type = ResourcePersistence.class)
605 protected ResourcePersistence resourcePersistence;
606 @BeanReference(type = ResourceFinder.class)
607 protected ResourceFinder resourceFinder;
608 @BeanReference(type = UserLocalService.class)
609 protected UserLocalService userLocalService;
610 @BeanReference(type = UserService.class)
611 protected UserService userService;
612 @BeanReference(type = UserPersistence.class)
613 protected UserPersistence userPersistence;
614 @BeanReference(type = UserFinder.class)
615 protected UserFinder userFinder;
616 private String _beanIdentifier;
617 }