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.softwarecatalog.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.service.BaseServiceImpl;
025    import com.liferay.portal.service.persistence.UserFinder;
026    import com.liferay.portal.service.persistence.UserPersistence;
027    import com.liferay.portal.util.PortalUtil;
028    
029    import com.liferay.portlet.softwarecatalog.model.SCProductVersion;
030    import com.liferay.portlet.softwarecatalog.service.SCProductVersionService;
031    import com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence;
032    import com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence;
033    import com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence;
034    
035    import javax.sql.DataSource;
036    
037    /**
038     * Provides the base implementation for the s c product version 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.softwarecatalog.service.impl.SCProductVersionServiceImpl}.
042     * </p>
043     *
044     * @author Brian Wing Shun Chan
045     * @see com.liferay.portlet.softwarecatalog.service.impl.SCProductVersionServiceImpl
046     * @see com.liferay.portlet.softwarecatalog.service.SCProductVersionServiceUtil
047     * @generated
048     */
049    public abstract class SCProductVersionServiceBaseImpl extends BaseServiceImpl
050            implements SCProductVersionService, IdentifiableBean {
051            /*
052             * NOTE FOR DEVELOPERS:
053             *
054             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.softwarecatalog.service.SCProductVersionServiceUtil} to access the s c product version remote service.
055             */
056    
057            /**
058             * Returns the s c product version local service.
059             *
060             * @return the s c product version local service
061             */
062            public com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService getSCProductVersionLocalService() {
063                    return scProductVersionLocalService;
064            }
065    
066            /**
067             * Sets the s c product version local service.
068             *
069             * @param scProductVersionLocalService the s c product version local service
070             */
071            public void setSCProductVersionLocalService(
072                    com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService scProductVersionLocalService) {
073                    this.scProductVersionLocalService = scProductVersionLocalService;
074            }
075    
076            /**
077             * Returns the s c product version remote service.
078             *
079             * @return the s c product version remote service
080             */
081            public SCProductVersionService getSCProductVersionService() {
082                    return scProductVersionService;
083            }
084    
085            /**
086             * Sets the s c product version remote service.
087             *
088             * @param scProductVersionService the s c product version remote service
089             */
090            public void setSCProductVersionService(
091                    SCProductVersionService scProductVersionService) {
092                    this.scProductVersionService = scProductVersionService;
093            }
094    
095            /**
096             * Returns the s c product version persistence.
097             *
098             * @return the s c product version persistence
099             */
100            public SCProductVersionPersistence getSCProductVersionPersistence() {
101                    return scProductVersionPersistence;
102            }
103    
104            /**
105             * Sets the s c product version persistence.
106             *
107             * @param scProductVersionPersistence the s c product version persistence
108             */
109            public void setSCProductVersionPersistence(
110                    SCProductVersionPersistence scProductVersionPersistence) {
111                    this.scProductVersionPersistence = scProductVersionPersistence;
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 user local service.
135             *
136             * @return the user local service
137             */
138            public com.liferay.portal.service.UserLocalService getUserLocalService() {
139                    return userLocalService;
140            }
141    
142            /**
143             * Sets the user local service.
144             *
145             * @param userLocalService the user local service
146             */
147            public void setUserLocalService(
148                    com.liferay.portal.service.UserLocalService userLocalService) {
149                    this.userLocalService = userLocalService;
150            }
151    
152            /**
153             * Returns the user remote service.
154             *
155             * @return the user remote service
156             */
157            public com.liferay.portal.service.UserService getUserService() {
158                    return userService;
159            }
160    
161            /**
162             * Sets the user remote service.
163             *
164             * @param userService the user remote service
165             */
166            public void setUserService(
167                    com.liferay.portal.service.UserService userService) {
168                    this.userService = userService;
169            }
170    
171            /**
172             * Returns the user persistence.
173             *
174             * @return the user persistence
175             */
176            public UserPersistence getUserPersistence() {
177                    return userPersistence;
178            }
179    
180            /**
181             * Sets the user persistence.
182             *
183             * @param userPersistence the user persistence
184             */
185            public void setUserPersistence(UserPersistence userPersistence) {
186                    this.userPersistence = userPersistence;
187            }
188    
189            /**
190             * Returns the user finder.
191             *
192             * @return the user finder
193             */
194            public UserFinder getUserFinder() {
195                    return userFinder;
196            }
197    
198            /**
199             * Sets the user finder.
200             *
201             * @param userFinder the user finder
202             */
203            public void setUserFinder(UserFinder userFinder) {
204                    this.userFinder = userFinder;
205            }
206    
207            /**
208             * Returns the s c framework version local service.
209             *
210             * @return the s c framework version local service
211             */
212            public com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService getSCFrameworkVersionLocalService() {
213                    return scFrameworkVersionLocalService;
214            }
215    
216            /**
217             * Sets the s c framework version local service.
218             *
219             * @param scFrameworkVersionLocalService the s c framework version local service
220             */
221            public void setSCFrameworkVersionLocalService(
222                    com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService scFrameworkVersionLocalService) {
223                    this.scFrameworkVersionLocalService = scFrameworkVersionLocalService;
224            }
225    
226            /**
227             * Returns the s c framework version remote service.
228             *
229             * @return the s c framework version remote service
230             */
231            public com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService getSCFrameworkVersionService() {
232                    return scFrameworkVersionService;
233            }
234    
235            /**
236             * Sets the s c framework version remote service.
237             *
238             * @param scFrameworkVersionService the s c framework version remote service
239             */
240            public void setSCFrameworkVersionService(
241                    com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService scFrameworkVersionService) {
242                    this.scFrameworkVersionService = scFrameworkVersionService;
243            }
244    
245            /**
246             * Returns the s c framework version persistence.
247             *
248             * @return the s c framework version persistence
249             */
250            public SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
251                    return scFrameworkVersionPersistence;
252            }
253    
254            /**
255             * Sets the s c framework version persistence.
256             *
257             * @param scFrameworkVersionPersistence the s c framework version persistence
258             */
259            public void setSCFrameworkVersionPersistence(
260                    SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
261                    this.scFrameworkVersionPersistence = scFrameworkVersionPersistence;
262            }
263    
264            /**
265             * Returns the s c product entry local service.
266             *
267             * @return the s c product entry local service
268             */
269            public com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService getSCProductEntryLocalService() {
270                    return scProductEntryLocalService;
271            }
272    
273            /**
274             * Sets the s c product entry local service.
275             *
276             * @param scProductEntryLocalService the s c product entry local service
277             */
278            public void setSCProductEntryLocalService(
279                    com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService scProductEntryLocalService) {
280                    this.scProductEntryLocalService = scProductEntryLocalService;
281            }
282    
283            /**
284             * Returns the s c product entry remote service.
285             *
286             * @return the s c product entry remote service
287             */
288            public com.liferay.portlet.softwarecatalog.service.SCProductEntryService getSCProductEntryService() {
289                    return scProductEntryService;
290            }
291    
292            /**
293             * Sets the s c product entry remote service.
294             *
295             * @param scProductEntryService the s c product entry remote service
296             */
297            public void setSCProductEntryService(
298                    com.liferay.portlet.softwarecatalog.service.SCProductEntryService scProductEntryService) {
299                    this.scProductEntryService = scProductEntryService;
300            }
301    
302            /**
303             * Returns the s c product entry persistence.
304             *
305             * @return the s c product entry persistence
306             */
307            public SCProductEntryPersistence getSCProductEntryPersistence() {
308                    return scProductEntryPersistence;
309            }
310    
311            /**
312             * Sets the s c product entry persistence.
313             *
314             * @param scProductEntryPersistence the s c product entry persistence
315             */
316            public void setSCProductEntryPersistence(
317                    SCProductEntryPersistence scProductEntryPersistence) {
318                    this.scProductEntryPersistence = scProductEntryPersistence;
319            }
320    
321            public void afterPropertiesSet() {
322            }
323    
324            public void destroy() {
325            }
326    
327            /**
328             * Returns the Spring bean ID for this bean.
329             *
330             * @return the Spring bean ID for this bean
331             */
332            @Override
333            public String getBeanIdentifier() {
334                    return _beanIdentifier;
335            }
336    
337            /**
338             * Sets the Spring bean ID for this bean.
339             *
340             * @param beanIdentifier the Spring bean ID for this bean
341             */
342            @Override
343            public void setBeanIdentifier(String beanIdentifier) {
344                    _beanIdentifier = beanIdentifier;
345            }
346    
347            protected Class<?> getModelClass() {
348                    return SCProductVersion.class;
349            }
350    
351            protected String getModelClassName() {
352                    return SCProductVersion.class.getName();
353            }
354    
355            /**
356             * Performs a SQL query.
357             *
358             * @param sql the sql query
359             */
360            protected void runSQL(String sql) {
361                    try {
362                            DataSource dataSource = scProductVersionPersistence.getDataSource();
363    
364                            DB db = DBFactoryUtil.getDB();
365    
366                            sql = db.buildSQL(sql);
367                            sql = PortalUtil.transformSQL(sql);
368    
369                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
370                                            sql, new int[0]);
371    
372                            sqlUpdate.update();
373                    }
374                    catch (Exception e) {
375                            throw new SystemException(e);
376                    }
377            }
378    
379            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService.class)
380            protected com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService scProductVersionLocalService;
381            @BeanReference(type = SCProductVersionService.class)
382            protected SCProductVersionService scProductVersionService;
383            @BeanReference(type = SCProductVersionPersistence.class)
384            protected SCProductVersionPersistence scProductVersionPersistence;
385            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
386            protected com.liferay.counter.service.CounterLocalService counterLocalService;
387            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
388            protected com.liferay.portal.service.UserLocalService userLocalService;
389            @BeanReference(type = com.liferay.portal.service.UserService.class)
390            protected com.liferay.portal.service.UserService userService;
391            @BeanReference(type = UserPersistence.class)
392            protected UserPersistence userPersistence;
393            @BeanReference(type = UserFinder.class)
394            protected UserFinder userFinder;
395            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService.class)
396            protected com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService scFrameworkVersionLocalService;
397            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService.class)
398            protected com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService scFrameworkVersionService;
399            @BeanReference(type = SCFrameworkVersionPersistence.class)
400            protected SCFrameworkVersionPersistence scFrameworkVersionPersistence;
401            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService.class)
402            protected com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService scProductEntryLocalService;
403            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCProductEntryService.class)
404            protected com.liferay.portlet.softwarecatalog.service.SCProductEntryService scProductEntryService;
405            @BeanReference(type = SCProductEntryPersistence.class)
406            protected SCProductEntryPersistence scProductEntryPersistence;
407            private String _beanIdentifier;
408    }