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