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.dao.orm.DynamicQuery;
023    import com.liferay.portal.kernel.exception.PortalException;
024    import com.liferay.portal.kernel.exception.SystemException;
025    import com.liferay.portal.kernel.util.OrderByComparator;
026    import com.liferay.portal.service.ImageLocalService;
027    import com.liferay.portal.service.ImageService;
028    import com.liferay.portal.service.ResourceLocalService;
029    import com.liferay.portal.service.ResourceService;
030    import com.liferay.portal.service.UserLocalService;
031    import com.liferay.portal.service.UserService;
032    import com.liferay.portal.service.persistence.ImagePersistence;
033    import com.liferay.portal.service.persistence.ResourceFinder;
034    import com.liferay.portal.service.persistence.ResourcePersistence;
035    import com.liferay.portal.service.persistence.UserFinder;
036    import com.liferay.portal.service.persistence.UserPersistence;
037    
038    import com.liferay.portlet.softwarecatalog.model.SCProductScreenshot;
039    import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService;
040    import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService;
041    import com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService;
042    import com.liferay.portlet.softwarecatalog.service.SCLicenseService;
043    import com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService;
044    import com.liferay.portlet.softwarecatalog.service.SCProductEntryService;
045    import com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService;
046    import com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService;
047    import com.liferay.portlet.softwarecatalog.service.SCProductVersionService;
048    import com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence;
049    import com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence;
050    import com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence;
051    import com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence;
052    import com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence;
053    
054    import java.util.List;
055    
056    import javax.sql.DataSource;
057    
058    /**
059     * The base implementation of the s c product screenshot local service.
060     *
061     * <p>
062     * 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.SCProductScreenshotLocalServiceImpl}.
063     * </p>
064     *
065     * <p>
066     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalServiceUtil} to access the s c product screenshot local service.
067     * </p>
068     *
069     * @author Brian Wing Shun Chan
070     * @see com.liferay.portlet.softwarecatalog.service.impl.SCProductScreenshotLocalServiceImpl
071     * @see com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalServiceUtil
072     * @generated
073     */
074    public abstract class SCProductScreenshotLocalServiceBaseImpl
075            implements SCProductScreenshotLocalService {
076            /**
077             * Adds the s c product screenshot to the database. Also notifies the appropriate model listeners.
078             *
079             * @param scProductScreenshot the s c product screenshot to add
080             * @return the s c product screenshot that was added
081             * @throws SystemException if a system exception occurred
082             */
083            public SCProductScreenshot addSCProductScreenshot(
084                    SCProductScreenshot scProductScreenshot) throws SystemException {
085                    scProductScreenshot.setNew(true);
086    
087                    return scProductScreenshotPersistence.update(scProductScreenshot, false);
088            }
089    
090            /**
091             * Creates a new s c product screenshot with the primary key. Does not add the s c product screenshot to the database.
092             *
093             * @param productScreenshotId the primary key for the new s c product screenshot
094             * @return the new s c product screenshot
095             */
096            public SCProductScreenshot createSCProductScreenshot(
097                    long productScreenshotId) {
098                    return scProductScreenshotPersistence.create(productScreenshotId);
099            }
100    
101            /**
102             * Deletes the s c product screenshot with the primary key from the database. Also notifies the appropriate model listeners.
103             *
104             * @param productScreenshotId the primary key of the s c product screenshot to delete
105             * @throws PortalException if a s c product screenshot with the primary key could not be found
106             * @throws SystemException if a system exception occurred
107             */
108            public void deleteSCProductScreenshot(long productScreenshotId)
109                    throws PortalException, SystemException {
110                    scProductScreenshotPersistence.remove(productScreenshotId);
111            }
112    
113            /**
114             * Deletes the s c product screenshot from the database. Also notifies the appropriate model listeners.
115             *
116             * @param scProductScreenshot the s c product screenshot to delete
117             * @throws SystemException if a system exception occurred
118             */
119            public void deleteSCProductScreenshot(
120                    SCProductScreenshot scProductScreenshot) throws SystemException {
121                    scProductScreenshotPersistence.remove(scProductScreenshot);
122            }
123    
124            /**
125             * Performs a dynamic query on the database and returns the matching rows.
126             *
127             * @param dynamicQuery the dynamic query to search with
128             * @return the matching rows
129             * @throws SystemException if a system exception occurred
130             */
131            @SuppressWarnings("rawtypes")
132            public List dynamicQuery(DynamicQuery dynamicQuery)
133                    throws SystemException {
134                    return scProductScreenshotPersistence.findWithDynamicQuery(dynamicQuery);
135            }
136    
137            /**
138             * Performs a dynamic query on the database and returns a range of the matching rows.
139             *
140             * <p>
141             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
142             * </p>
143             *
144             * @param dynamicQuery the dynamic query to search with
145             * @param start the lower bound of the range of model instances to return
146             * @param end the upper bound of the range of model instances to return (not inclusive)
147             * @return the range of matching rows
148             * @throws SystemException if a system exception occurred
149             */
150            @SuppressWarnings("rawtypes")
151            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
152                    throws SystemException {
153                    return scProductScreenshotPersistence.findWithDynamicQuery(dynamicQuery,
154                            start, end);
155            }
156    
157            /**
158             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
159             *
160             * <p>
161             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
162             * </p>
163             *
164             * @param dynamicQuery the dynamic query to search with
165             * @param start the lower bound of the range of model instances to return
166             * @param end the upper bound of the range of model instances to return (not inclusive)
167             * @param orderByComparator the comparator to order the results by
168             * @return the ordered range of matching rows
169             * @throws SystemException if a system exception occurred
170             */
171            @SuppressWarnings("rawtypes")
172            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
173                    OrderByComparator orderByComparator) throws SystemException {
174                    return scProductScreenshotPersistence.findWithDynamicQuery(dynamicQuery,
175                            start, end, orderByComparator);
176            }
177    
178            /**
179             * Counts the number of rows that match the dynamic query.
180             *
181             * @param dynamicQuery the dynamic query to search with
182             * @return the number of rows that match the dynamic query
183             * @throws SystemException if a system exception occurred
184             */
185            public long dynamicQueryCount(DynamicQuery dynamicQuery)
186                    throws SystemException {
187                    return scProductScreenshotPersistence.countWithDynamicQuery(dynamicQuery);
188            }
189    
190            /**
191             * Gets the s c product screenshot with the primary key.
192             *
193             * @param productScreenshotId the primary key of the s c product screenshot to get
194             * @return the s c product screenshot
195             * @throws PortalException if a s c product screenshot with the primary key could not be found
196             * @throws SystemException if a system exception occurred
197             */
198            public SCProductScreenshot getSCProductScreenshot(long productScreenshotId)
199                    throws PortalException, SystemException {
200                    return scProductScreenshotPersistence.findByPrimaryKey(productScreenshotId);
201            }
202    
203            /**
204             * Gets a range of all the s c product screenshots.
205             *
206             * <p>
207             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
208             * </p>
209             *
210             * @param start the lower bound of the range of s c product screenshots to return
211             * @param end the upper bound of the range of s c product screenshots to return (not inclusive)
212             * @return the range of s c product screenshots
213             * @throws SystemException if a system exception occurred
214             */
215            public List<SCProductScreenshot> getSCProductScreenshots(int start, int end)
216                    throws SystemException {
217                    return scProductScreenshotPersistence.findAll(start, end);
218            }
219    
220            /**
221             * Gets the number of s c product screenshots.
222             *
223             * @return the number of s c product screenshots
224             * @throws SystemException if a system exception occurred
225             */
226            public int getSCProductScreenshotsCount() throws SystemException {
227                    return scProductScreenshotPersistence.countAll();
228            }
229    
230            /**
231             * Updates the s c product screenshot in the database. Also notifies the appropriate model listeners.
232             *
233             * @param scProductScreenshot the s c product screenshot to update
234             * @return the s c product screenshot that was updated
235             * @throws SystemException if a system exception occurred
236             */
237            public SCProductScreenshot updateSCProductScreenshot(
238                    SCProductScreenshot scProductScreenshot) throws SystemException {
239                    scProductScreenshot.setNew(false);
240    
241                    return scProductScreenshotPersistence.update(scProductScreenshot, true);
242            }
243    
244            /**
245             * Updates the s c product screenshot in the database. Also notifies the appropriate model listeners.
246             *
247             * @param scProductScreenshot the s c product screenshot to update
248             * @param merge whether to merge the s c product screenshot with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
249             * @return the s c product screenshot that was updated
250             * @throws SystemException if a system exception occurred
251             */
252            public SCProductScreenshot updateSCProductScreenshot(
253                    SCProductScreenshot scProductScreenshot, boolean merge)
254                    throws SystemException {
255                    scProductScreenshot.setNew(false);
256    
257                    return scProductScreenshotPersistence.update(scProductScreenshot, merge);
258            }
259    
260            /**
261             * Gets the s c license local service.
262             *
263             * @return the s c license local service
264             */
265            public SCLicenseLocalService getSCLicenseLocalService() {
266                    return scLicenseLocalService;
267            }
268    
269            /**
270             * Sets the s c license local service.
271             *
272             * @param scLicenseLocalService the s c license local service
273             */
274            public void setSCLicenseLocalService(
275                    SCLicenseLocalService scLicenseLocalService) {
276                    this.scLicenseLocalService = scLicenseLocalService;
277            }
278    
279            /**
280             * Gets the s c license remote service.
281             *
282             * @return the s c license remote service
283             */
284            public SCLicenseService getSCLicenseService() {
285                    return scLicenseService;
286            }
287    
288            /**
289             * Sets the s c license remote service.
290             *
291             * @param scLicenseService the s c license remote service
292             */
293            public void setSCLicenseService(SCLicenseService scLicenseService) {
294                    this.scLicenseService = scLicenseService;
295            }
296    
297            /**
298             * Gets the s c license persistence.
299             *
300             * @return the s c license persistence
301             */
302            public SCLicensePersistence getSCLicensePersistence() {
303                    return scLicensePersistence;
304            }
305    
306            /**
307             * Sets the s c license persistence.
308             *
309             * @param scLicensePersistence the s c license persistence
310             */
311            public void setSCLicensePersistence(
312                    SCLicensePersistence scLicensePersistence) {
313                    this.scLicensePersistence = scLicensePersistence;
314            }
315    
316            /**
317             * Gets the s c framework version local service.
318             *
319             * @return the s c framework version local service
320             */
321            public SCFrameworkVersionLocalService getSCFrameworkVersionLocalService() {
322                    return scFrameworkVersionLocalService;
323            }
324    
325            /**
326             * Sets the s c framework version local service.
327             *
328             * @param scFrameworkVersionLocalService the s c framework version local service
329             */
330            public void setSCFrameworkVersionLocalService(
331                    SCFrameworkVersionLocalService scFrameworkVersionLocalService) {
332                    this.scFrameworkVersionLocalService = scFrameworkVersionLocalService;
333            }
334    
335            /**
336             * Gets the s c framework version remote service.
337             *
338             * @return the s c framework version remote service
339             */
340            public SCFrameworkVersionService getSCFrameworkVersionService() {
341                    return scFrameworkVersionService;
342            }
343    
344            /**
345             * Sets the s c framework version remote service.
346             *
347             * @param scFrameworkVersionService the s c framework version remote service
348             */
349            public void setSCFrameworkVersionService(
350                    SCFrameworkVersionService scFrameworkVersionService) {
351                    this.scFrameworkVersionService = scFrameworkVersionService;
352            }
353    
354            /**
355             * Gets the s c framework version persistence.
356             *
357             * @return the s c framework version persistence
358             */
359            public SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
360                    return scFrameworkVersionPersistence;
361            }
362    
363            /**
364             * Sets the s c framework version persistence.
365             *
366             * @param scFrameworkVersionPersistence the s c framework version persistence
367             */
368            public void setSCFrameworkVersionPersistence(
369                    SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
370                    this.scFrameworkVersionPersistence = scFrameworkVersionPersistence;
371            }
372    
373            /**
374             * Gets the s c product entry local service.
375             *
376             * @return the s c product entry local service
377             */
378            public SCProductEntryLocalService getSCProductEntryLocalService() {
379                    return scProductEntryLocalService;
380            }
381    
382            /**
383             * Sets the s c product entry local service.
384             *
385             * @param scProductEntryLocalService the s c product entry local service
386             */
387            public void setSCProductEntryLocalService(
388                    SCProductEntryLocalService scProductEntryLocalService) {
389                    this.scProductEntryLocalService = scProductEntryLocalService;
390            }
391    
392            /**
393             * Gets the s c product entry remote service.
394             *
395             * @return the s c product entry remote service
396             */
397            public SCProductEntryService getSCProductEntryService() {
398                    return scProductEntryService;
399            }
400    
401            /**
402             * Sets the s c product entry remote service.
403             *
404             * @param scProductEntryService the s c product entry remote service
405             */
406            public void setSCProductEntryService(
407                    SCProductEntryService scProductEntryService) {
408                    this.scProductEntryService = scProductEntryService;
409            }
410    
411            /**
412             * Gets the s c product entry persistence.
413             *
414             * @return the s c product entry persistence
415             */
416            public SCProductEntryPersistence getSCProductEntryPersistence() {
417                    return scProductEntryPersistence;
418            }
419    
420            /**
421             * Sets the s c product entry persistence.
422             *
423             * @param scProductEntryPersistence the s c product entry persistence
424             */
425            public void setSCProductEntryPersistence(
426                    SCProductEntryPersistence scProductEntryPersistence) {
427                    this.scProductEntryPersistence = scProductEntryPersistence;
428            }
429    
430            /**
431             * Gets the s c product screenshot local service.
432             *
433             * @return the s c product screenshot local service
434             */
435            public SCProductScreenshotLocalService getSCProductScreenshotLocalService() {
436                    return scProductScreenshotLocalService;
437            }
438    
439            /**
440             * Sets the s c product screenshot local service.
441             *
442             * @param scProductScreenshotLocalService the s c product screenshot local service
443             */
444            public void setSCProductScreenshotLocalService(
445                    SCProductScreenshotLocalService scProductScreenshotLocalService) {
446                    this.scProductScreenshotLocalService = scProductScreenshotLocalService;
447            }
448    
449            /**
450             * Gets the s c product screenshot persistence.
451             *
452             * @return the s c product screenshot persistence
453             */
454            public SCProductScreenshotPersistence getSCProductScreenshotPersistence() {
455                    return scProductScreenshotPersistence;
456            }
457    
458            /**
459             * Sets the s c product screenshot persistence.
460             *
461             * @param scProductScreenshotPersistence the s c product screenshot persistence
462             */
463            public void setSCProductScreenshotPersistence(
464                    SCProductScreenshotPersistence scProductScreenshotPersistence) {
465                    this.scProductScreenshotPersistence = scProductScreenshotPersistence;
466            }
467    
468            /**
469             * Gets the s c product version local service.
470             *
471             * @return the s c product version local service
472             */
473            public SCProductVersionLocalService getSCProductVersionLocalService() {
474                    return scProductVersionLocalService;
475            }
476    
477            /**
478             * Sets the s c product version local service.
479             *
480             * @param scProductVersionLocalService the s c product version local service
481             */
482            public void setSCProductVersionLocalService(
483                    SCProductVersionLocalService scProductVersionLocalService) {
484                    this.scProductVersionLocalService = scProductVersionLocalService;
485            }
486    
487            /**
488             * Gets the s c product version remote service.
489             *
490             * @return the s c product version remote service
491             */
492            public SCProductVersionService getSCProductVersionService() {
493                    return scProductVersionService;
494            }
495    
496            /**
497             * Sets the s c product version remote service.
498             *
499             * @param scProductVersionService the s c product version remote service
500             */
501            public void setSCProductVersionService(
502                    SCProductVersionService scProductVersionService) {
503                    this.scProductVersionService = scProductVersionService;
504            }
505    
506            /**
507             * Gets the s c product version persistence.
508             *
509             * @return the s c product version persistence
510             */
511            public SCProductVersionPersistence getSCProductVersionPersistence() {
512                    return scProductVersionPersistence;
513            }
514    
515            /**
516             * Sets the s c product version persistence.
517             *
518             * @param scProductVersionPersistence the s c product version persistence
519             */
520            public void setSCProductVersionPersistence(
521                    SCProductVersionPersistence scProductVersionPersistence) {
522                    this.scProductVersionPersistence = scProductVersionPersistence;
523            }
524    
525            /**
526             * Gets the counter local service.
527             *
528             * @return the counter local service
529             */
530            public CounterLocalService getCounterLocalService() {
531                    return counterLocalService;
532            }
533    
534            /**
535             * Sets the counter local service.
536             *
537             * @param counterLocalService the counter local service
538             */
539            public void setCounterLocalService(CounterLocalService counterLocalService) {
540                    this.counterLocalService = counterLocalService;
541            }
542    
543            /**
544             * Gets the image local service.
545             *
546             * @return the image local service
547             */
548            public ImageLocalService getImageLocalService() {
549                    return imageLocalService;
550            }
551    
552            /**
553             * Sets the image local service.
554             *
555             * @param imageLocalService the image local service
556             */
557            public void setImageLocalService(ImageLocalService imageLocalService) {
558                    this.imageLocalService = imageLocalService;
559            }
560    
561            /**
562             * Gets the image remote service.
563             *
564             * @return the image remote service
565             */
566            public ImageService getImageService() {
567                    return imageService;
568            }
569    
570            /**
571             * Sets the image remote service.
572             *
573             * @param imageService the image remote service
574             */
575            public void setImageService(ImageService imageService) {
576                    this.imageService = imageService;
577            }
578    
579            /**
580             * Gets the image persistence.
581             *
582             * @return the image persistence
583             */
584            public ImagePersistence getImagePersistence() {
585                    return imagePersistence;
586            }
587    
588            /**
589             * Sets the image persistence.
590             *
591             * @param imagePersistence the image persistence
592             */
593            public void setImagePersistence(ImagePersistence imagePersistence) {
594                    this.imagePersistence = imagePersistence;
595            }
596    
597            /**
598             * Gets the resource local service.
599             *
600             * @return the resource local service
601             */
602            public ResourceLocalService getResourceLocalService() {
603                    return resourceLocalService;
604            }
605    
606            /**
607             * Sets the resource local service.
608             *
609             * @param resourceLocalService the resource local service
610             */
611            public void setResourceLocalService(
612                    ResourceLocalService resourceLocalService) {
613                    this.resourceLocalService = resourceLocalService;
614            }
615    
616            /**
617             * Gets the resource remote service.
618             *
619             * @return the resource remote service
620             */
621            public ResourceService getResourceService() {
622                    return resourceService;
623            }
624    
625            /**
626             * Sets the resource remote service.
627             *
628             * @param resourceService the resource remote service
629             */
630            public void setResourceService(ResourceService resourceService) {
631                    this.resourceService = resourceService;
632            }
633    
634            /**
635             * Gets the resource persistence.
636             *
637             * @return the resource persistence
638             */
639            public ResourcePersistence getResourcePersistence() {
640                    return resourcePersistence;
641            }
642    
643            /**
644             * Sets the resource persistence.
645             *
646             * @param resourcePersistence the resource persistence
647             */
648            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
649                    this.resourcePersistence = resourcePersistence;
650            }
651    
652            /**
653             * Gets the resource finder.
654             *
655             * @return the resource finder
656             */
657            public ResourceFinder getResourceFinder() {
658                    return resourceFinder;
659            }
660    
661            /**
662             * Sets the resource finder.
663             *
664             * @param resourceFinder the resource finder
665             */
666            public void setResourceFinder(ResourceFinder resourceFinder) {
667                    this.resourceFinder = resourceFinder;
668            }
669    
670            /**
671             * Gets the user local service.
672             *
673             * @return the user local service
674             */
675            public UserLocalService getUserLocalService() {
676                    return userLocalService;
677            }
678    
679            /**
680             * Sets the user local service.
681             *
682             * @param userLocalService the user local service
683             */
684            public void setUserLocalService(UserLocalService userLocalService) {
685                    this.userLocalService = userLocalService;
686            }
687    
688            /**
689             * Gets the user remote service.
690             *
691             * @return the user remote service
692             */
693            public UserService getUserService() {
694                    return userService;
695            }
696    
697            /**
698             * Sets the user remote service.
699             *
700             * @param userService the user remote service
701             */
702            public void setUserService(UserService userService) {
703                    this.userService = userService;
704            }
705    
706            /**
707             * Gets the user persistence.
708             *
709             * @return the user persistence
710             */
711            public UserPersistence getUserPersistence() {
712                    return userPersistence;
713            }
714    
715            /**
716             * Sets the user persistence.
717             *
718             * @param userPersistence the user persistence
719             */
720            public void setUserPersistence(UserPersistence userPersistence) {
721                    this.userPersistence = userPersistence;
722            }
723    
724            /**
725             * Gets the user finder.
726             *
727             * @return the user finder
728             */
729            public UserFinder getUserFinder() {
730                    return userFinder;
731            }
732    
733            /**
734             * Sets the user finder.
735             *
736             * @param userFinder the user finder
737             */
738            public void setUserFinder(UserFinder userFinder) {
739                    this.userFinder = userFinder;
740            }
741    
742            /**
743             * Performs an SQL query.
744             *
745             * @param sql the sql query to perform
746             */
747            protected void runSQL(String sql) throws SystemException {
748                    try {
749                            DataSource dataSource = scProductScreenshotPersistence.getDataSource();
750    
751                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
752                                            sql, new int[0]);
753    
754                            sqlUpdate.update();
755                    }
756                    catch (Exception e) {
757                            throw new SystemException(e);
758                    }
759            }
760    
761            @BeanReference(type = SCLicenseLocalService.class)
762            protected SCLicenseLocalService scLicenseLocalService;
763            @BeanReference(type = SCLicenseService.class)
764            protected SCLicenseService scLicenseService;
765            @BeanReference(type = SCLicensePersistence.class)
766            protected SCLicensePersistence scLicensePersistence;
767            @BeanReference(type = SCFrameworkVersionLocalService.class)
768            protected SCFrameworkVersionLocalService scFrameworkVersionLocalService;
769            @BeanReference(type = SCFrameworkVersionService.class)
770            protected SCFrameworkVersionService scFrameworkVersionService;
771            @BeanReference(type = SCFrameworkVersionPersistence.class)
772            protected SCFrameworkVersionPersistence scFrameworkVersionPersistence;
773            @BeanReference(type = SCProductEntryLocalService.class)
774            protected SCProductEntryLocalService scProductEntryLocalService;
775            @BeanReference(type = SCProductEntryService.class)
776            protected SCProductEntryService scProductEntryService;
777            @BeanReference(type = SCProductEntryPersistence.class)
778            protected SCProductEntryPersistence scProductEntryPersistence;
779            @BeanReference(type = SCProductScreenshotLocalService.class)
780            protected SCProductScreenshotLocalService scProductScreenshotLocalService;
781            @BeanReference(type = SCProductScreenshotPersistence.class)
782            protected SCProductScreenshotPersistence scProductScreenshotPersistence;
783            @BeanReference(type = SCProductVersionLocalService.class)
784            protected SCProductVersionLocalService scProductVersionLocalService;
785            @BeanReference(type = SCProductVersionService.class)
786            protected SCProductVersionService scProductVersionService;
787            @BeanReference(type = SCProductVersionPersistence.class)
788            protected SCProductVersionPersistence scProductVersionPersistence;
789            @BeanReference(type = CounterLocalService.class)
790            protected CounterLocalService counterLocalService;
791            @BeanReference(type = ImageLocalService.class)
792            protected ImageLocalService imageLocalService;
793            @BeanReference(type = ImageService.class)
794            protected ImageService imageService;
795            @BeanReference(type = ImagePersistence.class)
796            protected ImagePersistence imagePersistence;
797            @BeanReference(type = ResourceLocalService.class)
798            protected ResourceLocalService resourceLocalService;
799            @BeanReference(type = ResourceService.class)
800            protected ResourceService resourceService;
801            @BeanReference(type = ResourcePersistence.class)
802            protected ResourcePersistence resourcePersistence;
803            @BeanReference(type = ResourceFinder.class)
804            protected ResourceFinder resourceFinder;
805            @BeanReference(type = UserLocalService.class)
806            protected UserLocalService userLocalService;
807            @BeanReference(type = UserService.class)
808            protected UserService userService;
809            @BeanReference(type = UserPersistence.class)
810            protected UserPersistence userPersistence;
811            @BeanReference(type = UserFinder.class)
812            protected UserFinder userFinder;
813    }