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