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