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 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.ExportImportConfigurationPersistence;
037    
038    import javax.sql.DataSource;
039    
040    /**
041     * Provides the base implementation for the export import local service.
042     *
043     * <p>
044     * 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.ExportImportLocalServiceImpl}.
045     * </p>
046     *
047     * @author Brian Wing Shun Chan
048     * @see com.liferay.portlet.exportimport.service.impl.ExportImportLocalServiceImpl
049     * @see com.liferay.portlet.exportimport.service.ExportImportLocalServiceUtil
050     * @generated
051     */
052    @ProviderType
053    public abstract class ExportImportLocalServiceBaseImpl
054            extends BaseLocalServiceImpl implements ExportImportLocalService,
055                    IdentifiableOSGiService {
056            /*
057             * NOTE FOR DEVELOPERS:
058             *
059             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.exportimport.service.ExportImportLocalServiceUtil} to access the export import local service.
060             */
061    
062            /**
063             * Returns the export import local service.
064             *
065             * @return the export import local service
066             */
067            public ExportImportLocalService getExportImportLocalService() {
068                    return exportImportLocalService;
069            }
070    
071            /**
072             * Sets the export import local service.
073             *
074             * @param exportImportLocalService the export import local service
075             */
076            public void setExportImportLocalService(
077                    ExportImportLocalService exportImportLocalService) {
078                    this.exportImportLocalService = exportImportLocalService;
079            }
080    
081            /**
082             * Returns the export import configuration local service.
083             *
084             * @return the export import configuration local service
085             */
086            public com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService getExportImportConfigurationLocalService() {
087                    return exportImportConfigurationLocalService;
088            }
089    
090            /**
091             * Sets the export import configuration local service.
092             *
093             * @param exportImportConfigurationLocalService the export import configuration local service
094             */
095            public void setExportImportConfigurationLocalService(
096                    com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService) {
097                    this.exportImportConfigurationLocalService = exportImportConfigurationLocalService;
098            }
099    
100            /**
101             * Returns the export import configuration persistence.
102             *
103             * @return the export import configuration persistence
104             */
105            public ExportImportConfigurationPersistence getExportImportConfigurationPersistence() {
106                    return exportImportConfigurationPersistence;
107            }
108    
109            /**
110             * Sets the export import configuration persistence.
111             *
112             * @param exportImportConfigurationPersistence the export import configuration persistence
113             */
114            public void setExportImportConfigurationPersistence(
115                    ExportImportConfigurationPersistence exportImportConfigurationPersistence) {
116                    this.exportImportConfigurationPersistence = exportImportConfigurationPersistence;
117            }
118    
119            /**
120             * Returns the staging local service.
121             *
122             * @return the staging local service
123             */
124            public com.liferay.portlet.exportimport.service.StagingLocalService getStagingLocalService() {
125                    return stagingLocalService;
126            }
127    
128            /**
129             * Sets the staging local service.
130             *
131             * @param stagingLocalService the staging local service
132             */
133            public void setStagingLocalService(
134                    com.liferay.portlet.exportimport.service.StagingLocalService stagingLocalService) {
135                    this.stagingLocalService = stagingLocalService;
136            }
137    
138            /**
139             * Returns the counter local service.
140             *
141             * @return the counter local service
142             */
143            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
144                    return counterLocalService;
145            }
146    
147            /**
148             * Sets the counter local service.
149             *
150             * @param counterLocalService the counter local service
151             */
152            public void setCounterLocalService(
153                    com.liferay.counter.service.CounterLocalService counterLocalService) {
154                    this.counterLocalService = counterLocalService;
155            }
156    
157            /**
158             * Returns the class name local service.
159             *
160             * @return the class name local service
161             */
162            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
163                    return classNameLocalService;
164            }
165    
166            /**
167             * Sets the class name local service.
168             *
169             * @param classNameLocalService the class name local service
170             */
171            public void setClassNameLocalService(
172                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
173                    this.classNameLocalService = classNameLocalService;
174            }
175    
176            /**
177             * Returns the class name persistence.
178             *
179             * @return the class name persistence
180             */
181            public ClassNamePersistence getClassNamePersistence() {
182                    return classNamePersistence;
183            }
184    
185            /**
186             * Sets the class name persistence.
187             *
188             * @param classNamePersistence the class name persistence
189             */
190            public void setClassNamePersistence(
191                    ClassNamePersistence classNamePersistence) {
192                    this.classNamePersistence = classNamePersistence;
193            }
194    
195            /**
196             * Returns the layout local service.
197             *
198             * @return the layout local service
199             */
200            public com.liferay.portal.service.LayoutLocalService getLayoutLocalService() {
201                    return layoutLocalService;
202            }
203    
204            /**
205             * Sets the layout local service.
206             *
207             * @param layoutLocalService the layout local service
208             */
209            public void setLayoutLocalService(
210                    com.liferay.portal.service.LayoutLocalService layoutLocalService) {
211                    this.layoutLocalService = layoutLocalService;
212            }
213    
214            /**
215             * Returns the layout persistence.
216             *
217             * @return the layout persistence
218             */
219            public LayoutPersistence getLayoutPersistence() {
220                    return layoutPersistence;
221            }
222    
223            /**
224             * Sets the layout persistence.
225             *
226             * @param layoutPersistence the layout persistence
227             */
228            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
229                    this.layoutPersistence = layoutPersistence;
230            }
231    
232            /**
233             * Returns the layout finder.
234             *
235             * @return the layout finder
236             */
237            public LayoutFinder getLayoutFinder() {
238                    return layoutFinder;
239            }
240    
241            /**
242             * Sets the layout finder.
243             *
244             * @param layoutFinder the layout finder
245             */
246            public void setLayoutFinder(LayoutFinder layoutFinder) {
247                    this.layoutFinder = layoutFinder;
248            }
249    
250            /**
251             * Returns the resource local service.
252             *
253             * @return the resource local service
254             */
255            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
256                    return resourceLocalService;
257            }
258    
259            /**
260             * Sets the resource local service.
261             *
262             * @param resourceLocalService the resource local service
263             */
264            public void setResourceLocalService(
265                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
266                    this.resourceLocalService = resourceLocalService;
267            }
268    
269            /**
270             * Returns the user local service.
271             *
272             * @return the user local service
273             */
274            public com.liferay.portal.service.UserLocalService getUserLocalService() {
275                    return userLocalService;
276            }
277    
278            /**
279             * Sets the user local service.
280             *
281             * @param userLocalService the user local service
282             */
283            public void setUserLocalService(
284                    com.liferay.portal.service.UserLocalService userLocalService) {
285                    this.userLocalService = userLocalService;
286            }
287    
288            /**
289             * Returns the user persistence.
290             *
291             * @return the user persistence
292             */
293            public UserPersistence getUserPersistence() {
294                    return userPersistence;
295            }
296    
297            /**
298             * Sets the user persistence.
299             *
300             * @param userPersistence the user persistence
301             */
302            public void setUserPersistence(UserPersistence userPersistence) {
303                    this.userPersistence = userPersistence;
304            }
305    
306            /**
307             * Returns the user finder.
308             *
309             * @return the user finder
310             */
311            public UserFinder getUserFinder() {
312                    return userFinder;
313            }
314    
315            /**
316             * Sets the user finder.
317             *
318             * @param userFinder the user finder
319             */
320            public void setUserFinder(UserFinder userFinder) {
321                    this.userFinder = userFinder;
322            }
323    
324            public void afterPropertiesSet() {
325            }
326    
327            public void destroy() {
328            }
329    
330            /**
331             * Returns the OSGi service identifier.
332             *
333             * @return the OSGi service identifier
334             */
335            @Override
336            public String getOSGiServiceIdentifier() {
337                    return ExportImportLocalService.class.getName();
338            }
339    
340            /**
341             * Performs a SQL query.
342             *
343             * @param sql the sql query
344             */
345            protected void runSQL(String sql) {
346                    try {
347                            DataSource dataSource = InfrastructureUtil.getDataSource();
348    
349                            DB db = DBManagerUtil.getDB();
350    
351                            sql = db.buildSQL(sql);
352                            sql = PortalUtil.transformSQL(sql);
353    
354                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
355                                            sql, new int[0]);
356    
357                            sqlUpdate.update();
358                    }
359                    catch (Exception e) {
360                            throw new SystemException(e);
361                    }
362            }
363    
364            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportLocalService.class)
365            protected ExportImportLocalService exportImportLocalService;
366            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService.class)
367            protected com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService;
368            @BeanReference(type = ExportImportConfigurationPersistence.class)
369            protected ExportImportConfigurationPersistence exportImportConfigurationPersistence;
370            @BeanReference(type = com.liferay.portlet.exportimport.service.StagingLocalService.class)
371            protected com.liferay.portlet.exportimport.service.StagingLocalService stagingLocalService;
372            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
373            protected com.liferay.counter.service.CounterLocalService counterLocalService;
374            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
375            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
376            @BeanReference(type = ClassNamePersistence.class)
377            protected ClassNamePersistence classNamePersistence;
378            @BeanReference(type = com.liferay.portal.service.LayoutLocalService.class)
379            protected com.liferay.portal.service.LayoutLocalService layoutLocalService;
380            @BeanReference(type = LayoutPersistence.class)
381            protected LayoutPersistence layoutPersistence;
382            @BeanReference(type = LayoutFinder.class)
383            protected LayoutFinder layoutFinder;
384            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
385            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
386            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
387            protected com.liferay.portal.service.UserLocalService userLocalService;
388            @BeanReference(type = UserPersistence.class)
389            protected UserPersistence userPersistence;
390            @BeanReference(type = UserFinder.class)
391            protected UserFinder userFinder;
392    }