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.SCLicense;
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 license 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.SCLicenseLocalServiceImpl}.
069     * </p>
070     *
071     * @author Brian Wing Shun Chan
072     * @see com.liferay.portlet.softwarecatalog.service.impl.SCLicenseLocalServiceImpl
073     * @see com.liferay.portlet.softwarecatalog.service.SCLicenseLocalServiceUtil
074     * @generated
075     */
076    public abstract class SCLicenseLocalServiceBaseImpl extends BaseLocalServiceImpl
077            implements SCLicenseLocalService, IdentifiableBean {
078            /*
079             * NOTE FOR DEVELOPERS:
080             *
081             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.softwarecatalog.service.SCLicenseLocalServiceUtil} to access the s c license local service.
082             */
083    
084            /**
085             * Adds the s c license to the database. Also notifies the appropriate model listeners.
086             *
087             * @param scLicense the s c license
088             * @return the s c license that was added
089             * @throws SystemException if a system exception occurred
090             */
091            @Indexable(type = IndexableType.REINDEX)
092            public SCLicense addSCLicense(SCLicense scLicense)
093                    throws SystemException {
094                    scLicense.setNew(true);
095    
096                    return scLicensePersistence.update(scLicense, false);
097            }
098    
099            /**
100             * Creates a new s c license with the primary key. Does not add the s c license to the database.
101             *
102             * @param licenseId the primary key for the new s c license
103             * @return the new s c license
104             */
105            public SCLicense createSCLicense(long licenseId) {
106                    return scLicensePersistence.create(licenseId);
107            }
108    
109            /**
110             * Deletes the s c license with the primary key from the database. Also notifies the appropriate model listeners.
111             *
112             * @param licenseId the primary key of the s c license
113             * @return the s c license that was removed
114             * @throws PortalException if a s c license with the primary key could not be found
115             * @throws SystemException if a system exception occurred
116             */
117            @Indexable(type = IndexableType.DELETE)
118            public SCLicense deleteSCLicense(long licenseId)
119                    throws PortalException, SystemException {
120                    return scLicensePersistence.remove(licenseId);
121            }
122    
123            /**
124             * Deletes the s c license from the database. Also notifies the appropriate model listeners.
125             *
126             * @param scLicense the s c license
127             * @return the s c license that was removed
128             * @throws SystemException if a system exception occurred
129             */
130            @Indexable(type = IndexableType.DELETE)
131            public SCLicense deleteSCLicense(SCLicense scLicense)
132                    throws SystemException {
133                    return scLicensePersistence.remove(scLicense);
134            }
135    
136            public DynamicQuery dynamicQuery() {
137                    Class<?> clazz = getClass();
138    
139                    return DynamicQueryFactoryUtil.forClass(SCLicense.class,
140                            clazz.getClassLoader());
141            }
142    
143            /**
144             * Performs a dynamic query on the database and returns the matching rows.
145             *
146             * @param dynamicQuery the dynamic query
147             * @return the matching rows
148             * @throws SystemException if a system exception occurred
149             */
150            @SuppressWarnings("rawtypes")
151            public List dynamicQuery(DynamicQuery dynamicQuery)
152                    throws SystemException {
153                    return scLicensePersistence.findWithDynamicQuery(dynamicQuery);
154            }
155    
156            /**
157             * Performs a dynamic query on the database and returns a range of the matching rows.
158             *
159             * <p>
160             * 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.
161             * </p>
162             *
163             * @param dynamicQuery the dynamic query
164             * @param start the lower bound of the range of model instances
165             * @param end the upper bound of the range of model instances (not inclusive)
166             * @return the range of matching rows
167             * @throws SystemException if a system exception occurred
168             */
169            @SuppressWarnings("rawtypes")
170            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
171                    throws SystemException {
172                    return scLicensePersistence.findWithDynamicQuery(dynamicQuery, start,
173                            end);
174            }
175    
176            /**
177             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
178             *
179             * <p>
180             * 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.
181             * </p>
182             *
183             * @param dynamicQuery the dynamic query
184             * @param start the lower bound of the range of model instances
185             * @param end the upper bound of the range of model instances (not inclusive)
186             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
187             * @return the ordered range of matching rows
188             * @throws SystemException if a system exception occurred
189             */
190            @SuppressWarnings("rawtypes")
191            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
192                    OrderByComparator orderByComparator) throws SystemException {
193                    return scLicensePersistence.findWithDynamicQuery(dynamicQuery, start,
194                            end, orderByComparator);
195            }
196    
197            /**
198             * Returns the number of rows that match the dynamic query.
199             *
200             * @param dynamicQuery the dynamic query
201             * @return the number of rows that match the dynamic query
202             * @throws SystemException if a system exception occurred
203             */
204            public long dynamicQueryCount(DynamicQuery dynamicQuery)
205                    throws SystemException {
206                    return scLicensePersistence.countWithDynamicQuery(dynamicQuery);
207            }
208    
209            public SCLicense fetchSCLicense(long licenseId) throws SystemException {
210                    return scLicensePersistence.fetchByPrimaryKey(licenseId);
211            }
212    
213            /**
214             * Returns the s c license with the primary key.
215             *
216             * @param licenseId the primary key of the s c license
217             * @return the s c license
218             * @throws PortalException if a s c license with the primary key could not be found
219             * @throws SystemException if a system exception occurred
220             */
221            public SCLicense getSCLicense(long licenseId)
222                    throws PortalException, SystemException {
223                    return scLicensePersistence.findByPrimaryKey(licenseId);
224            }
225    
226            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
227                    throws PortalException, SystemException {
228                    return scLicensePersistence.findByPrimaryKey(primaryKeyObj);
229            }
230    
231            /**
232             * Returns a range of all the s c licenses.
233             *
234             * <p>
235             * 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.
236             * </p>
237             *
238             * @param start the lower bound of the range of s c licenses
239             * @param end the upper bound of the range of s c licenses (not inclusive)
240             * @return the range of s c licenses
241             * @throws SystemException if a system exception occurred
242             */
243            public List<SCLicense> getSCLicenses(int start, int end)
244                    throws SystemException {
245                    return scLicensePersistence.findAll(start, end);
246            }
247    
248            /**
249             * Returns the number of s c licenses.
250             *
251             * @return the number of s c licenses
252             * @throws SystemException if a system exception occurred
253             */
254            public int getSCLicensesCount() throws SystemException {
255                    return scLicensePersistence.countAll();
256            }
257    
258            /**
259             * Updates the s c license in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
260             *
261             * @param scLicense the s c license
262             * @return the s c license that was updated
263             * @throws SystemException if a system exception occurred
264             */
265            @Indexable(type = IndexableType.REINDEX)
266            public SCLicense updateSCLicense(SCLicense scLicense)
267                    throws SystemException {
268                    return updateSCLicense(scLicense, true);
269            }
270    
271            /**
272             * Updates the s c license in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
273             *
274             * @param scLicense the s c license
275             * @param merge whether to merge the s c license 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.
276             * @return the s c license that was updated
277             * @throws SystemException if a system exception occurred
278             */
279            @Indexable(type = IndexableType.REINDEX)
280            public SCLicense updateSCLicense(SCLicense scLicense, boolean merge)
281                    throws SystemException {
282                    scLicense.setNew(false);
283    
284                    return scLicensePersistence.update(scLicense, merge);
285            }
286    
287            /**
288             * Returns the s c framework version local service.
289             *
290             * @return the s c framework version local service
291             */
292            public SCFrameworkVersionLocalService getSCFrameworkVersionLocalService() {
293                    return scFrameworkVersionLocalService;
294            }
295    
296            /**
297             * Sets the s c framework version local service.
298             *
299             * @param scFrameworkVersionLocalService the s c framework version local service
300             */
301            public void setSCFrameworkVersionLocalService(
302                    SCFrameworkVersionLocalService scFrameworkVersionLocalService) {
303                    this.scFrameworkVersionLocalService = scFrameworkVersionLocalService;
304            }
305    
306            /**
307             * Returns the s c framework version remote service.
308             *
309             * @return the s c framework version remote service
310             */
311            public SCFrameworkVersionService getSCFrameworkVersionService() {
312                    return scFrameworkVersionService;
313            }
314    
315            /**
316             * Sets the s c framework version remote service.
317             *
318             * @param scFrameworkVersionService the s c framework version remote service
319             */
320            public void setSCFrameworkVersionService(
321                    SCFrameworkVersionService scFrameworkVersionService) {
322                    this.scFrameworkVersionService = scFrameworkVersionService;
323            }
324    
325            /**
326             * Returns the s c framework version persistence.
327             *
328             * @return the s c framework version persistence
329             */
330            public SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
331                    return scFrameworkVersionPersistence;
332            }
333    
334            /**
335             * Sets the s c framework version persistence.
336             *
337             * @param scFrameworkVersionPersistence the s c framework version persistence
338             */
339            public void setSCFrameworkVersionPersistence(
340                    SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
341                    this.scFrameworkVersionPersistence = scFrameworkVersionPersistence;
342            }
343    
344            /**
345             * Returns the s c license local service.
346             *
347             * @return the s c license local service
348             */
349            public SCLicenseLocalService getSCLicenseLocalService() {
350                    return scLicenseLocalService;
351            }
352    
353            /**
354             * Sets the s c license local service.
355             *
356             * @param scLicenseLocalService the s c license local service
357             */
358            public void setSCLicenseLocalService(
359                    SCLicenseLocalService scLicenseLocalService) {
360                    this.scLicenseLocalService = scLicenseLocalService;
361            }
362    
363            /**
364             * Returns the s c license remote service.
365             *
366             * @return the s c license remote service
367             */
368            public SCLicenseService getSCLicenseService() {
369                    return scLicenseService;
370            }
371    
372            /**
373             * Sets the s c license remote service.
374             *
375             * @param scLicenseService the s c license remote service
376             */
377            public void setSCLicenseService(SCLicenseService scLicenseService) {
378                    this.scLicenseService = scLicenseService;
379            }
380    
381            /**
382             * Returns the s c license persistence.
383             *
384             * @return the s c license persistence
385             */
386            public SCLicensePersistence getSCLicensePersistence() {
387                    return scLicensePersistence;
388            }
389    
390            /**
391             * Sets the s c license persistence.
392             *
393             * @param scLicensePersistence the s c license persistence
394             */
395            public void setSCLicensePersistence(
396                    SCLicensePersistence scLicensePersistence) {
397                    this.scLicensePersistence = scLicensePersistence;
398            }
399    
400            /**
401             * Returns the s c product entry local service.
402             *
403             * @return the s c product entry local service
404             */
405            public SCProductEntryLocalService getSCProductEntryLocalService() {
406                    return scProductEntryLocalService;
407            }
408    
409            /**
410             * Sets the s c product entry local service.
411             *
412             * @param scProductEntryLocalService the s c product entry local service
413             */
414            public void setSCProductEntryLocalService(
415                    SCProductEntryLocalService scProductEntryLocalService) {
416                    this.scProductEntryLocalService = scProductEntryLocalService;
417            }
418    
419            /**
420             * Returns the s c product entry remote service.
421             *
422             * @return the s c product entry remote service
423             */
424            public SCProductEntryService getSCProductEntryService() {
425                    return scProductEntryService;
426            }
427    
428            /**
429             * Sets the s c product entry remote service.
430             *
431             * @param scProductEntryService the s c product entry remote service
432             */
433            public void setSCProductEntryService(
434                    SCProductEntryService scProductEntryService) {
435                    this.scProductEntryService = scProductEntryService;
436            }
437    
438            /**
439             * Returns the s c product entry persistence.
440             *
441             * @return the s c product entry persistence
442             */
443            public SCProductEntryPersistence getSCProductEntryPersistence() {
444                    return scProductEntryPersistence;
445            }
446    
447            /**
448             * Sets the s c product entry persistence.
449             *
450             * @param scProductEntryPersistence the s c product entry persistence
451             */
452            public void setSCProductEntryPersistence(
453                    SCProductEntryPersistence scProductEntryPersistence) {
454                    this.scProductEntryPersistence = scProductEntryPersistence;
455            }
456    
457            /**
458             * Returns the s c product screenshot local service.
459             *
460             * @return the s c product screenshot local service
461             */
462            public SCProductScreenshotLocalService getSCProductScreenshotLocalService() {
463                    return scProductScreenshotLocalService;
464            }
465    
466            /**
467             * Sets the s c product screenshot local service.
468             *
469             * @param scProductScreenshotLocalService the s c product screenshot local service
470             */
471            public void setSCProductScreenshotLocalService(
472                    SCProductScreenshotLocalService scProductScreenshotLocalService) {
473                    this.scProductScreenshotLocalService = scProductScreenshotLocalService;
474            }
475    
476            /**
477             * Returns the s c product screenshot persistence.
478             *
479             * @return the s c product screenshot persistence
480             */
481            public SCProductScreenshotPersistence getSCProductScreenshotPersistence() {
482                    return scProductScreenshotPersistence;
483            }
484    
485            /**
486             * Sets the s c product screenshot persistence.
487             *
488             * @param scProductScreenshotPersistence the s c product screenshot persistence
489             */
490            public void setSCProductScreenshotPersistence(
491                    SCProductScreenshotPersistence scProductScreenshotPersistence) {
492                    this.scProductScreenshotPersistence = scProductScreenshotPersistence;
493            }
494    
495            /**
496             * Returns the s c product version local service.
497             *
498             * @return the s c product version local service
499             */
500            public SCProductVersionLocalService getSCProductVersionLocalService() {
501                    return scProductVersionLocalService;
502            }
503    
504            /**
505             * Sets the s c product version local service.
506             *
507             * @param scProductVersionLocalService the s c product version local service
508             */
509            public void setSCProductVersionLocalService(
510                    SCProductVersionLocalService scProductVersionLocalService) {
511                    this.scProductVersionLocalService = scProductVersionLocalService;
512            }
513    
514            /**
515             * Returns the s c product version remote service.
516             *
517             * @return the s c product version remote service
518             */
519            public SCProductVersionService getSCProductVersionService() {
520                    return scProductVersionService;
521            }
522    
523            /**
524             * Sets the s c product version remote service.
525             *
526             * @param scProductVersionService the s c product version remote service
527             */
528            public void setSCProductVersionService(
529                    SCProductVersionService scProductVersionService) {
530                    this.scProductVersionService = scProductVersionService;
531            }
532    
533            /**
534             * Returns the s c product version persistence.
535             *
536             * @return the s c product version persistence
537             */
538            public SCProductVersionPersistence getSCProductVersionPersistence() {
539                    return scProductVersionPersistence;
540            }
541    
542            /**
543             * Sets the s c product version persistence.
544             *
545             * @param scProductVersionPersistence the s c product version persistence
546             */
547            public void setSCProductVersionPersistence(
548                    SCProductVersionPersistence scProductVersionPersistence) {
549                    this.scProductVersionPersistence = scProductVersionPersistence;
550            }
551    
552            /**
553             * Returns the counter local service.
554             *
555             * @return the counter local service
556             */
557            public CounterLocalService getCounterLocalService() {
558                    return counterLocalService;
559            }
560    
561            /**
562             * Sets the counter local service.
563             *
564             * @param counterLocalService the counter local service
565             */
566            public void setCounterLocalService(CounterLocalService counterLocalService) {
567                    this.counterLocalService = counterLocalService;
568            }
569    
570            /**
571             * Returns the resource local service.
572             *
573             * @return the resource local service
574             */
575            public ResourceLocalService getResourceLocalService() {
576                    return resourceLocalService;
577            }
578    
579            /**
580             * Sets the resource local service.
581             *
582             * @param resourceLocalService the resource local service
583             */
584            public void setResourceLocalService(
585                    ResourceLocalService resourceLocalService) {
586                    this.resourceLocalService = resourceLocalService;
587            }
588    
589            /**
590             * Returns the resource remote service.
591             *
592             * @return the resource remote service
593             */
594            public ResourceService getResourceService() {
595                    return resourceService;
596            }
597    
598            /**
599             * Sets the resource remote service.
600             *
601             * @param resourceService the resource remote service
602             */
603            public void setResourceService(ResourceService resourceService) {
604                    this.resourceService = resourceService;
605            }
606    
607            /**
608             * Returns the resource persistence.
609             *
610             * @return the resource persistence
611             */
612            public ResourcePersistence getResourcePersistence() {
613                    return resourcePersistence;
614            }
615    
616            /**
617             * Sets the resource persistence.
618             *
619             * @param resourcePersistence the resource persistence
620             */
621            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
622                    this.resourcePersistence = resourcePersistence;
623            }
624    
625            /**
626             * Returns the resource finder.
627             *
628             * @return the resource finder
629             */
630            public ResourceFinder getResourceFinder() {
631                    return resourceFinder;
632            }
633    
634            /**
635             * Sets the resource finder.
636             *
637             * @param resourceFinder the resource finder
638             */
639            public void setResourceFinder(ResourceFinder resourceFinder) {
640                    this.resourceFinder = resourceFinder;
641            }
642    
643            /**
644             * Returns the user local service.
645             *
646             * @return the user local service
647             */
648            public UserLocalService getUserLocalService() {
649                    return userLocalService;
650            }
651    
652            /**
653             * Sets the user local service.
654             *
655             * @param userLocalService the user local service
656             */
657            public void setUserLocalService(UserLocalService userLocalService) {
658                    this.userLocalService = userLocalService;
659            }
660    
661            /**
662             * Returns the user remote service.
663             *
664             * @return the user remote service
665             */
666            public UserService getUserService() {
667                    return userService;
668            }
669    
670            /**
671             * Sets the user remote service.
672             *
673             * @param userService the user remote service
674             */
675            public void setUserService(UserService userService) {
676                    this.userService = userService;
677            }
678    
679            /**
680             * Returns the user persistence.
681             *
682             * @return the user persistence
683             */
684            public UserPersistence getUserPersistence() {
685                    return userPersistence;
686            }
687    
688            /**
689             * Sets the user persistence.
690             *
691             * @param userPersistence the user persistence
692             */
693            public void setUserPersistence(UserPersistence userPersistence) {
694                    this.userPersistence = userPersistence;
695            }
696    
697            /**
698             * Returns the user finder.
699             *
700             * @return the user finder
701             */
702            public UserFinder getUserFinder() {
703                    return userFinder;
704            }
705    
706            /**
707             * Sets the user finder.
708             *
709             * @param userFinder the user finder
710             */
711            public void setUserFinder(UserFinder userFinder) {
712                    this.userFinder = userFinder;
713            }
714    
715            public void afterPropertiesSet() {
716                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.softwarecatalog.model.SCLicense",
717                            scLicenseLocalService);
718            }
719    
720            public void destroy() {
721                    persistedModelLocalServiceRegistry.unregister(
722                            "com.liferay.portlet.softwarecatalog.model.SCLicense");
723            }
724    
725            /**
726             * Returns the Spring bean ID for this bean.
727             *
728             * @return the Spring bean ID for this bean
729             */
730            public String getBeanIdentifier() {
731                    return _beanIdentifier;
732            }
733    
734            /**
735             * Sets the Spring bean ID for this bean.
736             *
737             * @param beanIdentifier the Spring bean ID for this bean
738             */
739            public void setBeanIdentifier(String beanIdentifier) {
740                    _beanIdentifier = beanIdentifier;
741            }
742    
743            protected Class<?> getModelClass() {
744                    return SCLicense.class;
745            }
746    
747            protected String getModelClassName() {
748                    return SCLicense.class.getName();
749            }
750    
751            /**
752             * Performs an SQL query.
753             *
754             * @param sql the sql query
755             */
756            protected void runSQL(String sql) throws SystemException {
757                    try {
758                            DataSource dataSource = scLicensePersistence.getDataSource();
759    
760                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
761                                            sql, new int[0]);
762    
763                            sqlUpdate.update();
764                    }
765                    catch (Exception e) {
766                            throw new SystemException(e);
767                    }
768            }
769    
770            @BeanReference(type = SCFrameworkVersionLocalService.class)
771            protected SCFrameworkVersionLocalService scFrameworkVersionLocalService;
772            @BeanReference(type = SCFrameworkVersionService.class)
773            protected SCFrameworkVersionService scFrameworkVersionService;
774            @BeanReference(type = SCFrameworkVersionPersistence.class)
775            protected SCFrameworkVersionPersistence scFrameworkVersionPersistence;
776            @BeanReference(type = SCLicenseLocalService.class)
777            protected SCLicenseLocalService scLicenseLocalService;
778            @BeanReference(type = SCLicenseService.class)
779            protected SCLicenseService scLicenseService;
780            @BeanReference(type = SCLicensePersistence.class)
781            protected SCLicensePersistence scLicensePersistence;
782            @BeanReference(type = SCProductEntryLocalService.class)
783            protected SCProductEntryLocalService scProductEntryLocalService;
784            @BeanReference(type = SCProductEntryService.class)
785            protected SCProductEntryService scProductEntryService;
786            @BeanReference(type = SCProductEntryPersistence.class)
787            protected SCProductEntryPersistence scProductEntryPersistence;
788            @BeanReference(type = SCProductScreenshotLocalService.class)
789            protected SCProductScreenshotLocalService scProductScreenshotLocalService;
790            @BeanReference(type = SCProductScreenshotPersistence.class)
791            protected SCProductScreenshotPersistence scProductScreenshotPersistence;
792            @BeanReference(type = SCProductVersionLocalService.class)
793            protected SCProductVersionLocalService scProductVersionLocalService;
794            @BeanReference(type = SCProductVersionService.class)
795            protected SCProductVersionService scProductVersionService;
796            @BeanReference(type = SCProductVersionPersistence.class)
797            protected SCProductVersionPersistence scProductVersionPersistence;
798            @BeanReference(type = CounterLocalService.class)
799            protected CounterLocalService counterLocalService;
800            @BeanReference(type = ResourceLocalService.class)
801            protected ResourceLocalService resourceLocalService;
802            @BeanReference(type = ResourceService.class)
803            protected ResourceService resourceService;
804            @BeanReference(type = ResourcePersistence.class)
805            protected ResourcePersistence resourcePersistence;
806            @BeanReference(type = ResourceFinder.class)
807            protected ResourceFinder resourceFinder;
808            @BeanReference(type = UserLocalService.class)
809            protected UserLocalService userLocalService;
810            @BeanReference(type = UserService.class)
811            protected UserService userService;
812            @BeanReference(type = UserPersistence.class)
813            protected UserPersistence userPersistence;
814            @BeanReference(type = UserFinder.class)
815            protected UserFinder userFinder;
816            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
817            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
818            private String _beanIdentifier;
819    }