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