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.dao.db.DB;
019 import com.liferay.portal.kernel.dao.db.DBManagerUtil;
020 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022 import com.liferay.portal.kernel.exception.SystemException;
023 import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
024 import com.liferay.portal.kernel.util.InfrastructureUtil;
025 import com.liferay.portal.service.BaseServiceImpl;
026 import com.liferay.portal.service.persistence.ClassNamePersistence;
027 import com.liferay.portal.service.persistence.LayoutFinder;
028 import com.liferay.portal.service.persistence.LayoutPersistence;
029 import com.liferay.portal.service.persistence.UserFinder;
030 import com.liferay.portal.service.persistence.UserPersistence;
031 import com.liferay.portal.util.PortalUtil;
032
033 import com.liferay.portlet.exportimport.service.ExportImportService;
034 import com.liferay.portlet.exportimport.service.persistence.ExportImportConfigurationFinder;
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, IdentifiableOSGiService {
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 ExportImportConfigurationFinder getExportImportConfigurationFinder() {
159 return exportImportConfigurationFinder;
160 }
161
162
167 public void setExportImportConfigurationFinder(
168 ExportImportConfigurationFinder exportImportConfigurationFinder) {
169 this.exportImportConfigurationFinder = exportImportConfigurationFinder;
170 }
171
172
177 public com.liferay.portlet.exportimport.service.StagingLocalService getStagingLocalService() {
178 return stagingLocalService;
179 }
180
181
186 public void setStagingLocalService(
187 com.liferay.portlet.exportimport.service.StagingLocalService stagingLocalService) {
188 this.stagingLocalService = stagingLocalService;
189 }
190
191
196 public com.liferay.portlet.exportimport.service.StagingService getStagingService() {
197 return stagingService;
198 }
199
200
205 public void setStagingService(
206 com.liferay.portlet.exportimport.service.StagingService stagingService) {
207 this.stagingService = stagingService;
208 }
209
210
215 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
216 return counterLocalService;
217 }
218
219
224 public void setCounterLocalService(
225 com.liferay.counter.service.CounterLocalService counterLocalService) {
226 this.counterLocalService = counterLocalService;
227 }
228
229
234 public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
235 return classNameLocalService;
236 }
237
238
243 public void setClassNameLocalService(
244 com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
245 this.classNameLocalService = classNameLocalService;
246 }
247
248
253 public com.liferay.portal.service.ClassNameService getClassNameService() {
254 return classNameService;
255 }
256
257
262 public void setClassNameService(
263 com.liferay.portal.service.ClassNameService classNameService) {
264 this.classNameService = classNameService;
265 }
266
267
272 public ClassNamePersistence getClassNamePersistence() {
273 return classNamePersistence;
274 }
275
276
281 public void setClassNamePersistence(
282 ClassNamePersistence classNamePersistence) {
283 this.classNamePersistence = classNamePersistence;
284 }
285
286
291 public com.liferay.portal.service.LayoutLocalService getLayoutLocalService() {
292 return layoutLocalService;
293 }
294
295
300 public void setLayoutLocalService(
301 com.liferay.portal.service.LayoutLocalService layoutLocalService) {
302 this.layoutLocalService = layoutLocalService;
303 }
304
305
310 public com.liferay.portal.service.LayoutService getLayoutService() {
311 return layoutService;
312 }
313
314
319 public void setLayoutService(
320 com.liferay.portal.service.LayoutService layoutService) {
321 this.layoutService = layoutService;
322 }
323
324
329 public LayoutPersistence getLayoutPersistence() {
330 return layoutPersistence;
331 }
332
333
338 public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
339 this.layoutPersistence = layoutPersistence;
340 }
341
342
347 public LayoutFinder getLayoutFinder() {
348 return layoutFinder;
349 }
350
351
356 public void setLayoutFinder(LayoutFinder layoutFinder) {
357 this.layoutFinder = layoutFinder;
358 }
359
360
365 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
366 return resourceLocalService;
367 }
368
369
374 public void setResourceLocalService(
375 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
376 this.resourceLocalService = resourceLocalService;
377 }
378
379
384 public com.liferay.portal.service.UserLocalService getUserLocalService() {
385 return userLocalService;
386 }
387
388
393 public void setUserLocalService(
394 com.liferay.portal.service.UserLocalService userLocalService) {
395 this.userLocalService = userLocalService;
396 }
397
398
403 public com.liferay.portal.service.UserService getUserService() {
404 return userService;
405 }
406
407
412 public void setUserService(
413 com.liferay.portal.service.UserService userService) {
414 this.userService = userService;
415 }
416
417
422 public UserPersistence getUserPersistence() {
423 return userPersistence;
424 }
425
426
431 public void setUserPersistence(UserPersistence userPersistence) {
432 this.userPersistence = userPersistence;
433 }
434
435
440 public UserFinder getUserFinder() {
441 return userFinder;
442 }
443
444
449 public void setUserFinder(UserFinder userFinder) {
450 this.userFinder = userFinder;
451 }
452
453 public void afterPropertiesSet() {
454 }
455
456 public void destroy() {
457 }
458
459
464 @Override
465 public String getOSGiServiceIdentifier() {
466 return ExportImportService.class.getName();
467 }
468
469
474 protected void runSQL(String sql) {
475 try {
476 DataSource dataSource = InfrastructureUtil.getDataSource();
477
478 DB db = DBManagerUtil.getDB();
479
480 sql = db.buildSQL(sql);
481 sql = PortalUtil.transformSQL(sql);
482
483 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
484 sql, new int[0]);
485
486 sqlUpdate.update();
487 }
488 catch (Exception e) {
489 throw new SystemException(e);
490 }
491 }
492
493 @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportLocalService.class)
494 protected com.liferay.portlet.exportimport.service.ExportImportLocalService exportImportLocalService;
495 @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportService.class)
496 protected ExportImportService exportImportService;
497 @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService.class)
498 protected com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService;
499 @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationService.class)
500 protected com.liferay.portlet.exportimport.service.ExportImportConfigurationService exportImportConfigurationService;
501 @BeanReference(type = ExportImportConfigurationPersistence.class)
502 protected ExportImportConfigurationPersistence exportImportConfigurationPersistence;
503 @BeanReference(type = ExportImportConfigurationFinder.class)
504 protected ExportImportConfigurationFinder exportImportConfigurationFinder;
505 @BeanReference(type = com.liferay.portlet.exportimport.service.StagingLocalService.class)
506 protected com.liferay.portlet.exportimport.service.StagingLocalService stagingLocalService;
507 @BeanReference(type = com.liferay.portlet.exportimport.service.StagingService.class)
508 protected com.liferay.portlet.exportimport.service.StagingService stagingService;
509 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
510 protected com.liferay.counter.service.CounterLocalService counterLocalService;
511 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
512 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
513 @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
514 protected com.liferay.portal.service.ClassNameService classNameService;
515 @BeanReference(type = ClassNamePersistence.class)
516 protected ClassNamePersistence classNamePersistence;
517 @BeanReference(type = com.liferay.portal.service.LayoutLocalService.class)
518 protected com.liferay.portal.service.LayoutLocalService layoutLocalService;
519 @BeanReference(type = com.liferay.portal.service.LayoutService.class)
520 protected com.liferay.portal.service.LayoutService layoutService;
521 @BeanReference(type = LayoutPersistence.class)
522 protected LayoutPersistence layoutPersistence;
523 @BeanReference(type = LayoutFinder.class)
524 protected LayoutFinder layoutFinder;
525 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
526 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
527 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
528 protected com.liferay.portal.service.UserLocalService userLocalService;
529 @BeanReference(type = com.liferay.portal.service.UserService.class)
530 protected com.liferay.portal.service.UserService userService;
531 @BeanReference(type = UserPersistence.class)
532 protected UserPersistence userPersistence;
533 @BeanReference(type = UserFinder.class)
534 protected UserFinder userFinder;
535 }