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.db.DB;
020 import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
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.persistence.ClassNamePersistence;
026 import com.liferay.portal.service.persistence.UserFinder;
027 import com.liferay.portal.service.persistence.UserPersistence;
028 import com.liferay.portal.service.persistence.WorkflowDefinitionLinkPersistence;
029 import com.liferay.portal.util.PortalUtil;
030
031 import com.liferay.portlet.dynamicdatalists.model.DDLRecordSet;
032 import com.liferay.portlet.dynamicdatalists.service.DDLRecordSetService;
033 import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordFinder;
034 import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordPersistence;
035 import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordSetFinder;
036 import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordSetPersistence;
037 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
038 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence;
039 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
040
041 import javax.sql.DataSource;
042
043
055 public abstract class DDLRecordSetServiceBaseImpl extends BaseServiceImpl
056 implements DDLRecordSetService, IdentifiableBean {
057
062
063
068 public com.liferay.portlet.dynamicdatalists.service.DDLRecordSetLocalService getDDLRecordSetLocalService() {
069 return ddlRecordSetLocalService;
070 }
071
072
077 public void setDDLRecordSetLocalService(
078 com.liferay.portlet.dynamicdatalists.service.DDLRecordSetLocalService ddlRecordSetLocalService) {
079 this.ddlRecordSetLocalService = ddlRecordSetLocalService;
080 }
081
082
087 public com.liferay.portlet.dynamicdatalists.service.DDLRecordSetService getDDLRecordSetService() {
088 return ddlRecordSetService;
089 }
090
091
096 public void setDDLRecordSetService(
097 com.liferay.portlet.dynamicdatalists.service.DDLRecordSetService ddlRecordSetService) {
098 this.ddlRecordSetService = ddlRecordSetService;
099 }
100
101
106 public DDLRecordSetPersistence getDDLRecordSetPersistence() {
107 return ddlRecordSetPersistence;
108 }
109
110
115 public void setDDLRecordSetPersistence(
116 DDLRecordSetPersistence ddlRecordSetPersistence) {
117 this.ddlRecordSetPersistence = ddlRecordSetPersistence;
118 }
119
120
125 public DDLRecordSetFinder getDDLRecordSetFinder() {
126 return ddlRecordSetFinder;
127 }
128
129
134 public void setDDLRecordSetFinder(DDLRecordSetFinder ddlRecordSetFinder) {
135 this.ddlRecordSetFinder = ddlRecordSetFinder;
136 }
137
138
143 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
144 return counterLocalService;
145 }
146
147
152 public void setCounterLocalService(
153 com.liferay.counter.service.CounterLocalService counterLocalService) {
154 this.counterLocalService = counterLocalService;
155 }
156
157
162 public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
163 return classNameLocalService;
164 }
165
166
171 public void setClassNameLocalService(
172 com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
173 this.classNameLocalService = classNameLocalService;
174 }
175
176
181 public com.liferay.portal.service.ClassNameService getClassNameService() {
182 return classNameService;
183 }
184
185
190 public void setClassNameService(
191 com.liferay.portal.service.ClassNameService classNameService) {
192 this.classNameService = classNameService;
193 }
194
195
200 public ClassNamePersistence getClassNamePersistence() {
201 return classNamePersistence;
202 }
203
204
209 public void setClassNamePersistence(
210 ClassNamePersistence classNamePersistence) {
211 this.classNamePersistence = classNamePersistence;
212 }
213
214
219 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
220 return resourceLocalService;
221 }
222
223
228 public void setResourceLocalService(
229 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
230 this.resourceLocalService = resourceLocalService;
231 }
232
233
238 public com.liferay.portal.service.UserLocalService getUserLocalService() {
239 return userLocalService;
240 }
241
242
247 public void setUserLocalService(
248 com.liferay.portal.service.UserLocalService userLocalService) {
249 this.userLocalService = userLocalService;
250 }
251
252
257 public com.liferay.portal.service.UserService getUserService() {
258 return userService;
259 }
260
261
266 public void setUserService(
267 com.liferay.portal.service.UserService userService) {
268 this.userService = userService;
269 }
270
271
276 public UserPersistence getUserPersistence() {
277 return userPersistence;
278 }
279
280
285 public void setUserPersistence(UserPersistence userPersistence) {
286 this.userPersistence = userPersistence;
287 }
288
289
294 public UserFinder getUserFinder() {
295 return userFinder;
296 }
297
298
303 public void setUserFinder(UserFinder userFinder) {
304 this.userFinder = userFinder;
305 }
306
307
312 public com.liferay.portal.service.WorkflowDefinitionLinkLocalService getWorkflowDefinitionLinkLocalService() {
313 return workflowDefinitionLinkLocalService;
314 }
315
316
321 public void setWorkflowDefinitionLinkLocalService(
322 com.liferay.portal.service.WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService) {
323 this.workflowDefinitionLinkLocalService = workflowDefinitionLinkLocalService;
324 }
325
326
331 public WorkflowDefinitionLinkPersistence getWorkflowDefinitionLinkPersistence() {
332 return workflowDefinitionLinkPersistence;
333 }
334
335
340 public void setWorkflowDefinitionLinkPersistence(
341 WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence) {
342 this.workflowDefinitionLinkPersistence = workflowDefinitionLinkPersistence;
343 }
344
345
350 public com.liferay.portlet.dynamicdatalists.service.DDLRecordLocalService getDDLRecordLocalService() {
351 return ddlRecordLocalService;
352 }
353
354
359 public void setDDLRecordLocalService(
360 com.liferay.portlet.dynamicdatalists.service.DDLRecordLocalService ddlRecordLocalService) {
361 this.ddlRecordLocalService = ddlRecordLocalService;
362 }
363
364
369 public com.liferay.portlet.dynamicdatalists.service.DDLRecordService getDDLRecordService() {
370 return ddlRecordService;
371 }
372
373
378 public void setDDLRecordService(
379 com.liferay.portlet.dynamicdatalists.service.DDLRecordService ddlRecordService) {
380 this.ddlRecordService = ddlRecordService;
381 }
382
383
388 public DDLRecordPersistence getDDLRecordPersistence() {
389 return ddlRecordPersistence;
390 }
391
392
397 public void setDDLRecordPersistence(
398 DDLRecordPersistence ddlRecordPersistence) {
399 this.ddlRecordPersistence = ddlRecordPersistence;
400 }
401
402
407 public DDLRecordFinder getDDLRecordFinder() {
408 return ddlRecordFinder;
409 }
410
411
416 public void setDDLRecordFinder(DDLRecordFinder ddlRecordFinder) {
417 this.ddlRecordFinder = ddlRecordFinder;
418 }
419
420
425 public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService getDDMStructureLocalService() {
426 return ddmStructureLocalService;
427 }
428
429
434 public void setDDMStructureLocalService(
435 com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService) {
436 this.ddmStructureLocalService = ddmStructureLocalService;
437 }
438
439
444 public com.liferay.portlet.dynamicdatamapping.service.DDMStructureService getDDMStructureService() {
445 return ddmStructureService;
446 }
447
448
453 public void setDDMStructureService(
454 com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService) {
455 this.ddmStructureService = ddmStructureService;
456 }
457
458
463 public DDMStructurePersistence getDDMStructurePersistence() {
464 return ddmStructurePersistence;
465 }
466
467
472 public void setDDMStructurePersistence(
473 DDMStructurePersistence ddmStructurePersistence) {
474 this.ddmStructurePersistence = ddmStructurePersistence;
475 }
476
477
482 public DDMStructureFinder getDDMStructureFinder() {
483 return ddmStructureFinder;
484 }
485
486
491 public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
492 this.ddmStructureFinder = ddmStructureFinder;
493 }
494
495
500 public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService getDDMStructureLinkLocalService() {
501 return ddmStructureLinkLocalService;
502 }
503
504
509 public void setDDMStructureLinkLocalService(
510 com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService ddmStructureLinkLocalService) {
511 this.ddmStructureLinkLocalService = ddmStructureLinkLocalService;
512 }
513
514
519 public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
520 return ddmStructureLinkPersistence;
521 }
522
523
528 public void setDDMStructureLinkPersistence(
529 DDMStructureLinkPersistence ddmStructureLinkPersistence) {
530 this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
531 }
532
533 public void afterPropertiesSet() {
534 }
535
536 public void destroy() {
537 }
538
539
544 @Override
545 public String getBeanIdentifier() {
546 return _beanIdentifier;
547 }
548
549
554 @Override
555 public void setBeanIdentifier(String beanIdentifier) {
556 _beanIdentifier = beanIdentifier;
557 }
558
559 protected Class<?> getModelClass() {
560 return DDLRecordSet.class;
561 }
562
563 protected String getModelClassName() {
564 return DDLRecordSet.class.getName();
565 }
566
567
572 protected void runSQL(String sql) {
573 try {
574 DataSource dataSource = ddlRecordSetPersistence.getDataSource();
575
576 DB db = DBFactoryUtil.getDB();
577
578 sql = db.buildSQL(sql);
579 sql = PortalUtil.transformSQL(sql);
580
581 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
582 sql, new int[0]);
583
584 sqlUpdate.update();
585 }
586 catch (Exception e) {
587 throw new SystemException(e);
588 }
589 }
590
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 = com.liferay.counter.service.CounterLocalService.class)
600 protected com.liferay.counter.service.CounterLocalService counterLocalService;
601 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
602 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
603 @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
604 protected com.liferay.portal.service.ClassNameService classNameService;
605 @BeanReference(type = ClassNamePersistence.class)
606 protected ClassNamePersistence classNamePersistence;
607 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
608 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
609 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
610 protected com.liferay.portal.service.UserLocalService userLocalService;
611 @BeanReference(type = com.liferay.portal.service.UserService.class)
612 protected com.liferay.portal.service.UserService userService;
613 @BeanReference(type = UserPersistence.class)
614 protected UserPersistence userPersistence;
615 @BeanReference(type = UserFinder.class)
616 protected UserFinder userFinder;
617 @BeanReference(type = com.liferay.portal.service.WorkflowDefinitionLinkLocalService.class)
618 protected com.liferay.portal.service.WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService;
619 @BeanReference(type = WorkflowDefinitionLinkPersistence.class)
620 protected WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence;
621 @BeanReference(type = com.liferay.portlet.dynamicdatalists.service.DDLRecordLocalService.class)
622 protected com.liferay.portlet.dynamicdatalists.service.DDLRecordLocalService ddlRecordLocalService;
623 @BeanReference(type = com.liferay.portlet.dynamicdatalists.service.DDLRecordService.class)
624 protected com.liferay.portlet.dynamicdatalists.service.DDLRecordService ddlRecordService;
625 @BeanReference(type = DDLRecordPersistence.class)
626 protected DDLRecordPersistence ddlRecordPersistence;
627 @BeanReference(type = DDLRecordFinder.class)
628 protected DDLRecordFinder ddlRecordFinder;
629 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService.class)
630 protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService;
631 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureService.class)
632 protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService;
633 @BeanReference(type = DDMStructurePersistence.class)
634 protected DDMStructurePersistence ddmStructurePersistence;
635 @BeanReference(type = DDMStructureFinder.class)
636 protected DDMStructureFinder ddmStructureFinder;
637 @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService.class)
638 protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService ddmStructureLinkLocalService;
639 @BeanReference(type = DDMStructureLinkPersistence.class)
640 protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
641 private String _beanIdentifier;
642 }