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