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.portal.kernel.bean.BeanReference;
018    import com.liferay.portal.kernel.dao.db.DB;
019    import com.liferay.portal.kernel.dao.db.DBManagerUtil;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022    import com.liferay.portal.kernel.exception.SystemException;
023    import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
024    import com.liferay.portal.service.BaseServiceImpl;
025    import com.liferay.portal.service.persistence.ClassNamePersistence;
026    import com.liferay.portal.service.persistence.UserFinder;
027    import com.liferay.portal.service.persistence.UserPersistence;
028    import com.liferay.portal.util.PortalUtil;
029    
030    import com.liferay.portlet.exportimport.model.ExportImportConfiguration;
031    import com.liferay.portlet.exportimport.service.ExportImportConfigurationService;
032    import com.liferay.portlet.exportimport.service.persistence.ExportImportConfigurationFinder;
033    import com.liferay.portlet.exportimport.service.persistence.ExportImportConfigurationPersistence;
034    import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
035    
036    import javax.sql.DataSource;
037    
038    /**
039     * Provides the base implementation for the export import configuration remote service.
040     *
041     * <p>
042     * 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}.
043     * </p>
044     *
045     * @author Brian Wing Shun Chan
046     * @see com.liferay.portlet.exportimport.service.impl.ExportImportConfigurationServiceImpl
047     * @see com.liferay.portlet.exportimport.service.ExportImportConfigurationServiceUtil
048     * @generated
049     */
050    public abstract class ExportImportConfigurationServiceBaseImpl
051            extends BaseServiceImpl implements ExportImportConfigurationService,
052                    IdentifiableOSGiService {
053            /*
054             * NOTE FOR DEVELOPERS:
055             *
056             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.exportimport.service.ExportImportConfigurationServiceUtil} to access the export import configuration remote service.
057             */
058    
059            /**
060             * Returns the export import local service.
061             *
062             * @return the export import local service
063             */
064            public com.liferay.portlet.exportimport.service.ExportImportLocalService getExportImportLocalService() {
065                    return exportImportLocalService;
066            }
067    
068            /**
069             * Sets the export import local service.
070             *
071             * @param exportImportLocalService the export import local service
072             */
073            public void setExportImportLocalService(
074                    com.liferay.portlet.exportimport.service.ExportImportLocalService exportImportLocalService) {
075                    this.exportImportLocalService = exportImportLocalService;
076            }
077    
078            /**
079             * Returns the export import remote service.
080             *
081             * @return the export import remote service
082             */
083            public com.liferay.portlet.exportimport.service.ExportImportService getExportImportService() {
084                    return exportImportService;
085            }
086    
087            /**
088             * Sets the export import remote service.
089             *
090             * @param exportImportService the export import remote service
091             */
092            public void setExportImportService(
093                    com.liferay.portlet.exportimport.service.ExportImportService exportImportService) {
094                    this.exportImportService = exportImportService;
095            }
096    
097            /**
098             * Returns the export import configuration local service.
099             *
100             * @return the export import configuration local service
101             */
102            public com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService getExportImportConfigurationLocalService() {
103                    return exportImportConfigurationLocalService;
104            }
105    
106            /**
107             * Sets the export import configuration local service.
108             *
109             * @param exportImportConfigurationLocalService the export import configuration local service
110             */
111            public void setExportImportConfigurationLocalService(
112                    com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService) {
113                    this.exportImportConfigurationLocalService = exportImportConfigurationLocalService;
114            }
115    
116            /**
117             * Returns the export import configuration remote service.
118             *
119             * @return the export import configuration remote service
120             */
121            public ExportImportConfigurationService getExportImportConfigurationService() {
122                    return exportImportConfigurationService;
123            }
124    
125            /**
126             * Sets the export import configuration remote service.
127             *
128             * @param exportImportConfigurationService the export import configuration remote service
129             */
130            public void setExportImportConfigurationService(
131                    ExportImportConfigurationService exportImportConfigurationService) {
132                    this.exportImportConfigurationService = exportImportConfigurationService;
133            }
134    
135            /**
136             * Returns the export import configuration persistence.
137             *
138             * @return the export import configuration persistence
139             */
140            public ExportImportConfigurationPersistence getExportImportConfigurationPersistence() {
141                    return exportImportConfigurationPersistence;
142            }
143    
144            /**
145             * Sets the export import configuration persistence.
146             *
147             * @param exportImportConfigurationPersistence the export import configuration persistence
148             */
149            public void setExportImportConfigurationPersistence(
150                    ExportImportConfigurationPersistence exportImportConfigurationPersistence) {
151                    this.exportImportConfigurationPersistence = exportImportConfigurationPersistence;
152            }
153    
154            /**
155             * Returns the export import configuration finder.
156             *
157             * @return the export import configuration finder
158             */
159            public ExportImportConfigurationFinder getExportImportConfigurationFinder() {
160                    return exportImportConfigurationFinder;
161            }
162    
163            /**
164             * Sets the export import configuration finder.
165             *
166             * @param exportImportConfigurationFinder the export import configuration finder
167             */
168            public void setExportImportConfigurationFinder(
169                    ExportImportConfigurationFinder exportImportConfigurationFinder) {
170                    this.exportImportConfigurationFinder = exportImportConfigurationFinder;
171            }
172    
173            /**
174             * Returns the staging local service.
175             *
176             * @return the staging local service
177             */
178            public com.liferay.portlet.exportimport.service.StagingLocalService getStagingLocalService() {
179                    return stagingLocalService;
180            }
181    
182            /**
183             * Sets the staging local service.
184             *
185             * @param stagingLocalService the staging local service
186             */
187            public void setStagingLocalService(
188                    com.liferay.portlet.exportimport.service.StagingLocalService stagingLocalService) {
189                    this.stagingLocalService = stagingLocalService;
190            }
191    
192            /**
193             * Returns the staging remote service.
194             *
195             * @return the staging remote service
196             */
197            public com.liferay.portlet.exportimport.service.StagingService getStagingService() {
198                    return stagingService;
199            }
200    
201            /**
202             * Sets the staging remote service.
203             *
204             * @param stagingService the staging remote service
205             */
206            public void setStagingService(
207                    com.liferay.portlet.exportimport.service.StagingService stagingService) {
208                    this.stagingService = stagingService;
209            }
210    
211            /**
212             * Returns the counter local service.
213             *
214             * @return the counter local service
215             */
216            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
217                    return counterLocalService;
218            }
219    
220            /**
221             * Sets the counter local service.
222             *
223             * @param counterLocalService the counter local service
224             */
225            public void setCounterLocalService(
226                    com.liferay.counter.service.CounterLocalService counterLocalService) {
227                    this.counterLocalService = counterLocalService;
228            }
229    
230            /**
231             * Returns the class name local service.
232             *
233             * @return the class name local service
234             */
235            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
236                    return classNameLocalService;
237            }
238    
239            /**
240             * Sets the class name local service.
241             *
242             * @param classNameLocalService the class name local service
243             */
244            public void setClassNameLocalService(
245                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
246                    this.classNameLocalService = classNameLocalService;
247            }
248    
249            /**
250             * Returns the class name remote service.
251             *
252             * @return the class name remote service
253             */
254            public com.liferay.portal.service.ClassNameService getClassNameService() {
255                    return classNameService;
256            }
257    
258            /**
259             * Sets the class name remote service.
260             *
261             * @param classNameService the class name remote service
262             */
263            public void setClassNameService(
264                    com.liferay.portal.service.ClassNameService classNameService) {
265                    this.classNameService = classNameService;
266            }
267    
268            /**
269             * Returns the class name persistence.
270             *
271             * @return the class name persistence
272             */
273            public ClassNamePersistence getClassNamePersistence() {
274                    return classNamePersistence;
275            }
276    
277            /**
278             * Sets the class name persistence.
279             *
280             * @param classNamePersistence the class name persistence
281             */
282            public void setClassNamePersistence(
283                    ClassNamePersistence classNamePersistence) {
284                    this.classNamePersistence = classNamePersistence;
285            }
286    
287            /**
288             * Returns the resource local service.
289             *
290             * @return the resource local service
291             */
292            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
293                    return resourceLocalService;
294            }
295    
296            /**
297             * Sets the resource local service.
298             *
299             * @param resourceLocalService the resource local service
300             */
301            public void setResourceLocalService(
302                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
303                    this.resourceLocalService = resourceLocalService;
304            }
305    
306            /**
307             * Returns the user local service.
308             *
309             * @return the user local service
310             */
311            public com.liferay.portal.service.UserLocalService getUserLocalService() {
312                    return userLocalService;
313            }
314    
315            /**
316             * Sets the user local service.
317             *
318             * @param userLocalService the user local service
319             */
320            public void setUserLocalService(
321                    com.liferay.portal.service.UserLocalService userLocalService) {
322                    this.userLocalService = userLocalService;
323            }
324    
325            /**
326             * Returns the user remote service.
327             *
328             * @return the user remote service
329             */
330            public com.liferay.portal.service.UserService getUserService() {
331                    return userService;
332            }
333    
334            /**
335             * Sets the user remote service.
336             *
337             * @param userService the user remote service
338             */
339            public void setUserService(
340                    com.liferay.portal.service.UserService userService) {
341                    this.userService = userService;
342            }
343    
344            /**
345             * Returns the user persistence.
346             *
347             * @return the user persistence
348             */
349            public UserPersistence getUserPersistence() {
350                    return userPersistence;
351            }
352    
353            /**
354             * Sets the user persistence.
355             *
356             * @param userPersistence the user persistence
357             */
358            public void setUserPersistence(UserPersistence userPersistence) {
359                    this.userPersistence = userPersistence;
360            }
361    
362            /**
363             * Returns the user finder.
364             *
365             * @return the user finder
366             */
367            public UserFinder getUserFinder() {
368                    return userFinder;
369            }
370    
371            /**
372             * Sets the user finder.
373             *
374             * @param userFinder the user finder
375             */
376            public void setUserFinder(UserFinder userFinder) {
377                    this.userFinder = userFinder;
378            }
379    
380            /**
381             * Returns the trash entry local service.
382             *
383             * @return the trash entry local service
384             */
385            public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
386                    return trashEntryLocalService;
387            }
388    
389            /**
390             * Sets the trash entry local service.
391             *
392             * @param trashEntryLocalService the trash entry local service
393             */
394            public void setTrashEntryLocalService(
395                    com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
396                    this.trashEntryLocalService = trashEntryLocalService;
397            }
398    
399            /**
400             * Returns the trash entry remote service.
401             *
402             * @return the trash entry remote service
403             */
404            public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
405                    return trashEntryService;
406            }
407    
408            /**
409             * Sets the trash entry remote service.
410             *
411             * @param trashEntryService the trash entry remote service
412             */
413            public void setTrashEntryService(
414                    com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
415                    this.trashEntryService = trashEntryService;
416            }
417    
418            /**
419             * Returns the trash entry persistence.
420             *
421             * @return the trash entry persistence
422             */
423            public TrashEntryPersistence getTrashEntryPersistence() {
424                    return trashEntryPersistence;
425            }
426    
427            /**
428             * Sets the trash entry persistence.
429             *
430             * @param trashEntryPersistence the trash entry persistence
431             */
432            public void setTrashEntryPersistence(
433                    TrashEntryPersistence trashEntryPersistence) {
434                    this.trashEntryPersistence = trashEntryPersistence;
435            }
436    
437            public void afterPropertiesSet() {
438            }
439    
440            public void destroy() {
441            }
442    
443            /**
444             * Returns the OSGi service identifier.
445             *
446             * @return the OSGi service identifier
447             */
448            @Override
449            public String getOSGiServiceIdentifier() {
450                    return ExportImportConfigurationService.class.getName();
451            }
452    
453            protected Class<?> getModelClass() {
454                    return ExportImportConfiguration.class;
455            }
456    
457            protected String getModelClassName() {
458                    return ExportImportConfiguration.class.getName();
459            }
460    
461            /**
462             * Performs a SQL query.
463             *
464             * @param sql the sql query
465             */
466            protected void runSQL(String sql) {
467                    try {
468                            DataSource dataSource = exportImportConfigurationPersistence.getDataSource();
469    
470                            DB db = DBManagerUtil.getDB();
471    
472                            sql = db.buildSQL(sql);
473                            sql = PortalUtil.transformSQL(sql);
474    
475                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
476                                            sql, new int[0]);
477    
478                            sqlUpdate.update();
479                    }
480                    catch (Exception e) {
481                            throw new SystemException(e);
482                    }
483            }
484    
485            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportLocalService.class)
486            protected com.liferay.portlet.exportimport.service.ExportImportLocalService exportImportLocalService;
487            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportService.class)
488            protected com.liferay.portlet.exportimport.service.ExportImportService exportImportService;
489            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService.class)
490            protected com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService;
491            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationService.class)
492            protected ExportImportConfigurationService exportImportConfigurationService;
493            @BeanReference(type = ExportImportConfigurationPersistence.class)
494            protected ExportImportConfigurationPersistence exportImportConfigurationPersistence;
495            @BeanReference(type = ExportImportConfigurationFinder.class)
496            protected ExportImportConfigurationFinder exportImportConfigurationFinder;
497            @BeanReference(type = com.liferay.portlet.exportimport.service.StagingLocalService.class)
498            protected com.liferay.portlet.exportimport.service.StagingLocalService stagingLocalService;
499            @BeanReference(type = com.liferay.portlet.exportimport.service.StagingService.class)
500            protected com.liferay.portlet.exportimport.service.StagingService stagingService;
501            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
502            protected com.liferay.counter.service.CounterLocalService counterLocalService;
503            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
504            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
505            @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
506            protected com.liferay.portal.service.ClassNameService classNameService;
507            @BeanReference(type = ClassNamePersistence.class)
508            protected ClassNamePersistence classNamePersistence;
509            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
510            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
511            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
512            protected com.liferay.portal.service.UserLocalService userLocalService;
513            @BeanReference(type = com.liferay.portal.service.UserService.class)
514            protected com.liferay.portal.service.UserService userService;
515            @BeanReference(type = UserPersistence.class)
516            protected UserPersistence userPersistence;
517            @BeanReference(type = UserFinder.class)
518            protected UserFinder userFinder;
519            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
520            protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
521            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
522            protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
523            @BeanReference(type = TrashEntryPersistence.class)
524            protected TrashEntryPersistence trashEntryPersistence;
525    }