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