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