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