001
014
015 package com.liferay.portal.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.model.ExportImportConfiguration;
025 import com.liferay.portal.service.BaseServiceImpl;
026 import com.liferay.portal.service.ExportImportConfigurationService;
027 import com.liferay.portal.service.persistence.ExportImportConfigurationPersistence;
028 import com.liferay.portal.service.persistence.UserFinder;
029 import com.liferay.portal.service.persistence.UserPersistence;
030 import com.liferay.portal.util.PortalUtil;
031
032 import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
033
034 import javax.sql.DataSource;
035
036
048 public abstract class ExportImportConfigurationServiceBaseImpl
049 extends BaseServiceImpl implements ExportImportConfigurationService,
050 IdentifiableBean {
051
056
057
062 public com.liferay.portal.service.ExportImportConfigurationLocalService getExportImportConfigurationLocalService() {
063 return exportImportConfigurationLocalService;
064 }
065
066
071 public void setExportImportConfigurationLocalService(
072 com.liferay.portal.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService) {
073 this.exportImportConfigurationLocalService = exportImportConfigurationLocalService;
074 }
075
076
081 public com.liferay.portal.service.ExportImportConfigurationService getExportImportConfigurationService() {
082 return exportImportConfigurationService;
083 }
084
085
090 public void setExportImportConfigurationService(
091 com.liferay.portal.service.ExportImportConfigurationService exportImportConfigurationService) {
092 this.exportImportConfigurationService = exportImportConfigurationService;
093 }
094
095
100 public ExportImportConfigurationPersistence getExportImportConfigurationPersistence() {
101 return exportImportConfigurationPersistence;
102 }
103
104
109 public void setExportImportConfigurationPersistence(
110 ExportImportConfigurationPersistence exportImportConfigurationPersistence) {
111 this.exportImportConfigurationPersistence = exportImportConfigurationPersistence;
112 }
113
114
119 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
120 return counterLocalService;
121 }
122
123
128 public void setCounterLocalService(
129 com.liferay.counter.service.CounterLocalService counterLocalService) {
130 this.counterLocalService = counterLocalService;
131 }
132
133
138 public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
139 return trashEntryLocalService;
140 }
141
142
147 public void setTrashEntryLocalService(
148 com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
149 this.trashEntryLocalService = trashEntryLocalService;
150 }
151
152
157 public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
158 return trashEntryService;
159 }
160
161
166 public void setTrashEntryService(
167 com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
168 this.trashEntryService = trashEntryService;
169 }
170
171
176 public TrashEntryPersistence getTrashEntryPersistence() {
177 return trashEntryPersistence;
178 }
179
180
185 public void setTrashEntryPersistence(
186 TrashEntryPersistence trashEntryPersistence) {
187 this.trashEntryPersistence = trashEntryPersistence;
188 }
189
190
195 public com.liferay.portal.service.UserLocalService getUserLocalService() {
196 return userLocalService;
197 }
198
199
204 public void setUserLocalService(
205 com.liferay.portal.service.UserLocalService userLocalService) {
206 this.userLocalService = userLocalService;
207 }
208
209
214 public com.liferay.portal.service.UserService getUserService() {
215 return userService;
216 }
217
218
223 public void setUserService(
224 com.liferay.portal.service.UserService userService) {
225 this.userService = userService;
226 }
227
228
233 public UserPersistence getUserPersistence() {
234 return userPersistence;
235 }
236
237
242 public void setUserPersistence(UserPersistence userPersistence) {
243 this.userPersistence = userPersistence;
244 }
245
246
251 public UserFinder getUserFinder() {
252 return userFinder;
253 }
254
255
260 public void setUserFinder(UserFinder userFinder) {
261 this.userFinder = userFinder;
262 }
263
264 public void afterPropertiesSet() {
265 }
266
267 public void destroy() {
268 }
269
270
275 @Override
276 public String getBeanIdentifier() {
277 return _beanIdentifier;
278 }
279
280
285 @Override
286 public void setBeanIdentifier(String beanIdentifier) {
287 _beanIdentifier = beanIdentifier;
288 }
289
290 protected Class<?> getModelClass() {
291 return ExportImportConfiguration.class;
292 }
293
294 protected String getModelClassName() {
295 return ExportImportConfiguration.class.getName();
296 }
297
298
303 protected void runSQL(String sql) {
304 try {
305 DataSource dataSource = exportImportConfigurationPersistence.getDataSource();
306
307 DB db = DBFactoryUtil.getDB();
308
309 sql = db.buildSQL(sql);
310 sql = PortalUtil.transformSQL(sql);
311
312 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
313 sql, new int[0]);
314
315 sqlUpdate.update();
316 }
317 catch (Exception e) {
318 throw new SystemException(e);
319 }
320 }
321
322 @BeanReference(type = com.liferay.portal.service.ExportImportConfigurationLocalService.class)
323 protected com.liferay.portal.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService;
324 @BeanReference(type = com.liferay.portal.service.ExportImportConfigurationService.class)
325 protected com.liferay.portal.service.ExportImportConfigurationService exportImportConfigurationService;
326 @BeanReference(type = ExportImportConfigurationPersistence.class)
327 protected ExportImportConfigurationPersistence exportImportConfigurationPersistence;
328 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
329 protected com.liferay.counter.service.CounterLocalService counterLocalService;
330 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
331 protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
332 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
333 protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
334 @BeanReference(type = TrashEntryPersistence.class)
335 protected TrashEntryPersistence trashEntryPersistence;
336 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
337 protected com.liferay.portal.service.UserLocalService userLocalService;
338 @BeanReference(type = com.liferay.portal.service.UserService.class)
339 protected com.liferay.portal.service.UserService userService;
340 @BeanReference(type = UserPersistence.class)
341 protected UserPersistence userPersistence;
342 @BeanReference(type = UserFinder.class)
343 protected UserFinder userFinder;
344 private String _beanIdentifier;
345 }