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.GroupLocalService;
025    import com.liferay.portal.service.GroupService;
026    import com.liferay.portal.service.ResourceLocalService;
027    import com.liferay.portal.service.ResourceService;
028    import com.liferay.portal.service.UserLocalService;
029    import com.liferay.portal.service.UserService;
030    import com.liferay.portal.service.base.PrincipalBean;
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.BookmarksFolderPersistence;
046    import com.liferay.portlet.expando.service.ExpandoValueLocalService;
047    import com.liferay.portlet.expando.service.ExpandoValueService;
048    import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
049    
050    import javax.sql.DataSource;
051    
052    /**
053     * The base implementation of the bookmarks folder remote service.
054     *
055     * <p>
056     * 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}.
057     * </p>
058     *
059     * @author Brian Wing Shun Chan
060     * @see com.liferay.portlet.bookmarks.service.impl.BookmarksFolderServiceImpl
061     * @see com.liferay.portlet.bookmarks.service.BookmarksFolderServiceUtil
062     * @generated
063     */
064    public abstract class BookmarksFolderServiceBaseImpl extends PrincipalBean
065            implements BookmarksFolderService, IdentifiableBean {
066            /*
067             * NOTE FOR DEVELOPERS:
068             *
069             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.bookmarks.service.BookmarksFolderServiceUtil} to access the bookmarks folder remote service.
070             */
071    
072            /**
073             * Returns 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             * Returns 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             * Returns 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             * Returns 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             * Returns 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             * Returns 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             * Returns 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             * Returns 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             * Returns the group local service.
225             *
226             * @return the group local service
227             */
228            public GroupLocalService getGroupLocalService() {
229                    return groupLocalService;
230            }
231    
232            /**
233             * Sets the group local service.
234             *
235             * @param groupLocalService the group local service
236             */
237            public void setGroupLocalService(GroupLocalService groupLocalService) {
238                    this.groupLocalService = groupLocalService;
239            }
240    
241            /**
242             * Returns the group remote service.
243             *
244             * @return the group remote service
245             */
246            public GroupService getGroupService() {
247                    return groupService;
248            }
249    
250            /**
251             * Sets the group remote service.
252             *
253             * @param groupService the group remote service
254             */
255            public void setGroupService(GroupService groupService) {
256                    this.groupService = groupService;
257            }
258    
259            /**
260             * Returns the group persistence.
261             *
262             * @return the group persistence
263             */
264            public GroupPersistence getGroupPersistence() {
265                    return groupPersistence;
266            }
267    
268            /**
269             * Sets the group persistence.
270             *
271             * @param groupPersistence the group persistence
272             */
273            public void setGroupPersistence(GroupPersistence groupPersistence) {
274                    this.groupPersistence = groupPersistence;
275            }
276    
277            /**
278             * Returns the group finder.
279             *
280             * @return the group finder
281             */
282            public GroupFinder getGroupFinder() {
283                    return groupFinder;
284            }
285    
286            /**
287             * Sets the group finder.
288             *
289             * @param groupFinder the group finder
290             */
291            public void setGroupFinder(GroupFinder groupFinder) {
292                    this.groupFinder = groupFinder;
293            }
294    
295            /**
296             * Returns the resource local service.
297             *
298             * @return the resource local service
299             */
300            public ResourceLocalService getResourceLocalService() {
301                    return resourceLocalService;
302            }
303    
304            /**
305             * Sets the resource local service.
306             *
307             * @param resourceLocalService the resource local service
308             */
309            public void setResourceLocalService(
310                    ResourceLocalService resourceLocalService) {
311                    this.resourceLocalService = resourceLocalService;
312            }
313    
314            /**
315             * Returns the resource remote service.
316             *
317             * @return the resource remote service
318             */
319            public ResourceService getResourceService() {
320                    return resourceService;
321            }
322    
323            /**
324             * Sets the resource remote service.
325             *
326             * @param resourceService the resource remote service
327             */
328            public void setResourceService(ResourceService resourceService) {
329                    this.resourceService = resourceService;
330            }
331    
332            /**
333             * Returns the resource persistence.
334             *
335             * @return the resource persistence
336             */
337            public ResourcePersistence getResourcePersistence() {
338                    return resourcePersistence;
339            }
340    
341            /**
342             * Sets the resource persistence.
343             *
344             * @param resourcePersistence the resource persistence
345             */
346            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
347                    this.resourcePersistence = resourcePersistence;
348            }
349    
350            /**
351             * Returns the resource finder.
352             *
353             * @return the resource finder
354             */
355            public ResourceFinder getResourceFinder() {
356                    return resourceFinder;
357            }
358    
359            /**
360             * Sets the resource finder.
361             *
362             * @param resourceFinder the resource finder
363             */
364            public void setResourceFinder(ResourceFinder resourceFinder) {
365                    this.resourceFinder = resourceFinder;
366            }
367    
368            /**
369             * Returns the user local service.
370             *
371             * @return the user local service
372             */
373            public UserLocalService getUserLocalService() {
374                    return userLocalService;
375            }
376    
377            /**
378             * Sets the user local service.
379             *
380             * @param userLocalService the user local service
381             */
382            public void setUserLocalService(UserLocalService userLocalService) {
383                    this.userLocalService = userLocalService;
384            }
385    
386            /**
387             * Returns the user remote service.
388             *
389             * @return the user remote service
390             */
391            public UserService getUserService() {
392                    return userService;
393            }
394    
395            /**
396             * Sets the user remote service.
397             *
398             * @param userService the user remote service
399             */
400            public void setUserService(UserService userService) {
401                    this.userService = userService;
402            }
403    
404            /**
405             * Returns the user persistence.
406             *
407             * @return the user persistence
408             */
409            public UserPersistence getUserPersistence() {
410                    return userPersistence;
411            }
412    
413            /**
414             * Sets the user persistence.
415             *
416             * @param userPersistence the user persistence
417             */
418            public void setUserPersistence(UserPersistence userPersistence) {
419                    this.userPersistence = userPersistence;
420            }
421    
422            /**
423             * Returns the user finder.
424             *
425             * @return the user finder
426             */
427            public UserFinder getUserFinder() {
428                    return userFinder;
429            }
430    
431            /**
432             * Sets the user finder.
433             *
434             * @param userFinder the user finder
435             */
436            public void setUserFinder(UserFinder userFinder) {
437                    this.userFinder = userFinder;
438            }
439    
440            /**
441             * Returns the expando value local service.
442             *
443             * @return the expando value local service
444             */
445            public ExpandoValueLocalService getExpandoValueLocalService() {
446                    return expandoValueLocalService;
447            }
448    
449            /**
450             * Sets the expando value local service.
451             *
452             * @param expandoValueLocalService the expando value local service
453             */
454            public void setExpandoValueLocalService(
455                    ExpandoValueLocalService expandoValueLocalService) {
456                    this.expandoValueLocalService = expandoValueLocalService;
457            }
458    
459            /**
460             * Returns the expando value remote service.
461             *
462             * @return the expando value remote service
463             */
464            public ExpandoValueService getExpandoValueService() {
465                    return expandoValueService;
466            }
467    
468            /**
469             * Sets the expando value remote service.
470             *
471             * @param expandoValueService the expando value remote service
472             */
473            public void setExpandoValueService(ExpandoValueService expandoValueService) {
474                    this.expandoValueService = expandoValueService;
475            }
476    
477            /**
478             * Returns the expando value persistence.
479             *
480             * @return the expando value persistence
481             */
482            public ExpandoValuePersistence getExpandoValuePersistence() {
483                    return expandoValuePersistence;
484            }
485    
486            /**
487             * Sets the expando value persistence.
488             *
489             * @param expandoValuePersistence the expando value persistence
490             */
491            public void setExpandoValuePersistence(
492                    ExpandoValuePersistence expandoValuePersistence) {
493                    this.expandoValuePersistence = expandoValuePersistence;
494            }
495    
496            public void afterPropertiesSet() {
497            }
498    
499            public void destroy() {
500            }
501    
502            /**
503             * Returns the Spring bean ID for this bean.
504             *
505             * @return the Spring bean ID for this bean
506             */
507            public String getBeanIdentifier() {
508                    return _beanIdentifier;
509            }
510    
511            /**
512             * Sets the Spring bean ID for this bean.
513             *
514             * @param beanIdentifier the Spring bean ID for this bean
515             */
516            public void setBeanIdentifier(String beanIdentifier) {
517                    _beanIdentifier = beanIdentifier;
518            }
519    
520            protected ClassLoader getClassLoader() {
521                    Class<?> clazz = getClass();
522    
523                    return clazz.getClassLoader();
524            }
525    
526            protected Class<?> getModelClass() {
527                    return BookmarksFolder.class;
528            }
529    
530            protected String getModelClassName() {
531                    return BookmarksFolder.class.getName();
532            }
533    
534            /**
535             * Performs an SQL query.
536             *
537             * @param sql the sql query
538             */
539            protected void runSQL(String sql) throws SystemException {
540                    try {
541                            DataSource dataSource = bookmarksFolderPersistence.getDataSource();
542    
543                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
544                                            sql, new int[0]);
545    
546                            sqlUpdate.update();
547                    }
548                    catch (Exception e) {
549                            throw new SystemException(e);
550                    }
551            }
552    
553            @BeanReference(type = BookmarksEntryLocalService.class)
554            protected BookmarksEntryLocalService bookmarksEntryLocalService;
555            @BeanReference(type = BookmarksEntryService.class)
556            protected BookmarksEntryService bookmarksEntryService;
557            @BeanReference(type = BookmarksEntryPersistence.class)
558            protected BookmarksEntryPersistence bookmarksEntryPersistence;
559            @BeanReference(type = BookmarksEntryFinder.class)
560            protected BookmarksEntryFinder bookmarksEntryFinder;
561            @BeanReference(type = BookmarksFolderLocalService.class)
562            protected BookmarksFolderLocalService bookmarksFolderLocalService;
563            @BeanReference(type = BookmarksFolderService.class)
564            protected BookmarksFolderService bookmarksFolderService;
565            @BeanReference(type = BookmarksFolderPersistence.class)
566            protected BookmarksFolderPersistence bookmarksFolderPersistence;
567            @BeanReference(type = CounterLocalService.class)
568            protected CounterLocalService counterLocalService;
569            @BeanReference(type = GroupLocalService.class)
570            protected GroupLocalService groupLocalService;
571            @BeanReference(type = GroupService.class)
572            protected GroupService groupService;
573            @BeanReference(type = GroupPersistence.class)
574            protected GroupPersistence groupPersistence;
575            @BeanReference(type = GroupFinder.class)
576            protected GroupFinder groupFinder;
577            @BeanReference(type = ResourceLocalService.class)
578            protected ResourceLocalService resourceLocalService;
579            @BeanReference(type = ResourceService.class)
580            protected ResourceService resourceService;
581            @BeanReference(type = ResourcePersistence.class)
582            protected ResourcePersistence resourcePersistence;
583            @BeanReference(type = ResourceFinder.class)
584            protected ResourceFinder resourceFinder;
585            @BeanReference(type = UserLocalService.class)
586            protected UserLocalService userLocalService;
587            @BeanReference(type = UserService.class)
588            protected UserService userService;
589            @BeanReference(type = UserPersistence.class)
590            protected UserPersistence userPersistence;
591            @BeanReference(type = UserFinder.class)
592            protected UserFinder userFinder;
593            @BeanReference(type = ExpandoValueLocalService.class)
594            protected ExpandoValueLocalService expandoValueLocalService;
595            @BeanReference(type = ExpandoValueService.class)
596            protected ExpandoValueService expandoValueService;
597            @BeanReference(type = ExpandoValuePersistence.class)
598            protected ExpandoValuePersistence expandoValuePersistence;
599            private String _beanIdentifier;
600    }