001
014
015 package com.liferay.portlet.exportimport.service.base;
016
017 import com.liferay.exportimport.kernel.model.ExportImportConfiguration;
018 import com.liferay.exportimport.kernel.service.ExportImportConfigurationService;
019 import com.liferay.exportimport.kernel.service.persistence.ExportImportConfigurationFinder;
020 import com.liferay.exportimport.kernel.service.persistence.ExportImportConfigurationPersistence;
021
022 import com.liferay.portal.kernel.bean.BeanReference;
023 import com.liferay.portal.kernel.dao.db.DB;
024 import com.liferay.portal.kernel.dao.db.DBManagerUtil;
025 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
026 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
027 import com.liferay.portal.kernel.exception.SystemException;
028 import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
029 import com.liferay.portal.kernel.service.BaseServiceImpl;
030 import com.liferay.portal.kernel.service.persistence.ClassNamePersistence;
031 import com.liferay.portal.kernel.service.persistence.UserFinder;
032 import com.liferay.portal.kernel.service.persistence.UserPersistence;
033 import com.liferay.portal.kernel.util.PortalUtil;
034
035 import com.liferay.trash.kernel.service.persistence.TrashEntryPersistence;
036
037 import javax.sql.DataSource;
038
039
051 public abstract class ExportImportConfigurationServiceBaseImpl
052 extends BaseServiceImpl implements ExportImportConfigurationService,
053 IdentifiableOSGiService {
054
059
060
065 public com.liferay.exportimport.kernel.service.ExportImportLocalService getExportImportLocalService() {
066 return exportImportLocalService;
067 }
068
069
074 public void setExportImportLocalService(
075 com.liferay.exportimport.kernel.service.ExportImportLocalService exportImportLocalService) {
076 this.exportImportLocalService = exportImportLocalService;
077 }
078
079
084 public com.liferay.exportimport.kernel.service.ExportImportService getExportImportService() {
085 return exportImportService;
086 }
087
088
093 public void setExportImportService(
094 com.liferay.exportimport.kernel.service.ExportImportService exportImportService) {
095 this.exportImportService = exportImportService;
096 }
097
098
103 public com.liferay.exportimport.kernel.service.ExportImportConfigurationLocalService getExportImportConfigurationLocalService() {
104 return exportImportConfigurationLocalService;
105 }
106
107
112 public void setExportImportConfigurationLocalService(
113 com.liferay.exportimport.kernel.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService) {
114 this.exportImportConfigurationLocalService = exportImportConfigurationLocalService;
115 }
116
117
122 public ExportImportConfigurationService getExportImportConfigurationService() {
123 return exportImportConfigurationService;
124 }
125
126
131 public void setExportImportConfigurationService(
132 ExportImportConfigurationService exportImportConfigurationService) {
133 this.exportImportConfigurationService = exportImportConfigurationService;
134 }
135
136
141 public ExportImportConfigurationPersistence getExportImportConfigurationPersistence() {
142 return exportImportConfigurationPersistence;
143 }
144
145
150 public void setExportImportConfigurationPersistence(
151 ExportImportConfigurationPersistence exportImportConfigurationPersistence) {
152 this.exportImportConfigurationPersistence = exportImportConfigurationPersistence;
153 }
154
155
160 public ExportImportConfigurationFinder getExportImportConfigurationFinder() {
161 return exportImportConfigurationFinder;
162 }
163
164
169 public void setExportImportConfigurationFinder(
170 ExportImportConfigurationFinder exportImportConfigurationFinder) {
171 this.exportImportConfigurationFinder = exportImportConfigurationFinder;
172 }
173
174
179 public com.liferay.exportimport.kernel.service.StagingLocalService getStagingLocalService() {
180 return stagingLocalService;
181 }
182
183
188 public void setStagingLocalService(
189 com.liferay.exportimport.kernel.service.StagingLocalService stagingLocalService) {
190 this.stagingLocalService = stagingLocalService;
191 }
192
193
198 public com.liferay.exportimport.kernel.service.StagingService getStagingService() {
199 return stagingService;
200 }
201
202
207 public void setStagingService(
208 com.liferay.exportimport.kernel.service.StagingService stagingService) {
209 this.stagingService = stagingService;
210 }
211
212
217 public com.liferay.counter.kernel.service.CounterLocalService getCounterLocalService() {
218 return counterLocalService;
219 }
220
221
226 public void setCounterLocalService(
227 com.liferay.counter.kernel.service.CounterLocalService counterLocalService) {
228 this.counterLocalService = counterLocalService;
229 }
230
231
236 public com.liferay.portal.kernel.service.ClassNameLocalService getClassNameLocalService() {
237 return classNameLocalService;
238 }
239
240
245 public void setClassNameLocalService(
246 com.liferay.portal.kernel.service.ClassNameLocalService classNameLocalService) {
247 this.classNameLocalService = classNameLocalService;
248 }
249
250
255 public com.liferay.portal.kernel.service.ClassNameService getClassNameService() {
256 return classNameService;
257 }
258
259
264 public void setClassNameService(
265 com.liferay.portal.kernel.service.ClassNameService classNameService) {
266 this.classNameService = classNameService;
267 }
268
269
274 public ClassNamePersistence getClassNamePersistence() {
275 return classNamePersistence;
276 }
277
278
283 public void setClassNamePersistence(
284 ClassNamePersistence classNamePersistence) {
285 this.classNamePersistence = classNamePersistence;
286 }
287
288
293 public com.liferay.portal.kernel.service.ResourceLocalService getResourceLocalService() {
294 return resourceLocalService;
295 }
296
297
302 public void setResourceLocalService(
303 com.liferay.portal.kernel.service.ResourceLocalService resourceLocalService) {
304 this.resourceLocalService = resourceLocalService;
305 }
306
307
312 public com.liferay.portal.kernel.service.UserLocalService getUserLocalService() {
313 return userLocalService;
314 }
315
316
321 public void setUserLocalService(
322 com.liferay.portal.kernel.service.UserLocalService userLocalService) {
323 this.userLocalService = userLocalService;
324 }
325
326
331 public com.liferay.portal.kernel.service.UserService getUserService() {
332 return userService;
333 }
334
335
340 public void setUserService(
341 com.liferay.portal.kernel.service.UserService userService) {
342 this.userService = userService;
343 }
344
345
350 public UserPersistence getUserPersistence() {
351 return userPersistence;
352 }
353
354
359 public void setUserPersistence(UserPersistence userPersistence) {
360 this.userPersistence = userPersistence;
361 }
362
363
368 public UserFinder getUserFinder() {
369 return userFinder;
370 }
371
372
377 public void setUserFinder(UserFinder userFinder) {
378 this.userFinder = userFinder;
379 }
380
381
386 public com.liferay.trash.kernel.service.TrashEntryLocalService getTrashEntryLocalService() {
387 return trashEntryLocalService;
388 }
389
390
395 public void setTrashEntryLocalService(
396 com.liferay.trash.kernel.service.TrashEntryLocalService trashEntryLocalService) {
397 this.trashEntryLocalService = trashEntryLocalService;
398 }
399
400
405 public com.liferay.trash.kernel.service.TrashEntryService getTrashEntryService() {
406 return trashEntryService;
407 }
408
409
414 public void setTrashEntryService(
415 com.liferay.trash.kernel.service.TrashEntryService trashEntryService) {
416 this.trashEntryService = trashEntryService;
417 }
418
419
424 public TrashEntryPersistence getTrashEntryPersistence() {
425 return trashEntryPersistence;
426 }
427
428
433 public void setTrashEntryPersistence(
434 TrashEntryPersistence trashEntryPersistence) {
435 this.trashEntryPersistence = trashEntryPersistence;
436 }
437
438 public void afterPropertiesSet() {
439 }
440
441 public void destroy() {
442 }
443
444
449 @Override
450 public String getOSGiServiceIdentifier() {
451 return ExportImportConfigurationService.class.getName();
452 }
453
454 protected Class<?> getModelClass() {
455 return ExportImportConfiguration.class;
456 }
457
458 protected String getModelClassName() {
459 return ExportImportConfiguration.class.getName();
460 }
461
462
467 protected void runSQL(String sql) {
468 try {
469 DataSource dataSource = exportImportConfigurationPersistence.getDataSource();
470
471 DB db = DBManagerUtil.getDB();
472
473 sql = db.buildSQL(sql);
474 sql = PortalUtil.transformSQL(sql);
475
476 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
477 sql);
478
479 sqlUpdate.update();
480 }
481 catch (Exception e) {
482 throw new SystemException(e);
483 }
484 }
485
486 @BeanReference(type = com.liferay.exportimport.kernel.service.ExportImportLocalService.class)
487 protected com.liferay.exportimport.kernel.service.ExportImportLocalService exportImportLocalService;
488 @BeanReference(type = com.liferay.exportimport.kernel.service.ExportImportService.class)
489 protected com.liferay.exportimport.kernel.service.ExportImportService exportImportService;
490 @BeanReference(type = com.liferay.exportimport.kernel.service.ExportImportConfigurationLocalService.class)
491 protected com.liferay.exportimport.kernel.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService;
492 @BeanReference(type = ExportImportConfigurationService.class)
493 protected ExportImportConfigurationService exportImportConfigurationService;
494 @BeanReference(type = ExportImportConfigurationPersistence.class)
495 protected ExportImportConfigurationPersistence exportImportConfigurationPersistence;
496 @BeanReference(type = ExportImportConfigurationFinder.class)
497 protected ExportImportConfigurationFinder exportImportConfigurationFinder;
498 @BeanReference(type = com.liferay.exportimport.kernel.service.StagingLocalService.class)
499 protected com.liferay.exportimport.kernel.service.StagingLocalService stagingLocalService;
500 @BeanReference(type = com.liferay.exportimport.kernel.service.StagingService.class)
501 protected com.liferay.exportimport.kernel.service.StagingService stagingService;
502 @BeanReference(type = com.liferay.counter.kernel.service.CounterLocalService.class)
503 protected com.liferay.counter.kernel.service.CounterLocalService counterLocalService;
504 @BeanReference(type = com.liferay.portal.kernel.service.ClassNameLocalService.class)
505 protected com.liferay.portal.kernel.service.ClassNameLocalService classNameLocalService;
506 @BeanReference(type = com.liferay.portal.kernel.service.ClassNameService.class)
507 protected com.liferay.portal.kernel.service.ClassNameService classNameService;
508 @BeanReference(type = ClassNamePersistence.class)
509 protected ClassNamePersistence classNamePersistence;
510 @BeanReference(type = com.liferay.portal.kernel.service.ResourceLocalService.class)
511 protected com.liferay.portal.kernel.service.ResourceLocalService resourceLocalService;
512 @BeanReference(type = com.liferay.portal.kernel.service.UserLocalService.class)
513 protected com.liferay.portal.kernel.service.UserLocalService userLocalService;
514 @BeanReference(type = com.liferay.portal.kernel.service.UserService.class)
515 protected com.liferay.portal.kernel.service.UserService userService;
516 @BeanReference(type = UserPersistence.class)
517 protected UserPersistence userPersistence;
518 @BeanReference(type = UserFinder.class)
519 protected UserFinder userFinder;
520 @BeanReference(type = com.liferay.trash.kernel.service.TrashEntryLocalService.class)
521 protected com.liferay.trash.kernel.service.TrashEntryLocalService trashEntryLocalService;
522 @BeanReference(type = com.liferay.trash.kernel.service.TrashEntryService.class)
523 protected com.liferay.trash.kernel.service.TrashEntryService trashEntryService;
524 @BeanReference(type = TrashEntryPersistence.class)
525 protected TrashEntryPersistence trashEntryPersistence;
526 }