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