001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
040     * Provides the base implementation for the export import configuration remote service.
041     *
042     * <p>
043     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portlet.exportimport.service.impl.ExportImportConfigurationServiceImpl}.
044     * </p>
045     *
046     * @author Brian Wing Shun Chan
047     * @see com.liferay.portlet.exportimport.service.impl.ExportImportConfigurationServiceImpl
048     * @see com.liferay.exportimport.kernel.service.ExportImportConfigurationServiceUtil
049     * @generated
050     */
051    public abstract class ExportImportConfigurationServiceBaseImpl
052            extends BaseServiceImpl implements ExportImportConfigurationService,
053                    IdentifiableOSGiService {
054            /*
055             * NOTE FOR DEVELOPERS:
056             *
057             * Never modify or reference this class directly. Always use {@link com.liferay.exportimport.kernel.service.ExportImportConfigurationServiceUtil} to access the export import configuration remote service.
058             */
059    
060            /**
061             * Returns the export import local service.
062             *
063             * @return the export import local service
064             */
065            public com.liferay.exportimport.kernel.service.ExportImportLocalService getExportImportLocalService() {
066                    return exportImportLocalService;
067            }
068    
069            /**
070             * Sets the export import local service.
071             *
072             * @param exportImportLocalService the export import local service
073             */
074            public void setExportImportLocalService(
075                    com.liferay.exportimport.kernel.service.ExportImportLocalService exportImportLocalService) {
076                    this.exportImportLocalService = exportImportLocalService;
077            }
078    
079            /**
080             * Returns the export import remote service.
081             *
082             * @return the export import remote service
083             */
084            public com.liferay.exportimport.kernel.service.ExportImportService getExportImportService() {
085                    return exportImportService;
086            }
087    
088            /**
089             * Sets the export import remote service.
090             *
091             * @param exportImportService the export import remote service
092             */
093            public void setExportImportService(
094                    com.liferay.exportimport.kernel.service.ExportImportService exportImportService) {
095                    this.exportImportService = exportImportService;
096            }
097    
098            /**
099             * Returns the export import configuration local service.
100             *
101             * @return the export import configuration local service
102             */
103            public com.liferay.exportimport.kernel.service.ExportImportConfigurationLocalService getExportImportConfigurationLocalService() {
104                    return exportImportConfigurationLocalService;
105            }
106    
107            /**
108             * Sets the export import configuration local service.
109             *
110             * @param exportImportConfigurationLocalService the export import configuration local service
111             */
112            public void setExportImportConfigurationLocalService(
113                    com.liferay.exportimport.kernel.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService) {
114                    this.exportImportConfigurationLocalService = exportImportConfigurationLocalService;
115            }
116    
117            /**
118             * Returns the export import configuration remote service.
119             *
120             * @return the export import configuration remote service
121             */
122            public ExportImportConfigurationService getExportImportConfigurationService() {
123                    return exportImportConfigurationService;
124            }
125    
126            /**
127             * Sets the export import configuration remote service.
128             *
129             * @param exportImportConfigurationService the export import configuration remote service
130             */
131            public void setExportImportConfigurationService(
132                    ExportImportConfigurationService exportImportConfigurationService) {
133                    this.exportImportConfigurationService = exportImportConfigurationService;
134            }
135    
136            /**
137             * Returns the export import configuration persistence.
138             *
139             * @return the export import configuration persistence
140             */
141            public ExportImportConfigurationPersistence getExportImportConfigurationPersistence() {
142                    return exportImportConfigurationPersistence;
143            }
144    
145            /**
146             * Sets the export import configuration persistence.
147             *
148             * @param exportImportConfigurationPersistence the export import configuration persistence
149             */
150            public void setExportImportConfigurationPersistence(
151                    ExportImportConfigurationPersistence exportImportConfigurationPersistence) {
152                    this.exportImportConfigurationPersistence = exportImportConfigurationPersistence;
153            }
154    
155            /**
156             * Returns the export import configuration finder.
157             *
158             * @return the export import configuration finder
159             */
160            public ExportImportConfigurationFinder getExportImportConfigurationFinder() {
161                    return exportImportConfigurationFinder;
162            }
163    
164            /**
165             * Sets the export import configuration finder.
166             *
167             * @param exportImportConfigurationFinder the export import configuration finder
168             */
169            public void setExportImportConfigurationFinder(
170                    ExportImportConfigurationFinder exportImportConfigurationFinder) {
171                    this.exportImportConfigurationFinder = exportImportConfigurationFinder;
172            }
173    
174            /**
175             * Returns the staging local service.
176             *
177             * @return the staging local service
178             */
179            public com.liferay.exportimport.kernel.service.StagingLocalService getStagingLocalService() {
180                    return stagingLocalService;
181            }
182    
183            /**
184             * Sets the staging local service.
185             *
186             * @param stagingLocalService the staging local service
187             */
188            public void setStagingLocalService(
189                    com.liferay.exportimport.kernel.service.StagingLocalService stagingLocalService) {
190                    this.stagingLocalService = stagingLocalService;
191            }
192    
193            /**
194             * Returns the staging remote service.
195             *
196             * @return the staging remote service
197             */
198            public com.liferay.exportimport.kernel.service.StagingService getStagingService() {
199                    return stagingService;
200            }
201    
202            /**
203             * Sets the staging remote service.
204             *
205             * @param stagingService the staging remote service
206             */
207            public void setStagingService(
208                    com.liferay.exportimport.kernel.service.StagingService stagingService) {
209                    this.stagingService = stagingService;
210            }
211    
212            /**
213             * Returns the counter local service.
214             *
215             * @return the counter local service
216             */
217            public com.liferay.counter.kernel.service.CounterLocalService getCounterLocalService() {
218                    return counterLocalService;
219            }
220    
221            /**
222             * Sets the counter local service.
223             *
224             * @param counterLocalService the counter local service
225             */
226            public void setCounterLocalService(
227                    com.liferay.counter.kernel.service.CounterLocalService counterLocalService) {
228                    this.counterLocalService = counterLocalService;
229            }
230    
231            /**
232             * Returns the class name local service.
233             *
234             * @return the class name local service
235             */
236            public com.liferay.portal.kernel.service.ClassNameLocalService getClassNameLocalService() {
237                    return classNameLocalService;
238            }
239    
240            /**
241             * Sets the class name local service.
242             *
243             * @param classNameLocalService the class name local service
244             */
245            public void setClassNameLocalService(
246                    com.liferay.portal.kernel.service.ClassNameLocalService classNameLocalService) {
247                    this.classNameLocalService = classNameLocalService;
248            }
249    
250            /**
251             * Returns the class name remote service.
252             *
253             * @return the class name remote service
254             */
255            public com.liferay.portal.kernel.service.ClassNameService getClassNameService() {
256                    return classNameService;
257            }
258    
259            /**
260             * Sets the class name remote service.
261             *
262             * @param classNameService the class name remote service
263             */
264            public void setClassNameService(
265                    com.liferay.portal.kernel.service.ClassNameService classNameService) {
266                    this.classNameService = classNameService;
267            }
268    
269            /**
270             * Returns the class name persistence.
271             *
272             * @return the class name persistence
273             */
274            public ClassNamePersistence getClassNamePersistence() {
275                    return classNamePersistence;
276            }
277    
278            /**
279             * Sets the class name persistence.
280             *
281             * @param classNamePersistence the class name persistence
282             */
283            public void setClassNamePersistence(
284                    ClassNamePersistence classNamePersistence) {
285                    this.classNamePersistence = classNamePersistence;
286            }
287    
288            /**
289             * Returns the resource local service.
290             *
291             * @return the resource local service
292             */
293            public com.liferay.portal.kernel.service.ResourceLocalService getResourceLocalService() {
294                    return resourceLocalService;
295            }
296    
297            /**
298             * Sets the resource local service.
299             *
300             * @param resourceLocalService the resource local service
301             */
302            public void setResourceLocalService(
303                    com.liferay.portal.kernel.service.ResourceLocalService resourceLocalService) {
304                    this.resourceLocalService = resourceLocalService;
305            }
306    
307            /**
308             * Returns the user local service.
309             *
310             * @return the user local service
311             */
312            public com.liferay.portal.kernel.service.UserLocalService getUserLocalService() {
313                    return userLocalService;
314            }
315    
316            /**
317             * Sets the user local service.
318             *
319             * @param userLocalService the user local service
320             */
321            public void setUserLocalService(
322                    com.liferay.portal.kernel.service.UserLocalService userLocalService) {
323                    this.userLocalService = userLocalService;
324            }
325    
326            /**
327             * Returns the user remote service.
328             *
329             * @return the user remote service
330             */
331            public com.liferay.portal.kernel.service.UserService getUserService() {
332                    return userService;
333            }
334    
335            /**
336             * Sets the user remote service.
337             *
338             * @param userService the user remote service
339             */
340            public void setUserService(
341                    com.liferay.portal.kernel.service.UserService userService) {
342                    this.userService = userService;
343            }
344    
345            /**
346             * Returns the user persistence.
347             *
348             * @return the user persistence
349             */
350            public UserPersistence getUserPersistence() {
351                    return userPersistence;
352            }
353    
354            /**
355             * Sets the user persistence.
356             *
357             * @param userPersistence the user persistence
358             */
359            public void setUserPersistence(UserPersistence userPersistence) {
360                    this.userPersistence = userPersistence;
361            }
362    
363            /**
364             * Returns the user finder.
365             *
366             * @return the user finder
367             */
368            public UserFinder getUserFinder() {
369                    return userFinder;
370            }
371    
372            /**
373             * Sets the user finder.
374             *
375             * @param userFinder the user finder
376             */
377            public void setUserFinder(UserFinder userFinder) {
378                    this.userFinder = userFinder;
379            }
380    
381            /**
382             * Returns the trash entry local service.
383             *
384             * @return the trash entry local service
385             */
386            public com.liferay.trash.kernel.service.TrashEntryLocalService getTrashEntryLocalService() {
387                    return trashEntryLocalService;
388            }
389    
390            /**
391             * Sets the trash entry local service.
392             *
393             * @param trashEntryLocalService the trash entry local service
394             */
395            public void setTrashEntryLocalService(
396                    com.liferay.trash.kernel.service.TrashEntryLocalService trashEntryLocalService) {
397                    this.trashEntryLocalService = trashEntryLocalService;
398            }
399    
400            /**
401             * Returns the trash entry remote service.
402             *
403             * @return the trash entry remote service
404             */
405            public com.liferay.trash.kernel.service.TrashEntryService getTrashEntryService() {
406                    return trashEntryService;
407            }
408    
409            /**
410             * Sets the trash entry remote service.
411             *
412             * @param trashEntryService the trash entry remote service
413             */
414            public void setTrashEntryService(
415                    com.liferay.trash.kernel.service.TrashEntryService trashEntryService) {
416                    this.trashEntryService = trashEntryService;
417            }
418    
419            /**
420             * Returns the trash entry persistence.
421             *
422             * @return the trash entry persistence
423             */
424            public TrashEntryPersistence getTrashEntryPersistence() {
425                    return trashEntryPersistence;
426            }
427    
428            /**
429             * Sets the trash entry persistence.
430             *
431             * @param trashEntryPersistence the trash entry persistence
432             */
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            /**
445             * Returns the OSGi service identifier.
446             *
447             * @return the OSGi service identifier
448             */
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            /**
463             * Performs a SQL query.
464             *
465             * @param sql the sql query
466             */
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, new int[0]);
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 = com.liferay.exportimport.kernel.service.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    }