001
014
015 package com.liferay.portlet.dynamicdatalists.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.UserFinder;
024 import com.liferay.portal.service.persistence.UserPersistence;
025 import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
026
027 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
028 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
029 import com.liferay.portlet.dynamicdatalists.model.DDLRecord;
030 import com.liferay.portlet.dynamicdatalists.service.DDLRecordService;
031 import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordFinder;
032 import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordPersistence;
033 import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordSetFinder;
034 import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordSetPersistence;
035 import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordVersionPersistence;
036 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
037 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
038
039 import javax.sql.DataSource;
040
041
053 public abstract class DDLRecordServiceBaseImpl extends BaseServiceImpl
054 implements DDLRecordService, IdentifiableBean {
055
060
061
066 public com.liferay.portlet.dynamicdatalists.service.DDLRecordLocalService getDDLRecordLocalService() {
067 return ddlRecordLocalService;
068 }
069
070
075 public void setDDLRecordLocalService(
076 com.liferay.portlet.dynamicdatalists.service.DDLRecordLocalService ddlRecordLocalService) {
077 this.ddlRecordLocalService = ddlRecordLocalService;
078 }
079
080
085 public com.liferay.portlet.dynamicdatalists.service.DDLRecordService getDDLRecordService() {
086 return ddlRecordService;
087 }
088
089
094 public void setDDLRecordService(
095 com.liferay.portlet.dynamicdatalists.service.DDLRecordService ddlRecordService) {
096 this.ddlRecordService = ddlRecordService;
097 }
098
099
104 public DDLRecordPersistence getDDLRecordPersistence() {
105 return ddlRecordPersistence;
106 }
107
108
113 public void setDDLRecordPersistence(
114 DDLRecordPersistence ddlRecordPersistence) {
115 this.ddlRecordPersistence = ddlRecordPersistence;
116 }
117
118
123 public DDLRecordFinder getDDLRecordFinder() {
124 return ddlRecordFinder;
125 }
126
127
132 public void setDDLRecordFinder(DDLRecordFinder ddlRecordFinder) {
133 this.ddlRecordFinder = ddlRecordFinder;
134 }
135
136
141 public com.liferay.portlet.dynamicdatalists.service.DDLRecordSetLocalService getDDLRecordSetLocalService() {
142 return ddlRecordSetLocalService;
143 }
144
145
150 public void setDDLRecordSetLocalService(
151 com.liferay.portlet.dynamicdatalists.service.DDLRecordSetLocalService ddlRecordSetLocalService) {
152 this.ddlRecordSetLocalService = ddlRecordSetLocalService;
153 }
154
155
160 public com.liferay.portlet.dynamicdatalists.service.DDLRecordSetService getDDLRecordSetService() {
161 return ddlRecordSetService;
162 }
163
164
169 public void setDDLRecordSetService(
170 com.liferay.portlet.dynamicdatalists.service.DDLRecordSetService ddlRecordSetService) {
171 this.ddlRecordSetService = ddlRecordSetService;
172 }
173
174
179 public DDLRecordSetPersistence getDDLRecordSetPersistence() {
180 return ddlRecordSetPersistence;
181 }
182
183
188 public void setDDLRecordSetPersistence(
189 DDLRecordSetPersistence ddlRecordSetPersistence) {
190 this.ddlRecordSetPersistence = ddlRecordSetPersistence;
191 }
192
193
198 public DDLRecordSetFinder getDDLRecordSetFinder() {
199 return ddlRecordSetFinder;
200 }
201
202
207 public void setDDLRecordSetFinder(DDLRecordSetFinder ddlRecordSetFinder) {
208 this.ddlRecordSetFinder = ddlRecordSetFinder;
209 }
210
211
216 public DDLRecordVersionPersistence getDDLRecordVersionPersistence() {
217 return ddlRecordVersionPersistence;
218 }
219
220
225 public void setDDLRecordVersionPersistence(
226 DDLRecordVersionPersistence ddlRecordVersionPersistence) {
227 this.ddlRecordVersionPersistence = ddlRecordVersionPersistence;
228 }
229
230
235 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
236 return counterLocalService;
237 }
238
239
244 public void setCounterLocalService(
245 com.liferay.counter.service.CounterLocalService counterLocalService) {
246 this.counterLocalService = counterLocalService;
247 }
248
249
254 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
255 return resourceLocalService;
256 }
257
258
263 public void setResourceLocalService(
264 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
265 this.resourceLocalService = resourceLocalService;
266 }
267
268
273 public com.liferay.portal.service.UserLocalService getUserLocalService() {
274 return userLocalService;
275 }
276
277
282 public void setUserLocalService(
283 com.liferay.portal.service.UserLocalService userLocalService) {
284 this.userLocalService = userLocalService;
285 }
286
287
292 public com.liferay.portal.service.UserService getUserService() {
293 return userService;
294 }
295
296
301 public void setUserService(
302 com.liferay.portal.service.UserService userService) {
303 this.userService = userService;
304 }
305
306
311 public UserPersistence getUserPersistence() {
312 return userPersistence;
313 }
314
315
320 public void setUserPersistence(UserPersistence userPersistence) {
321 this.userPersistence = userPersistence;
322 }
323
324
329 public UserFinder getUserFinder() {
330 return userFinder;
331 }
332
333
338 public void setUserFinder(UserFinder userFinder) {
339 this.userFinder = userFinder;
340 }
341
342
347 public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
348 return workflowInstanceLinkLocalService;
349 }
350
351
356 public void setWorkflowInstanceLinkLocalService(
357 com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
358 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
359 }
360
361
366 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
367 return workflowInstanceLinkPersistence;
368 }
369
370
375 public void setWorkflowInstanceLinkPersistence(
376 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
377 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
378 }
379
380
385 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
386 return assetEntryLocalService;
387 }
388
389
394 public void setAssetEntryLocalService(
395 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
396 this.assetEntryLocalService = assetEntryLocalService;
397 }
398
399
404 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
405 return assetEntryService;
406 }
407
408
413 public void setAssetEntryService(
414 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
415 this.assetEntryService = assetEntryService;
416 }
417
418
423 public AssetEntryPersistence getAssetEntryPersistence() {
424 return assetEntryPersistence;
425 }
426
427
432 public void setAssetEntryPersistence(
433 AssetEntryPersistence assetEntryPersistence) {
434 this.assetEntryPersistence = assetEntryPersistence;
435 }
436
437
442 public AssetEntryFinder getAssetEntryFinder() {
443 return assetEntryFinder;
444 }
445
446
451 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
452 this.assetEntryFinder = assetEntryFinder;
453 }
454
455
460 public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService getDDMStructureLocalService() {
461 return ddmStructureLocalService;
462 }
463
464
469 public void setDDMStructureLocalService(
470 com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService) {
471 this.ddmStructureLocalService = ddmStructureLocalService;
472 }
473
474
479 public com.liferay.portlet.dynamicdatamapping.service.DDMStructureService getDDMStructureService() {
480 return ddmStructureService;
481 }
482
483
488 public void setDDMStructureService(
489 com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService) {
490 this.ddmStructureService = ddmStructureService;
491 }
492
493
498 public DDMStructurePersistence getDDMStructurePersistence() {
499 return ddmStructurePersistence;
500 }
501
502
507 public void setDDMStructurePersistence(
508 DDMStructurePersistence ddmStructurePersistence) {
509 this.ddmStructurePersistence = ddmStructurePersistence;
510 }
511
512
517 public DDMStructureFinder getDDMStructureFinder() {
518 return ddmStructureFinder;
519 }
520
521
526 public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
527 this.ddmStructureFinder = ddmStructureFinder;
528 }
529
530 public void afterPropertiesSet() {
531 }
532
533 public void destroy() {
534 }
535
536
541 @Override
542 public String getBeanIdentifier() {
543 return _beanIdentifier;
544 }
545
546
551 @Override
552 public void setBeanIdentifier(String beanIdentifier) {
553 _beanIdentifier = beanIdentifier;
554 }
555
556 protected Class<?> getModelClass() {
557 return DDLRecord.class;
558 }
559
560 protected String getModelClassName() {
561 return DDLRecord.class.getName();
562 }
563
564
569 protected void runSQL(String sql) throws SystemException {
570 try {
571 DataSource dataSource = ddlRecordPersistence.getDataSource();
572
573 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
574 sql, new int[0]);
575
576 sqlUpdate.update();
577 }
578 catch (Exception e) {
579 throw new SystemException(e);
580 }
581 }
582
583 @BeanReference(type = com.liferay.portlet.dynamicdatalists.service.DDLRecordLocalService.class)
584 protected com.liferay.portlet.dynamicdatalists.service.DDLRecordLocalService ddlRecordLocalService;
585 @BeanReference(type = com.liferay.portlet.dynamicdatalists.service.DDLRecordService.class)
586 protected com.liferay.portlet.dynamicdatalists.service.DDLRecordService ddlRecordService;
587 @BeanReference(type = DDLRecordPersistence.class)
588 protected DDLRecordPersistence ddlRecordPersistence;
589 @BeanReference(type = DDLRecordFinder.class)
590 protected DDLRecordFinder ddlRecordFinder;
591 @BeanReference(type = com.liferay.portlet.dynamicdatalists.service.DDLRecordSetLocalService.class)
592 protected com.liferay.portlet.dynamicdatalists.service.DDLRecordSetLocalService ddlRecordSetLocalService;
593 @BeanReference(type = com.liferay.portlet.dynamicdatalists.service.DDLRecordSetService.class)
594 protected com.liferay.portlet.dynamicdatalists.service.DDLRecordSetService ddlRecordSetService;
595 @BeanReference(type = DDLRecordSetPersistence.class)
596 protected DDLRecordSetPersistence ddlRecordSetPersistence;
597 @BeanReference(type = DDLRecordSetFinder.class)
598 protected DDLRecordSetFinder ddlRecordSetFinder;
599 @BeanReference(type = DDLRecordVersionPersistence.class)
600 protected DDLRecordVersionPersistence ddlRecordVersionPersistence;
601 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
602 protected com.liferay.counter.service.CounterLocalService counterLocalService;
603 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
604 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
605 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
606 protected com.liferay.portal.service.UserLocalService userLocalService;
607 @BeanReference(type = com.liferay.portal.service.UserService.class)
608 protected com.liferay.portal.service.UserService userService;
609 @BeanReference(type = UserPersistence.class)
610 protected UserPersistence userPersistence;
611 @BeanReference(type = UserFinder.class)
612 protected UserFinder userFinder;
613 @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
614 protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
615 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
616 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
617 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
618 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
619 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
620 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
621 @BeanReference(type = AssetEntryPersistence.class)
622 protected AssetEntryPersistence assetEntryPersistence;
623 @BeanReference(type = AssetEntryFinder.class)
624 protected AssetEntryFinder assetEntryFinder;
625 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService.class)
626 protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService;
627 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureService.class)
628 protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService;
629 @BeanReference(type = DDMStructurePersistence.class)
630 protected DDMStructurePersistence ddmStructurePersistence;
631 @BeanReference(type = DDMStructureFinder.class)
632 protected DDMStructureFinder ddmStructureFinder;
633 private String _beanIdentifier;
634 }