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