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