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.dao.db.DB;
021 import com.liferay.portal.kernel.dao.db.DBManagerUtil;
022 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
023 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
024 import com.liferay.portal.kernel.exception.SystemException;
025 import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
026 import com.liferay.portal.kernel.util.InfrastructureUtil;
027 import com.liferay.portal.service.BaseLocalServiceImpl;
028 import com.liferay.portal.service.persistence.ClassNamePersistence;
029 import com.liferay.portal.service.persistence.LayoutFinder;
030 import com.liferay.portal.service.persistence.LayoutPersistence;
031 import com.liferay.portal.service.persistence.UserFinder;
032 import com.liferay.portal.service.persistence.UserPersistence;
033 import com.liferay.portal.util.PortalUtil;
034
035 import com.liferay.portlet.exportimport.service.ExportImportLocalService;
036 import com.liferay.portlet.exportimport.service.persistence.ExportImportConfigurationFinder;
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 IdentifiableOSGiService {
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.ExportImportConfigurationLocalService getExportImportConfigurationLocalService() {
088 return exportImportConfigurationLocalService;
089 }
090
091
096 public void setExportImportConfigurationLocalService(
097 com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService) {
098 this.exportImportConfigurationLocalService = exportImportConfigurationLocalService;
099 }
100
101
106 public ExportImportConfigurationPersistence getExportImportConfigurationPersistence() {
107 return exportImportConfigurationPersistence;
108 }
109
110
115 public void setExportImportConfigurationPersistence(
116 ExportImportConfigurationPersistence exportImportConfigurationPersistence) {
117 this.exportImportConfigurationPersistence = exportImportConfigurationPersistence;
118 }
119
120
125 public ExportImportConfigurationFinder getExportImportConfigurationFinder() {
126 return exportImportConfigurationFinder;
127 }
128
129
134 public void setExportImportConfigurationFinder(
135 ExportImportConfigurationFinder exportImportConfigurationFinder) {
136 this.exportImportConfigurationFinder = exportImportConfigurationFinder;
137 }
138
139
144 public com.liferay.portlet.exportimport.service.StagingLocalService getStagingLocalService() {
145 return stagingLocalService;
146 }
147
148
153 public void setStagingLocalService(
154 com.liferay.portlet.exportimport.service.StagingLocalService stagingLocalService) {
155 this.stagingLocalService = stagingLocalService;
156 }
157
158
163 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
164 return counterLocalService;
165 }
166
167
172 public void setCounterLocalService(
173 com.liferay.counter.service.CounterLocalService counterLocalService) {
174 this.counterLocalService = counterLocalService;
175 }
176
177
182 public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
183 return classNameLocalService;
184 }
185
186
191 public void setClassNameLocalService(
192 com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
193 this.classNameLocalService = classNameLocalService;
194 }
195
196
201 public ClassNamePersistence getClassNamePersistence() {
202 return classNamePersistence;
203 }
204
205
210 public void setClassNamePersistence(
211 ClassNamePersistence classNamePersistence) {
212 this.classNamePersistence = classNamePersistence;
213 }
214
215
220 public com.liferay.portal.service.LayoutLocalService getLayoutLocalService() {
221 return layoutLocalService;
222 }
223
224
229 public void setLayoutLocalService(
230 com.liferay.portal.service.LayoutLocalService layoutLocalService) {
231 this.layoutLocalService = layoutLocalService;
232 }
233
234
239 public LayoutPersistence getLayoutPersistence() {
240 return layoutPersistence;
241 }
242
243
248 public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
249 this.layoutPersistence = layoutPersistence;
250 }
251
252
257 public LayoutFinder getLayoutFinder() {
258 return layoutFinder;
259 }
260
261
266 public void setLayoutFinder(LayoutFinder layoutFinder) {
267 this.layoutFinder = layoutFinder;
268 }
269
270
275 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
276 return resourceLocalService;
277 }
278
279
284 public void setResourceLocalService(
285 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
286 this.resourceLocalService = resourceLocalService;
287 }
288
289
294 public com.liferay.portal.service.UserLocalService getUserLocalService() {
295 return userLocalService;
296 }
297
298
303 public void setUserLocalService(
304 com.liferay.portal.service.UserLocalService userLocalService) {
305 this.userLocalService = userLocalService;
306 }
307
308
313 public UserPersistence getUserPersistence() {
314 return userPersistence;
315 }
316
317
322 public void setUserPersistence(UserPersistence userPersistence) {
323 this.userPersistence = userPersistence;
324 }
325
326
331 public UserFinder getUserFinder() {
332 return userFinder;
333 }
334
335
340 public void setUserFinder(UserFinder userFinder) {
341 this.userFinder = userFinder;
342 }
343
344 public void afterPropertiesSet() {
345 }
346
347 public void destroy() {
348 }
349
350
355 @Override
356 public String getOSGiServiceIdentifier() {
357 return ExportImportLocalService.class.getName();
358 }
359
360
365 protected void runSQL(String sql) {
366 try {
367 DataSource dataSource = InfrastructureUtil.getDataSource();
368
369 DB db = DBManagerUtil.getDB();
370
371 sql = db.buildSQL(sql);
372 sql = PortalUtil.transformSQL(sql);
373
374 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
375 sql, new int[0]);
376
377 sqlUpdate.update();
378 }
379 catch (Exception e) {
380 throw new SystemException(e);
381 }
382 }
383
384 @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportLocalService.class)
385 protected ExportImportLocalService exportImportLocalService;
386 @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService.class)
387 protected com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService;
388 @BeanReference(type = ExportImportConfigurationPersistence.class)
389 protected ExportImportConfigurationPersistence exportImportConfigurationPersistence;
390 @BeanReference(type = ExportImportConfigurationFinder.class)
391 protected ExportImportConfigurationFinder exportImportConfigurationFinder;
392 @BeanReference(type = com.liferay.portlet.exportimport.service.StagingLocalService.class)
393 protected com.liferay.portlet.exportimport.service.StagingLocalService stagingLocalService;
394 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
395 protected com.liferay.counter.service.CounterLocalService counterLocalService;
396 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
397 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
398 @BeanReference(type = ClassNamePersistence.class)
399 protected ClassNamePersistence classNamePersistence;
400 @BeanReference(type = com.liferay.portal.service.LayoutLocalService.class)
401 protected com.liferay.portal.service.LayoutLocalService layoutLocalService;
402 @BeanReference(type = LayoutPersistence.class)
403 protected LayoutPersistence layoutPersistence;
404 @BeanReference(type = LayoutFinder.class)
405 protected LayoutFinder layoutFinder;
406 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
407 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
408 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
409 protected com.liferay.portal.service.UserLocalService userLocalService;
410 @BeanReference(type = UserPersistence.class)
411 protected UserPersistence userPersistence;
412 @BeanReference(type = UserFinder.class)
413 protected UserFinder userFinder;
414 }