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