001
014
015 package com.liferay.portlet.dynamicdatalists.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.WorkflowInstanceLinkLocalService;
029 import com.liferay.portal.service.persistence.UserFinder;
030 import com.liferay.portal.service.persistence.UserPersistence;
031 import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
032
033 import com.liferay.portlet.asset.service.AssetEntryLocalService;
034 import com.liferay.portlet.asset.service.AssetEntryService;
035 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
036 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
037 import com.liferay.portlet.dynamicdatalists.model.DDLRecord;
038 import com.liferay.portlet.dynamicdatalists.service.DDLRecordLocalService;
039 import com.liferay.portlet.dynamicdatalists.service.DDLRecordService;
040 import com.liferay.portlet.dynamicdatalists.service.DDLRecordSetLocalService;
041 import com.liferay.portlet.dynamicdatalists.service.DDLRecordSetService;
042 import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordFinder;
043 import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordPersistence;
044 import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordSetFinder;
045 import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordSetPersistence;
046 import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordVersionPersistence;
047 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService;
048 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureService;
049 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
050 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
051
052 import javax.sql.DataSource;
053
054
066 public abstract class DDLRecordServiceBaseImpl extends BaseServiceImpl
067 implements DDLRecordService, IdentifiableBean {
068
073
074
079 public DDLRecordLocalService getDDLRecordLocalService() {
080 return ddlRecordLocalService;
081 }
082
083
088 public void setDDLRecordLocalService(
089 DDLRecordLocalService ddlRecordLocalService) {
090 this.ddlRecordLocalService = ddlRecordLocalService;
091 }
092
093
098 public DDLRecordService getDDLRecordService() {
099 return ddlRecordService;
100 }
101
102
107 public void setDDLRecordService(DDLRecordService ddlRecordService) {
108 this.ddlRecordService = ddlRecordService;
109 }
110
111
116 public DDLRecordPersistence getDDLRecordPersistence() {
117 return ddlRecordPersistence;
118 }
119
120
125 public void setDDLRecordPersistence(
126 DDLRecordPersistence ddlRecordPersistence) {
127 this.ddlRecordPersistence = ddlRecordPersistence;
128 }
129
130
135 public DDLRecordFinder getDDLRecordFinder() {
136 return ddlRecordFinder;
137 }
138
139
144 public void setDDLRecordFinder(DDLRecordFinder ddlRecordFinder) {
145 this.ddlRecordFinder = ddlRecordFinder;
146 }
147
148
153 public DDLRecordSetLocalService getDDLRecordSetLocalService() {
154 return ddlRecordSetLocalService;
155 }
156
157
162 public void setDDLRecordSetLocalService(
163 DDLRecordSetLocalService ddlRecordSetLocalService) {
164 this.ddlRecordSetLocalService = ddlRecordSetLocalService;
165 }
166
167
172 public DDLRecordSetService getDDLRecordSetService() {
173 return ddlRecordSetService;
174 }
175
176
181 public void setDDLRecordSetService(DDLRecordSetService ddlRecordSetService) {
182 this.ddlRecordSetService = ddlRecordSetService;
183 }
184
185
190 public DDLRecordSetPersistence getDDLRecordSetPersistence() {
191 return ddlRecordSetPersistence;
192 }
193
194
199 public void setDDLRecordSetPersistence(
200 DDLRecordSetPersistence ddlRecordSetPersistence) {
201 this.ddlRecordSetPersistence = ddlRecordSetPersistence;
202 }
203
204
209 public DDLRecordSetFinder getDDLRecordSetFinder() {
210 return ddlRecordSetFinder;
211 }
212
213
218 public void setDDLRecordSetFinder(DDLRecordSetFinder ddlRecordSetFinder) {
219 this.ddlRecordSetFinder = ddlRecordSetFinder;
220 }
221
222
227 public DDLRecordVersionPersistence getDDLRecordVersionPersistence() {
228 return ddlRecordVersionPersistence;
229 }
230
231
236 public void setDDLRecordVersionPersistence(
237 DDLRecordVersionPersistence ddlRecordVersionPersistence) {
238 this.ddlRecordVersionPersistence = ddlRecordVersionPersistence;
239 }
240
241
246 public CounterLocalService getCounterLocalService() {
247 return counterLocalService;
248 }
249
250
255 public void setCounterLocalService(CounterLocalService counterLocalService) {
256 this.counterLocalService = counterLocalService;
257 }
258
259
264 public ResourceLocalService getResourceLocalService() {
265 return resourceLocalService;
266 }
267
268
273 public void setResourceLocalService(
274 ResourceLocalService resourceLocalService) {
275 this.resourceLocalService = resourceLocalService;
276 }
277
278
283 public UserLocalService getUserLocalService() {
284 return userLocalService;
285 }
286
287
292 public void setUserLocalService(UserLocalService userLocalService) {
293 this.userLocalService = userLocalService;
294 }
295
296
301 public UserService getUserService() {
302 return userService;
303 }
304
305
310 public void setUserService(UserService userService) {
311 this.userService = userService;
312 }
313
314
319 public UserPersistence getUserPersistence() {
320 return userPersistence;
321 }
322
323
328 public void setUserPersistence(UserPersistence userPersistence) {
329 this.userPersistence = userPersistence;
330 }
331
332
337 public UserFinder getUserFinder() {
338 return userFinder;
339 }
340
341
346 public void setUserFinder(UserFinder userFinder) {
347 this.userFinder = userFinder;
348 }
349
350
355 public WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
356 return workflowInstanceLinkLocalService;
357 }
358
359
364 public void setWorkflowInstanceLinkLocalService(
365 WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
366 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
367 }
368
369
374 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
375 return workflowInstanceLinkPersistence;
376 }
377
378
383 public void setWorkflowInstanceLinkPersistence(
384 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
385 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
386 }
387
388
393 public AssetEntryLocalService getAssetEntryLocalService() {
394 return assetEntryLocalService;
395 }
396
397
402 public void setAssetEntryLocalService(
403 AssetEntryLocalService assetEntryLocalService) {
404 this.assetEntryLocalService = assetEntryLocalService;
405 }
406
407
412 public AssetEntryService getAssetEntryService() {
413 return assetEntryService;
414 }
415
416
421 public void setAssetEntryService(AssetEntryService assetEntryService) {
422 this.assetEntryService = assetEntryService;
423 }
424
425
430 public AssetEntryPersistence getAssetEntryPersistence() {
431 return assetEntryPersistence;
432 }
433
434
439 public void setAssetEntryPersistence(
440 AssetEntryPersistence assetEntryPersistence) {
441 this.assetEntryPersistence = assetEntryPersistence;
442 }
443
444
449 public AssetEntryFinder getAssetEntryFinder() {
450 return assetEntryFinder;
451 }
452
453
458 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
459 this.assetEntryFinder = assetEntryFinder;
460 }
461
462
467 public DDMStructureLocalService getDDMStructureLocalService() {
468 return ddmStructureLocalService;
469 }
470
471
476 public void setDDMStructureLocalService(
477 DDMStructureLocalService ddmStructureLocalService) {
478 this.ddmStructureLocalService = ddmStructureLocalService;
479 }
480
481
486 public DDMStructureService getDDMStructureService() {
487 return ddmStructureService;
488 }
489
490
495 public void setDDMStructureService(DDMStructureService ddmStructureService) {
496 this.ddmStructureService = ddmStructureService;
497 }
498
499
504 public DDMStructurePersistence getDDMStructurePersistence() {
505 return ddmStructurePersistence;
506 }
507
508
513 public void setDDMStructurePersistence(
514 DDMStructurePersistence ddmStructurePersistence) {
515 this.ddmStructurePersistence = ddmStructurePersistence;
516 }
517
518
523 public DDMStructureFinder getDDMStructureFinder() {
524 return ddmStructureFinder;
525 }
526
527
532 public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
533 this.ddmStructureFinder = ddmStructureFinder;
534 }
535
536 public void afterPropertiesSet() {
537 }
538
539 public void destroy() {
540 }
541
542
547 public String getBeanIdentifier() {
548 return _beanIdentifier;
549 }
550
551
556 public void setBeanIdentifier(String beanIdentifier) {
557 _beanIdentifier = beanIdentifier;
558 }
559
560 protected Class<?> getModelClass() {
561 return DDLRecord.class;
562 }
563
564 protected String getModelClassName() {
565 return DDLRecord.class.getName();
566 }
567
568
573 protected void runSQL(String sql) throws SystemException {
574 try {
575 DataSource dataSource = ddlRecordPersistence.getDataSource();
576
577 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
578 sql, new int[0]);
579
580 sqlUpdate.update();
581 }
582 catch (Exception e) {
583 throw new SystemException(e);
584 }
585 }
586
587 @BeanReference(type = DDLRecordLocalService.class)
588 protected DDLRecordLocalService ddlRecordLocalService;
589 @BeanReference(type = DDLRecordService.class)
590 protected DDLRecordService ddlRecordService;
591 @BeanReference(type = DDLRecordPersistence.class)
592 protected DDLRecordPersistence ddlRecordPersistence;
593 @BeanReference(type = DDLRecordFinder.class)
594 protected DDLRecordFinder ddlRecordFinder;
595 @BeanReference(type = DDLRecordSetLocalService.class)
596 protected DDLRecordSetLocalService ddlRecordSetLocalService;
597 @BeanReference(type = DDLRecordSetService.class)
598 protected DDLRecordSetService ddlRecordSetService;
599 @BeanReference(type = DDLRecordSetPersistence.class)
600 protected DDLRecordSetPersistence ddlRecordSetPersistence;
601 @BeanReference(type = DDLRecordSetFinder.class)
602 protected DDLRecordSetFinder ddlRecordSetFinder;
603 @BeanReference(type = DDLRecordVersionPersistence.class)
604 protected DDLRecordVersionPersistence ddlRecordVersionPersistence;
605 @BeanReference(type = CounterLocalService.class)
606 protected CounterLocalService counterLocalService;
607 @BeanReference(type = ResourceLocalService.class)
608 protected ResourceLocalService resourceLocalService;
609 @BeanReference(type = UserLocalService.class)
610 protected UserLocalService userLocalService;
611 @BeanReference(type = UserService.class)
612 protected UserService userService;
613 @BeanReference(type = UserPersistence.class)
614 protected UserPersistence userPersistence;
615 @BeanReference(type = UserFinder.class)
616 protected UserFinder userFinder;
617 @BeanReference(type = WorkflowInstanceLinkLocalService.class)
618 protected WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
619 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
620 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
621 @BeanReference(type = AssetEntryLocalService.class)
622 protected AssetEntryLocalService assetEntryLocalService;
623 @BeanReference(type = AssetEntryService.class)
624 protected AssetEntryService assetEntryService;
625 @BeanReference(type = AssetEntryPersistence.class)
626 protected AssetEntryPersistence assetEntryPersistence;
627 @BeanReference(type = AssetEntryFinder.class)
628 protected AssetEntryFinder assetEntryFinder;
629 @BeanReference(type = DDMStructureLocalService.class)
630 protected DDMStructureLocalService ddmStructureLocalService;
631 @BeanReference(type = DDMStructureService.class)
632 protected DDMStructureService ddmStructureService;
633 @BeanReference(type = DDMStructurePersistence.class)
634 protected DDMStructurePersistence ddmStructurePersistence;
635 @BeanReference(type = DDMStructureFinder.class)
636 protected DDMStructureFinder ddmStructureFinder;
637 private String _beanIdentifier;
638 }