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