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