001
014
015 package com.liferay.portlet.exportimport.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.kernel.util.InfrastructureUtil;
025 import com.liferay.portal.service.BaseServiceImpl;
026 import com.liferay.portal.service.persistence.BackgroundTaskPersistence;
027 import com.liferay.portal.service.persistence.ClassNamePersistence;
028 import com.liferay.portal.service.persistence.LayoutFinder;
029 import com.liferay.portal.service.persistence.LayoutPersistence;
030 import com.liferay.portal.service.persistence.UserFinder;
031 import com.liferay.portal.service.persistence.UserPersistence;
032 import com.liferay.portal.util.PortalUtil;
033
034 import com.liferay.portlet.exportimport.service.ExportImportService;
035 import com.liferay.portlet.exportimport.service.persistence.ExportImportConfigurationPersistence;
036
037 import javax.sql.DataSource;
038
039
051 public abstract class ExportImportServiceBaseImpl extends BaseServiceImpl
052 implements ExportImportService, IdentifiableBean {
053
058
059
064 public com.liferay.portlet.exportimport.service.ExportImportLocalService getExportImportLocalService() {
065 return exportImportLocalService;
066 }
067
068
073 public void setExportImportLocalService(
074 com.liferay.portlet.exportimport.service.ExportImportLocalService exportImportLocalService) {
075 this.exportImportLocalService = exportImportLocalService;
076 }
077
078
083 public ExportImportService getExportImportService() {
084 return exportImportService;
085 }
086
087
092 public void setExportImportService(ExportImportService exportImportService) {
093 this.exportImportService = exportImportService;
094 }
095
096
101 public com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService getExportImportConfigurationLocalService() {
102 return exportImportConfigurationLocalService;
103 }
104
105
110 public void setExportImportConfigurationLocalService(
111 com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService) {
112 this.exportImportConfigurationLocalService = exportImportConfigurationLocalService;
113 }
114
115
120 public com.liferay.portlet.exportimport.service.ExportImportConfigurationService getExportImportConfigurationService() {
121 return exportImportConfigurationService;
122 }
123
124
129 public void setExportImportConfigurationService(
130 com.liferay.portlet.exportimport.service.ExportImportConfigurationService exportImportConfigurationService) {
131 this.exportImportConfigurationService = exportImportConfigurationService;
132 }
133
134
139 public ExportImportConfigurationPersistence getExportImportConfigurationPersistence() {
140 return exportImportConfigurationPersistence;
141 }
142
143
148 public void setExportImportConfigurationPersistence(
149 ExportImportConfigurationPersistence exportImportConfigurationPersistence) {
150 this.exportImportConfigurationPersistence = exportImportConfigurationPersistence;
151 }
152
153
158 public com.liferay.portlet.exportimport.service.StagingLocalService getStagingLocalService() {
159 return stagingLocalService;
160 }
161
162
167 public void setStagingLocalService(
168 com.liferay.portlet.exportimport.service.StagingLocalService stagingLocalService) {
169 this.stagingLocalService = stagingLocalService;
170 }
171
172
177 public com.liferay.portlet.exportimport.service.StagingService getStagingService() {
178 return stagingService;
179 }
180
181
186 public void setStagingService(
187 com.liferay.portlet.exportimport.service.StagingService stagingService) {
188 this.stagingService = stagingService;
189 }
190
191
196 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
197 return counterLocalService;
198 }
199
200
205 public void setCounterLocalService(
206 com.liferay.counter.service.CounterLocalService counterLocalService) {
207 this.counterLocalService = counterLocalService;
208 }
209
210
215 public com.liferay.portal.service.BackgroundTaskLocalService getBackgroundTaskLocalService() {
216 return backgroundTaskLocalService;
217 }
218
219
224 public void setBackgroundTaskLocalService(
225 com.liferay.portal.service.BackgroundTaskLocalService backgroundTaskLocalService) {
226 this.backgroundTaskLocalService = backgroundTaskLocalService;
227 }
228
229
234 public com.liferay.portal.service.BackgroundTaskService getBackgroundTaskService() {
235 return backgroundTaskService;
236 }
237
238
243 public void setBackgroundTaskService(
244 com.liferay.portal.service.BackgroundTaskService backgroundTaskService) {
245 this.backgroundTaskService = backgroundTaskService;
246 }
247
248
253 public BackgroundTaskPersistence getBackgroundTaskPersistence() {
254 return backgroundTaskPersistence;
255 }
256
257
262 public void setBackgroundTaskPersistence(
263 BackgroundTaskPersistence backgroundTaskPersistence) {
264 this.backgroundTaskPersistence = backgroundTaskPersistence;
265 }
266
267
272 public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
273 return classNameLocalService;
274 }
275
276
281 public void setClassNameLocalService(
282 com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
283 this.classNameLocalService = classNameLocalService;
284 }
285
286
291 public com.liferay.portal.service.ClassNameService getClassNameService() {
292 return classNameService;
293 }
294
295
300 public void setClassNameService(
301 com.liferay.portal.service.ClassNameService classNameService) {
302 this.classNameService = classNameService;
303 }
304
305
310 public ClassNamePersistence getClassNamePersistence() {
311 return classNamePersistence;
312 }
313
314
319 public void setClassNamePersistence(
320 ClassNamePersistence classNamePersistence) {
321 this.classNamePersistence = classNamePersistence;
322 }
323
324
329 public com.liferay.portal.service.LayoutLocalService getLayoutLocalService() {
330 return layoutLocalService;
331 }
332
333
338 public void setLayoutLocalService(
339 com.liferay.portal.service.LayoutLocalService layoutLocalService) {
340 this.layoutLocalService = layoutLocalService;
341 }
342
343
348 public com.liferay.portal.service.LayoutService getLayoutService() {
349 return layoutService;
350 }
351
352
357 public void setLayoutService(
358 com.liferay.portal.service.LayoutService layoutService) {
359 this.layoutService = layoutService;
360 }
361
362
367 public LayoutPersistence getLayoutPersistence() {
368 return layoutPersistence;
369 }
370
371
376 public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
377 this.layoutPersistence = layoutPersistence;
378 }
379
380
385 public LayoutFinder getLayoutFinder() {
386 return layoutFinder;
387 }
388
389
394 public void setLayoutFinder(LayoutFinder layoutFinder) {
395 this.layoutFinder = layoutFinder;
396 }
397
398
403 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
404 return resourceLocalService;
405 }
406
407
412 public void setResourceLocalService(
413 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
414 this.resourceLocalService = resourceLocalService;
415 }
416
417
422 public com.liferay.portal.service.UserLocalService getUserLocalService() {
423 return userLocalService;
424 }
425
426
431 public void setUserLocalService(
432 com.liferay.portal.service.UserLocalService userLocalService) {
433 this.userLocalService = userLocalService;
434 }
435
436
441 public com.liferay.portal.service.UserService getUserService() {
442 return userService;
443 }
444
445
450 public void setUserService(
451 com.liferay.portal.service.UserService userService) {
452 this.userService = userService;
453 }
454
455
460 public UserPersistence getUserPersistence() {
461 return userPersistence;
462 }
463
464
469 public void setUserPersistence(UserPersistence userPersistence) {
470 this.userPersistence = userPersistence;
471 }
472
473
478 public UserFinder getUserFinder() {
479 return userFinder;
480 }
481
482
487 public void setUserFinder(UserFinder userFinder) {
488 this.userFinder = userFinder;
489 }
490
491 public void afterPropertiesSet() {
492 }
493
494 public void destroy() {
495 }
496
497
502 @Override
503 public String getBeanIdentifier() {
504 return _beanIdentifier;
505 }
506
507
512 @Override
513 public void setBeanIdentifier(String beanIdentifier) {
514 _beanIdentifier = beanIdentifier;
515 }
516
517
522 protected void runSQL(String sql) {
523 try {
524 DataSource dataSource = InfrastructureUtil.getDataSource();
525
526 DB db = DBFactoryUtil.getDB();
527
528 sql = db.buildSQL(sql);
529 sql = PortalUtil.transformSQL(sql);
530
531 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
532 sql, new int[0]);
533
534 sqlUpdate.update();
535 }
536 catch (Exception e) {
537 throw new SystemException(e);
538 }
539 }
540
541 @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportLocalService.class)
542 protected com.liferay.portlet.exportimport.service.ExportImportLocalService exportImportLocalService;
543 @BeanReference(type = ExportImportService.class)
544 protected ExportImportService exportImportService;
545 @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService.class)
546 protected com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService;
547 @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationService.class)
548 protected com.liferay.portlet.exportimport.service.ExportImportConfigurationService exportImportConfigurationService;
549 @BeanReference(type = ExportImportConfigurationPersistence.class)
550 protected ExportImportConfigurationPersistence exportImportConfigurationPersistence;
551 @BeanReference(type = com.liferay.portlet.exportimport.service.StagingLocalService.class)
552 protected com.liferay.portlet.exportimport.service.StagingLocalService stagingLocalService;
553 @BeanReference(type = com.liferay.portlet.exportimport.service.StagingService.class)
554 protected com.liferay.portlet.exportimport.service.StagingService stagingService;
555 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
556 protected com.liferay.counter.service.CounterLocalService counterLocalService;
557 @BeanReference(type = com.liferay.portal.service.BackgroundTaskLocalService.class)
558 protected com.liferay.portal.service.BackgroundTaskLocalService backgroundTaskLocalService;
559 @BeanReference(type = com.liferay.portal.service.BackgroundTaskService.class)
560 protected com.liferay.portal.service.BackgroundTaskService backgroundTaskService;
561 @BeanReference(type = BackgroundTaskPersistence.class)
562 protected BackgroundTaskPersistence backgroundTaskPersistence;
563 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
564 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
565 @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
566 protected com.liferay.portal.service.ClassNameService classNameService;
567 @BeanReference(type = ClassNamePersistence.class)
568 protected ClassNamePersistence classNamePersistence;
569 @BeanReference(type = com.liferay.portal.service.LayoutLocalService.class)
570 protected com.liferay.portal.service.LayoutLocalService layoutLocalService;
571 @BeanReference(type = com.liferay.portal.service.LayoutService.class)
572 protected com.liferay.portal.service.LayoutService layoutService;
573 @BeanReference(type = LayoutPersistence.class)
574 protected LayoutPersistence layoutPersistence;
575 @BeanReference(type = LayoutFinder.class)
576 protected LayoutFinder layoutFinder;
577 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
578 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
579 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
580 protected com.liferay.portal.service.UserLocalService userLocalService;
581 @BeanReference(type = com.liferay.portal.service.UserService.class)
582 protected com.liferay.portal.service.UserService userService;
583 @BeanReference(type = UserPersistence.class)
584 protected UserPersistence userPersistence;
585 @BeanReference(type = UserFinder.class)
586 protected UserFinder userFinder;
587 private String _beanIdentifier;
588 }