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