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