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