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