001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.softwarecatalog.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.annotation.BeanReference;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
023    import com.liferay.portal.kernel.exception.PortalException;
024    import com.liferay.portal.kernel.exception.SystemException;
025    import com.liferay.portal.kernel.util.OrderByComparator;
026    import com.liferay.portal.service.GroupLocalService;
027    import com.liferay.portal.service.GroupService;
028    import com.liferay.portal.service.ImageLocalService;
029    import com.liferay.portal.service.ImageService;
030    import com.liferay.portal.service.ResourceLocalService;
031    import com.liferay.portal.service.ResourceService;
032    import com.liferay.portal.service.UserLocalService;
033    import com.liferay.portal.service.UserService;
034    import com.liferay.portal.service.persistence.GroupFinder;
035    import com.liferay.portal.service.persistence.GroupPersistence;
036    import com.liferay.portal.service.persistence.ImagePersistence;
037    import com.liferay.portal.service.persistence.ResourceFinder;
038    import com.liferay.portal.service.persistence.ResourcePersistence;
039    import com.liferay.portal.service.persistence.UserFinder;
040    import com.liferay.portal.service.persistence.UserPersistence;
041    
042    import com.liferay.portlet.messageboards.service.MBMessageLocalService;
043    import com.liferay.portlet.messageboards.service.MBMessageService;
044    import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
045    import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
046    import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
047    import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
048    import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
049    import com.liferay.portlet.softwarecatalog.model.SCProductEntry;
050    import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService;
051    import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService;
052    import com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService;
053    import com.liferay.portlet.softwarecatalog.service.SCLicenseService;
054    import com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService;
055    import com.liferay.portlet.softwarecatalog.service.SCProductEntryService;
056    import com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService;
057    import com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService;
058    import com.liferay.portlet.softwarecatalog.service.SCProductVersionService;
059    import com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence;
060    import com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence;
061    import com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence;
062    import com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence;
063    import com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence;
064    
065    import java.util.List;
066    
067    import javax.sql.DataSource;
068    
069    /**
070     * The base implementation of the s c product entry local service.
071     *
072     * <p>
073     * 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.SCProductEntryLocalServiceImpl}.
074     * </p>
075     *
076     * <p>
077     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalServiceUtil} to access the s c product entry local service.
078     * </p>
079     *
080     * @author Brian Wing Shun Chan
081     * @see com.liferay.portlet.softwarecatalog.service.impl.SCProductEntryLocalServiceImpl
082     * @see com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalServiceUtil
083     * @generated
084     */
085    public abstract class SCProductEntryLocalServiceBaseImpl
086            implements SCProductEntryLocalService {
087            /**
088             * Adds the s c product entry to the database. Also notifies the appropriate model listeners.
089             *
090             * @param scProductEntry the s c product entry to add
091             * @return the s c product entry that was added
092             * @throws SystemException if a system exception occurred
093             */
094            public SCProductEntry addSCProductEntry(SCProductEntry scProductEntry)
095                    throws SystemException {
096                    scProductEntry.setNew(true);
097    
098                    return scProductEntryPersistence.update(scProductEntry, false);
099            }
100    
101            /**
102             * Creates a new s c product entry with the primary key. Does not add the s c product entry to the database.
103             *
104             * @param productEntryId the primary key for the new s c product entry
105             * @return the new s c product entry
106             */
107            public SCProductEntry createSCProductEntry(long productEntryId) {
108                    return scProductEntryPersistence.create(productEntryId);
109            }
110    
111            /**
112             * Deletes the s c product entry with the primary key from the database. Also notifies the appropriate model listeners.
113             *
114             * @param productEntryId the primary key of the s c product entry to delete
115             * @throws PortalException if a s c product entry with the primary key could not be found
116             * @throws SystemException if a system exception occurred
117             */
118            public void deleteSCProductEntry(long productEntryId)
119                    throws PortalException, SystemException {
120                    scProductEntryPersistence.remove(productEntryId);
121            }
122    
123            /**
124             * Deletes the s c product entry from the database. Also notifies the appropriate model listeners.
125             *
126             * @param scProductEntry the s c product entry to delete
127             * @throws SystemException if a system exception occurred
128             */
129            public void deleteSCProductEntry(SCProductEntry scProductEntry)
130                    throws SystemException {
131                    scProductEntryPersistence.remove(scProductEntry);
132            }
133    
134            /**
135             * Performs a dynamic query on the database and returns the matching rows.
136             *
137             * @param dynamicQuery the dynamic query to search with
138             * @return the matching rows
139             * @throws SystemException if a system exception occurred
140             */
141            @SuppressWarnings("rawtypes")
142            public List dynamicQuery(DynamicQuery dynamicQuery)
143                    throws SystemException {
144                    return scProductEntryPersistence.findWithDynamicQuery(dynamicQuery);
145            }
146    
147            /**
148             * Performs a dynamic query on the database and returns a range of the matching rows.
149             *
150             * <p>
151             * 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.
152             * </p>
153             *
154             * @param dynamicQuery the dynamic query to search with
155             * @param start the lower bound of the range of model instances to return
156             * @param end the upper bound of the range of model instances to return (not inclusive)
157             * @return the range of matching rows
158             * @throws SystemException if a system exception occurred
159             */
160            @SuppressWarnings("rawtypes")
161            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
162                    throws SystemException {
163                    return scProductEntryPersistence.findWithDynamicQuery(dynamicQuery,
164                            start, end);
165            }
166    
167            /**
168             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
169             *
170             * <p>
171             * 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.
172             * </p>
173             *
174             * @param dynamicQuery the dynamic query to search with
175             * @param start the lower bound of the range of model instances to return
176             * @param end the upper bound of the range of model instances to return (not inclusive)
177             * @param orderByComparator the comparator to order the results by
178             * @return the ordered range of matching rows
179             * @throws SystemException if a system exception occurred
180             */
181            @SuppressWarnings("rawtypes")
182            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
183                    OrderByComparator orderByComparator) throws SystemException {
184                    return scProductEntryPersistence.findWithDynamicQuery(dynamicQuery,
185                            start, end, orderByComparator);
186            }
187    
188            /**
189             * Counts the number of rows that match the dynamic query.
190             *
191             * @param dynamicQuery the dynamic query to search with
192             * @return the number of rows that match the dynamic query
193             * @throws SystemException if a system exception occurred
194             */
195            public long dynamicQueryCount(DynamicQuery dynamicQuery)
196                    throws SystemException {
197                    return scProductEntryPersistence.countWithDynamicQuery(dynamicQuery);
198            }
199    
200            /**
201             * Gets the s c product entry with the primary key.
202             *
203             * @param productEntryId the primary key of the s c product entry to get
204             * @return the s c product entry
205             * @throws PortalException if a s c product entry with the primary key could not be found
206             * @throws SystemException if a system exception occurred
207             */
208            public SCProductEntry getSCProductEntry(long productEntryId)
209                    throws PortalException, SystemException {
210                    return scProductEntryPersistence.findByPrimaryKey(productEntryId);
211            }
212    
213            /**
214             * Gets a range of all the s c product entries.
215             *
216             * <p>
217             * 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.
218             * </p>
219             *
220             * @param start the lower bound of the range of s c product entries to return
221             * @param end the upper bound of the range of s c product entries to return (not inclusive)
222             * @return the range of s c product entries
223             * @throws SystemException if a system exception occurred
224             */
225            public List<SCProductEntry> getSCProductEntries(int start, int end)
226                    throws SystemException {
227                    return scProductEntryPersistence.findAll(start, end);
228            }
229    
230            /**
231             * Gets the number of s c product entries.
232             *
233             * @return the number of s c product entries
234             * @throws SystemException if a system exception occurred
235             */
236            public int getSCProductEntriesCount() throws SystemException {
237                    return scProductEntryPersistence.countAll();
238            }
239    
240            /**
241             * Updates the s c product entry in the database. Also notifies the appropriate model listeners.
242             *
243             * @param scProductEntry the s c product entry to update
244             * @return the s c product entry that was updated
245             * @throws SystemException if a system exception occurred
246             */
247            public SCProductEntry updateSCProductEntry(SCProductEntry scProductEntry)
248                    throws SystemException {
249                    scProductEntry.setNew(false);
250    
251                    return scProductEntryPersistence.update(scProductEntry, true);
252            }
253    
254            /**
255             * Updates the s c product entry in the database. Also notifies the appropriate model listeners.
256             *
257             * @param scProductEntry the s c product entry to update
258             * @param merge whether to merge the s c product entry 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.
259             * @return the s c product entry that was updated
260             * @throws SystemException if a system exception occurred
261             */
262            public SCProductEntry updateSCProductEntry(SCProductEntry scProductEntry,
263                    boolean merge) throws SystemException {
264                    scProductEntry.setNew(false);
265    
266                    return scProductEntryPersistence.update(scProductEntry, merge);
267            }
268    
269            /**
270             * Gets the s c license local service.
271             *
272             * @return the s c license local service
273             */
274            public SCLicenseLocalService getSCLicenseLocalService() {
275                    return scLicenseLocalService;
276            }
277    
278            /**
279             * Sets the s c license local service.
280             *
281             * @param scLicenseLocalService the s c license local service
282             */
283            public void setSCLicenseLocalService(
284                    SCLicenseLocalService scLicenseLocalService) {
285                    this.scLicenseLocalService = scLicenseLocalService;
286            }
287    
288            /**
289             * Gets the s c license remote service.
290             *
291             * @return the s c license remote service
292             */
293            public SCLicenseService getSCLicenseService() {
294                    return scLicenseService;
295            }
296    
297            /**
298             * Sets the s c license remote service.
299             *
300             * @param scLicenseService the s c license remote service
301             */
302            public void setSCLicenseService(SCLicenseService scLicenseService) {
303                    this.scLicenseService = scLicenseService;
304            }
305    
306            /**
307             * Gets the s c license persistence.
308             *
309             * @return the s c license persistence
310             */
311            public SCLicensePersistence getSCLicensePersistence() {
312                    return scLicensePersistence;
313            }
314    
315            /**
316             * Sets the s c license persistence.
317             *
318             * @param scLicensePersistence the s c license persistence
319             */
320            public void setSCLicensePersistence(
321                    SCLicensePersistence scLicensePersistence) {
322                    this.scLicensePersistence = scLicensePersistence;
323            }
324    
325            /**
326             * Gets the s c framework version local service.
327             *
328             * @return the s c framework version local service
329             */
330            public SCFrameworkVersionLocalService getSCFrameworkVersionLocalService() {
331                    return scFrameworkVersionLocalService;
332            }
333    
334            /**
335             * Sets the s c framework version local service.
336             *
337             * @param scFrameworkVersionLocalService the s c framework version local service
338             */
339            public void setSCFrameworkVersionLocalService(
340                    SCFrameworkVersionLocalService scFrameworkVersionLocalService) {
341                    this.scFrameworkVersionLocalService = scFrameworkVersionLocalService;
342            }
343    
344            /**
345             * Gets the s c framework version remote service.
346             *
347             * @return the s c framework version remote service
348             */
349            public SCFrameworkVersionService getSCFrameworkVersionService() {
350                    return scFrameworkVersionService;
351            }
352    
353            /**
354             * Sets the s c framework version remote service.
355             *
356             * @param scFrameworkVersionService the s c framework version remote service
357             */
358            public void setSCFrameworkVersionService(
359                    SCFrameworkVersionService scFrameworkVersionService) {
360                    this.scFrameworkVersionService = scFrameworkVersionService;
361            }
362    
363            /**
364             * Gets the s c framework version persistence.
365             *
366             * @return the s c framework version persistence
367             */
368            public SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
369                    return scFrameworkVersionPersistence;
370            }
371    
372            /**
373             * Sets the s c framework version persistence.
374             *
375             * @param scFrameworkVersionPersistence the s c framework version persistence
376             */
377            public void setSCFrameworkVersionPersistence(
378                    SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
379                    this.scFrameworkVersionPersistence = scFrameworkVersionPersistence;
380            }
381    
382            /**
383             * Gets the s c product entry local service.
384             *
385             * @return the s c product entry local service
386             */
387            public SCProductEntryLocalService getSCProductEntryLocalService() {
388                    return scProductEntryLocalService;
389            }
390    
391            /**
392             * Sets the s c product entry local service.
393             *
394             * @param scProductEntryLocalService the s c product entry local service
395             */
396            public void setSCProductEntryLocalService(
397                    SCProductEntryLocalService scProductEntryLocalService) {
398                    this.scProductEntryLocalService = scProductEntryLocalService;
399            }
400    
401            /**
402             * Gets the s c product entry remote service.
403             *
404             * @return the s c product entry remote service
405             */
406            public SCProductEntryService getSCProductEntryService() {
407                    return scProductEntryService;
408            }
409    
410            /**
411             * Sets the s c product entry remote service.
412             *
413             * @param scProductEntryService the s c product entry remote service
414             */
415            public void setSCProductEntryService(
416                    SCProductEntryService scProductEntryService) {
417                    this.scProductEntryService = scProductEntryService;
418            }
419    
420            /**
421             * Gets the s c product entry persistence.
422             *
423             * @return the s c product entry persistence
424             */
425            public SCProductEntryPersistence getSCProductEntryPersistence() {
426                    return scProductEntryPersistence;
427            }
428    
429            /**
430             * Sets the s c product entry persistence.
431             *
432             * @param scProductEntryPersistence the s c product entry persistence
433             */
434            public void setSCProductEntryPersistence(
435                    SCProductEntryPersistence scProductEntryPersistence) {
436                    this.scProductEntryPersistence = scProductEntryPersistence;
437            }
438    
439            /**
440             * Gets the s c product screenshot local service.
441             *
442             * @return the s c product screenshot local service
443             */
444            public SCProductScreenshotLocalService getSCProductScreenshotLocalService() {
445                    return scProductScreenshotLocalService;
446            }
447    
448            /**
449             * Sets the s c product screenshot local service.
450             *
451             * @param scProductScreenshotLocalService the s c product screenshot local service
452             */
453            public void setSCProductScreenshotLocalService(
454                    SCProductScreenshotLocalService scProductScreenshotLocalService) {
455                    this.scProductScreenshotLocalService = scProductScreenshotLocalService;
456            }
457    
458            /**
459             * Gets the s c product screenshot persistence.
460             *
461             * @return the s c product screenshot persistence
462             */
463            public SCProductScreenshotPersistence getSCProductScreenshotPersistence() {
464                    return scProductScreenshotPersistence;
465            }
466    
467            /**
468             * Sets the s c product screenshot persistence.
469             *
470             * @param scProductScreenshotPersistence the s c product screenshot persistence
471             */
472            public void setSCProductScreenshotPersistence(
473                    SCProductScreenshotPersistence scProductScreenshotPersistence) {
474                    this.scProductScreenshotPersistence = scProductScreenshotPersistence;
475            }
476    
477            /**
478             * Gets the s c product version local service.
479             *
480             * @return the s c product version local service
481             */
482            public SCProductVersionLocalService getSCProductVersionLocalService() {
483                    return scProductVersionLocalService;
484            }
485    
486            /**
487             * Sets the s c product version local service.
488             *
489             * @param scProductVersionLocalService the s c product version local service
490             */
491            public void setSCProductVersionLocalService(
492                    SCProductVersionLocalService scProductVersionLocalService) {
493                    this.scProductVersionLocalService = scProductVersionLocalService;
494            }
495    
496            /**
497             * Gets the s c product version remote service.
498             *
499             * @return the s c product version remote service
500             */
501            public SCProductVersionService getSCProductVersionService() {
502                    return scProductVersionService;
503            }
504    
505            /**
506             * Sets the s c product version remote service.
507             *
508             * @param scProductVersionService the s c product version remote service
509             */
510            public void setSCProductVersionService(
511                    SCProductVersionService scProductVersionService) {
512                    this.scProductVersionService = scProductVersionService;
513            }
514    
515            /**
516             * Gets the s c product version persistence.
517             *
518             * @return the s c product version persistence
519             */
520            public SCProductVersionPersistence getSCProductVersionPersistence() {
521                    return scProductVersionPersistence;
522            }
523    
524            /**
525             * Sets the s c product version persistence.
526             *
527             * @param scProductVersionPersistence the s c product version persistence
528             */
529            public void setSCProductVersionPersistence(
530                    SCProductVersionPersistence scProductVersionPersistence) {
531                    this.scProductVersionPersistence = scProductVersionPersistence;
532            }
533    
534            /**
535             * Gets the counter local service.
536             *
537             * @return the counter local service
538             */
539            public CounterLocalService getCounterLocalService() {
540                    return counterLocalService;
541            }
542    
543            /**
544             * Sets the counter local service.
545             *
546             * @param counterLocalService the counter local service
547             */
548            public void setCounterLocalService(CounterLocalService counterLocalService) {
549                    this.counterLocalService = counterLocalService;
550            }
551    
552            /**
553             * Gets the group local service.
554             *
555             * @return the group local service
556             */
557            public GroupLocalService getGroupLocalService() {
558                    return groupLocalService;
559            }
560    
561            /**
562             * Sets the group local service.
563             *
564             * @param groupLocalService the group local service
565             */
566            public void setGroupLocalService(GroupLocalService groupLocalService) {
567                    this.groupLocalService = groupLocalService;
568            }
569    
570            /**
571             * Gets the group remote service.
572             *
573             * @return the group remote service
574             */
575            public GroupService getGroupService() {
576                    return groupService;
577            }
578    
579            /**
580             * Sets the group remote service.
581             *
582             * @param groupService the group remote service
583             */
584            public void setGroupService(GroupService groupService) {
585                    this.groupService = groupService;
586            }
587    
588            /**
589             * Gets the group persistence.
590             *
591             * @return the group persistence
592             */
593            public GroupPersistence getGroupPersistence() {
594                    return groupPersistence;
595            }
596    
597            /**
598             * Sets the group persistence.
599             *
600             * @param groupPersistence the group persistence
601             */
602            public void setGroupPersistence(GroupPersistence groupPersistence) {
603                    this.groupPersistence = groupPersistence;
604            }
605    
606            /**
607             * Gets the group finder.
608             *
609             * @return the group finder
610             */
611            public GroupFinder getGroupFinder() {
612                    return groupFinder;
613            }
614    
615            /**
616             * Sets the group finder.
617             *
618             * @param groupFinder the group finder
619             */
620            public void setGroupFinder(GroupFinder groupFinder) {
621                    this.groupFinder = groupFinder;
622            }
623    
624            /**
625             * Gets the image local service.
626             *
627             * @return the image local service
628             */
629            public ImageLocalService getImageLocalService() {
630                    return imageLocalService;
631            }
632    
633            /**
634             * Sets the image local service.
635             *
636             * @param imageLocalService the image local service
637             */
638            public void setImageLocalService(ImageLocalService imageLocalService) {
639                    this.imageLocalService = imageLocalService;
640            }
641    
642            /**
643             * Gets the image remote service.
644             *
645             * @return the image remote service
646             */
647            public ImageService getImageService() {
648                    return imageService;
649            }
650    
651            /**
652             * Sets the image remote service.
653             *
654             * @param imageService the image remote service
655             */
656            public void setImageService(ImageService imageService) {
657                    this.imageService = imageService;
658            }
659    
660            /**
661             * Gets the image persistence.
662             *
663             * @return the image persistence
664             */
665            public ImagePersistence getImagePersistence() {
666                    return imagePersistence;
667            }
668    
669            /**
670             * Sets the image persistence.
671             *
672             * @param imagePersistence the image persistence
673             */
674            public void setImagePersistence(ImagePersistence imagePersistence) {
675                    this.imagePersistence = imagePersistence;
676            }
677    
678            /**
679             * Gets the resource local service.
680             *
681             * @return the resource local service
682             */
683            public ResourceLocalService getResourceLocalService() {
684                    return resourceLocalService;
685            }
686    
687            /**
688             * Sets the resource local service.
689             *
690             * @param resourceLocalService the resource local service
691             */
692            public void setResourceLocalService(
693                    ResourceLocalService resourceLocalService) {
694                    this.resourceLocalService = resourceLocalService;
695            }
696    
697            /**
698             * Gets the resource remote service.
699             *
700             * @return the resource remote service
701             */
702            public ResourceService getResourceService() {
703                    return resourceService;
704            }
705    
706            /**
707             * Sets the resource remote service.
708             *
709             * @param resourceService the resource remote service
710             */
711            public void setResourceService(ResourceService resourceService) {
712                    this.resourceService = resourceService;
713            }
714    
715            /**
716             * Gets the resource persistence.
717             *
718             * @return the resource persistence
719             */
720            public ResourcePersistence getResourcePersistence() {
721                    return resourcePersistence;
722            }
723    
724            /**
725             * Sets the resource persistence.
726             *
727             * @param resourcePersistence the resource persistence
728             */
729            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
730                    this.resourcePersistence = resourcePersistence;
731            }
732    
733            /**
734             * Gets the resource finder.
735             *
736             * @return the resource finder
737             */
738            public ResourceFinder getResourceFinder() {
739                    return resourceFinder;
740            }
741    
742            /**
743             * Sets the resource finder.
744             *
745             * @param resourceFinder the resource finder
746             */
747            public void setResourceFinder(ResourceFinder resourceFinder) {
748                    this.resourceFinder = resourceFinder;
749            }
750    
751            /**
752             * Gets the user local service.
753             *
754             * @return the user local service
755             */
756            public UserLocalService getUserLocalService() {
757                    return userLocalService;
758            }
759    
760            /**
761             * Sets the user local service.
762             *
763             * @param userLocalService the user local service
764             */
765            public void setUserLocalService(UserLocalService userLocalService) {
766                    this.userLocalService = userLocalService;
767            }
768    
769            /**
770             * Gets the user remote service.
771             *
772             * @return the user remote service
773             */
774            public UserService getUserService() {
775                    return userService;
776            }
777    
778            /**
779             * Sets the user remote service.
780             *
781             * @param userService the user remote service
782             */
783            public void setUserService(UserService userService) {
784                    this.userService = userService;
785            }
786    
787            /**
788             * Gets the user persistence.
789             *
790             * @return the user persistence
791             */
792            public UserPersistence getUserPersistence() {
793                    return userPersistence;
794            }
795    
796            /**
797             * Sets the user persistence.
798             *
799             * @param userPersistence the user persistence
800             */
801            public void setUserPersistence(UserPersistence userPersistence) {
802                    this.userPersistence = userPersistence;
803            }
804    
805            /**
806             * Gets the user finder.
807             *
808             * @return the user finder
809             */
810            public UserFinder getUserFinder() {
811                    return userFinder;
812            }
813    
814            /**
815             * Sets the user finder.
816             *
817             * @param userFinder the user finder
818             */
819            public void setUserFinder(UserFinder userFinder) {
820                    this.userFinder = userFinder;
821            }
822    
823            /**
824             * Gets the message-boards message local service.
825             *
826             * @return the message-boards message local service
827             */
828            public MBMessageLocalService getMBMessageLocalService() {
829                    return mbMessageLocalService;
830            }
831    
832            /**
833             * Sets the message-boards message local service.
834             *
835             * @param mbMessageLocalService the message-boards message local service
836             */
837            public void setMBMessageLocalService(
838                    MBMessageLocalService mbMessageLocalService) {
839                    this.mbMessageLocalService = mbMessageLocalService;
840            }
841    
842            /**
843             * Gets the message-boards message remote service.
844             *
845             * @return the message-boards message remote service
846             */
847            public MBMessageService getMBMessageService() {
848                    return mbMessageService;
849            }
850    
851            /**
852             * Sets the message-boards message remote service.
853             *
854             * @param mbMessageService the message-boards message remote service
855             */
856            public void setMBMessageService(MBMessageService mbMessageService) {
857                    this.mbMessageService = mbMessageService;
858            }
859    
860            /**
861             * Gets the message-boards message persistence.
862             *
863             * @return the message-boards message persistence
864             */
865            public MBMessagePersistence getMBMessagePersistence() {
866                    return mbMessagePersistence;
867            }
868    
869            /**
870             * Sets the message-boards message persistence.
871             *
872             * @param mbMessagePersistence the message-boards message persistence
873             */
874            public void setMBMessagePersistence(
875                    MBMessagePersistence mbMessagePersistence) {
876                    this.mbMessagePersistence = mbMessagePersistence;
877            }
878    
879            /**
880             * Gets the message-boards message finder.
881             *
882             * @return the message-boards message finder
883             */
884            public MBMessageFinder getMBMessageFinder() {
885                    return mbMessageFinder;
886            }
887    
888            /**
889             * Sets the message-boards message finder.
890             *
891             * @param mbMessageFinder the message-boards message finder
892             */
893            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
894                    this.mbMessageFinder = mbMessageFinder;
895            }
896    
897            /**
898             * Gets the ratings stats local service.
899             *
900             * @return the ratings stats local service
901             */
902            public RatingsStatsLocalService getRatingsStatsLocalService() {
903                    return ratingsStatsLocalService;
904            }
905    
906            /**
907             * Sets the ratings stats local service.
908             *
909             * @param ratingsStatsLocalService the ratings stats local service
910             */
911            public void setRatingsStatsLocalService(
912                    RatingsStatsLocalService ratingsStatsLocalService) {
913                    this.ratingsStatsLocalService = ratingsStatsLocalService;
914            }
915    
916            /**
917             * Gets the ratings stats persistence.
918             *
919             * @return the ratings stats persistence
920             */
921            public RatingsStatsPersistence getRatingsStatsPersistence() {
922                    return ratingsStatsPersistence;
923            }
924    
925            /**
926             * Sets the ratings stats persistence.
927             *
928             * @param ratingsStatsPersistence the ratings stats persistence
929             */
930            public void setRatingsStatsPersistence(
931                    RatingsStatsPersistence ratingsStatsPersistence) {
932                    this.ratingsStatsPersistence = ratingsStatsPersistence;
933            }
934    
935            /**
936             * Gets the ratings stats finder.
937             *
938             * @return the ratings stats finder
939             */
940            public RatingsStatsFinder getRatingsStatsFinder() {
941                    return ratingsStatsFinder;
942            }
943    
944            /**
945             * Sets the ratings stats finder.
946             *
947             * @param ratingsStatsFinder the ratings stats finder
948             */
949            public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
950                    this.ratingsStatsFinder = ratingsStatsFinder;
951            }
952    
953            /**
954             * Performs an SQL query.
955             *
956             * @param sql the sql query to perform
957             */
958            protected void runSQL(String sql) throws SystemException {
959                    try {
960                            DataSource dataSource = scProductEntryPersistence.getDataSource();
961    
962                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
963                                            sql, new int[0]);
964    
965                            sqlUpdate.update();
966                    }
967                    catch (Exception e) {
968                            throw new SystemException(e);
969                    }
970            }
971    
972            @BeanReference(type = SCLicenseLocalService.class)
973            protected SCLicenseLocalService scLicenseLocalService;
974            @BeanReference(type = SCLicenseService.class)
975            protected SCLicenseService scLicenseService;
976            @BeanReference(type = SCLicensePersistence.class)
977            protected SCLicensePersistence scLicensePersistence;
978            @BeanReference(type = SCFrameworkVersionLocalService.class)
979            protected SCFrameworkVersionLocalService scFrameworkVersionLocalService;
980            @BeanReference(type = SCFrameworkVersionService.class)
981            protected SCFrameworkVersionService scFrameworkVersionService;
982            @BeanReference(type = SCFrameworkVersionPersistence.class)
983            protected SCFrameworkVersionPersistence scFrameworkVersionPersistence;
984            @BeanReference(type = SCProductEntryLocalService.class)
985            protected SCProductEntryLocalService scProductEntryLocalService;
986            @BeanReference(type = SCProductEntryService.class)
987            protected SCProductEntryService scProductEntryService;
988            @BeanReference(type = SCProductEntryPersistence.class)
989            protected SCProductEntryPersistence scProductEntryPersistence;
990            @BeanReference(type = SCProductScreenshotLocalService.class)
991            protected SCProductScreenshotLocalService scProductScreenshotLocalService;
992            @BeanReference(type = SCProductScreenshotPersistence.class)
993            protected SCProductScreenshotPersistence scProductScreenshotPersistence;
994            @BeanReference(type = SCProductVersionLocalService.class)
995            protected SCProductVersionLocalService scProductVersionLocalService;
996            @BeanReference(type = SCProductVersionService.class)
997            protected SCProductVersionService scProductVersionService;
998            @BeanReference(type = SCProductVersionPersistence.class)
999            protected SCProductVersionPersistence scProductVersionPersistence;
1000            @BeanReference(type = CounterLocalService.class)
1001            protected CounterLocalService counterLocalService;
1002            @BeanReference(type = GroupLocalService.class)
1003            protected GroupLocalService groupLocalService;
1004            @BeanReference(type = GroupService.class)
1005            protected GroupService groupService;
1006            @BeanReference(type = GroupPersistence.class)
1007            protected GroupPersistence groupPersistence;
1008            @BeanReference(type = GroupFinder.class)
1009            protected GroupFinder groupFinder;
1010            @BeanReference(type = ImageLocalService.class)
1011            protected ImageLocalService imageLocalService;
1012            @BeanReference(type = ImageService.class)
1013            protected ImageService imageService;
1014            @BeanReference(type = ImagePersistence.class)
1015            protected ImagePersistence imagePersistence;
1016            @BeanReference(type = ResourceLocalService.class)
1017            protected ResourceLocalService resourceLocalService;
1018            @BeanReference(type = ResourceService.class)
1019            protected ResourceService resourceService;
1020            @BeanReference(type = ResourcePersistence.class)
1021            protected ResourcePersistence resourcePersistence;
1022            @BeanReference(type = ResourceFinder.class)
1023            protected ResourceFinder resourceFinder;
1024            @BeanReference(type = UserLocalService.class)
1025            protected UserLocalService userLocalService;
1026            @BeanReference(type = UserService.class)
1027            protected UserService userService;
1028            @BeanReference(type = UserPersistence.class)
1029            protected UserPersistence userPersistence;
1030            @BeanReference(type = UserFinder.class)
1031            protected UserFinder userFinder;
1032            @BeanReference(type = MBMessageLocalService.class)
1033            protected MBMessageLocalService mbMessageLocalService;
1034            @BeanReference(type = MBMessageService.class)
1035            protected MBMessageService mbMessageService;
1036            @BeanReference(type = MBMessagePersistence.class)
1037            protected MBMessagePersistence mbMessagePersistence;
1038            @BeanReference(type = MBMessageFinder.class)
1039            protected MBMessageFinder mbMessageFinder;
1040            @BeanReference(type = RatingsStatsLocalService.class)
1041            protected RatingsStatsLocalService ratingsStatsLocalService;
1042            @BeanReference(type = RatingsStatsPersistence.class)
1043            protected RatingsStatsPersistence ratingsStatsPersistence;
1044            @BeanReference(type = RatingsStatsFinder.class)
1045            protected RatingsStatsFinder ratingsStatsFinder;
1046    }