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