001    /**
002     * Copyright (c) 2000-2013 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.jdbc.SqlUpdate;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
021    import com.liferay.portal.kernel.exception.SystemException;
022    import com.liferay.portal.service.BaseServiceImpl;
023    import com.liferay.portal.service.persistence.UserFinder;
024    import com.liferay.portal.service.persistence.UserPersistence;
025    
026    import com.liferay.portlet.softwarecatalog.model.SCProductVersion;
027    import com.liferay.portlet.softwarecatalog.service.SCProductVersionService;
028    import com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence;
029    import com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence;
030    import com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence;
031    import com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence;
032    import com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence;
033    
034    import javax.sql.DataSource;
035    
036    /**
037     * Provides the base implementation for the s c product version 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.portlet.softwarecatalog.service.impl.SCProductVersionServiceImpl}.
041     * </p>
042     *
043     * @author Brian Wing Shun Chan
044     * @see com.liferay.portlet.softwarecatalog.service.impl.SCProductVersionServiceImpl
045     * @see com.liferay.portlet.softwarecatalog.service.SCProductVersionServiceUtil
046     * @generated
047     */
048    public abstract class SCProductVersionServiceBaseImpl extends BaseServiceImpl
049            implements SCProductVersionService, IdentifiableBean {
050            /*
051             * NOTE FOR DEVELOPERS:
052             *
053             * 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.
054             */
055    
056            /**
057             * Returns the s c framework version local service.
058             *
059             * @return the s c framework version local service
060             */
061            public com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService getSCFrameworkVersionLocalService() {
062                    return scFrameworkVersionLocalService;
063            }
064    
065            /**
066             * Sets the s c framework version local service.
067             *
068             * @param scFrameworkVersionLocalService the s c framework version local service
069             */
070            public void setSCFrameworkVersionLocalService(
071                    com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService scFrameworkVersionLocalService) {
072                    this.scFrameworkVersionLocalService = scFrameworkVersionLocalService;
073            }
074    
075            /**
076             * Returns the s c framework version remote service.
077             *
078             * @return the s c framework version remote service
079             */
080            public com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService getSCFrameworkVersionService() {
081                    return scFrameworkVersionService;
082            }
083    
084            /**
085             * Sets the s c framework version remote service.
086             *
087             * @param scFrameworkVersionService the s c framework version remote service
088             */
089            public void setSCFrameworkVersionService(
090                    com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService scFrameworkVersionService) {
091                    this.scFrameworkVersionService = scFrameworkVersionService;
092            }
093    
094            /**
095             * Returns the s c framework version persistence.
096             *
097             * @return the s c framework version persistence
098             */
099            public SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
100                    return scFrameworkVersionPersistence;
101            }
102    
103            /**
104             * Sets the s c framework version persistence.
105             *
106             * @param scFrameworkVersionPersistence the s c framework version persistence
107             */
108            public void setSCFrameworkVersionPersistence(
109                    SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
110                    this.scFrameworkVersionPersistence = scFrameworkVersionPersistence;
111            }
112    
113            /**
114             * Returns the s c license local service.
115             *
116             * @return the s c license local service
117             */
118            public com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService getSCLicenseLocalService() {
119                    return scLicenseLocalService;
120            }
121    
122            /**
123             * Sets the s c license local service.
124             *
125             * @param scLicenseLocalService the s c license local service
126             */
127            public void setSCLicenseLocalService(
128                    com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService scLicenseLocalService) {
129                    this.scLicenseLocalService = scLicenseLocalService;
130            }
131    
132            /**
133             * Returns the s c license remote service.
134             *
135             * @return the s c license remote service
136             */
137            public com.liferay.portlet.softwarecatalog.service.SCLicenseService getSCLicenseService() {
138                    return scLicenseService;
139            }
140    
141            /**
142             * Sets the s c license remote service.
143             *
144             * @param scLicenseService the s c license remote service
145             */
146            public void setSCLicenseService(
147                    com.liferay.portlet.softwarecatalog.service.SCLicenseService scLicenseService) {
148                    this.scLicenseService = scLicenseService;
149            }
150    
151            /**
152             * Returns the s c license persistence.
153             *
154             * @return the s c license persistence
155             */
156            public SCLicensePersistence getSCLicensePersistence() {
157                    return scLicensePersistence;
158            }
159    
160            /**
161             * Sets the s c license persistence.
162             *
163             * @param scLicensePersistence the s c license persistence
164             */
165            public void setSCLicensePersistence(
166                    SCLicensePersistence scLicensePersistence) {
167                    this.scLicensePersistence = scLicensePersistence;
168            }
169    
170            /**
171             * Returns the s c product entry local service.
172             *
173             * @return the s c product entry local service
174             */
175            public com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService getSCProductEntryLocalService() {
176                    return scProductEntryLocalService;
177            }
178    
179            /**
180             * Sets the s c product entry local service.
181             *
182             * @param scProductEntryLocalService the s c product entry local service
183             */
184            public void setSCProductEntryLocalService(
185                    com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService scProductEntryLocalService) {
186                    this.scProductEntryLocalService = scProductEntryLocalService;
187            }
188    
189            /**
190             * Returns the s c product entry remote service.
191             *
192             * @return the s c product entry remote service
193             */
194            public com.liferay.portlet.softwarecatalog.service.SCProductEntryService getSCProductEntryService() {
195                    return scProductEntryService;
196            }
197    
198            /**
199             * Sets the s c product entry remote service.
200             *
201             * @param scProductEntryService the s c product entry remote service
202             */
203            public void setSCProductEntryService(
204                    com.liferay.portlet.softwarecatalog.service.SCProductEntryService scProductEntryService) {
205                    this.scProductEntryService = scProductEntryService;
206            }
207    
208            /**
209             * Returns the s c product entry persistence.
210             *
211             * @return the s c product entry persistence
212             */
213            public SCProductEntryPersistence getSCProductEntryPersistence() {
214                    return scProductEntryPersistence;
215            }
216    
217            /**
218             * Sets the s c product entry persistence.
219             *
220             * @param scProductEntryPersistence the s c product entry persistence
221             */
222            public void setSCProductEntryPersistence(
223                    SCProductEntryPersistence scProductEntryPersistence) {
224                    this.scProductEntryPersistence = scProductEntryPersistence;
225            }
226    
227            /**
228             * Returns the s c product screenshot local service.
229             *
230             * @return the s c product screenshot local service
231             */
232            public com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService getSCProductScreenshotLocalService() {
233                    return scProductScreenshotLocalService;
234            }
235    
236            /**
237             * Sets the s c product screenshot local service.
238             *
239             * @param scProductScreenshotLocalService the s c product screenshot local service
240             */
241            public void setSCProductScreenshotLocalService(
242                    com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService scProductScreenshotLocalService) {
243                    this.scProductScreenshotLocalService = scProductScreenshotLocalService;
244            }
245    
246            /**
247             * Returns the s c product screenshot persistence.
248             *
249             * @return the s c product screenshot persistence
250             */
251            public SCProductScreenshotPersistence getSCProductScreenshotPersistence() {
252                    return scProductScreenshotPersistence;
253            }
254    
255            /**
256             * Sets the s c product screenshot persistence.
257             *
258             * @param scProductScreenshotPersistence the s c product screenshot persistence
259             */
260            public void setSCProductScreenshotPersistence(
261                    SCProductScreenshotPersistence scProductScreenshotPersistence) {
262                    this.scProductScreenshotPersistence = scProductScreenshotPersistence;
263            }
264    
265            /**
266             * Returns the s c product version local service.
267             *
268             * @return the s c product version local service
269             */
270            public com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService getSCProductVersionLocalService() {
271                    return scProductVersionLocalService;
272            }
273    
274            /**
275             * Sets the s c product version local service.
276             *
277             * @param scProductVersionLocalService the s c product version local service
278             */
279            public void setSCProductVersionLocalService(
280                    com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService scProductVersionLocalService) {
281                    this.scProductVersionLocalService = scProductVersionLocalService;
282            }
283    
284            /**
285             * Returns the s c product version remote service.
286             *
287             * @return the s c product version remote service
288             */
289            public com.liferay.portlet.softwarecatalog.service.SCProductVersionService getSCProductVersionService() {
290                    return scProductVersionService;
291            }
292    
293            /**
294             * Sets the s c product version remote service.
295             *
296             * @param scProductVersionService the s c product version remote service
297             */
298            public void setSCProductVersionService(
299                    com.liferay.portlet.softwarecatalog.service.SCProductVersionService scProductVersionService) {
300                    this.scProductVersionService = scProductVersionService;
301            }
302    
303            /**
304             * Returns the s c product version persistence.
305             *
306             * @return the s c product version persistence
307             */
308            public SCProductVersionPersistence getSCProductVersionPersistence() {
309                    return scProductVersionPersistence;
310            }
311    
312            /**
313             * Sets the s c product version persistence.
314             *
315             * @param scProductVersionPersistence the s c product version persistence
316             */
317            public void setSCProductVersionPersistence(
318                    SCProductVersionPersistence scProductVersionPersistence) {
319                    this.scProductVersionPersistence = scProductVersionPersistence;
320            }
321    
322            /**
323             * Returns the counter local service.
324             *
325             * @return the counter local service
326             */
327            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
328                    return counterLocalService;
329            }
330    
331            /**
332             * Sets the counter local service.
333             *
334             * @param counterLocalService the counter local service
335             */
336            public void setCounterLocalService(
337                    com.liferay.counter.service.CounterLocalService counterLocalService) {
338                    this.counterLocalService = counterLocalService;
339            }
340    
341            /**
342             * Returns the resource local service.
343             *
344             * @return the resource local service
345             */
346            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
347                    return resourceLocalService;
348            }
349    
350            /**
351             * Sets the resource local service.
352             *
353             * @param resourceLocalService the resource local service
354             */
355            public void setResourceLocalService(
356                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
357                    this.resourceLocalService = resourceLocalService;
358            }
359    
360            /**
361             * Returns the user local service.
362             *
363             * @return the user local service
364             */
365            public com.liferay.portal.service.UserLocalService getUserLocalService() {
366                    return userLocalService;
367            }
368    
369            /**
370             * Sets the user local service.
371             *
372             * @param userLocalService the user local service
373             */
374            public void setUserLocalService(
375                    com.liferay.portal.service.UserLocalService userLocalService) {
376                    this.userLocalService = userLocalService;
377            }
378    
379            /**
380             * Returns the user remote service.
381             *
382             * @return the user remote service
383             */
384            public com.liferay.portal.service.UserService getUserService() {
385                    return userService;
386            }
387    
388            /**
389             * Sets the user remote service.
390             *
391             * @param userService the user remote service
392             */
393            public void setUserService(
394                    com.liferay.portal.service.UserService userService) {
395                    this.userService = userService;
396            }
397    
398            /**
399             * Returns the user persistence.
400             *
401             * @return the user persistence
402             */
403            public UserPersistence getUserPersistence() {
404                    return userPersistence;
405            }
406    
407            /**
408             * Sets the user persistence.
409             *
410             * @param userPersistence the user persistence
411             */
412            public void setUserPersistence(UserPersistence userPersistence) {
413                    this.userPersistence = userPersistence;
414            }
415    
416            /**
417             * Returns the user finder.
418             *
419             * @return the user finder
420             */
421            public UserFinder getUserFinder() {
422                    return userFinder;
423            }
424    
425            /**
426             * Sets the user finder.
427             *
428             * @param userFinder the user finder
429             */
430            public void setUserFinder(UserFinder userFinder) {
431                    this.userFinder = userFinder;
432            }
433    
434            public void afterPropertiesSet() {
435            }
436    
437            public void destroy() {
438            }
439    
440            /**
441             * Returns the Spring bean ID for this bean.
442             *
443             * @return the Spring bean ID for this bean
444             */
445            @Override
446            public String getBeanIdentifier() {
447                    return _beanIdentifier;
448            }
449    
450            /**
451             * Sets the Spring bean ID for this bean.
452             *
453             * @param beanIdentifier the Spring bean ID for this bean
454             */
455            @Override
456            public void setBeanIdentifier(String beanIdentifier) {
457                    _beanIdentifier = beanIdentifier;
458            }
459    
460            protected Class<?> getModelClass() {
461                    return SCProductVersion.class;
462            }
463    
464            protected String getModelClassName() {
465                    return SCProductVersion.class.getName();
466            }
467    
468            /**
469             * Performs an SQL query.
470             *
471             * @param sql the sql query
472             */
473            protected void runSQL(String sql) throws SystemException {
474                    try {
475                            DataSource dataSource = scProductVersionPersistence.getDataSource();
476    
477                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
478                                            sql, new int[0]);
479    
480                            sqlUpdate.update();
481                    }
482                    catch (Exception e) {
483                            throw new SystemException(e);
484                    }
485            }
486    
487            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService.class)
488            protected com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService scFrameworkVersionLocalService;
489            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService.class)
490            protected com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService scFrameworkVersionService;
491            @BeanReference(type = SCFrameworkVersionPersistence.class)
492            protected SCFrameworkVersionPersistence scFrameworkVersionPersistence;
493            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService.class)
494            protected com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService scLicenseLocalService;
495            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCLicenseService.class)
496            protected com.liferay.portlet.softwarecatalog.service.SCLicenseService scLicenseService;
497            @BeanReference(type = SCLicensePersistence.class)
498            protected SCLicensePersistence scLicensePersistence;
499            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService.class)
500            protected com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService scProductEntryLocalService;
501            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCProductEntryService.class)
502            protected com.liferay.portlet.softwarecatalog.service.SCProductEntryService scProductEntryService;
503            @BeanReference(type = SCProductEntryPersistence.class)
504            protected SCProductEntryPersistence scProductEntryPersistence;
505            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService.class)
506            protected com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService scProductScreenshotLocalService;
507            @BeanReference(type = SCProductScreenshotPersistence.class)
508            protected SCProductScreenshotPersistence scProductScreenshotPersistence;
509            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService.class)
510            protected com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService scProductVersionLocalService;
511            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCProductVersionService.class)
512            protected com.liferay.portlet.softwarecatalog.service.SCProductVersionService scProductVersionService;
513            @BeanReference(type = SCProductVersionPersistence.class)
514            protected SCProductVersionPersistence scProductVersionPersistence;
515            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
516            protected com.liferay.counter.service.CounterLocalService counterLocalService;
517            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
518            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
519            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
520            protected com.liferay.portal.service.UserLocalService userLocalService;
521            @BeanReference(type = com.liferay.portal.service.UserService.class)
522            protected com.liferay.portal.service.UserService userService;
523            @BeanReference(type = UserPersistence.class)
524            protected UserPersistence userPersistence;
525            @BeanReference(type = UserFinder.class)
526            protected UserFinder userFinder;
527            private String _beanIdentifier;
528    }