001
014
015 package com.liferay.portlet.exportimport.service.base;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.BeanReference;
020 import com.liferay.portal.kernel.bean.IdentifiableBean;
021 import com.liferay.portal.kernel.dao.db.DB;
022 import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
023 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
024 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
025 import com.liferay.portal.kernel.exception.SystemException;
026 import com.liferay.portal.kernel.util.InfrastructureUtil;
027 import com.liferay.portal.service.BaseLocalServiceImpl;
028 import com.liferay.portal.service.persistence.BackgroundTaskPersistence;
029 import com.liferay.portal.service.persistence.ClassNamePersistence;
030 import com.liferay.portal.service.persistence.LayoutFinder;
031 import com.liferay.portal.service.persistence.LayoutPersistence;
032 import com.liferay.portal.service.persistence.UserFinder;
033 import com.liferay.portal.service.persistence.UserPersistence;
034 import com.liferay.portal.util.PortalUtil;
035
036 import com.liferay.portlet.exportimport.service.ExportImportLocalService;
037 import com.liferay.portlet.exportimport.service.persistence.ExportImportConfigurationPersistence;
038
039 import javax.sql.DataSource;
040
041
053 @ProviderType
054 public abstract class ExportImportLocalServiceBaseImpl
055 extends BaseLocalServiceImpl implements ExportImportLocalService,
056 IdentifiableBean {
057
062
063
068 public ExportImportLocalService getExportImportLocalService() {
069 return exportImportLocalService;
070 }
071
072
077 public void setExportImportLocalService(
078 ExportImportLocalService exportImportLocalService) {
079 this.exportImportLocalService = exportImportLocalService;
080 }
081
082
087 public com.liferay.portlet.exportimport.service.ExportImportService getExportImportService() {
088 return exportImportService;
089 }
090
091
096 public void setExportImportService(
097 com.liferay.portlet.exportimport.service.ExportImportService exportImportService) {
098 this.exportImportService = exportImportService;
099 }
100
101
106 public com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService getExportImportConfigurationLocalService() {
107 return exportImportConfigurationLocalService;
108 }
109
110
115 public void setExportImportConfigurationLocalService(
116 com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService) {
117 this.exportImportConfigurationLocalService = exportImportConfigurationLocalService;
118 }
119
120
125 public com.liferay.portlet.exportimport.service.ExportImportConfigurationService getExportImportConfigurationService() {
126 return exportImportConfigurationService;
127 }
128
129
134 public void setExportImportConfigurationService(
135 com.liferay.portlet.exportimport.service.ExportImportConfigurationService exportImportConfigurationService) {
136 this.exportImportConfigurationService = exportImportConfigurationService;
137 }
138
139
144 public ExportImportConfigurationPersistence getExportImportConfigurationPersistence() {
145 return exportImportConfigurationPersistence;
146 }
147
148
153 public void setExportImportConfigurationPersistence(
154 ExportImportConfigurationPersistence exportImportConfigurationPersistence) {
155 this.exportImportConfigurationPersistence = exportImportConfigurationPersistence;
156 }
157
158
163 public com.liferay.portlet.exportimport.service.StagingLocalService getStagingLocalService() {
164 return stagingLocalService;
165 }
166
167
172 public void setStagingLocalService(
173 com.liferay.portlet.exportimport.service.StagingLocalService stagingLocalService) {
174 this.stagingLocalService = stagingLocalService;
175 }
176
177
182 public com.liferay.portlet.exportimport.service.StagingService getStagingService() {
183 return stagingService;
184 }
185
186
191 public void setStagingService(
192 com.liferay.portlet.exportimport.service.StagingService stagingService) {
193 this.stagingService = stagingService;
194 }
195
196
201 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
202 return counterLocalService;
203 }
204
205
210 public void setCounterLocalService(
211 com.liferay.counter.service.CounterLocalService counterLocalService) {
212 this.counterLocalService = counterLocalService;
213 }
214
215
220 public com.liferay.portal.service.BackgroundTaskLocalService getBackgroundTaskLocalService() {
221 return backgroundTaskLocalService;
222 }
223
224
229 public void setBackgroundTaskLocalService(
230 com.liferay.portal.service.BackgroundTaskLocalService backgroundTaskLocalService) {
231 this.backgroundTaskLocalService = backgroundTaskLocalService;
232 }
233
234
239 public com.liferay.portal.service.BackgroundTaskService getBackgroundTaskService() {
240 return backgroundTaskService;
241 }
242
243
248 public void setBackgroundTaskService(
249 com.liferay.portal.service.BackgroundTaskService backgroundTaskService) {
250 this.backgroundTaskService = backgroundTaskService;
251 }
252
253
258 public BackgroundTaskPersistence getBackgroundTaskPersistence() {
259 return backgroundTaskPersistence;
260 }
261
262
267 public void setBackgroundTaskPersistence(
268 BackgroundTaskPersistence backgroundTaskPersistence) {
269 this.backgroundTaskPersistence = backgroundTaskPersistence;
270 }
271
272
277 public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
278 return classNameLocalService;
279 }
280
281
286 public void setClassNameLocalService(
287 com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
288 this.classNameLocalService = classNameLocalService;
289 }
290
291
296 public com.liferay.portal.service.ClassNameService getClassNameService() {
297 return classNameService;
298 }
299
300
305 public void setClassNameService(
306 com.liferay.portal.service.ClassNameService classNameService) {
307 this.classNameService = classNameService;
308 }
309
310
315 public ClassNamePersistence getClassNamePersistence() {
316 return classNamePersistence;
317 }
318
319
324 public void setClassNamePersistence(
325 ClassNamePersistence classNamePersistence) {
326 this.classNamePersistence = classNamePersistence;
327 }
328
329
334 public com.liferay.portal.service.LayoutLocalService getLayoutLocalService() {
335 return layoutLocalService;
336 }
337
338
343 public void setLayoutLocalService(
344 com.liferay.portal.service.LayoutLocalService layoutLocalService) {
345 this.layoutLocalService = layoutLocalService;
346 }
347
348
353 public com.liferay.portal.service.LayoutService getLayoutService() {
354 return layoutService;
355 }
356
357
362 public void setLayoutService(
363 com.liferay.portal.service.LayoutService layoutService) {
364 this.layoutService = layoutService;
365 }
366
367
372 public LayoutPersistence getLayoutPersistence() {
373 return layoutPersistence;
374 }
375
376
381 public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
382 this.layoutPersistence = layoutPersistence;
383 }
384
385
390 public LayoutFinder getLayoutFinder() {
391 return layoutFinder;
392 }
393
394
399 public void setLayoutFinder(LayoutFinder layoutFinder) {
400 this.layoutFinder = layoutFinder;
401 }
402
403
408 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
409 return resourceLocalService;
410 }
411
412
417 public void setResourceLocalService(
418 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
419 this.resourceLocalService = resourceLocalService;
420 }
421
422
427 public com.liferay.portal.service.UserLocalService getUserLocalService() {
428 return userLocalService;
429 }
430
431
436 public void setUserLocalService(
437 com.liferay.portal.service.UserLocalService userLocalService) {
438 this.userLocalService = userLocalService;
439 }
440
441
446 public com.liferay.portal.service.UserService getUserService() {
447 return userService;
448 }
449
450
455 public void setUserService(
456 com.liferay.portal.service.UserService userService) {
457 this.userService = userService;
458 }
459
460
465 public UserPersistence getUserPersistence() {
466 return userPersistence;
467 }
468
469
474 public void setUserPersistence(UserPersistence userPersistence) {
475 this.userPersistence = userPersistence;
476 }
477
478
483 public UserFinder getUserFinder() {
484 return userFinder;
485 }
486
487
492 public void setUserFinder(UserFinder userFinder) {
493 this.userFinder = userFinder;
494 }
495
496 public void afterPropertiesSet() {
497 }
498
499 public void destroy() {
500 }
501
502
507 @Override
508 public String getBeanIdentifier() {
509 return _beanIdentifier;
510 }
511
512
517 @Override
518 public void setBeanIdentifier(String beanIdentifier) {
519 _beanIdentifier = beanIdentifier;
520 }
521
522
527 protected void runSQL(String sql) {
528 try {
529 DataSource dataSource = InfrastructureUtil.getDataSource();
530
531 DB db = DBFactoryUtil.getDB();
532
533 sql = db.buildSQL(sql);
534 sql = PortalUtil.transformSQL(sql);
535
536 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
537 sql, new int[0]);
538
539 sqlUpdate.update();
540 }
541 catch (Exception e) {
542 throw new SystemException(e);
543 }
544 }
545
546 @BeanReference(type = ExportImportLocalService.class)
547 protected ExportImportLocalService exportImportLocalService;
548 @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportService.class)
549 protected com.liferay.portlet.exportimport.service.ExportImportService exportImportService;
550 @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService.class)
551 protected com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService;
552 @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationService.class)
553 protected com.liferay.portlet.exportimport.service.ExportImportConfigurationService exportImportConfigurationService;
554 @BeanReference(type = ExportImportConfigurationPersistence.class)
555 protected ExportImportConfigurationPersistence exportImportConfigurationPersistence;
556 @BeanReference(type = com.liferay.portlet.exportimport.service.StagingLocalService.class)
557 protected com.liferay.portlet.exportimport.service.StagingLocalService stagingLocalService;
558 @BeanReference(type = com.liferay.portlet.exportimport.service.StagingService.class)
559 protected com.liferay.portlet.exportimport.service.StagingService stagingService;
560 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
561 protected com.liferay.counter.service.CounterLocalService counterLocalService;
562 @BeanReference(type = com.liferay.portal.service.BackgroundTaskLocalService.class)
563 protected com.liferay.portal.service.BackgroundTaskLocalService backgroundTaskLocalService;
564 @BeanReference(type = com.liferay.portal.service.BackgroundTaskService.class)
565 protected com.liferay.portal.service.BackgroundTaskService backgroundTaskService;
566 @BeanReference(type = BackgroundTaskPersistence.class)
567 protected BackgroundTaskPersistence backgroundTaskPersistence;
568 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
569 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
570 @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
571 protected com.liferay.portal.service.ClassNameService classNameService;
572 @BeanReference(type = ClassNamePersistence.class)
573 protected ClassNamePersistence classNamePersistence;
574 @BeanReference(type = com.liferay.portal.service.LayoutLocalService.class)
575 protected com.liferay.portal.service.LayoutLocalService layoutLocalService;
576 @BeanReference(type = com.liferay.portal.service.LayoutService.class)
577 protected com.liferay.portal.service.LayoutService layoutService;
578 @BeanReference(type = LayoutPersistence.class)
579 protected LayoutPersistence layoutPersistence;
580 @BeanReference(type = LayoutFinder.class)
581 protected LayoutFinder layoutFinder;
582 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
583 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
584 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
585 protected com.liferay.portal.service.UserLocalService userLocalService;
586 @BeanReference(type = com.liferay.portal.service.UserService.class)
587 protected com.liferay.portal.service.UserService userService;
588 @BeanReference(type = UserPersistence.class)
589 protected UserPersistence userPersistence;
590 @BeanReference(type = UserFinder.class)
591 protected UserFinder userFinder;
592 private String _beanIdentifier;
593 }