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