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.asset.service.base;
016    
017    import com.liferay.portal.kernel.bean.BeanReference;
018    import com.liferay.portal.kernel.dao.db.DB;
019    import com.liferay.portal.kernel.dao.db.DBManagerUtil;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022    import com.liferay.portal.kernel.exception.SystemException;
023    import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
024    import com.liferay.portal.service.BaseServiceImpl;
025    import com.liferay.portal.service.persistence.ClassNamePersistence;
026    import com.liferay.portal.service.persistence.UserFinder;
027    import com.liferay.portal.service.persistence.UserPersistence;
028    import com.liferay.portal.util.PortalUtil;
029    
030    import com.liferay.portlet.asset.model.AssetCategory;
031    import com.liferay.portlet.asset.service.AssetCategoryService;
032    import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
033    import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
034    import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyFinder;
035    import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence;
036    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
037    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
038    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
039    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
040    import com.liferay.portlet.asset.service.persistence.AssetVocabularyFinder;
041    import com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence;
042    
043    import javax.sql.DataSource;
044    
045    /**
046     * Provides the base implementation for the asset category remote service.
047     *
048     * <p>
049     * 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.asset.service.impl.AssetCategoryServiceImpl}.
050     * </p>
051     *
052     * @author Brian Wing Shun Chan
053     * @see com.liferay.portlet.asset.service.impl.AssetCategoryServiceImpl
054     * @see com.liferay.portlet.asset.service.AssetCategoryServiceUtil
055     * @generated
056     */
057    public abstract class AssetCategoryServiceBaseImpl extends BaseServiceImpl
058            implements AssetCategoryService, IdentifiableOSGiService {
059            /*
060             * NOTE FOR DEVELOPERS:
061             *
062             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.asset.service.AssetCategoryServiceUtil} to access the asset category remote service.
063             */
064    
065            /**
066             * Returns the asset category local service.
067             *
068             * @return the asset category local service
069             */
070            public com.liferay.portlet.asset.service.AssetCategoryLocalService getAssetCategoryLocalService() {
071                    return assetCategoryLocalService;
072            }
073    
074            /**
075             * Sets the asset category local service.
076             *
077             * @param assetCategoryLocalService the asset category local service
078             */
079            public void setAssetCategoryLocalService(
080                    com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService) {
081                    this.assetCategoryLocalService = assetCategoryLocalService;
082            }
083    
084            /**
085             * Returns the asset category remote service.
086             *
087             * @return the asset category remote service
088             */
089            public AssetCategoryService getAssetCategoryService() {
090                    return assetCategoryService;
091            }
092    
093            /**
094             * Sets the asset category remote service.
095             *
096             * @param assetCategoryService the asset category remote service
097             */
098            public void setAssetCategoryService(
099                    AssetCategoryService assetCategoryService) {
100                    this.assetCategoryService = assetCategoryService;
101            }
102    
103            /**
104             * Returns the asset category persistence.
105             *
106             * @return the asset category persistence
107             */
108            public AssetCategoryPersistence getAssetCategoryPersistence() {
109                    return assetCategoryPersistence;
110            }
111    
112            /**
113             * Sets the asset category persistence.
114             *
115             * @param assetCategoryPersistence the asset category persistence
116             */
117            public void setAssetCategoryPersistence(
118                    AssetCategoryPersistence assetCategoryPersistence) {
119                    this.assetCategoryPersistence = assetCategoryPersistence;
120            }
121    
122            /**
123             * Returns the asset category finder.
124             *
125             * @return the asset category finder
126             */
127            public AssetCategoryFinder getAssetCategoryFinder() {
128                    return assetCategoryFinder;
129            }
130    
131            /**
132             * Sets the asset category finder.
133             *
134             * @param assetCategoryFinder the asset category finder
135             */
136            public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
137                    this.assetCategoryFinder = assetCategoryFinder;
138            }
139    
140            /**
141             * Returns the counter local service.
142             *
143             * @return the counter local service
144             */
145            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
146                    return counterLocalService;
147            }
148    
149            /**
150             * Sets the counter local service.
151             *
152             * @param counterLocalService the counter local service
153             */
154            public void setCounterLocalService(
155                    com.liferay.counter.service.CounterLocalService counterLocalService) {
156                    this.counterLocalService = counterLocalService;
157            }
158    
159            /**
160             * Returns the class name local service.
161             *
162             * @return the class name local service
163             */
164            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
165                    return classNameLocalService;
166            }
167    
168            /**
169             * Sets the class name local service.
170             *
171             * @param classNameLocalService the class name local service
172             */
173            public void setClassNameLocalService(
174                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
175                    this.classNameLocalService = classNameLocalService;
176            }
177    
178            /**
179             * Returns the class name remote service.
180             *
181             * @return the class name remote service
182             */
183            public com.liferay.portal.service.ClassNameService getClassNameService() {
184                    return classNameService;
185            }
186    
187            /**
188             * Sets the class name remote service.
189             *
190             * @param classNameService the class name remote service
191             */
192            public void setClassNameService(
193                    com.liferay.portal.service.ClassNameService classNameService) {
194                    this.classNameService = classNameService;
195            }
196    
197            /**
198             * Returns the class name persistence.
199             *
200             * @return the class name persistence
201             */
202            public ClassNamePersistence getClassNamePersistence() {
203                    return classNamePersistence;
204            }
205    
206            /**
207             * Sets the class name persistence.
208             *
209             * @param classNamePersistence the class name persistence
210             */
211            public void setClassNamePersistence(
212                    ClassNamePersistence classNamePersistence) {
213                    this.classNamePersistence = classNamePersistence;
214            }
215    
216            /**
217             * Returns the resource local service.
218             *
219             * @return the resource local service
220             */
221            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
222                    return resourceLocalService;
223            }
224    
225            /**
226             * Sets the resource local service.
227             *
228             * @param resourceLocalService the resource local service
229             */
230            public void setResourceLocalService(
231                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
232                    this.resourceLocalService = resourceLocalService;
233            }
234    
235            /**
236             * Returns the user local service.
237             *
238             * @return the user local service
239             */
240            public com.liferay.portal.service.UserLocalService getUserLocalService() {
241                    return userLocalService;
242            }
243    
244            /**
245             * Sets the user local service.
246             *
247             * @param userLocalService the user local service
248             */
249            public void setUserLocalService(
250                    com.liferay.portal.service.UserLocalService userLocalService) {
251                    this.userLocalService = userLocalService;
252            }
253    
254            /**
255             * Returns the user remote service.
256             *
257             * @return the user remote service
258             */
259            public com.liferay.portal.service.UserService getUserService() {
260                    return userService;
261            }
262    
263            /**
264             * Sets the user remote service.
265             *
266             * @param userService the user remote service
267             */
268            public void setUserService(
269                    com.liferay.portal.service.UserService userService) {
270                    this.userService = userService;
271            }
272    
273            /**
274             * Returns the user persistence.
275             *
276             * @return the user persistence
277             */
278            public UserPersistence getUserPersistence() {
279                    return userPersistence;
280            }
281    
282            /**
283             * Sets the user persistence.
284             *
285             * @param userPersistence the user persistence
286             */
287            public void setUserPersistence(UserPersistence userPersistence) {
288                    this.userPersistence = userPersistence;
289            }
290    
291            /**
292             * Returns the user finder.
293             *
294             * @return the user finder
295             */
296            public UserFinder getUserFinder() {
297                    return userFinder;
298            }
299    
300            /**
301             * Sets the user finder.
302             *
303             * @param userFinder the user finder
304             */
305            public void setUserFinder(UserFinder userFinder) {
306                    this.userFinder = userFinder;
307            }
308    
309            /**
310             * Returns the asset category property local service.
311             *
312             * @return the asset category property local service
313             */
314            public com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService() {
315                    return assetCategoryPropertyLocalService;
316            }
317    
318            /**
319             * Sets the asset category property local service.
320             *
321             * @param assetCategoryPropertyLocalService the asset category property local service
322             */
323            public void setAssetCategoryPropertyLocalService(
324                    com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
325                    this.assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
326            }
327    
328            /**
329             * Returns the asset category property remote service.
330             *
331             * @return the asset category property remote service
332             */
333            public com.liferay.portlet.asset.service.AssetCategoryPropertyService getAssetCategoryPropertyService() {
334                    return assetCategoryPropertyService;
335            }
336    
337            /**
338             * Sets the asset category property remote service.
339             *
340             * @param assetCategoryPropertyService the asset category property remote service
341             */
342            public void setAssetCategoryPropertyService(
343                    com.liferay.portlet.asset.service.AssetCategoryPropertyService assetCategoryPropertyService) {
344                    this.assetCategoryPropertyService = assetCategoryPropertyService;
345            }
346    
347            /**
348             * Returns the asset category property persistence.
349             *
350             * @return the asset category property persistence
351             */
352            public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence() {
353                    return assetCategoryPropertyPersistence;
354            }
355    
356            /**
357             * Sets the asset category property persistence.
358             *
359             * @param assetCategoryPropertyPersistence the asset category property persistence
360             */
361            public void setAssetCategoryPropertyPersistence(
362                    AssetCategoryPropertyPersistence assetCategoryPropertyPersistence) {
363                    this.assetCategoryPropertyPersistence = assetCategoryPropertyPersistence;
364            }
365    
366            /**
367             * Returns the asset category property finder.
368             *
369             * @return the asset category property finder
370             */
371            public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder() {
372                    return assetCategoryPropertyFinder;
373            }
374    
375            /**
376             * Sets the asset category property finder.
377             *
378             * @param assetCategoryPropertyFinder the asset category property finder
379             */
380            public void setAssetCategoryPropertyFinder(
381                    AssetCategoryPropertyFinder assetCategoryPropertyFinder) {
382                    this.assetCategoryPropertyFinder = assetCategoryPropertyFinder;
383            }
384    
385            /**
386             * Returns the asset entry local service.
387             *
388             * @return the asset entry local service
389             */
390            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
391                    return assetEntryLocalService;
392            }
393    
394            /**
395             * Sets the asset entry local service.
396             *
397             * @param assetEntryLocalService the asset entry local service
398             */
399            public void setAssetEntryLocalService(
400                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
401                    this.assetEntryLocalService = assetEntryLocalService;
402            }
403    
404            /**
405             * Returns the asset entry remote service.
406             *
407             * @return the asset entry remote service
408             */
409            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
410                    return assetEntryService;
411            }
412    
413            /**
414             * Sets the asset entry remote service.
415             *
416             * @param assetEntryService the asset entry remote service
417             */
418            public void setAssetEntryService(
419                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
420                    this.assetEntryService = assetEntryService;
421            }
422    
423            /**
424             * Returns the asset entry persistence.
425             *
426             * @return the asset entry persistence
427             */
428            public AssetEntryPersistence getAssetEntryPersistence() {
429                    return assetEntryPersistence;
430            }
431    
432            /**
433             * Sets the asset entry persistence.
434             *
435             * @param assetEntryPersistence the asset entry persistence
436             */
437            public void setAssetEntryPersistence(
438                    AssetEntryPersistence assetEntryPersistence) {
439                    this.assetEntryPersistence = assetEntryPersistence;
440            }
441    
442            /**
443             * Returns the asset entry finder.
444             *
445             * @return the asset entry finder
446             */
447            public AssetEntryFinder getAssetEntryFinder() {
448                    return assetEntryFinder;
449            }
450    
451            /**
452             * Sets the asset entry finder.
453             *
454             * @param assetEntryFinder the asset entry finder
455             */
456            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
457                    this.assetEntryFinder = assetEntryFinder;
458            }
459    
460            /**
461             * Returns the asset tag local service.
462             *
463             * @return the asset tag local service
464             */
465            public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
466                    return assetTagLocalService;
467            }
468    
469            /**
470             * Sets the asset tag local service.
471             *
472             * @param assetTagLocalService the asset tag local service
473             */
474            public void setAssetTagLocalService(
475                    com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
476                    this.assetTagLocalService = assetTagLocalService;
477            }
478    
479            /**
480             * Returns the asset tag remote service.
481             *
482             * @return the asset tag remote service
483             */
484            public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
485                    return assetTagService;
486            }
487    
488            /**
489             * Sets the asset tag remote service.
490             *
491             * @param assetTagService the asset tag remote service
492             */
493            public void setAssetTagService(
494                    com.liferay.portlet.asset.service.AssetTagService assetTagService) {
495                    this.assetTagService = assetTagService;
496            }
497    
498            /**
499             * Returns the asset tag persistence.
500             *
501             * @return the asset tag persistence
502             */
503            public AssetTagPersistence getAssetTagPersistence() {
504                    return assetTagPersistence;
505            }
506    
507            /**
508             * Sets the asset tag persistence.
509             *
510             * @param assetTagPersistence the asset tag persistence
511             */
512            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
513                    this.assetTagPersistence = assetTagPersistence;
514            }
515    
516            /**
517             * Returns the asset tag finder.
518             *
519             * @return the asset tag finder
520             */
521            public AssetTagFinder getAssetTagFinder() {
522                    return assetTagFinder;
523            }
524    
525            /**
526             * Sets the asset tag finder.
527             *
528             * @param assetTagFinder the asset tag finder
529             */
530            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
531                    this.assetTagFinder = assetTagFinder;
532            }
533    
534            /**
535             * Returns the asset vocabulary local service.
536             *
537             * @return the asset vocabulary local service
538             */
539            public com.liferay.portlet.asset.service.AssetVocabularyLocalService getAssetVocabularyLocalService() {
540                    return assetVocabularyLocalService;
541            }
542    
543            /**
544             * Sets the asset vocabulary local service.
545             *
546             * @param assetVocabularyLocalService the asset vocabulary local service
547             */
548            public void setAssetVocabularyLocalService(
549                    com.liferay.portlet.asset.service.AssetVocabularyLocalService assetVocabularyLocalService) {
550                    this.assetVocabularyLocalService = assetVocabularyLocalService;
551            }
552    
553            /**
554             * Returns the asset vocabulary remote service.
555             *
556             * @return the asset vocabulary remote service
557             */
558            public com.liferay.portlet.asset.service.AssetVocabularyService getAssetVocabularyService() {
559                    return assetVocabularyService;
560            }
561    
562            /**
563             * Sets the asset vocabulary remote service.
564             *
565             * @param assetVocabularyService the asset vocabulary remote service
566             */
567            public void setAssetVocabularyService(
568                    com.liferay.portlet.asset.service.AssetVocabularyService assetVocabularyService) {
569                    this.assetVocabularyService = assetVocabularyService;
570            }
571    
572            /**
573             * Returns the asset vocabulary persistence.
574             *
575             * @return the asset vocabulary persistence
576             */
577            public AssetVocabularyPersistence getAssetVocabularyPersistence() {
578                    return assetVocabularyPersistence;
579            }
580    
581            /**
582             * Sets the asset vocabulary persistence.
583             *
584             * @param assetVocabularyPersistence the asset vocabulary persistence
585             */
586            public void setAssetVocabularyPersistence(
587                    AssetVocabularyPersistence assetVocabularyPersistence) {
588                    this.assetVocabularyPersistence = assetVocabularyPersistence;
589            }
590    
591            /**
592             * Returns the asset vocabulary finder.
593             *
594             * @return the asset vocabulary finder
595             */
596            public AssetVocabularyFinder getAssetVocabularyFinder() {
597                    return assetVocabularyFinder;
598            }
599    
600            /**
601             * Sets the asset vocabulary finder.
602             *
603             * @param assetVocabularyFinder the asset vocabulary finder
604             */
605            public void setAssetVocabularyFinder(
606                    AssetVocabularyFinder assetVocabularyFinder) {
607                    this.assetVocabularyFinder = assetVocabularyFinder;
608            }
609    
610            public void afterPropertiesSet() {
611            }
612    
613            public void destroy() {
614            }
615    
616            /**
617             * Returns the OSGi service identifier.
618             *
619             * @return the OSGi service identifier
620             */
621            @Override
622            public String getOSGiServiceIdentifier() {
623                    return AssetCategoryService.class.getName();
624            }
625    
626            protected Class<?> getModelClass() {
627                    return AssetCategory.class;
628            }
629    
630            protected String getModelClassName() {
631                    return AssetCategory.class.getName();
632            }
633    
634            /**
635             * Performs a SQL query.
636             *
637             * @param sql the sql query
638             */
639            protected void runSQL(String sql) {
640                    try {
641                            DataSource dataSource = assetCategoryPersistence.getDataSource();
642    
643                            DB db = DBManagerUtil.getDB();
644    
645                            sql = db.buildSQL(sql);
646                            sql = PortalUtil.transformSQL(sql);
647    
648                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
649                                            sql, new int[0]);
650    
651                            sqlUpdate.update();
652                    }
653                    catch (Exception e) {
654                            throw new SystemException(e);
655                    }
656            }
657    
658            @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryLocalService.class)
659            protected com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService;
660            @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryService.class)
661            protected AssetCategoryService assetCategoryService;
662            @BeanReference(type = AssetCategoryPersistence.class)
663            protected AssetCategoryPersistence assetCategoryPersistence;
664            @BeanReference(type = AssetCategoryFinder.class)
665            protected AssetCategoryFinder assetCategoryFinder;
666            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
667            protected com.liferay.counter.service.CounterLocalService counterLocalService;
668            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
669            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
670            @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
671            protected com.liferay.portal.service.ClassNameService classNameService;
672            @BeanReference(type = ClassNamePersistence.class)
673            protected ClassNamePersistence classNamePersistence;
674            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
675            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
676            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
677            protected com.liferay.portal.service.UserLocalService userLocalService;
678            @BeanReference(type = com.liferay.portal.service.UserService.class)
679            protected com.liferay.portal.service.UserService userService;
680            @BeanReference(type = UserPersistence.class)
681            protected UserPersistence userPersistence;
682            @BeanReference(type = UserFinder.class)
683            protected UserFinder userFinder;
684            @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService.class)
685            protected com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
686            @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryPropertyService.class)
687            protected com.liferay.portlet.asset.service.AssetCategoryPropertyService assetCategoryPropertyService;
688            @BeanReference(type = AssetCategoryPropertyPersistence.class)
689            protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
690            @BeanReference(type = AssetCategoryPropertyFinder.class)
691            protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
692            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
693            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
694            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
695            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
696            @BeanReference(type = AssetEntryPersistence.class)
697            protected AssetEntryPersistence assetEntryPersistence;
698            @BeanReference(type = AssetEntryFinder.class)
699            protected AssetEntryFinder assetEntryFinder;
700            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
701            protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
702            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
703            protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
704            @BeanReference(type = AssetTagPersistence.class)
705            protected AssetTagPersistence assetTagPersistence;
706            @BeanReference(type = AssetTagFinder.class)
707            protected AssetTagFinder assetTagFinder;
708            @BeanReference(type = com.liferay.portlet.asset.service.AssetVocabularyLocalService.class)
709            protected com.liferay.portlet.asset.service.AssetVocabularyLocalService assetVocabularyLocalService;
710            @BeanReference(type = com.liferay.portlet.asset.service.AssetVocabularyService.class)
711            protected com.liferay.portlet.asset.service.AssetVocabularyService assetVocabularyService;
712            @BeanReference(type = AssetVocabularyPersistence.class)
713            protected AssetVocabularyPersistence assetVocabularyPersistence;
714            @BeanReference(type = AssetVocabularyFinder.class)
715            protected AssetVocabularyFinder assetVocabularyFinder;
716    }