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