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.persistence.UserFinder;
029 import com.liferay.portal.service.persistence.UserPersistence;
030
031 import com.liferay.portlet.dynamicdatalists.model.DDLRecordSet;
032 import com.liferay.portlet.dynamicdatalists.service.DDLRecordLocalService;
033 import com.liferay.portlet.dynamicdatalists.service.DDLRecordService;
034 import com.liferay.portlet.dynamicdatalists.service.DDLRecordSetLocalService;
035 import com.liferay.portlet.dynamicdatalists.service.DDLRecordSetService;
036 import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordFinder;
037 import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordPersistence;
038 import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordSetFinder;
039 import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordSetPersistence;
040 import com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordVersionPersistence;
041 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService;
042 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService;
043 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureService;
044 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
045 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence;
046 import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
047
048 import javax.sql.DataSource;
049
050
062 public abstract class DDLRecordSetServiceBaseImpl extends BaseServiceImpl
063 implements DDLRecordSetService, IdentifiableBean {
064
069
070
075 public DDLRecordLocalService getDDLRecordLocalService() {
076 return ddlRecordLocalService;
077 }
078
079
084 public void setDDLRecordLocalService(
085 DDLRecordLocalService ddlRecordLocalService) {
086 this.ddlRecordLocalService = ddlRecordLocalService;
087 }
088
089
094 public DDLRecordService getDDLRecordService() {
095 return ddlRecordService;
096 }
097
098
103 public void setDDLRecordService(DDLRecordService ddlRecordService) {
104 this.ddlRecordService = ddlRecordService;
105 }
106
107
112 public DDLRecordPersistence getDDLRecordPersistence() {
113 return ddlRecordPersistence;
114 }
115
116
121 public void setDDLRecordPersistence(
122 DDLRecordPersistence ddlRecordPersistence) {
123 this.ddlRecordPersistence = ddlRecordPersistence;
124 }
125
126
131 public DDLRecordFinder getDDLRecordFinder() {
132 return ddlRecordFinder;
133 }
134
135
140 public void setDDLRecordFinder(DDLRecordFinder ddlRecordFinder) {
141 this.ddlRecordFinder = ddlRecordFinder;
142 }
143
144
149 public DDLRecordSetLocalService getDDLRecordSetLocalService() {
150 return ddlRecordSetLocalService;
151 }
152
153
158 public void setDDLRecordSetLocalService(
159 DDLRecordSetLocalService ddlRecordSetLocalService) {
160 this.ddlRecordSetLocalService = ddlRecordSetLocalService;
161 }
162
163
168 public DDLRecordSetService getDDLRecordSetService() {
169 return ddlRecordSetService;
170 }
171
172
177 public void setDDLRecordSetService(DDLRecordSetService ddlRecordSetService) {
178 this.ddlRecordSetService = ddlRecordSetService;
179 }
180
181
186 public DDLRecordSetPersistence getDDLRecordSetPersistence() {
187 return ddlRecordSetPersistence;
188 }
189
190
195 public void setDDLRecordSetPersistence(
196 DDLRecordSetPersistence ddlRecordSetPersistence) {
197 this.ddlRecordSetPersistence = ddlRecordSetPersistence;
198 }
199
200
205 public DDLRecordSetFinder getDDLRecordSetFinder() {
206 return ddlRecordSetFinder;
207 }
208
209
214 public void setDDLRecordSetFinder(DDLRecordSetFinder ddlRecordSetFinder) {
215 this.ddlRecordSetFinder = ddlRecordSetFinder;
216 }
217
218
223 public DDLRecordVersionPersistence getDDLRecordVersionPersistence() {
224 return ddlRecordVersionPersistence;
225 }
226
227
232 public void setDDLRecordVersionPersistence(
233 DDLRecordVersionPersistence ddlRecordVersionPersistence) {
234 this.ddlRecordVersionPersistence = ddlRecordVersionPersistence;
235 }
236
237
242 public CounterLocalService getCounterLocalService() {
243 return counterLocalService;
244 }
245
246
251 public void setCounterLocalService(CounterLocalService counterLocalService) {
252 this.counterLocalService = counterLocalService;
253 }
254
255
260 public ResourceLocalService getResourceLocalService() {
261 return resourceLocalService;
262 }
263
264
269 public void setResourceLocalService(
270 ResourceLocalService resourceLocalService) {
271 this.resourceLocalService = resourceLocalService;
272 }
273
274
279 public UserLocalService getUserLocalService() {
280 return userLocalService;
281 }
282
283
288 public void setUserLocalService(UserLocalService userLocalService) {
289 this.userLocalService = userLocalService;
290 }
291
292
297 public UserService getUserService() {
298 return userService;
299 }
300
301
306 public void setUserService(UserService userService) {
307 this.userService = userService;
308 }
309
310
315 public UserPersistence getUserPersistence() {
316 return userPersistence;
317 }
318
319
324 public void setUserPersistence(UserPersistence userPersistence) {
325 this.userPersistence = userPersistence;
326 }
327
328
333 public UserFinder getUserFinder() {
334 return userFinder;
335 }
336
337
342 public void setUserFinder(UserFinder userFinder) {
343 this.userFinder = userFinder;
344 }
345
346
351 public DDMStructureLocalService getDDMStructureLocalService() {
352 return ddmStructureLocalService;
353 }
354
355
360 public void setDDMStructureLocalService(
361 DDMStructureLocalService ddmStructureLocalService) {
362 this.ddmStructureLocalService = ddmStructureLocalService;
363 }
364
365
370 public DDMStructureService getDDMStructureService() {
371 return ddmStructureService;
372 }
373
374
379 public void setDDMStructureService(DDMStructureService ddmStructureService) {
380 this.ddmStructureService = ddmStructureService;
381 }
382
383
388 public DDMStructurePersistence getDDMStructurePersistence() {
389 return ddmStructurePersistence;
390 }
391
392
397 public void setDDMStructurePersistence(
398 DDMStructurePersistence ddmStructurePersistence) {
399 this.ddmStructurePersistence = ddmStructurePersistence;
400 }
401
402
407 public DDMStructureFinder getDDMStructureFinder() {
408 return ddmStructureFinder;
409 }
410
411
416 public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
417 this.ddmStructureFinder = ddmStructureFinder;
418 }
419
420
425 public DDMStructureLinkLocalService getDDMStructureLinkLocalService() {
426 return ddmStructureLinkLocalService;
427 }
428
429
434 public void setDDMStructureLinkLocalService(
435 DDMStructureLinkLocalService ddmStructureLinkLocalService) {
436 this.ddmStructureLinkLocalService = ddmStructureLinkLocalService;
437 }
438
439
444 public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
445 return ddmStructureLinkPersistence;
446 }
447
448
453 public void setDDMStructureLinkPersistence(
454 DDMStructureLinkPersistence ddmStructureLinkPersistence) {
455 this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
456 }
457
458 public void afterPropertiesSet() {
459 }
460
461 public void destroy() {
462 }
463
464
469 public String getBeanIdentifier() {
470 return _beanIdentifier;
471 }
472
473
478 public void setBeanIdentifier(String beanIdentifier) {
479 _beanIdentifier = beanIdentifier;
480 }
481
482 protected Class<?> getModelClass() {
483 return DDLRecordSet.class;
484 }
485
486 protected String getModelClassName() {
487 return DDLRecordSet.class.getName();
488 }
489
490
495 protected void runSQL(String sql) throws SystemException {
496 try {
497 DataSource dataSource = ddlRecordSetPersistence.getDataSource();
498
499 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
500 sql, new int[0]);
501
502 sqlUpdate.update();
503 }
504 catch (Exception e) {
505 throw new SystemException(e);
506 }
507 }
508
509 @BeanReference(type = DDLRecordLocalService.class)
510 protected DDLRecordLocalService ddlRecordLocalService;
511 @BeanReference(type = DDLRecordService.class)
512 protected DDLRecordService ddlRecordService;
513 @BeanReference(type = DDLRecordPersistence.class)
514 protected DDLRecordPersistence ddlRecordPersistence;
515 @BeanReference(type = DDLRecordFinder.class)
516 protected DDLRecordFinder ddlRecordFinder;
517 @BeanReference(type = DDLRecordSetLocalService.class)
518 protected DDLRecordSetLocalService ddlRecordSetLocalService;
519 @BeanReference(type = DDLRecordSetService.class)
520 protected DDLRecordSetService ddlRecordSetService;
521 @BeanReference(type = DDLRecordSetPersistence.class)
522 protected DDLRecordSetPersistence ddlRecordSetPersistence;
523 @BeanReference(type = DDLRecordSetFinder.class)
524 protected DDLRecordSetFinder ddlRecordSetFinder;
525 @BeanReference(type = DDLRecordVersionPersistence.class)
526 protected DDLRecordVersionPersistence ddlRecordVersionPersistence;
527 @BeanReference(type = CounterLocalService.class)
528 protected CounterLocalService counterLocalService;
529 @BeanReference(type = ResourceLocalService.class)
530 protected ResourceLocalService resourceLocalService;
531 @BeanReference(type = UserLocalService.class)
532 protected UserLocalService userLocalService;
533 @BeanReference(type = UserService.class)
534 protected UserService userService;
535 @BeanReference(type = UserPersistence.class)
536 protected UserPersistence userPersistence;
537 @BeanReference(type = UserFinder.class)
538 protected UserFinder userFinder;
539 @BeanReference(type = DDMStructureLocalService.class)
540 protected DDMStructureLocalService ddmStructureLocalService;
541 @BeanReference(type = DDMStructureService.class)
542 protected DDMStructureService ddmStructureService;
543 @BeanReference(type = DDMStructurePersistence.class)
544 protected DDMStructurePersistence ddmStructurePersistence;
545 @BeanReference(type = DDMStructureFinder.class)
546 protected DDMStructureFinder ddmStructureFinder;
547 @BeanReference(type = DDMStructureLinkLocalService.class)
548 protected DDMStructureLinkLocalService ddmStructureLinkLocalService;
549 @BeanReference(type = DDMStructureLinkPersistence.class)
550 protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
551 private String _beanIdentifier;
552 }