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