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.dynamicdatamapping.model.DDMTemplate;
032 import com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalService;
033 import com.liferay.portlet.dynamicdatamapping.service.DDMStorageLinkLocalService;
034 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService;
035 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService;
036 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureService;
037 import com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService;
038 import com.liferay.portlet.dynamicdatamapping.service.DDMTemplateService;
039 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMContentPersistence;
040 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStorageLinkPersistence;
041 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
042 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence;
043 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
044 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplateFinder;
045 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplatePersistence;
046
047 import javax.sql.DataSource;
048
049
061 public abstract class DDMTemplateServiceBaseImpl extends BaseServiceImpl
062 implements DDMTemplateService, IdentifiableBean {
063
068
069
074 public DDMContentLocalService getDDMContentLocalService() {
075 return ddmContentLocalService;
076 }
077
078
083 public void setDDMContentLocalService(
084 DDMContentLocalService ddmContentLocalService) {
085 this.ddmContentLocalService = ddmContentLocalService;
086 }
087
088
093 public DDMContentPersistence getDDMContentPersistence() {
094 return ddmContentPersistence;
095 }
096
097
102 public void setDDMContentPersistence(
103 DDMContentPersistence ddmContentPersistence) {
104 this.ddmContentPersistence = ddmContentPersistence;
105 }
106
107
112 public DDMStorageLinkLocalService getDDMStorageLinkLocalService() {
113 return ddmStorageLinkLocalService;
114 }
115
116
121 public void setDDMStorageLinkLocalService(
122 DDMStorageLinkLocalService ddmStorageLinkLocalService) {
123 this.ddmStorageLinkLocalService = ddmStorageLinkLocalService;
124 }
125
126
131 public DDMStorageLinkPersistence getDDMStorageLinkPersistence() {
132 return ddmStorageLinkPersistence;
133 }
134
135
140 public void setDDMStorageLinkPersistence(
141 DDMStorageLinkPersistence ddmStorageLinkPersistence) {
142 this.ddmStorageLinkPersistence = ddmStorageLinkPersistence;
143 }
144
145
150 public DDMStructureLocalService getDDMStructureLocalService() {
151 return ddmStructureLocalService;
152 }
153
154
159 public void setDDMStructureLocalService(
160 DDMStructureLocalService ddmStructureLocalService) {
161 this.ddmStructureLocalService = ddmStructureLocalService;
162 }
163
164
169 public DDMStructureService getDDMStructureService() {
170 return ddmStructureService;
171 }
172
173
178 public void setDDMStructureService(DDMStructureService ddmStructureService) {
179 this.ddmStructureService = ddmStructureService;
180 }
181
182
187 public DDMStructurePersistence getDDMStructurePersistence() {
188 return ddmStructurePersistence;
189 }
190
191
196 public void setDDMStructurePersistence(
197 DDMStructurePersistence ddmStructurePersistence) {
198 this.ddmStructurePersistence = ddmStructurePersistence;
199 }
200
201
206 public DDMStructureFinder getDDMStructureFinder() {
207 return ddmStructureFinder;
208 }
209
210
215 public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
216 this.ddmStructureFinder = ddmStructureFinder;
217 }
218
219
224 public DDMStructureLinkLocalService getDDMStructureLinkLocalService() {
225 return ddmStructureLinkLocalService;
226 }
227
228
233 public void setDDMStructureLinkLocalService(
234 DDMStructureLinkLocalService ddmStructureLinkLocalService) {
235 this.ddmStructureLinkLocalService = ddmStructureLinkLocalService;
236 }
237
238
243 public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
244 return ddmStructureLinkPersistence;
245 }
246
247
252 public void setDDMStructureLinkPersistence(
253 DDMStructureLinkPersistence ddmStructureLinkPersistence) {
254 this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
255 }
256
257
262 public DDMTemplateLocalService getDDMTemplateLocalService() {
263 return ddmTemplateLocalService;
264 }
265
266
271 public void setDDMTemplateLocalService(
272 DDMTemplateLocalService ddmTemplateLocalService) {
273 this.ddmTemplateLocalService = ddmTemplateLocalService;
274 }
275
276
281 public DDMTemplateService getDDMTemplateService() {
282 return ddmTemplateService;
283 }
284
285
290 public void setDDMTemplateService(DDMTemplateService ddmTemplateService) {
291 this.ddmTemplateService = ddmTemplateService;
292 }
293
294
299 public DDMTemplatePersistence getDDMTemplatePersistence() {
300 return ddmTemplatePersistence;
301 }
302
303
308 public void setDDMTemplatePersistence(
309 DDMTemplatePersistence ddmTemplatePersistence) {
310 this.ddmTemplatePersistence = ddmTemplatePersistence;
311 }
312
313
318 public DDMTemplateFinder getDDMTemplateFinder() {
319 return ddmTemplateFinder;
320 }
321
322
327 public void setDDMTemplateFinder(DDMTemplateFinder ddmTemplateFinder) {
328 this.ddmTemplateFinder = ddmTemplateFinder;
329 }
330
331
336 public CounterLocalService getCounterLocalService() {
337 return counterLocalService;
338 }
339
340
345 public void setCounterLocalService(CounterLocalService counterLocalService) {
346 this.counterLocalService = counterLocalService;
347 }
348
349
354 public ResourceLocalService getResourceLocalService() {
355 return resourceLocalService;
356 }
357
358
363 public void setResourceLocalService(
364 ResourceLocalService resourceLocalService) {
365 this.resourceLocalService = resourceLocalService;
366 }
367
368
373 public UserLocalService getUserLocalService() {
374 return userLocalService;
375 }
376
377
382 public void setUserLocalService(UserLocalService userLocalService) {
383 this.userLocalService = userLocalService;
384 }
385
386
391 public UserService getUserService() {
392 return userService;
393 }
394
395
400 public void setUserService(UserService userService) {
401 this.userService = userService;
402 }
403
404
409 public UserPersistence getUserPersistence() {
410 return userPersistence;
411 }
412
413
418 public void setUserPersistence(UserPersistence userPersistence) {
419 this.userPersistence = userPersistence;
420 }
421
422
427 public UserFinder getUserFinder() {
428 return userFinder;
429 }
430
431
436 public void setUserFinder(UserFinder userFinder) {
437 this.userFinder = userFinder;
438 }
439
440 public void afterPropertiesSet() {
441 }
442
443 public void destroy() {
444 }
445
446
451 public String getBeanIdentifier() {
452 return _beanIdentifier;
453 }
454
455
460 public void setBeanIdentifier(String beanIdentifier) {
461 _beanIdentifier = beanIdentifier;
462 }
463
464 protected Class<?> getModelClass() {
465 return DDMTemplate.class;
466 }
467
468 protected String getModelClassName() {
469 return DDMTemplate.class.getName();
470 }
471
472
477 protected void runSQL(String sql) throws SystemException {
478 try {
479 DataSource dataSource = ddmTemplatePersistence.getDataSource();
480
481 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
482 sql, new int[0]);
483
484 sqlUpdate.update();
485 }
486 catch (Exception e) {
487 throw new SystemException(e);
488 }
489 }
490
491 @BeanReference(type = DDMContentLocalService.class)
492 protected DDMContentLocalService ddmContentLocalService;
493 @BeanReference(type = DDMContentPersistence.class)
494 protected DDMContentPersistence ddmContentPersistence;
495 @BeanReference(type = DDMStorageLinkLocalService.class)
496 protected DDMStorageLinkLocalService ddmStorageLinkLocalService;
497 @BeanReference(type = DDMStorageLinkPersistence.class)
498 protected DDMStorageLinkPersistence ddmStorageLinkPersistence;
499 @BeanReference(type = DDMStructureLocalService.class)
500 protected DDMStructureLocalService ddmStructureLocalService;
501 @BeanReference(type = DDMStructureService.class)
502 protected DDMStructureService ddmStructureService;
503 @BeanReference(type = DDMStructurePersistence.class)
504 protected DDMStructurePersistence ddmStructurePersistence;
505 @BeanReference(type = DDMStructureFinder.class)
506 protected DDMStructureFinder ddmStructureFinder;
507 @BeanReference(type = DDMStructureLinkLocalService.class)
508 protected DDMStructureLinkLocalService ddmStructureLinkLocalService;
509 @BeanReference(type = DDMStructureLinkPersistence.class)
510 protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
511 @BeanReference(type = DDMTemplateLocalService.class)
512 protected DDMTemplateLocalService ddmTemplateLocalService;
513 @BeanReference(type = DDMTemplateService.class)
514 protected DDMTemplateService ddmTemplateService;
515 @BeanReference(type = DDMTemplatePersistence.class)
516 protected DDMTemplatePersistence ddmTemplatePersistence;
517 @BeanReference(type = DDMTemplateFinder.class)
518 protected DDMTemplateFinder ddmTemplateFinder;
519 @BeanReference(type = CounterLocalService.class)
520 protected CounterLocalService counterLocalService;
521 @BeanReference(type = ResourceLocalService.class)
522 protected ResourceLocalService resourceLocalService;
523 @BeanReference(type = UserLocalService.class)
524 protected UserLocalService userLocalService;
525 @BeanReference(type = UserService.class)
526 protected UserService userService;
527 @BeanReference(type = UserPersistence.class)
528 protected UserPersistence userPersistence;
529 @BeanReference(type = UserFinder.class)
530 protected UserFinder userFinder;
531 private String _beanIdentifier;
532 }