001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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             * Returns the s c framework version local service.
292             *
293             * @return the s c framework version local service
294             */
295            public SCFrameworkVersionLocalService getSCFrameworkVersionLocalService() {
296                    return scFrameworkVersionLocalService;
297            }
298    
299            /**
300             * Sets the s c framework version local service.
301             *
302             * @param scFrameworkVersionLocalService the s c framework version local service
303             */
304            public void setSCFrameworkVersionLocalService(
305                    SCFrameworkVersionLocalService scFrameworkVersionLocalService) {
306                    this.scFrameworkVersionLocalService = scFrameworkVersionLocalService;
307            }
308    
309            /**
310             * Returns the s c framework version remote service.
311             *
312             * @return the s c framework version remote service
313             */
314            public SCFrameworkVersionService getSCFrameworkVersionService() {
315                    return scFrameworkVersionService;
316            }
317    
318            /**
319             * Sets the s c framework version remote service.
320             *
321             * @param scFrameworkVersionService the s c framework version remote service
322             */
323            public void setSCFrameworkVersionService(
324                    SCFrameworkVersionService scFrameworkVersionService) {
325                    this.scFrameworkVersionService = scFrameworkVersionService;
326            }
327    
328            /**
329             * Returns the s c framework version persistence.
330             *
331             * @return the s c framework version persistence
332             */
333            public SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
334                    return scFrameworkVersionPersistence;
335            }
336    
337            /**
338             * Sets the s c framework version persistence.
339             *
340             * @param scFrameworkVersionPersistence the s c framework version persistence
341             */
342            public void setSCFrameworkVersionPersistence(
343                    SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
344                    this.scFrameworkVersionPersistence = scFrameworkVersionPersistence;
345            }
346    
347            /**
348             * Returns the s c license local service.
349             *
350             * @return the s c license local service
351             */
352            public SCLicenseLocalService getSCLicenseLocalService() {
353                    return scLicenseLocalService;
354            }
355    
356            /**
357             * Sets the s c license local service.
358             *
359             * @param scLicenseLocalService the s c license local service
360             */
361            public void setSCLicenseLocalService(
362                    SCLicenseLocalService scLicenseLocalService) {
363                    this.scLicenseLocalService = scLicenseLocalService;
364            }
365    
366            /**
367             * Returns the s c license remote service.
368             *
369             * @return the s c license remote service
370             */
371            public SCLicenseService getSCLicenseService() {
372                    return scLicenseService;
373            }
374    
375            /**
376             * Sets the s c license remote service.
377             *
378             * @param scLicenseService the s c license remote service
379             */
380            public void setSCLicenseService(SCLicenseService scLicenseService) {
381                    this.scLicenseService = scLicenseService;
382            }
383    
384            /**
385             * Returns the s c license persistence.
386             *
387             * @return the s c license persistence
388             */
389            public SCLicensePersistence getSCLicensePersistence() {
390                    return scLicensePersistence;
391            }
392    
393            /**
394             * Sets the s c license persistence.
395             *
396             * @param scLicensePersistence the s c license persistence
397             */
398            public void setSCLicensePersistence(
399                    SCLicensePersistence scLicensePersistence) {
400                    this.scLicensePersistence = scLicensePersistence;
401            }
402    
403            /**
404             * Returns the s c product entry local service.
405             *
406             * @return the s c product entry local service
407             */
408            public SCProductEntryLocalService getSCProductEntryLocalService() {
409                    return scProductEntryLocalService;
410            }
411    
412            /**
413             * Sets the s c product entry local service.
414             *
415             * @param scProductEntryLocalService the s c product entry local service
416             */
417            public void setSCProductEntryLocalService(
418                    SCProductEntryLocalService scProductEntryLocalService) {
419                    this.scProductEntryLocalService = scProductEntryLocalService;
420            }
421    
422            /**
423             * Returns the s c product entry remote service.
424             *
425             * @return the s c product entry remote service
426             */
427            public SCProductEntryService getSCProductEntryService() {
428                    return scProductEntryService;
429            }
430    
431            /**
432             * Sets the s c product entry remote service.
433             *
434             * @param scProductEntryService the s c product entry remote service
435             */
436            public void setSCProductEntryService(
437                    SCProductEntryService scProductEntryService) {
438                    this.scProductEntryService = scProductEntryService;
439            }
440    
441            /**
442             * Returns the s c product entry persistence.
443             *
444             * @return the s c product entry persistence
445             */
446            public SCProductEntryPersistence getSCProductEntryPersistence() {
447                    return scProductEntryPersistence;
448            }
449    
450            /**
451             * Sets the s c product entry persistence.
452             *
453             * @param scProductEntryPersistence the s c product entry persistence
454             */
455            public void setSCProductEntryPersistence(
456                    SCProductEntryPersistence scProductEntryPersistence) {
457                    this.scProductEntryPersistence = scProductEntryPersistence;
458            }
459    
460            /**
461             * Returns the s c product screenshot local service.
462             *
463             * @return the s c product screenshot local service
464             */
465            public SCProductScreenshotLocalService getSCProductScreenshotLocalService() {
466                    return scProductScreenshotLocalService;
467            }
468    
469            /**
470             * Sets the s c product screenshot local service.
471             *
472             * @param scProductScreenshotLocalService the s c product screenshot local service
473             */
474            public void setSCProductScreenshotLocalService(
475                    SCProductScreenshotLocalService scProductScreenshotLocalService) {
476                    this.scProductScreenshotLocalService = scProductScreenshotLocalService;
477            }
478    
479            /**
480             * Returns the s c product screenshot persistence.
481             *
482             * @return the s c product screenshot persistence
483             */
484            public SCProductScreenshotPersistence getSCProductScreenshotPersistence() {
485                    return scProductScreenshotPersistence;
486            }
487    
488            /**
489             * Sets the s c product screenshot persistence.
490             *
491             * @param scProductScreenshotPersistence the s c product screenshot persistence
492             */
493            public void setSCProductScreenshotPersistence(
494                    SCProductScreenshotPersistence scProductScreenshotPersistence) {
495                    this.scProductScreenshotPersistence = scProductScreenshotPersistence;
496            }
497    
498            /**
499             * Returns the s c product version local service.
500             *
501             * @return the s c product version local service
502             */
503            public SCProductVersionLocalService getSCProductVersionLocalService() {
504                    return scProductVersionLocalService;
505            }
506    
507            /**
508             * Sets the s c product version local service.
509             *
510             * @param scProductVersionLocalService the s c product version local service
511             */
512            public void setSCProductVersionLocalService(
513                    SCProductVersionLocalService scProductVersionLocalService) {
514                    this.scProductVersionLocalService = scProductVersionLocalService;
515            }
516    
517            /**
518             * Returns the s c product version remote service.
519             *
520             * @return the s c product version remote service
521             */
522            public SCProductVersionService getSCProductVersionService() {
523                    return scProductVersionService;
524            }
525    
526            /**
527             * Sets the s c product version remote service.
528             *
529             * @param scProductVersionService the s c product version remote service
530             */
531            public void setSCProductVersionService(
532                    SCProductVersionService scProductVersionService) {
533                    this.scProductVersionService = scProductVersionService;
534            }
535    
536            /**
537             * Returns the s c product version persistence.
538             *
539             * @return the s c product version persistence
540             */
541            public SCProductVersionPersistence getSCProductVersionPersistence() {
542                    return scProductVersionPersistence;
543            }
544    
545            /**
546             * Sets the s c product version persistence.
547             *
548             * @param scProductVersionPersistence the s c product version persistence
549             */
550            public void setSCProductVersionPersistence(
551                    SCProductVersionPersistence scProductVersionPersistence) {
552                    this.scProductVersionPersistence = scProductVersionPersistence;
553            }
554    
555            /**
556             * Returns the counter local service.
557             *
558             * @return the counter local service
559             */
560            public CounterLocalService getCounterLocalService() {
561                    return counterLocalService;
562            }
563    
564            /**
565             * Sets the counter local service.
566             *
567             * @param counterLocalService the counter local service
568             */
569            public void setCounterLocalService(CounterLocalService counterLocalService) {
570                    this.counterLocalService = counterLocalService;
571            }
572    
573            /**
574             * Returns the resource local service.
575             *
576             * @return the resource local service
577             */
578            public ResourceLocalService getResourceLocalService() {
579                    return resourceLocalService;
580            }
581    
582            /**
583             * Sets the resource local service.
584             *
585             * @param resourceLocalService the resource local service
586             */
587            public void setResourceLocalService(
588                    ResourceLocalService resourceLocalService) {
589                    this.resourceLocalService = resourceLocalService;
590            }
591    
592            /**
593             * Returns the resource remote service.
594             *
595             * @return the resource remote service
596             */
597            public ResourceService getResourceService() {
598                    return resourceService;
599            }
600    
601            /**
602             * Sets the resource remote service.
603             *
604             * @param resourceService the resource remote service
605             */
606            public void setResourceService(ResourceService resourceService) {
607                    this.resourceService = resourceService;
608            }
609    
610            /**
611             * Returns the resource persistence.
612             *
613             * @return the resource persistence
614             */
615            public ResourcePersistence getResourcePersistence() {
616                    return resourcePersistence;
617            }
618    
619            /**
620             * Sets the resource persistence.
621             *
622             * @param resourcePersistence the resource persistence
623             */
624            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
625                    this.resourcePersistence = resourcePersistence;
626            }
627    
628            /**
629             * Returns the resource finder.
630             *
631             * @return the resource finder
632             */
633            public ResourceFinder getResourceFinder() {
634                    return resourceFinder;
635            }
636    
637            /**
638             * Sets the resource finder.
639             *
640             * @param resourceFinder the resource finder
641             */
642            public void setResourceFinder(ResourceFinder resourceFinder) {
643                    this.resourceFinder = resourceFinder;
644            }
645    
646            /**
647             * Returns the user local service.
648             *
649             * @return the user local service
650             */
651            public UserLocalService getUserLocalService() {
652                    return userLocalService;
653            }
654    
655            /**
656             * Sets the user local service.
657             *
658             * @param userLocalService the user local service
659             */
660            public void setUserLocalService(UserLocalService userLocalService) {
661                    this.userLocalService = userLocalService;
662            }
663    
664            /**
665             * Returns the user remote service.
666             *
667             * @return the user remote service
668             */
669            public UserService getUserService() {
670                    return userService;
671            }
672    
673            /**
674             * Sets the user remote service.
675             *
676             * @param userService the user remote service
677             */
678            public void setUserService(UserService userService) {
679                    this.userService = userService;
680            }
681    
682            /**
683             * Returns the user persistence.
684             *
685             * @return the user persistence
686             */
687            public UserPersistence getUserPersistence() {
688                    return userPersistence;
689            }
690    
691            /**
692             * Sets the user persistence.
693             *
694             * @param userPersistence the user persistence
695             */
696            public void setUserPersistence(UserPersistence userPersistence) {
697                    this.userPersistence = userPersistence;
698            }
699    
700            /**
701             * Returns the user finder.
702             *
703             * @return the user finder
704             */
705            public UserFinder getUserFinder() {
706                    return userFinder;
707            }
708    
709            /**
710             * Sets the user finder.
711             *
712             * @param userFinder the user finder
713             */
714            public void setUserFinder(UserFinder userFinder) {
715                    this.userFinder = userFinder;
716            }
717    
718            public void afterPropertiesSet() {
719                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.softwarecatalog.model.SCProductVersion",
720                            scProductVersionLocalService);
721            }
722    
723            public void destroy() {
724                    persistedModelLocalServiceRegistry.unregister(
725                            "com.liferay.portlet.softwarecatalog.model.SCProductVersion");
726            }
727    
728            /**
729             * Returns the Spring bean ID for this bean.
730             *
731             * @return the Spring bean ID for this bean
732             */
733            public String getBeanIdentifier() {
734                    return _beanIdentifier;
735            }
736    
737            /**
738             * Sets the Spring bean ID for this bean.
739             *
740             * @param beanIdentifier the Spring bean ID for this bean
741             */
742            public void setBeanIdentifier(String beanIdentifier) {
743                    _beanIdentifier = beanIdentifier;
744            }
745    
746            protected Class<?> getModelClass() {
747                    return SCProductVersion.class;
748            }
749    
750            protected String getModelClassName() {
751                    return SCProductVersion.class.getName();
752            }
753    
754            /**
755             * Performs an SQL query.
756             *
757             * @param sql the sql query
758             */
759            protected void runSQL(String sql) throws SystemException {
760                    try {
761                            DataSource dataSource = scProductVersionPersistence.getDataSource();
762    
763                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
764                                            sql, new int[0]);
765    
766                            sqlUpdate.update();
767                    }
768                    catch (Exception e) {
769                            throw new SystemException(e);
770                    }
771            }
772    
773            @BeanReference(type = SCFrameworkVersionLocalService.class)
774            protected SCFrameworkVersionLocalService scFrameworkVersionLocalService;
775            @BeanReference(type = SCFrameworkVersionService.class)
776            protected SCFrameworkVersionService scFrameworkVersionService;
777            @BeanReference(type = SCFrameworkVersionPersistence.class)
778            protected SCFrameworkVersionPersistence scFrameworkVersionPersistence;
779            @BeanReference(type = SCLicenseLocalService.class)
780            protected SCLicenseLocalService scLicenseLocalService;
781            @BeanReference(type = SCLicenseService.class)
782            protected SCLicenseService scLicenseService;
783            @BeanReference(type = SCLicensePersistence.class)
784            protected SCLicensePersistence scLicensePersistence;
785            @BeanReference(type = SCProductEntryLocalService.class)
786            protected SCProductEntryLocalService scProductEntryLocalService;
787            @BeanReference(type = SCProductEntryService.class)
788            protected SCProductEntryService scProductEntryService;
789            @BeanReference(type = SCProductEntryPersistence.class)
790            protected SCProductEntryPersistence scProductEntryPersistence;
791            @BeanReference(type = SCProductScreenshotLocalService.class)
792            protected SCProductScreenshotLocalService scProductScreenshotLocalService;
793            @BeanReference(type = SCProductScreenshotPersistence.class)
794            protected SCProductScreenshotPersistence scProductScreenshotPersistence;
795            @BeanReference(type = SCProductVersionLocalService.class)
796            protected SCProductVersionLocalService scProductVersionLocalService;
797            @BeanReference(type = SCProductVersionService.class)
798            protected SCProductVersionService scProductVersionService;
799            @BeanReference(type = SCProductVersionPersistence.class)
800            protected SCProductVersionPersistence scProductVersionPersistence;
801            @BeanReference(type = CounterLocalService.class)
802            protected CounterLocalService counterLocalService;
803            @BeanReference(type = ResourceLocalService.class)
804            protected ResourceLocalService resourceLocalService;
805            @BeanReference(type = ResourceService.class)
806            protected ResourceService resourceService;
807            @BeanReference(type = ResourcePersistence.class)
808            protected ResourcePersistence resourcePersistence;
809            @BeanReference(type = ResourceFinder.class)
810            protected ResourceFinder resourceFinder;
811            @BeanReference(type = UserLocalService.class)
812            protected UserLocalService userLocalService;
813            @BeanReference(type = UserService.class)
814            protected UserService userService;
815            @BeanReference(type = UserPersistence.class)
816            protected UserPersistence userPersistence;
817            @BeanReference(type = UserFinder.class)
818            protected UserFinder userFinder;
819            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
820            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
821            private String _beanIdentifier;
822    }