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