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