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