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