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