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.UserFinder;
033    import com.liferay.portal.service.persistence.UserPersistence;
034    
035    import com.liferay.portlet.softwarecatalog.model.SCProductVersion;
036    import com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService;
037    import com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence;
038    import com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence;
039    import com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence;
040    import com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence;
041    import com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence;
042    
043    import java.io.Serializable;
044    
045    import java.util.List;
046    
047    import javax.sql.DataSource;
048    
049    /**
050     * Provides the base implementation for the s c product version local service.
051     *
052     * <p>
053     * 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.SCProductVersionLocalServiceImpl}.
054     * </p>
055     *
056     * @author Brian Wing Shun Chan
057     * @see com.liferay.portlet.softwarecatalog.service.impl.SCProductVersionLocalServiceImpl
058     * @see com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalServiceUtil
059     * @generated
060     */
061    public abstract class SCProductVersionLocalServiceBaseImpl
062            extends BaseLocalServiceImpl implements SCProductVersionLocalService,
063                    IdentifiableBean {
064            /*
065             * NOTE FOR DEVELOPERS:
066             *
067             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalServiceUtil} to access the s c product version local service.
068             */
069    
070            /**
071             * Adds the s c product version to the database. Also notifies the appropriate model listeners.
072             *
073             * @param scProductVersion the s c product version
074             * @return the s c product version that was added
075             * @throws SystemException if a system exception occurred
076             */
077            @Indexable(type = IndexableType.REINDEX)
078            @Override
079            public SCProductVersion addSCProductVersion(
080                    SCProductVersion scProductVersion) throws SystemException {
081                    scProductVersion.setNew(true);
082    
083                    return scProductVersionPersistence.update(scProductVersion);
084            }
085    
086            /**
087             * Creates a new s c product version with the primary key. Does not add the s c product version to the database.
088             *
089             * @param productVersionId the primary key for the new s c product version
090             * @return the new s c product version
091             */
092            @Override
093            public SCProductVersion createSCProductVersion(long productVersionId) {
094                    return scProductVersionPersistence.create(productVersionId);
095            }
096    
097            /**
098             * Deletes the s c product version with the primary key from the database. Also notifies the appropriate model listeners.
099             *
100             * @param productVersionId the primary key of the s c product version
101             * @return the s c product version that was removed
102             * @throws PortalException if a s c product version with the primary key could not be found
103             * @throws SystemException if a system exception occurred
104             */
105            @Indexable(type = IndexableType.DELETE)
106            @Override
107            public SCProductVersion deleteSCProductVersion(long productVersionId)
108                    throws PortalException, SystemException {
109                    return scProductVersionPersistence.remove(productVersionId);
110            }
111    
112            /**
113             * Deletes the s c product version from the database. Also notifies the appropriate model listeners.
114             *
115             * @param scProductVersion the s c product version
116             * @return the s c product version that was removed
117             * @throws SystemException if a system exception occurred
118             */
119            @Indexable(type = IndexableType.DELETE)
120            @Override
121            public SCProductVersion deleteSCProductVersion(
122                    SCProductVersion scProductVersion) throws SystemException {
123                    return scProductVersionPersistence.remove(scProductVersion);
124            }
125    
126            @Override
127            public DynamicQuery dynamicQuery() {
128                    Class<?> clazz = getClass();
129    
130                    return DynamicQueryFactoryUtil.forClass(SCProductVersion.class,
131                            clazz.getClassLoader());
132            }
133    
134            /**
135             * Performs a dynamic query on the database and returns the matching rows.
136             *
137             * @param dynamicQuery the dynamic query
138             * @return the matching rows
139             * @throws SystemException if a system exception occurred
140             */
141            @Override
142            @SuppressWarnings("rawtypes")
143            public List dynamicQuery(DynamicQuery dynamicQuery)
144                    throws SystemException {
145                    return scProductVersionPersistence.findWithDynamicQuery(dynamicQuery);
146            }
147    
148            /**
149             * Performs a dynamic query on the database and returns a range of the matching rows.
150             *
151             * <p>
152             * 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.SCProductVersionModelImpl}. 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.
153             * </p>
154             *
155             * @param dynamicQuery the dynamic query
156             * @param start the lower bound of the range of model instances
157             * @param end the upper bound of the range of model instances (not inclusive)
158             * @return the range of matching rows
159             * @throws SystemException if a system exception occurred
160             */
161            @Override
162            @SuppressWarnings("rawtypes")
163            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
164                    throws SystemException {
165                    return scProductVersionPersistence.findWithDynamicQuery(dynamicQuery,
166                            start, end);
167            }
168    
169            /**
170             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
171             *
172             * <p>
173             * 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.SCProductVersionModelImpl}. 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.
174             * </p>
175             *
176             * @param dynamicQuery the dynamic query
177             * @param start the lower bound of the range of model instances
178             * @param end the upper bound of the range of model instances (not inclusive)
179             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
180             * @return the ordered range of matching rows
181             * @throws SystemException if a system exception occurred
182             */
183            @Override
184            @SuppressWarnings("rawtypes")
185            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
186                    OrderByComparator orderByComparator) throws SystemException {
187                    return scProductVersionPersistence.findWithDynamicQuery(dynamicQuery,
188                            start, end, orderByComparator);
189            }
190    
191            /**
192             * Returns the number of rows that match the dynamic query.
193             *
194             * @param dynamicQuery the dynamic query
195             * @return the number of rows that match the dynamic query
196             * @throws SystemException if a system exception occurred
197             */
198            @Override
199            public long dynamicQueryCount(DynamicQuery dynamicQuery)
200                    throws SystemException {
201                    return scProductVersionPersistence.countWithDynamicQuery(dynamicQuery);
202            }
203    
204            /**
205             * Returns the number of rows that match the dynamic query.
206             *
207             * @param dynamicQuery the dynamic query
208             * @param projection the projection to apply to the query
209             * @return the number of rows that match the dynamic query
210             * @throws SystemException if a system exception occurred
211             */
212            @Override
213            public long dynamicQueryCount(DynamicQuery dynamicQuery,
214                    Projection projection) throws SystemException {
215                    return scProductVersionPersistence.countWithDynamicQuery(dynamicQuery,
216                            projection);
217            }
218    
219            @Override
220            public SCProductVersion fetchSCProductVersion(long productVersionId)
221                    throws SystemException {
222                    return scProductVersionPersistence.fetchByPrimaryKey(productVersionId);
223            }
224    
225            /**
226             * Returns the s c product version with the primary key.
227             *
228             * @param productVersionId the primary key of the s c product version
229             * @return the s c product version
230             * @throws PortalException if a s c product version with the primary key could not be found
231             * @throws SystemException if a system exception occurred
232             */
233            @Override
234            public SCProductVersion getSCProductVersion(long productVersionId)
235                    throws PortalException, SystemException {
236                    return scProductVersionPersistence.findByPrimaryKey(productVersionId);
237            }
238    
239            @Override
240            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
241                    throws PortalException, SystemException {
242                    return scProductVersionPersistence.findByPrimaryKey(primaryKeyObj);
243            }
244    
245            /**
246             * Returns a range of all the s c product versions.
247             *
248             * <p>
249             * 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.SCProductVersionModelImpl}. 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.
250             * </p>
251             *
252             * @param start the lower bound of the range of s c product versions
253             * @param end the upper bound of the range of s c product versions (not inclusive)
254             * @return the range of s c product versions
255             * @throws SystemException if a system exception occurred
256             */
257            @Override
258            public List<SCProductVersion> getSCProductVersions(int start, int end)
259                    throws SystemException {
260                    return scProductVersionPersistence.findAll(start, end);
261            }
262    
263            /**
264             * Returns the number of s c product versions.
265             *
266             * @return the number of s c product versions
267             * @throws SystemException if a system exception occurred
268             */
269            @Override
270            public int getSCProductVersionsCount() throws SystemException {
271                    return scProductVersionPersistence.countAll();
272            }
273    
274            /**
275             * Updates the s c product version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
276             *
277             * @param scProductVersion the s c product version
278             * @return the s c product version that was updated
279             * @throws SystemException if a system exception occurred
280             */
281            @Indexable(type = IndexableType.REINDEX)
282            @Override
283            public SCProductVersion updateSCProductVersion(
284                    SCProductVersion scProductVersion) throws SystemException {
285                    return scProductVersionPersistence.update(scProductVersion);
286            }
287    
288            /**
289             * @throws SystemException if a system exception occurred
290             */
291            @Override
292            public void addSCFrameworkVersionSCProductVersion(long frameworkVersionId,
293                    long productVersionId) throws SystemException {
294                    scFrameworkVersionPersistence.addSCProductVersion(frameworkVersionId,
295                            productVersionId);
296            }
297    
298            /**
299             * @throws SystemException if a system exception occurred
300             */
301            @Override
302            public void addSCFrameworkVersionSCProductVersion(long frameworkVersionId,
303                    SCProductVersion scProductVersion) throws SystemException {
304                    scFrameworkVersionPersistence.addSCProductVersion(frameworkVersionId,
305                            scProductVersion);
306            }
307    
308            /**
309             * @throws SystemException if a system exception occurred
310             */
311            @Override
312            public void addSCFrameworkVersionSCProductVersions(
313                    long frameworkVersionId, long[] productVersionIds)
314                    throws SystemException {
315                    scFrameworkVersionPersistence.addSCProductVersions(frameworkVersionId,
316                            productVersionIds);
317            }
318    
319            /**
320             * @throws SystemException if a system exception occurred
321             */
322            @Override
323            public void addSCFrameworkVersionSCProductVersions(
324                    long frameworkVersionId, List<SCProductVersion> SCProductVersions)
325                    throws SystemException {
326                    scFrameworkVersionPersistence.addSCProductVersions(frameworkVersionId,
327                            SCProductVersions);
328            }
329    
330            /**
331             * @throws SystemException if a system exception occurred
332             */
333            @Override
334            public void clearSCFrameworkVersionSCProductVersions(
335                    long frameworkVersionId) throws SystemException {
336                    scFrameworkVersionPersistence.clearSCProductVersions(frameworkVersionId);
337            }
338    
339            /**
340             * @throws SystemException if a system exception occurred
341             */
342            @Override
343            public void deleteSCFrameworkVersionSCProductVersion(
344                    long frameworkVersionId, long productVersionId)
345                    throws SystemException {
346                    scFrameworkVersionPersistence.removeSCProductVersion(frameworkVersionId,
347                            productVersionId);
348            }
349    
350            /**
351             * @throws SystemException if a system exception occurred
352             */
353            @Override
354            public void deleteSCFrameworkVersionSCProductVersion(
355                    long frameworkVersionId, SCProductVersion scProductVersion)
356                    throws SystemException {
357                    scFrameworkVersionPersistence.removeSCProductVersion(frameworkVersionId,
358                            scProductVersion);
359            }
360    
361            /**
362             * @throws SystemException if a system exception occurred
363             */
364            @Override
365            public void deleteSCFrameworkVersionSCProductVersions(
366                    long frameworkVersionId, long[] productVersionIds)
367                    throws SystemException {
368                    scFrameworkVersionPersistence.removeSCProductVersions(frameworkVersionId,
369                            productVersionIds);
370            }
371    
372            /**
373             * @throws SystemException if a system exception occurred
374             */
375            @Override
376            public void deleteSCFrameworkVersionSCProductVersions(
377                    long frameworkVersionId, List<SCProductVersion> SCProductVersions)
378                    throws SystemException {
379                    scFrameworkVersionPersistence.removeSCProductVersions(frameworkVersionId,
380                            SCProductVersions);
381            }
382    
383            /**
384             * @throws SystemException if a system exception occurred
385             */
386            @Override
387            public List<SCProductVersion> getSCFrameworkVersionSCProductVersions(
388                    long frameworkVersionId) throws SystemException {
389                    return scFrameworkVersionPersistence.getSCProductVersions(frameworkVersionId);
390            }
391    
392            /**
393             * @throws SystemException if a system exception occurred
394             */
395            @Override
396            public List<SCProductVersion> getSCFrameworkVersionSCProductVersions(
397                    long frameworkVersionId, int start, int end) throws SystemException {
398                    return scFrameworkVersionPersistence.getSCProductVersions(frameworkVersionId,
399                            start, end);
400            }
401    
402            /**
403             * @throws SystemException if a system exception occurred
404             */
405            @Override
406            public List<SCProductVersion> getSCFrameworkVersionSCProductVersions(
407                    long frameworkVersionId, int start, int end,
408                    OrderByComparator orderByComparator) throws SystemException {
409                    return scFrameworkVersionPersistence.getSCProductVersions(frameworkVersionId,
410                            start, end, orderByComparator);
411            }
412    
413            /**
414             * @throws SystemException if a system exception occurred
415             */
416            @Override
417            public int getSCFrameworkVersionSCProductVersionsCount(
418                    long frameworkVersionId) throws SystemException {
419                    return scFrameworkVersionPersistence.getSCProductVersionsSize(frameworkVersionId);
420            }
421    
422            /**
423             * @throws SystemException if a system exception occurred
424             */
425            @Override
426            public boolean hasSCFrameworkVersionSCProductVersion(
427                    long frameworkVersionId, long productVersionId)
428                    throws SystemException {
429                    return scFrameworkVersionPersistence.containsSCProductVersion(frameworkVersionId,
430                            productVersionId);
431            }
432    
433            /**
434             * @throws SystemException if a system exception occurred
435             */
436            @Override
437            public boolean hasSCFrameworkVersionSCProductVersions(
438                    long frameworkVersionId) throws SystemException {
439                    return scFrameworkVersionPersistence.containsSCProductVersions(frameworkVersionId);
440            }
441    
442            /**
443             * @throws SystemException if a system exception occurred
444             */
445            @Override
446            public void setSCFrameworkVersionSCProductVersions(
447                    long frameworkVersionId, long[] productVersionIds)
448                    throws SystemException {
449                    scFrameworkVersionPersistence.setSCProductVersions(frameworkVersionId,
450                            productVersionIds);
451            }
452    
453            /**
454             * Returns the s c framework version local service.
455             *
456             * @return the s c framework version local service
457             */
458            public com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService getSCFrameworkVersionLocalService() {
459                    return scFrameworkVersionLocalService;
460            }
461    
462            /**
463             * Sets the s c framework version local service.
464             *
465             * @param scFrameworkVersionLocalService the s c framework version local service
466             */
467            public void setSCFrameworkVersionLocalService(
468                    com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService scFrameworkVersionLocalService) {
469                    this.scFrameworkVersionLocalService = scFrameworkVersionLocalService;
470            }
471    
472            /**
473             * Returns the s c framework version remote service.
474             *
475             * @return the s c framework version remote service
476             */
477            public com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService getSCFrameworkVersionService() {
478                    return scFrameworkVersionService;
479            }
480    
481            /**
482             * Sets the s c framework version remote service.
483             *
484             * @param scFrameworkVersionService the s c framework version remote service
485             */
486            public void setSCFrameworkVersionService(
487                    com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService scFrameworkVersionService) {
488                    this.scFrameworkVersionService = scFrameworkVersionService;
489            }
490    
491            /**
492             * Returns the s c framework version persistence.
493             *
494             * @return the s c framework version persistence
495             */
496            public SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
497                    return scFrameworkVersionPersistence;
498            }
499    
500            /**
501             * Sets the s c framework version persistence.
502             *
503             * @param scFrameworkVersionPersistence the s c framework version persistence
504             */
505            public void setSCFrameworkVersionPersistence(
506                    SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
507                    this.scFrameworkVersionPersistence = scFrameworkVersionPersistence;
508            }
509    
510            /**
511             * Returns the s c license local service.
512             *
513             * @return the s c license local service
514             */
515            public com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService getSCLicenseLocalService() {
516                    return scLicenseLocalService;
517            }
518    
519            /**
520             * Sets the s c license local service.
521             *
522             * @param scLicenseLocalService the s c license local service
523             */
524            public void setSCLicenseLocalService(
525                    com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService scLicenseLocalService) {
526                    this.scLicenseLocalService = scLicenseLocalService;
527            }
528    
529            /**
530             * Returns the s c license remote service.
531             *
532             * @return the s c license remote service
533             */
534            public com.liferay.portlet.softwarecatalog.service.SCLicenseService getSCLicenseService() {
535                    return scLicenseService;
536            }
537    
538            /**
539             * Sets the s c license remote service.
540             *
541             * @param scLicenseService the s c license remote service
542             */
543            public void setSCLicenseService(
544                    com.liferay.portlet.softwarecatalog.service.SCLicenseService scLicenseService) {
545                    this.scLicenseService = scLicenseService;
546            }
547    
548            /**
549             * Returns the s c license persistence.
550             *
551             * @return the s c license persistence
552             */
553            public SCLicensePersistence getSCLicensePersistence() {
554                    return scLicensePersistence;
555            }
556    
557            /**
558             * Sets the s c license persistence.
559             *
560             * @param scLicensePersistence the s c license persistence
561             */
562            public void setSCLicensePersistence(
563                    SCLicensePersistence scLicensePersistence) {
564                    this.scLicensePersistence = scLicensePersistence;
565            }
566    
567            /**
568             * Returns the s c product entry local service.
569             *
570             * @return the s c product entry local service
571             */
572            public com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService getSCProductEntryLocalService() {
573                    return scProductEntryLocalService;
574            }
575    
576            /**
577             * Sets the s c product entry local service.
578             *
579             * @param scProductEntryLocalService the s c product entry local service
580             */
581            public void setSCProductEntryLocalService(
582                    com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService scProductEntryLocalService) {
583                    this.scProductEntryLocalService = scProductEntryLocalService;
584            }
585    
586            /**
587             * Returns the s c product entry remote service.
588             *
589             * @return the s c product entry remote service
590             */
591            public com.liferay.portlet.softwarecatalog.service.SCProductEntryService getSCProductEntryService() {
592                    return scProductEntryService;
593            }
594    
595            /**
596             * Sets the s c product entry remote service.
597             *
598             * @param scProductEntryService the s c product entry remote service
599             */
600            public void setSCProductEntryService(
601                    com.liferay.portlet.softwarecatalog.service.SCProductEntryService scProductEntryService) {
602                    this.scProductEntryService = scProductEntryService;
603            }
604    
605            /**
606             * Returns the s c product entry persistence.
607             *
608             * @return the s c product entry persistence
609             */
610            public SCProductEntryPersistence getSCProductEntryPersistence() {
611                    return scProductEntryPersistence;
612            }
613    
614            /**
615             * Sets the s c product entry persistence.
616             *
617             * @param scProductEntryPersistence the s c product entry persistence
618             */
619            public void setSCProductEntryPersistence(
620                    SCProductEntryPersistence scProductEntryPersistence) {
621                    this.scProductEntryPersistence = scProductEntryPersistence;
622            }
623    
624            /**
625             * Returns the s c product screenshot local service.
626             *
627             * @return the s c product screenshot local service
628             */
629            public com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService getSCProductScreenshotLocalService() {
630                    return scProductScreenshotLocalService;
631            }
632    
633            /**
634             * Sets the s c product screenshot local service.
635             *
636             * @param scProductScreenshotLocalService the s c product screenshot local service
637             */
638            public void setSCProductScreenshotLocalService(
639                    com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService scProductScreenshotLocalService) {
640                    this.scProductScreenshotLocalService = scProductScreenshotLocalService;
641            }
642    
643            /**
644             * Returns the s c product screenshot persistence.
645             *
646             * @return the s c product screenshot persistence
647             */
648            public SCProductScreenshotPersistence getSCProductScreenshotPersistence() {
649                    return scProductScreenshotPersistence;
650            }
651    
652            /**
653             * Sets the s c product screenshot persistence.
654             *
655             * @param scProductScreenshotPersistence the s c product screenshot persistence
656             */
657            public void setSCProductScreenshotPersistence(
658                    SCProductScreenshotPersistence scProductScreenshotPersistence) {
659                    this.scProductScreenshotPersistence = scProductScreenshotPersistence;
660            }
661    
662            /**
663             * Returns the s c product version local service.
664             *
665             * @return the s c product version local service
666             */
667            public com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService getSCProductVersionLocalService() {
668                    return scProductVersionLocalService;
669            }
670    
671            /**
672             * Sets the s c product version local service.
673             *
674             * @param scProductVersionLocalService the s c product version local service
675             */
676            public void setSCProductVersionLocalService(
677                    com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService scProductVersionLocalService) {
678                    this.scProductVersionLocalService = scProductVersionLocalService;
679            }
680    
681            /**
682             * Returns the s c product version remote service.
683             *
684             * @return the s c product version remote service
685             */
686            public com.liferay.portlet.softwarecatalog.service.SCProductVersionService getSCProductVersionService() {
687                    return scProductVersionService;
688            }
689    
690            /**
691             * Sets the s c product version remote service.
692             *
693             * @param scProductVersionService the s c product version remote service
694             */
695            public void setSCProductVersionService(
696                    com.liferay.portlet.softwarecatalog.service.SCProductVersionService scProductVersionService) {
697                    this.scProductVersionService = scProductVersionService;
698            }
699    
700            /**
701             * Returns the s c product version persistence.
702             *
703             * @return the s c product version persistence
704             */
705            public SCProductVersionPersistence getSCProductVersionPersistence() {
706                    return scProductVersionPersistence;
707            }
708    
709            /**
710             * Sets the s c product version persistence.
711             *
712             * @param scProductVersionPersistence the s c product version persistence
713             */
714            public void setSCProductVersionPersistence(
715                    SCProductVersionPersistence scProductVersionPersistence) {
716                    this.scProductVersionPersistence = scProductVersionPersistence;
717            }
718    
719            /**
720             * Returns the counter local service.
721             *
722             * @return the counter local service
723             */
724            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
725                    return counterLocalService;
726            }
727    
728            /**
729             * Sets the counter local service.
730             *
731             * @param counterLocalService the counter local service
732             */
733            public void setCounterLocalService(
734                    com.liferay.counter.service.CounterLocalService counterLocalService) {
735                    this.counterLocalService = counterLocalService;
736            }
737    
738            /**
739             * Returns the resource local service.
740             *
741             * @return the resource local service
742             */
743            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
744                    return resourceLocalService;
745            }
746    
747            /**
748             * Sets the resource local service.
749             *
750             * @param resourceLocalService the resource local service
751             */
752            public void setResourceLocalService(
753                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
754                    this.resourceLocalService = resourceLocalService;
755            }
756    
757            /**
758             * Returns the user local service.
759             *
760             * @return the user local service
761             */
762            public com.liferay.portal.service.UserLocalService getUserLocalService() {
763                    return userLocalService;
764            }
765    
766            /**
767             * Sets the user local service.
768             *
769             * @param userLocalService the user local service
770             */
771            public void setUserLocalService(
772                    com.liferay.portal.service.UserLocalService userLocalService) {
773                    this.userLocalService = userLocalService;
774            }
775    
776            /**
777             * Returns the user remote service.
778             *
779             * @return the user remote service
780             */
781            public com.liferay.portal.service.UserService getUserService() {
782                    return userService;
783            }
784    
785            /**
786             * Sets the user remote service.
787             *
788             * @param userService the user remote service
789             */
790            public void setUserService(
791                    com.liferay.portal.service.UserService userService) {
792                    this.userService = userService;
793            }
794    
795            /**
796             * Returns the user persistence.
797             *
798             * @return the user persistence
799             */
800            public UserPersistence getUserPersistence() {
801                    return userPersistence;
802            }
803    
804            /**
805             * Sets the user persistence.
806             *
807             * @param userPersistence the user persistence
808             */
809            public void setUserPersistence(UserPersistence userPersistence) {
810                    this.userPersistence = userPersistence;
811            }
812    
813            /**
814             * Returns the user finder.
815             *
816             * @return the user finder
817             */
818            public UserFinder getUserFinder() {
819                    return userFinder;
820            }
821    
822            /**
823             * Sets the user finder.
824             *
825             * @param userFinder the user finder
826             */
827            public void setUserFinder(UserFinder userFinder) {
828                    this.userFinder = userFinder;
829            }
830    
831            public void afterPropertiesSet() {
832                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.softwarecatalog.model.SCProductVersion",
833                            scProductVersionLocalService);
834            }
835    
836            public void destroy() {
837                    persistedModelLocalServiceRegistry.unregister(
838                            "com.liferay.portlet.softwarecatalog.model.SCProductVersion");
839            }
840    
841            /**
842             * Returns the Spring bean ID for this bean.
843             *
844             * @return the Spring bean ID for this bean
845             */
846            @Override
847            public String getBeanIdentifier() {
848                    return _beanIdentifier;
849            }
850    
851            /**
852             * Sets the Spring bean ID for this bean.
853             *
854             * @param beanIdentifier the Spring bean ID for this bean
855             */
856            @Override
857            public void setBeanIdentifier(String beanIdentifier) {
858                    _beanIdentifier = beanIdentifier;
859            }
860    
861            protected Class<?> getModelClass() {
862                    return SCProductVersion.class;
863            }
864    
865            protected String getModelClassName() {
866                    return SCProductVersion.class.getName();
867            }
868    
869            /**
870             * Performs an SQL query.
871             *
872             * @param sql the sql query
873             */
874            protected void runSQL(String sql) throws SystemException {
875                    try {
876                            DataSource dataSource = scProductVersionPersistence.getDataSource();
877    
878                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
879                                            sql, new int[0]);
880    
881                            sqlUpdate.update();
882                    }
883                    catch (Exception e) {
884                            throw new SystemException(e);
885                    }
886            }
887    
888            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService.class)
889            protected com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService scFrameworkVersionLocalService;
890            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService.class)
891            protected com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService scFrameworkVersionService;
892            @BeanReference(type = SCFrameworkVersionPersistence.class)
893            protected SCFrameworkVersionPersistence scFrameworkVersionPersistence;
894            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService.class)
895            protected com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService scLicenseLocalService;
896            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCLicenseService.class)
897            protected com.liferay.portlet.softwarecatalog.service.SCLicenseService scLicenseService;
898            @BeanReference(type = SCLicensePersistence.class)
899            protected SCLicensePersistence scLicensePersistence;
900            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService.class)
901            protected com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService scProductEntryLocalService;
902            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCProductEntryService.class)
903            protected com.liferay.portlet.softwarecatalog.service.SCProductEntryService scProductEntryService;
904            @BeanReference(type = SCProductEntryPersistence.class)
905            protected SCProductEntryPersistence scProductEntryPersistence;
906            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService.class)
907            protected com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService scProductScreenshotLocalService;
908            @BeanReference(type = SCProductScreenshotPersistence.class)
909            protected SCProductScreenshotPersistence scProductScreenshotPersistence;
910            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService.class)
911            protected com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService scProductVersionLocalService;
912            @BeanReference(type = com.liferay.portlet.softwarecatalog.service.SCProductVersionService.class)
913            protected com.liferay.portlet.softwarecatalog.service.SCProductVersionService scProductVersionService;
914            @BeanReference(type = SCProductVersionPersistence.class)
915            protected SCProductVersionPersistence scProductVersionPersistence;
916            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
917            protected com.liferay.counter.service.CounterLocalService counterLocalService;
918            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
919            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
920            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
921            protected com.liferay.portal.service.UserLocalService userLocalService;
922            @BeanReference(type = com.liferay.portal.service.UserService.class)
923            protected com.liferay.portal.service.UserService userService;
924            @BeanReference(type = UserPersistence.class)
925            protected UserPersistence userPersistence;
926            @BeanReference(type = UserFinder.class)
927            protected UserFinder userFinder;
928            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
929            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
930            private String _beanIdentifier;
931    }