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.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    /**
037     * Provides the base implementation for the export import configuration remote service.
038     *
039     * <p>
040     * 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.portal.service.impl.ExportImportConfigurationServiceImpl}.
041     * </p>
042     *
043     * @author Brian Wing Shun Chan
044     * @see com.liferay.portal.service.impl.ExportImportConfigurationServiceImpl
045     * @see com.liferay.portal.service.ExportImportConfigurationServiceUtil
046     * @generated
047     */
048    public abstract class ExportImportConfigurationServiceBaseImpl
049            extends BaseServiceImpl implements ExportImportConfigurationService,
050                    IdentifiableBean {
051            /*
052             * NOTE FOR DEVELOPERS:
053             *
054             * Never modify or reference this class directly. Always use {@link com.liferay.portal.service.ExportImportConfigurationServiceUtil} to access the export import configuration remote service.
055             */
056    
057            /**
058             * Returns the export import configuration local service.
059             *
060             * @return the export import configuration local service
061             */
062            public com.liferay.portal.service.ExportImportConfigurationLocalService getExportImportConfigurationLocalService() {
063                    return exportImportConfigurationLocalService;
064            }
065    
066            /**
067             * Sets the export import configuration local service.
068             *
069             * @param exportImportConfigurationLocalService the export import configuration local service
070             */
071            public void setExportImportConfigurationLocalService(
072                    com.liferay.portal.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService) {
073                    this.exportImportConfigurationLocalService = exportImportConfigurationLocalService;
074            }
075    
076            /**
077             * Returns the export import configuration remote service.
078             *
079             * @return the export import configuration remote service
080             */
081            public com.liferay.portal.service.ExportImportConfigurationService getExportImportConfigurationService() {
082                    return exportImportConfigurationService;
083            }
084    
085            /**
086             * Sets the export import configuration remote service.
087             *
088             * @param exportImportConfigurationService the export import configuration remote service
089             */
090            public void setExportImportConfigurationService(
091                    com.liferay.portal.service.ExportImportConfigurationService exportImportConfigurationService) {
092                    this.exportImportConfigurationService = exportImportConfigurationService;
093            }
094    
095            /**
096             * Returns the export import configuration persistence.
097             *
098             * @return the export import configuration persistence
099             */
100            public ExportImportConfigurationPersistence getExportImportConfigurationPersistence() {
101                    return exportImportConfigurationPersistence;
102            }
103    
104            /**
105             * Sets the export import configuration persistence.
106             *
107             * @param exportImportConfigurationPersistence the export import configuration persistence
108             */
109            public void setExportImportConfigurationPersistence(
110                    ExportImportConfigurationPersistence exportImportConfigurationPersistence) {
111                    this.exportImportConfigurationPersistence = exportImportConfigurationPersistence;
112            }
113    
114            /**
115             * Returns the counter local service.
116             *
117             * @return the counter local service
118             */
119            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
120                    return counterLocalService;
121            }
122    
123            /**
124             * Sets the counter local service.
125             *
126             * @param counterLocalService the counter local service
127             */
128            public void setCounterLocalService(
129                    com.liferay.counter.service.CounterLocalService counterLocalService) {
130                    this.counterLocalService = counterLocalService;
131            }
132    
133            /**
134             * Returns the trash entry local service.
135             *
136             * @return the trash entry local service
137             */
138            public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
139                    return trashEntryLocalService;
140            }
141    
142            /**
143             * Sets the trash entry local service.
144             *
145             * @param trashEntryLocalService the trash entry local service
146             */
147            public void setTrashEntryLocalService(
148                    com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
149                    this.trashEntryLocalService = trashEntryLocalService;
150            }
151    
152            /**
153             * Returns the trash entry remote service.
154             *
155             * @return the trash entry remote service
156             */
157            public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
158                    return trashEntryService;
159            }
160    
161            /**
162             * Sets the trash entry remote service.
163             *
164             * @param trashEntryService the trash entry remote service
165             */
166            public void setTrashEntryService(
167                    com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
168                    this.trashEntryService = trashEntryService;
169            }
170    
171            /**
172             * Returns the trash entry persistence.
173             *
174             * @return the trash entry persistence
175             */
176            public TrashEntryPersistence getTrashEntryPersistence() {
177                    return trashEntryPersistence;
178            }
179    
180            /**
181             * Sets the trash entry persistence.
182             *
183             * @param trashEntryPersistence the trash entry persistence
184             */
185            public void setTrashEntryPersistence(
186                    TrashEntryPersistence trashEntryPersistence) {
187                    this.trashEntryPersistence = trashEntryPersistence;
188            }
189    
190            /**
191             * Returns the user local service.
192             *
193             * @return the user local service
194             */
195            public com.liferay.portal.service.UserLocalService getUserLocalService() {
196                    return userLocalService;
197            }
198    
199            /**
200             * Sets the user local service.
201             *
202             * @param userLocalService the user local service
203             */
204            public void setUserLocalService(
205                    com.liferay.portal.service.UserLocalService userLocalService) {
206                    this.userLocalService = userLocalService;
207            }
208    
209            /**
210             * Returns the user remote service.
211             *
212             * @return the user remote service
213             */
214            public com.liferay.portal.service.UserService getUserService() {
215                    return userService;
216            }
217    
218            /**
219             * Sets the user remote service.
220             *
221             * @param userService the user remote service
222             */
223            public void setUserService(
224                    com.liferay.portal.service.UserService userService) {
225                    this.userService = userService;
226            }
227    
228            /**
229             * Returns the user persistence.
230             *
231             * @return the user persistence
232             */
233            public UserPersistence getUserPersistence() {
234                    return userPersistence;
235            }
236    
237            /**
238             * Sets the user persistence.
239             *
240             * @param userPersistence the user persistence
241             */
242            public void setUserPersistence(UserPersistence userPersistence) {
243                    this.userPersistence = userPersistence;
244            }
245    
246            /**
247             * Returns the user finder.
248             *
249             * @return the user finder
250             */
251            public UserFinder getUserFinder() {
252                    return userFinder;
253            }
254    
255            /**
256             * Sets the user finder.
257             *
258             * @param userFinder the user finder
259             */
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            /**
271             * Returns the Spring bean ID for this bean.
272             *
273             * @return the Spring bean ID for this bean
274             */
275            @Override
276            public String getBeanIdentifier() {
277                    return _beanIdentifier;
278            }
279    
280            /**
281             * Sets the Spring bean ID for this bean.
282             *
283             * @param beanIdentifier the Spring bean ID for this bean
284             */
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            /**
299             * Performs a SQL query.
300             *
301             * @param sql the sql query
302             */
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    }