001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.softwarecatalog.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
024    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
025    import com.liferay.portal.kernel.exception.PortalException;
026    import com.liferay.portal.kernel.exception.SystemException;
027    import com.liferay.portal.kernel.search.Indexable;
028    import com.liferay.portal.kernel.search.IndexableType;
029    import com.liferay.portal.kernel.util.OrderByComparator;
030    import com.liferay.portal.model.PersistedModel;
031    import com.liferay.portal.service.BaseLocalServiceImpl;
032    import com.liferay.portal.service.GroupLocalService;
033    import com.liferay.portal.service.GroupService;
034    import com.liferay.portal.service.ImageLocalService;
035    import com.liferay.portal.service.ImageService;
036    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
037    import com.liferay.portal.service.ResourceLocalService;
038    import com.liferay.portal.service.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             * @throws SystemException if a system exception occurred
307             */
308            public void addSCLicenseSCProductEntry(long licenseId, long productEntryId)
309                    throws SystemException {
310                    scLicensePersistence.addSCProductEntry(licenseId, productEntryId);
311            }
312    
313            /**
314             * @throws SystemException if a system exception occurred
315             */
316            public void addSCLicenseSCProductEntry(long licenseId,
317                    SCProductEntry scProductEntry) throws SystemException {
318                    scLicensePersistence.addSCProductEntry(licenseId, scProductEntry);
319            }
320    
321            /**
322             * @throws SystemException if a system exception occurred
323             */
324            public void addSCLicenseSCProductEntries(long licenseId,
325                    long[] productEntryIds) throws SystemException {
326                    scLicensePersistence.addSCProductEntries(licenseId, productEntryIds);
327            }
328    
329            /**
330             * @throws SystemException if a system exception occurred
331             */
332            public void addSCLicenseSCProductEntries(long licenseId,
333                    List<SCProductEntry> SCProductEntries) throws SystemException {
334                    scLicensePersistence.addSCProductEntries(licenseId, SCProductEntries);
335            }
336    
337            /**
338             * @throws SystemException if a system exception occurred
339             */
340            public void clearSCLicenseSCProductEntries(long licenseId)
341                    throws SystemException {
342                    scLicensePersistence.clearSCProductEntries(licenseId);
343            }
344    
345            /**
346             * @throws SystemException if a system exception occurred
347             */
348            public void deleteSCLicenseSCProductEntry(long licenseId,
349                    long productEntryId) throws SystemException {
350                    scLicensePersistence.removeSCProductEntry(licenseId, productEntryId);
351            }
352    
353            /**
354             * @throws SystemException if a system exception occurred
355             */
356            public void deleteSCLicenseSCProductEntry(long licenseId,
357                    SCProductEntry scProductEntry) throws SystemException {
358                    scLicensePersistence.removeSCProductEntry(licenseId, scProductEntry);
359            }
360    
361            /**
362             * @throws SystemException if a system exception occurred
363             */
364            public void deleteSCLicenseSCProductEntries(long licenseId,
365                    long[] productEntryIds) throws SystemException {
366                    scLicensePersistence.removeSCProductEntries(licenseId, productEntryIds);
367            }
368    
369            /**
370             * @throws SystemException if a system exception occurred
371             */
372            public void deleteSCLicenseSCProductEntries(long licenseId,
373                    List<SCProductEntry> SCProductEntries) throws SystemException {
374                    scLicensePersistence.removeSCProductEntries(licenseId, SCProductEntries);
375            }
376    
377            /**
378             * @throws SystemException if a system exception occurred
379             */
380            public List<SCProductEntry> getSCLicenseSCProductEntries(long licenseId)
381                    throws SystemException {
382                    return scLicensePersistence.getSCProductEntries(licenseId);
383            }
384    
385            /**
386             * @throws SystemException if a system exception occurred
387             */
388            public List<SCProductEntry> getSCLicenseSCProductEntries(long licenseId,
389                    int start, int end) throws SystemException {
390                    return scLicensePersistence.getSCProductEntries(licenseId, start, end);
391            }
392    
393            /**
394             * @throws SystemException if a system exception occurred
395             */
396            public List<SCProductEntry> getSCLicenseSCProductEntries(long licenseId,
397                    int start, int end, OrderByComparator orderByComparator)
398                    throws SystemException {
399                    return scLicensePersistence.getSCProductEntries(licenseId, start, end,
400                            orderByComparator);
401            }
402    
403            /**
404             * @throws SystemException if a system exception occurred
405             */
406            public int getSCLicenseSCProductEntriesCount(long licenseId)
407                    throws SystemException {
408                    return scLicensePersistence.getSCProductEntriesSize(licenseId);
409            }
410    
411            /**
412             * @throws SystemException if a system exception occurred
413             */
414            public boolean hasSCLicenseSCProductEntry(long licenseId,
415                    long productEntryId) throws SystemException {
416                    return scLicensePersistence.containsSCProductEntry(licenseId,
417                            productEntryId);
418            }
419    
420            /**
421             * @throws SystemException if a system exception occurred
422             */
423            public boolean hasSCLicenseSCProductEntries(long licenseId)
424                    throws SystemException {
425                    return scLicensePersistence.containsSCProductEntries(licenseId);
426            }
427    
428            /**
429             * @throws SystemException if a system exception occurred
430             */
431            public void setSCLicenseSCProductEntries(long licenseId,
432                    long[] productEntryIds) throws SystemException {
433                    scLicensePersistence.setSCProductEntries(licenseId, productEntryIds);
434            }
435    
436            /**
437             * Returns the s c framework version local service.
438             *
439             * @return the s c framework version local service
440             */
441            public SCFrameworkVersionLocalService getSCFrameworkVersionLocalService() {
442                    return scFrameworkVersionLocalService;
443            }
444    
445            /**
446             * Sets the s c framework version local service.
447             *
448             * @param scFrameworkVersionLocalService the s c framework version local service
449             */
450            public void setSCFrameworkVersionLocalService(
451                    SCFrameworkVersionLocalService scFrameworkVersionLocalService) {
452                    this.scFrameworkVersionLocalService = scFrameworkVersionLocalService;
453            }
454    
455            /**
456             * Returns the s c framework version remote service.
457             *
458             * @return the s c framework version remote service
459             */
460            public SCFrameworkVersionService getSCFrameworkVersionService() {
461                    return scFrameworkVersionService;
462            }
463    
464            /**
465             * Sets the s c framework version remote service.
466             *
467             * @param scFrameworkVersionService the s c framework version remote service
468             */
469            public void setSCFrameworkVersionService(
470                    SCFrameworkVersionService scFrameworkVersionService) {
471                    this.scFrameworkVersionService = scFrameworkVersionService;
472            }
473    
474            /**
475             * Returns the s c framework version persistence.
476             *
477             * @return the s c framework version persistence
478             */
479            public SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
480                    return scFrameworkVersionPersistence;
481            }
482    
483            /**
484             * Sets the s c framework version persistence.
485             *
486             * @param scFrameworkVersionPersistence the s c framework version persistence
487             */
488            public void setSCFrameworkVersionPersistence(
489                    SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
490                    this.scFrameworkVersionPersistence = scFrameworkVersionPersistence;
491            }
492    
493            /**
494             * Returns the s c license local service.
495             *
496             * @return the s c license local service
497             */
498            public SCLicenseLocalService getSCLicenseLocalService() {
499                    return scLicenseLocalService;
500            }
501    
502            /**
503             * Sets the s c license local service.
504             *
505             * @param scLicenseLocalService the s c license local service
506             */
507            public void setSCLicenseLocalService(
508                    SCLicenseLocalService scLicenseLocalService) {
509                    this.scLicenseLocalService = scLicenseLocalService;
510            }
511    
512            /**
513             * Returns the s c license remote service.
514             *
515             * @return the s c license remote service
516             */
517            public SCLicenseService getSCLicenseService() {
518                    return scLicenseService;
519            }
520    
521            /**
522             * Sets the s c license remote service.
523             *
524             * @param scLicenseService the s c license remote service
525             */
526            public void setSCLicenseService(SCLicenseService scLicenseService) {
527                    this.scLicenseService = scLicenseService;
528            }
529    
530            /**
531             * Returns the s c license persistence.
532             *
533             * @return the s c license persistence
534             */
535            public SCLicensePersistence getSCLicensePersistence() {
536                    return scLicensePersistence;
537            }
538    
539            /**
540             * Sets the s c license persistence.
541             *
542             * @param scLicensePersistence the s c license persistence
543             */
544            public void setSCLicensePersistence(
545                    SCLicensePersistence scLicensePersistence) {
546                    this.scLicensePersistence = scLicensePersistence;
547            }
548    
549            /**
550             * Returns the s c product entry local service.
551             *
552             * @return the s c product entry local service
553             */
554            public SCProductEntryLocalService getSCProductEntryLocalService() {
555                    return scProductEntryLocalService;
556            }
557    
558            /**
559             * Sets the s c product entry local service.
560             *
561             * @param scProductEntryLocalService the s c product entry local service
562             */
563            public void setSCProductEntryLocalService(
564                    SCProductEntryLocalService scProductEntryLocalService) {
565                    this.scProductEntryLocalService = scProductEntryLocalService;
566            }
567    
568            /**
569             * Returns the s c product entry remote service.
570             *
571             * @return the s c product entry remote service
572             */
573            public SCProductEntryService getSCProductEntryService() {
574                    return scProductEntryService;
575            }
576    
577            /**
578             * Sets the s c product entry remote service.
579             *
580             * @param scProductEntryService the s c product entry remote service
581             */
582            public void setSCProductEntryService(
583                    SCProductEntryService scProductEntryService) {
584                    this.scProductEntryService = scProductEntryService;
585            }
586    
587            /**
588             * Returns the s c product entry persistence.
589             *
590             * @return the s c product entry persistence
591             */
592            public SCProductEntryPersistence getSCProductEntryPersistence() {
593                    return scProductEntryPersistence;
594            }
595    
596            /**
597             * Sets the s c product entry persistence.
598             *
599             * @param scProductEntryPersistence the s c product entry persistence
600             */
601            public void setSCProductEntryPersistence(
602                    SCProductEntryPersistence scProductEntryPersistence) {
603                    this.scProductEntryPersistence = scProductEntryPersistence;
604            }
605    
606            /**
607             * Returns the s c product screenshot local service.
608             *
609             * @return the s c product screenshot local service
610             */
611            public SCProductScreenshotLocalService getSCProductScreenshotLocalService() {
612                    return scProductScreenshotLocalService;
613            }
614    
615            /**
616             * Sets the s c product screenshot local service.
617             *
618             * @param scProductScreenshotLocalService the s c product screenshot local service
619             */
620            public void setSCProductScreenshotLocalService(
621                    SCProductScreenshotLocalService scProductScreenshotLocalService) {
622                    this.scProductScreenshotLocalService = scProductScreenshotLocalService;
623            }
624    
625            /**
626             * Returns the s c product screenshot persistence.
627             *
628             * @return the s c product screenshot persistence
629             */
630            public SCProductScreenshotPersistence getSCProductScreenshotPersistence() {
631                    return scProductScreenshotPersistence;
632            }
633    
634            /**
635             * Sets the s c product screenshot persistence.
636             *
637             * @param scProductScreenshotPersistence the s c product screenshot persistence
638             */
639            public void setSCProductScreenshotPersistence(
640                    SCProductScreenshotPersistence scProductScreenshotPersistence) {
641                    this.scProductScreenshotPersistence = scProductScreenshotPersistence;
642            }
643    
644            /**
645             * Returns the s c product version local service.
646             *
647             * @return the s c product version local service
648             */
649            public SCProductVersionLocalService getSCProductVersionLocalService() {
650                    return scProductVersionLocalService;
651            }
652    
653            /**
654             * Sets the s c product version local service.
655             *
656             * @param scProductVersionLocalService the s c product version local service
657             */
658            public void setSCProductVersionLocalService(
659                    SCProductVersionLocalService scProductVersionLocalService) {
660                    this.scProductVersionLocalService = scProductVersionLocalService;
661            }
662    
663            /**
664             * Returns the s c product version remote service.
665             *
666             * @return the s c product version remote service
667             */
668            public SCProductVersionService getSCProductVersionService() {
669                    return scProductVersionService;
670            }
671    
672            /**
673             * Sets the s c product version remote service.
674             *
675             * @param scProductVersionService the s c product version remote service
676             */
677            public void setSCProductVersionService(
678                    SCProductVersionService scProductVersionService) {
679                    this.scProductVersionService = scProductVersionService;
680            }
681    
682            /**
683             * Returns the s c product version persistence.
684             *
685             * @return the s c product version persistence
686             */
687            public SCProductVersionPersistence getSCProductVersionPersistence() {
688                    return scProductVersionPersistence;
689            }
690    
691            /**
692             * Sets the s c product version persistence.
693             *
694             * @param scProductVersionPersistence the s c product version persistence
695             */
696            public void setSCProductVersionPersistence(
697                    SCProductVersionPersistence scProductVersionPersistence) {
698                    this.scProductVersionPersistence = scProductVersionPersistence;
699            }
700    
701            /**
702             * Returns the counter local service.
703             *
704             * @return the counter local service
705             */
706            public CounterLocalService getCounterLocalService() {
707                    return counterLocalService;
708            }
709    
710            /**
711             * Sets the counter local service.
712             *
713             * @param counterLocalService the counter local service
714             */
715            public void setCounterLocalService(CounterLocalService counterLocalService) {
716                    this.counterLocalService = counterLocalService;
717            }
718    
719            /**
720             * Returns the group local service.
721             *
722             * @return the group local service
723             */
724            public GroupLocalService getGroupLocalService() {
725                    return groupLocalService;
726            }
727    
728            /**
729             * Sets the group local service.
730             *
731             * @param groupLocalService the group local service
732             */
733            public void setGroupLocalService(GroupLocalService groupLocalService) {
734                    this.groupLocalService = groupLocalService;
735            }
736    
737            /**
738             * Returns the group remote service.
739             *
740             * @return the group remote service
741             */
742            public GroupService getGroupService() {
743                    return groupService;
744            }
745    
746            /**
747             * Sets the group remote service.
748             *
749             * @param groupService the group remote service
750             */
751            public void setGroupService(GroupService groupService) {
752                    this.groupService = groupService;
753            }
754    
755            /**
756             * Returns the group persistence.
757             *
758             * @return the group persistence
759             */
760            public GroupPersistence getGroupPersistence() {
761                    return groupPersistence;
762            }
763    
764            /**
765             * Sets the group persistence.
766             *
767             * @param groupPersistence the group persistence
768             */
769            public void setGroupPersistence(GroupPersistence groupPersistence) {
770                    this.groupPersistence = groupPersistence;
771            }
772    
773            /**
774             * Returns the group finder.
775             *
776             * @return the group finder
777             */
778            public GroupFinder getGroupFinder() {
779                    return groupFinder;
780            }
781    
782            /**
783             * Sets the group finder.
784             *
785             * @param groupFinder the group finder
786             */
787            public void setGroupFinder(GroupFinder groupFinder) {
788                    this.groupFinder = groupFinder;
789            }
790    
791            /**
792             * Returns the image local service.
793             *
794             * @return the image local service
795             */
796            public ImageLocalService getImageLocalService() {
797                    return imageLocalService;
798            }
799    
800            /**
801             * Sets the image local service.
802             *
803             * @param imageLocalService the image local service
804             */
805            public void setImageLocalService(ImageLocalService imageLocalService) {
806                    this.imageLocalService = imageLocalService;
807            }
808    
809            /**
810             * Returns the image remote service.
811             *
812             * @return the image remote service
813             */
814            public ImageService getImageService() {
815                    return imageService;
816            }
817    
818            /**
819             * Sets the image remote service.
820             *
821             * @param imageService the image remote service
822             */
823            public void setImageService(ImageService imageService) {
824                    this.imageService = imageService;
825            }
826    
827            /**
828             * Returns the image persistence.
829             *
830             * @return the image persistence
831             */
832            public ImagePersistence getImagePersistence() {
833                    return imagePersistence;
834            }
835    
836            /**
837             * Sets the image persistence.
838             *
839             * @param imagePersistence the image persistence
840             */
841            public void setImagePersistence(ImagePersistence imagePersistence) {
842                    this.imagePersistence = imagePersistence;
843            }
844    
845            /**
846             * Returns the resource local service.
847             *
848             * @return the resource local service
849             */
850            public ResourceLocalService getResourceLocalService() {
851                    return resourceLocalService;
852            }
853    
854            /**
855             * Sets the resource local service.
856             *
857             * @param resourceLocalService the resource local service
858             */
859            public void setResourceLocalService(
860                    ResourceLocalService resourceLocalService) {
861                    this.resourceLocalService = resourceLocalService;
862            }
863    
864            /**
865             * Returns the resource remote service.
866             *
867             * @return the resource remote service
868             */
869            public ResourceService getResourceService() {
870                    return resourceService;
871            }
872    
873            /**
874             * Sets the resource remote service.
875             *
876             * @param resourceService the resource remote service
877             */
878            public void setResourceService(ResourceService resourceService) {
879                    this.resourceService = resourceService;
880            }
881    
882            /**
883             * Returns the resource persistence.
884             *
885             * @return the resource persistence
886             */
887            public ResourcePersistence getResourcePersistence() {
888                    return resourcePersistence;
889            }
890    
891            /**
892             * Sets the resource persistence.
893             *
894             * @param resourcePersistence the resource persistence
895             */
896            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
897                    this.resourcePersistence = resourcePersistence;
898            }
899    
900            /**
901             * Returns the resource finder.
902             *
903             * @return the resource finder
904             */
905            public ResourceFinder getResourceFinder() {
906                    return resourceFinder;
907            }
908    
909            /**
910             * Sets the resource finder.
911             *
912             * @param resourceFinder the resource finder
913             */
914            public void setResourceFinder(ResourceFinder resourceFinder) {
915                    this.resourceFinder = resourceFinder;
916            }
917    
918            /**
919             * Returns the subscription local service.
920             *
921             * @return the subscription local service
922             */
923            public SubscriptionLocalService getSubscriptionLocalService() {
924                    return subscriptionLocalService;
925            }
926    
927            /**
928             * Sets the subscription local service.
929             *
930             * @param subscriptionLocalService the subscription local service
931             */
932            public void setSubscriptionLocalService(
933                    SubscriptionLocalService subscriptionLocalService) {
934                    this.subscriptionLocalService = subscriptionLocalService;
935            }
936    
937            /**
938             * Returns the subscription persistence.
939             *
940             * @return the subscription persistence
941             */
942            public SubscriptionPersistence getSubscriptionPersistence() {
943                    return subscriptionPersistence;
944            }
945    
946            /**
947             * Sets the subscription persistence.
948             *
949             * @param subscriptionPersistence the subscription persistence
950             */
951            public void setSubscriptionPersistence(
952                    SubscriptionPersistence subscriptionPersistence) {
953                    this.subscriptionPersistence = subscriptionPersistence;
954            }
955    
956            /**
957             * Returns the user local service.
958             *
959             * @return the user local service
960             */
961            public UserLocalService getUserLocalService() {
962                    return userLocalService;
963            }
964    
965            /**
966             * Sets the user local service.
967             *
968             * @param userLocalService the user local service
969             */
970            public void setUserLocalService(UserLocalService userLocalService) {
971                    this.userLocalService = userLocalService;
972            }
973    
974            /**
975             * Returns the user remote service.
976             *
977             * @return the user remote service
978             */
979            public UserService getUserService() {
980                    return userService;
981            }
982    
983            /**
984             * Sets the user remote service.
985             *
986             * @param userService the user remote service
987             */
988            public void setUserService(UserService userService) {
989                    this.userService = userService;
990            }
991    
992            /**
993             * Returns the user persistence.
994             *
995             * @return the user persistence
996             */
997            public UserPersistence getUserPersistence() {
998                    return userPersistence;
999            }
1000    
1001            /**
1002             * Sets the user persistence.
1003             *
1004             * @param userPersistence the user persistence
1005             */
1006            public void setUserPersistence(UserPersistence userPersistence) {
1007                    this.userPersistence = userPersistence;
1008            }
1009    
1010            /**
1011             * Returns the user finder.
1012             *
1013             * @return the user finder
1014             */
1015            public UserFinder getUserFinder() {
1016                    return userFinder;
1017            }
1018    
1019            /**
1020             * Sets the user finder.
1021             *
1022             * @param userFinder the user finder
1023             */
1024            public void setUserFinder(UserFinder userFinder) {
1025                    this.userFinder = userFinder;
1026            }
1027    
1028            /**
1029             * Returns the message-boards message local service.
1030             *
1031             * @return the message-boards message local service
1032             */
1033            public MBMessageLocalService getMBMessageLocalService() {
1034                    return mbMessageLocalService;
1035            }
1036    
1037            /**
1038             * Sets the message-boards message local service.
1039             *
1040             * @param mbMessageLocalService the message-boards message local service
1041             */
1042            public void setMBMessageLocalService(
1043                    MBMessageLocalService mbMessageLocalService) {
1044                    this.mbMessageLocalService = mbMessageLocalService;
1045            }
1046    
1047            /**
1048             * Returns the message-boards message remote service.
1049             *
1050             * @return the message-boards message remote service
1051             */
1052            public MBMessageService getMBMessageService() {
1053                    return mbMessageService;
1054            }
1055    
1056            /**
1057             * Sets the message-boards message remote service.
1058             *
1059             * @param mbMessageService the message-boards message remote service
1060             */
1061            public void setMBMessageService(MBMessageService mbMessageService) {
1062                    this.mbMessageService = mbMessageService;
1063            }
1064    
1065            /**
1066             * Returns the message-boards message persistence.
1067             *
1068             * @return the message-boards message persistence
1069             */
1070            public MBMessagePersistence getMBMessagePersistence() {
1071                    return mbMessagePersistence;
1072            }
1073    
1074            /**
1075             * Sets the message-boards message persistence.
1076             *
1077             * @param mbMessagePersistence the message-boards message persistence
1078             */
1079            public void setMBMessagePersistence(
1080                    MBMessagePersistence mbMessagePersistence) {
1081                    this.mbMessagePersistence = mbMessagePersistence;
1082            }
1083    
1084            /**
1085             * Returns the message-boards message finder.
1086             *
1087             * @return the message-boards message finder
1088             */
1089            public MBMessageFinder getMBMessageFinder() {
1090                    return mbMessageFinder;
1091            }
1092    
1093            /**
1094             * Sets the message-boards message finder.
1095             *
1096             * @param mbMessageFinder the message-boards message finder
1097             */
1098            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
1099                    this.mbMessageFinder = mbMessageFinder;
1100            }
1101    
1102            /**
1103             * Returns the ratings stats local service.
1104             *
1105             * @return the ratings stats local service
1106             */
1107            public RatingsStatsLocalService getRatingsStatsLocalService() {
1108                    return ratingsStatsLocalService;
1109            }
1110    
1111            /**
1112             * Sets the ratings stats local service.
1113             *
1114             * @param ratingsStatsLocalService the ratings stats local service
1115             */
1116            public void setRatingsStatsLocalService(
1117                    RatingsStatsLocalService ratingsStatsLocalService) {
1118                    this.ratingsStatsLocalService = ratingsStatsLocalService;
1119            }
1120    
1121            /**
1122             * Returns the ratings stats persistence.
1123             *
1124             * @return the ratings stats persistence
1125             */
1126            public RatingsStatsPersistence getRatingsStatsPersistence() {
1127                    return ratingsStatsPersistence;
1128            }
1129    
1130            /**
1131             * Sets the ratings stats persistence.
1132             *
1133             * @param ratingsStatsPersistence the ratings stats persistence
1134             */
1135            public void setRatingsStatsPersistence(
1136                    RatingsStatsPersistence ratingsStatsPersistence) {
1137                    this.ratingsStatsPersistence = ratingsStatsPersistence;
1138            }
1139    
1140            /**
1141             * Returns the ratings stats finder.
1142             *
1143             * @return the ratings stats finder
1144             */
1145            public RatingsStatsFinder getRatingsStatsFinder() {
1146                    return ratingsStatsFinder;
1147            }
1148    
1149            /**
1150             * Sets the ratings stats finder.
1151             *
1152             * @param ratingsStatsFinder the ratings stats finder
1153             */
1154            public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1155                    this.ratingsStatsFinder = ratingsStatsFinder;
1156            }
1157    
1158            public void afterPropertiesSet() {
1159                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.softwarecatalog.model.SCProductEntry",
1160                            scProductEntryLocalService);
1161            }
1162    
1163            public void destroy() {
1164                    persistedModelLocalServiceRegistry.unregister(
1165                            "com.liferay.portlet.softwarecatalog.model.SCProductEntry");
1166            }
1167    
1168            /**
1169             * Returns the Spring bean ID for this bean.
1170             *
1171             * @return the Spring bean ID for this bean
1172             */
1173            public String getBeanIdentifier() {
1174                    return _beanIdentifier;
1175            }
1176    
1177            /**
1178             * Sets the Spring bean ID for this bean.
1179             *
1180             * @param beanIdentifier the Spring bean ID for this bean
1181             */
1182            public void setBeanIdentifier(String beanIdentifier) {
1183                    _beanIdentifier = beanIdentifier;
1184            }
1185    
1186            protected Class<?> getModelClass() {
1187                    return SCProductEntry.class;
1188            }
1189    
1190            protected String getModelClassName() {
1191                    return SCProductEntry.class.getName();
1192            }
1193    
1194            /**
1195             * Performs an SQL query.
1196             *
1197             * @param sql the sql query
1198             */
1199            protected void runSQL(String sql) throws SystemException {
1200                    try {
1201                            DataSource dataSource = scProductEntryPersistence.getDataSource();
1202    
1203                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1204                                            sql, new int[0]);
1205    
1206                            sqlUpdate.update();
1207                    }
1208                    catch (Exception e) {
1209                            throw new SystemException(e);
1210                    }
1211            }
1212    
1213            @BeanReference(type = SCFrameworkVersionLocalService.class)
1214            protected SCFrameworkVersionLocalService scFrameworkVersionLocalService;
1215            @BeanReference(type = SCFrameworkVersionService.class)
1216            protected SCFrameworkVersionService scFrameworkVersionService;
1217            @BeanReference(type = SCFrameworkVersionPersistence.class)
1218            protected SCFrameworkVersionPersistence scFrameworkVersionPersistence;
1219            @BeanReference(type = SCLicenseLocalService.class)
1220            protected SCLicenseLocalService scLicenseLocalService;
1221            @BeanReference(type = SCLicenseService.class)
1222            protected SCLicenseService scLicenseService;
1223            @BeanReference(type = SCLicensePersistence.class)
1224            protected SCLicensePersistence scLicensePersistence;
1225            @BeanReference(type = SCProductEntryLocalService.class)
1226            protected SCProductEntryLocalService scProductEntryLocalService;
1227            @BeanReference(type = SCProductEntryService.class)
1228            protected SCProductEntryService scProductEntryService;
1229            @BeanReference(type = SCProductEntryPersistence.class)
1230            protected SCProductEntryPersistence scProductEntryPersistence;
1231            @BeanReference(type = SCProductScreenshotLocalService.class)
1232            protected SCProductScreenshotLocalService scProductScreenshotLocalService;
1233            @BeanReference(type = SCProductScreenshotPersistence.class)
1234            protected SCProductScreenshotPersistence scProductScreenshotPersistence;
1235            @BeanReference(type = SCProductVersionLocalService.class)
1236            protected SCProductVersionLocalService scProductVersionLocalService;
1237            @BeanReference(type = SCProductVersionService.class)
1238            protected SCProductVersionService scProductVersionService;
1239            @BeanReference(type = SCProductVersionPersistence.class)
1240            protected SCProductVersionPersistence scProductVersionPersistence;
1241            @BeanReference(type = CounterLocalService.class)
1242            protected CounterLocalService counterLocalService;
1243            @BeanReference(type = GroupLocalService.class)
1244            protected GroupLocalService groupLocalService;
1245            @BeanReference(type = GroupService.class)
1246            protected GroupService groupService;
1247            @BeanReference(type = GroupPersistence.class)
1248            protected GroupPersistence groupPersistence;
1249            @BeanReference(type = GroupFinder.class)
1250            protected GroupFinder groupFinder;
1251            @BeanReference(type = ImageLocalService.class)
1252            protected ImageLocalService imageLocalService;
1253            @BeanReference(type = ImageService.class)
1254            protected ImageService imageService;
1255            @BeanReference(type = ImagePersistence.class)
1256            protected ImagePersistence imagePersistence;
1257            @BeanReference(type = ResourceLocalService.class)
1258            protected ResourceLocalService resourceLocalService;
1259            @BeanReference(type = ResourceService.class)
1260            protected ResourceService resourceService;
1261            @BeanReference(type = ResourcePersistence.class)
1262            protected ResourcePersistence resourcePersistence;
1263            @BeanReference(type = ResourceFinder.class)
1264            protected ResourceFinder resourceFinder;
1265            @BeanReference(type = SubscriptionLocalService.class)
1266            protected SubscriptionLocalService subscriptionLocalService;
1267            @BeanReference(type = SubscriptionPersistence.class)
1268            protected SubscriptionPersistence subscriptionPersistence;
1269            @BeanReference(type = UserLocalService.class)
1270            protected UserLocalService userLocalService;
1271            @BeanReference(type = UserService.class)
1272            protected UserService userService;
1273            @BeanReference(type = UserPersistence.class)
1274            protected UserPersistence userPersistence;
1275            @BeanReference(type = UserFinder.class)
1276            protected UserFinder userFinder;
1277            @BeanReference(type = MBMessageLocalService.class)
1278            protected MBMessageLocalService mbMessageLocalService;
1279            @BeanReference(type = MBMessageService.class)
1280            protected MBMessageService mbMessageService;
1281            @BeanReference(type = MBMessagePersistence.class)
1282            protected MBMessagePersistence mbMessagePersistence;
1283            @BeanReference(type = MBMessageFinder.class)
1284            protected MBMessageFinder mbMessageFinder;
1285            @BeanReference(type = RatingsStatsLocalService.class)
1286            protected RatingsStatsLocalService ratingsStatsLocalService;
1287            @BeanReference(type = RatingsStatsPersistence.class)
1288            protected RatingsStatsPersistence ratingsStatsPersistence;
1289            @BeanReference(type = RatingsStatsFinder.class)
1290            protected RatingsStatsFinder ratingsStatsFinder;
1291            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1292            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1293            private String _beanIdentifier;
1294    }