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.dao.orm.DynamicQuery;
024    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
025    import com.liferay.portal.kernel.exception.PortalException;
026    import com.liferay.portal.kernel.exception.SystemException;
027    import com.liferay.portal.kernel.search.Indexable;
028    import com.liferay.portal.kernel.search.IndexableType;
029    import com.liferay.portal.kernel.util.OrderByComparator;
030    import com.liferay.portal.model.PersistedModel;
031    import com.liferay.portal.service.BaseLocalServiceImpl;
032    import com.liferay.portal.service.GroupLocalService;
033    import com.liferay.portal.service.GroupService;
034    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
035    import com.liferay.portal.service.ResourceLocalService;
036    import com.liferay.portal.service.SubscriptionLocalService;
037    import com.liferay.portal.service.UserLocalService;
038    import com.liferay.portal.service.UserService;
039    import com.liferay.portal.service.persistence.GroupFinder;
040    import com.liferay.portal.service.persistence.GroupPersistence;
041    import com.liferay.portal.service.persistence.SubscriptionPersistence;
042    import com.liferay.portal.service.persistence.UserFinder;
043    import com.liferay.portal.service.persistence.UserPersistence;
044    
045    import com.liferay.portlet.bookmarks.model.BookmarksFolder;
046    import com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService;
047    import com.liferay.portlet.bookmarks.service.BookmarksEntryService;
048    import com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService;
049    import com.liferay.portlet.bookmarks.service.BookmarksFolderService;
050    import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder;
051    import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence;
052    import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence;
053    import com.liferay.portlet.expando.service.ExpandoValueLocalService;
054    import com.liferay.portlet.expando.service.ExpandoValueService;
055    import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
056    
057    import java.io.Serializable;
058    
059    import java.util.List;
060    
061    import javax.sql.DataSource;
062    
063    /**
064     * The base implementation of the bookmarks folder local service.
065     *
066     * <p>
067     * 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.BookmarksFolderLocalServiceImpl}.
068     * </p>
069     *
070     * @author Brian Wing Shun Chan
071     * @see com.liferay.portlet.bookmarks.service.impl.BookmarksFolderLocalServiceImpl
072     * @see com.liferay.portlet.bookmarks.service.BookmarksFolderLocalServiceUtil
073     * @generated
074     */
075    public abstract class BookmarksFolderLocalServiceBaseImpl
076            extends BaseLocalServiceImpl implements BookmarksFolderLocalService,
077                    IdentifiableBean {
078            /*
079             * NOTE FOR DEVELOPERS:
080             *
081             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.bookmarks.service.BookmarksFolderLocalServiceUtil} to access the bookmarks folder local service.
082             */
083    
084            /**
085             * Adds the bookmarks folder to the database. Also notifies the appropriate model listeners.
086             *
087             * @param bookmarksFolder the bookmarks folder
088             * @return the bookmarks folder that was added
089             * @throws SystemException if a system exception occurred
090             */
091            @Indexable(type = IndexableType.REINDEX)
092            public BookmarksFolder addBookmarksFolder(BookmarksFolder bookmarksFolder)
093                    throws SystemException {
094                    bookmarksFolder.setNew(true);
095    
096                    return bookmarksFolderPersistence.update(bookmarksFolder);
097            }
098    
099            /**
100             * Creates a new bookmarks folder with the primary key. Does not add the bookmarks folder to the database.
101             *
102             * @param folderId the primary key for the new bookmarks folder
103             * @return the new bookmarks folder
104             */
105            public BookmarksFolder createBookmarksFolder(long folderId) {
106                    return bookmarksFolderPersistence.create(folderId);
107            }
108    
109            /**
110             * Deletes the bookmarks folder with the primary key from the database. Also notifies the appropriate model listeners.
111             *
112             * @param folderId the primary key of the bookmarks folder
113             * @return the bookmarks folder that was removed
114             * @throws PortalException if a bookmarks folder with the primary key could not be found
115             * @throws SystemException if a system exception occurred
116             */
117            @Indexable(type = IndexableType.DELETE)
118            public BookmarksFolder deleteBookmarksFolder(long folderId)
119                    throws PortalException, SystemException {
120                    return bookmarksFolderPersistence.remove(folderId);
121            }
122    
123            /**
124             * Deletes the bookmarks folder from the database. Also notifies the appropriate model listeners.
125             *
126             * @param bookmarksFolder the bookmarks folder
127             * @return the bookmarks folder that was removed
128             * @throws SystemException if a system exception occurred
129             */
130            @Indexable(type = IndexableType.DELETE)
131            public BookmarksFolder deleteBookmarksFolder(
132                    BookmarksFolder bookmarksFolder) throws SystemException {
133                    return bookmarksFolderPersistence.remove(bookmarksFolder);
134            }
135    
136            public DynamicQuery dynamicQuery() {
137                    Class<?> clazz = getClass();
138    
139                    return DynamicQueryFactoryUtil.forClass(BookmarksFolder.class,
140                            clazz.getClassLoader());
141            }
142    
143            /**
144             * Performs a dynamic query on the database and returns the matching rows.
145             *
146             * @param dynamicQuery the dynamic query
147             * @return the matching rows
148             * @throws SystemException if a system exception occurred
149             */
150            @SuppressWarnings("rawtypes")
151            public List dynamicQuery(DynamicQuery dynamicQuery)
152                    throws SystemException {
153                    return bookmarksFolderPersistence.findWithDynamicQuery(dynamicQuery);
154            }
155    
156            /**
157             * Performs a dynamic query on the database and returns a range of the matching rows.
158             *
159             * <p>
160             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
161             * </p>
162             *
163             * @param dynamicQuery the dynamic query
164             * @param start the lower bound of the range of model instances
165             * @param end the upper bound of the range of model instances (not inclusive)
166             * @return the range of matching rows
167             * @throws SystemException if a system exception occurred
168             */
169            @SuppressWarnings("rawtypes")
170            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
171                    throws SystemException {
172                    return bookmarksFolderPersistence.findWithDynamicQuery(dynamicQuery,
173                            start, end);
174            }
175    
176            /**
177             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
178             *
179             * <p>
180             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
181             * </p>
182             *
183             * @param dynamicQuery the dynamic query
184             * @param start the lower bound of the range of model instances
185             * @param end the upper bound of the range of model instances (not inclusive)
186             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
187             * @return the ordered range of matching rows
188             * @throws SystemException if a system exception occurred
189             */
190            @SuppressWarnings("rawtypes")
191            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
192                    OrderByComparator orderByComparator) throws SystemException {
193                    return bookmarksFolderPersistence.findWithDynamicQuery(dynamicQuery,
194                            start, end, orderByComparator);
195            }
196    
197            /**
198             * Returns the number of rows that match the dynamic query.
199             *
200             * @param dynamicQuery the dynamic query
201             * @return the number of rows that match the dynamic query
202             * @throws SystemException if a system exception occurred
203             */
204            public long dynamicQueryCount(DynamicQuery dynamicQuery)
205                    throws SystemException {
206                    return bookmarksFolderPersistence.countWithDynamicQuery(dynamicQuery);
207            }
208    
209            public BookmarksFolder fetchBookmarksFolder(long folderId)
210                    throws SystemException {
211                    return bookmarksFolderPersistence.fetchByPrimaryKey(folderId);
212            }
213    
214            /**
215             * Returns the bookmarks folder with the primary key.
216             *
217             * @param folderId the primary key of the bookmarks folder
218             * @return the bookmarks folder
219             * @throws PortalException if a bookmarks folder with the primary key could not be found
220             * @throws SystemException if a system exception occurred
221             */
222            public BookmarksFolder getBookmarksFolder(long folderId)
223                    throws PortalException, SystemException {
224                    return bookmarksFolderPersistence.findByPrimaryKey(folderId);
225            }
226    
227            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
228                    throws PortalException, SystemException {
229                    return bookmarksFolderPersistence.findByPrimaryKey(primaryKeyObj);
230            }
231    
232            /**
233             * Returns the bookmarks folder with the UUID in the group.
234             *
235             * @param uuid the UUID of bookmarks folder
236             * @param groupId the group id of the bookmarks folder
237             * @return the bookmarks folder
238             * @throws PortalException if a bookmarks folder with the UUID in the group could not be found
239             * @throws SystemException if a system exception occurred
240             */
241            public BookmarksFolder getBookmarksFolderByUuidAndGroupId(String uuid,
242                    long groupId) throws PortalException, SystemException {
243                    return bookmarksFolderPersistence.findByUUID_G(uuid, groupId);
244            }
245    
246            /**
247             * Returns a range of all the bookmarks folders.
248             *
249             * <p>
250             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
251             * </p>
252             *
253             * @param start the lower bound of the range of bookmarks folders
254             * @param end the upper bound of the range of bookmarks folders (not inclusive)
255             * @return the range of bookmarks folders
256             * @throws SystemException if a system exception occurred
257             */
258            public List<BookmarksFolder> getBookmarksFolders(int start, int end)
259                    throws SystemException {
260                    return bookmarksFolderPersistence.findAll(start, end);
261            }
262    
263            /**
264             * Returns the number of bookmarks folders.
265             *
266             * @return the number of bookmarks folders
267             * @throws SystemException if a system exception occurred
268             */
269            public int getBookmarksFoldersCount() throws SystemException {
270                    return bookmarksFolderPersistence.countAll();
271            }
272    
273            /**
274             * Updates the bookmarks folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
275             *
276             * @param bookmarksFolder the bookmarks folder
277             * @return the bookmarks folder that was updated
278             * @throws SystemException if a system exception occurred
279             */
280            @Indexable(type = IndexableType.REINDEX)
281            public BookmarksFolder updateBookmarksFolder(
282                    BookmarksFolder bookmarksFolder) throws SystemException {
283                    return bookmarksFolderPersistence.update(bookmarksFolder);
284            }
285    
286            /**
287             * Returns the bookmarks entry local service.
288             *
289             * @return the bookmarks entry local service
290             */
291            public BookmarksEntryLocalService getBookmarksEntryLocalService() {
292                    return bookmarksEntryLocalService;
293            }
294    
295            /**
296             * Sets the bookmarks entry local service.
297             *
298             * @param bookmarksEntryLocalService the bookmarks entry local service
299             */
300            public void setBookmarksEntryLocalService(
301                    BookmarksEntryLocalService bookmarksEntryLocalService) {
302                    this.bookmarksEntryLocalService = bookmarksEntryLocalService;
303            }
304    
305            /**
306             * Returns the bookmarks entry remote service.
307             *
308             * @return the bookmarks entry remote service
309             */
310            public BookmarksEntryService getBookmarksEntryService() {
311                    return bookmarksEntryService;
312            }
313    
314            /**
315             * Sets the bookmarks entry remote service.
316             *
317             * @param bookmarksEntryService the bookmarks entry remote service
318             */
319            public void setBookmarksEntryService(
320                    BookmarksEntryService bookmarksEntryService) {
321                    this.bookmarksEntryService = bookmarksEntryService;
322            }
323    
324            /**
325             * Returns the bookmarks entry persistence.
326             *
327             * @return the bookmarks entry persistence
328             */
329            public BookmarksEntryPersistence getBookmarksEntryPersistence() {
330                    return bookmarksEntryPersistence;
331            }
332    
333            /**
334             * Sets the bookmarks entry persistence.
335             *
336             * @param bookmarksEntryPersistence the bookmarks entry persistence
337             */
338            public void setBookmarksEntryPersistence(
339                    BookmarksEntryPersistence bookmarksEntryPersistence) {
340                    this.bookmarksEntryPersistence = bookmarksEntryPersistence;
341            }
342    
343            /**
344             * Returns the bookmarks entry finder.
345             *
346             * @return the bookmarks entry finder
347             */
348            public BookmarksEntryFinder getBookmarksEntryFinder() {
349                    return bookmarksEntryFinder;
350            }
351    
352            /**
353             * Sets the bookmarks entry finder.
354             *
355             * @param bookmarksEntryFinder the bookmarks entry finder
356             */
357            public void setBookmarksEntryFinder(
358                    BookmarksEntryFinder bookmarksEntryFinder) {
359                    this.bookmarksEntryFinder = bookmarksEntryFinder;
360            }
361    
362            /**
363             * Returns the bookmarks folder local service.
364             *
365             * @return the bookmarks folder local service
366             */
367            public BookmarksFolderLocalService getBookmarksFolderLocalService() {
368                    return bookmarksFolderLocalService;
369            }
370    
371            /**
372             * Sets the bookmarks folder local service.
373             *
374             * @param bookmarksFolderLocalService the bookmarks folder local service
375             */
376            public void setBookmarksFolderLocalService(
377                    BookmarksFolderLocalService bookmarksFolderLocalService) {
378                    this.bookmarksFolderLocalService = bookmarksFolderLocalService;
379            }
380    
381            /**
382             * Returns the bookmarks folder remote service.
383             *
384             * @return the bookmarks folder remote service
385             */
386            public BookmarksFolderService getBookmarksFolderService() {
387                    return bookmarksFolderService;
388            }
389    
390            /**
391             * Sets the bookmarks folder remote service.
392             *
393             * @param bookmarksFolderService the bookmarks folder remote service
394             */
395            public void setBookmarksFolderService(
396                    BookmarksFolderService bookmarksFolderService) {
397                    this.bookmarksFolderService = bookmarksFolderService;
398            }
399    
400            /**
401             * Returns the bookmarks folder persistence.
402             *
403             * @return the bookmarks folder persistence
404             */
405            public BookmarksFolderPersistence getBookmarksFolderPersistence() {
406                    return bookmarksFolderPersistence;
407            }
408    
409            /**
410             * Sets the bookmarks folder persistence.
411             *
412             * @param bookmarksFolderPersistence the bookmarks folder persistence
413             */
414            public void setBookmarksFolderPersistence(
415                    BookmarksFolderPersistence bookmarksFolderPersistence) {
416                    this.bookmarksFolderPersistence = bookmarksFolderPersistence;
417            }
418    
419            /**
420             * Returns the counter local service.
421             *
422             * @return the counter local service
423             */
424            public CounterLocalService getCounterLocalService() {
425                    return counterLocalService;
426            }
427    
428            /**
429             * Sets the counter local service.
430             *
431             * @param counterLocalService the counter local service
432             */
433            public void setCounterLocalService(CounterLocalService counterLocalService) {
434                    this.counterLocalService = counterLocalService;
435            }
436    
437            /**
438             * Returns the group local service.
439             *
440             * @return the group local service
441             */
442            public GroupLocalService getGroupLocalService() {
443                    return groupLocalService;
444            }
445    
446            /**
447             * Sets the group local service.
448             *
449             * @param groupLocalService the group local service
450             */
451            public void setGroupLocalService(GroupLocalService groupLocalService) {
452                    this.groupLocalService = groupLocalService;
453            }
454    
455            /**
456             * Returns the group remote service.
457             *
458             * @return the group remote service
459             */
460            public GroupService getGroupService() {
461                    return groupService;
462            }
463    
464            /**
465             * Sets the group remote service.
466             *
467             * @param groupService the group remote service
468             */
469            public void setGroupService(GroupService groupService) {
470                    this.groupService = groupService;
471            }
472    
473            /**
474             * Returns the group persistence.
475             *
476             * @return the group persistence
477             */
478            public GroupPersistence getGroupPersistence() {
479                    return groupPersistence;
480            }
481    
482            /**
483             * Sets the group persistence.
484             *
485             * @param groupPersistence the group persistence
486             */
487            public void setGroupPersistence(GroupPersistence groupPersistence) {
488                    this.groupPersistence = groupPersistence;
489            }
490    
491            /**
492             * Returns the group finder.
493             *
494             * @return the group finder
495             */
496            public GroupFinder getGroupFinder() {
497                    return groupFinder;
498            }
499    
500            /**
501             * Sets the group finder.
502             *
503             * @param groupFinder the group finder
504             */
505            public void setGroupFinder(GroupFinder groupFinder) {
506                    this.groupFinder = groupFinder;
507            }
508    
509            /**
510             * Returns the resource local service.
511             *
512             * @return the resource local service
513             */
514            public ResourceLocalService getResourceLocalService() {
515                    return resourceLocalService;
516            }
517    
518            /**
519             * Sets the resource local service.
520             *
521             * @param resourceLocalService the resource local service
522             */
523            public void setResourceLocalService(
524                    ResourceLocalService resourceLocalService) {
525                    this.resourceLocalService = resourceLocalService;
526            }
527    
528            /**
529             * Returns the subscription local service.
530             *
531             * @return the subscription local service
532             */
533            public SubscriptionLocalService getSubscriptionLocalService() {
534                    return subscriptionLocalService;
535            }
536    
537            /**
538             * Sets the subscription local service.
539             *
540             * @param subscriptionLocalService the subscription local service
541             */
542            public void setSubscriptionLocalService(
543                    SubscriptionLocalService subscriptionLocalService) {
544                    this.subscriptionLocalService = subscriptionLocalService;
545            }
546    
547            /**
548             * Returns the subscription persistence.
549             *
550             * @return the subscription persistence
551             */
552            public SubscriptionPersistence getSubscriptionPersistence() {
553                    return subscriptionPersistence;
554            }
555    
556            /**
557             * Sets the subscription persistence.
558             *
559             * @param subscriptionPersistence the subscription persistence
560             */
561            public void setSubscriptionPersistence(
562                    SubscriptionPersistence subscriptionPersistence) {
563                    this.subscriptionPersistence = subscriptionPersistence;
564            }
565    
566            /**
567             * Returns the user local service.
568             *
569             * @return the user local service
570             */
571            public UserLocalService getUserLocalService() {
572                    return userLocalService;
573            }
574    
575            /**
576             * Sets the user local service.
577             *
578             * @param userLocalService the user local service
579             */
580            public void setUserLocalService(UserLocalService userLocalService) {
581                    this.userLocalService = userLocalService;
582            }
583    
584            /**
585             * Returns the user remote service.
586             *
587             * @return the user remote service
588             */
589            public UserService getUserService() {
590                    return userService;
591            }
592    
593            /**
594             * Sets the user remote service.
595             *
596             * @param userService the user remote service
597             */
598            public void setUserService(UserService userService) {
599                    this.userService = userService;
600            }
601    
602            /**
603             * Returns the user persistence.
604             *
605             * @return the user persistence
606             */
607            public UserPersistence getUserPersistence() {
608                    return userPersistence;
609            }
610    
611            /**
612             * Sets the user persistence.
613             *
614             * @param userPersistence the user persistence
615             */
616            public void setUserPersistence(UserPersistence userPersistence) {
617                    this.userPersistence = userPersistence;
618            }
619    
620            /**
621             * Returns the user finder.
622             *
623             * @return the user finder
624             */
625            public UserFinder getUserFinder() {
626                    return userFinder;
627            }
628    
629            /**
630             * Sets the user finder.
631             *
632             * @param userFinder the user finder
633             */
634            public void setUserFinder(UserFinder userFinder) {
635                    this.userFinder = userFinder;
636            }
637    
638            /**
639             * Returns the expando value local service.
640             *
641             * @return the expando value local service
642             */
643            public ExpandoValueLocalService getExpandoValueLocalService() {
644                    return expandoValueLocalService;
645            }
646    
647            /**
648             * Sets the expando value local service.
649             *
650             * @param expandoValueLocalService the expando value local service
651             */
652            public void setExpandoValueLocalService(
653                    ExpandoValueLocalService expandoValueLocalService) {
654                    this.expandoValueLocalService = expandoValueLocalService;
655            }
656    
657            /**
658             * Returns the expando value remote service.
659             *
660             * @return the expando value remote service
661             */
662            public ExpandoValueService getExpandoValueService() {
663                    return expandoValueService;
664            }
665    
666            /**
667             * Sets the expando value remote service.
668             *
669             * @param expandoValueService the expando value remote service
670             */
671            public void setExpandoValueService(ExpandoValueService expandoValueService) {
672                    this.expandoValueService = expandoValueService;
673            }
674    
675            /**
676             * Returns the expando value persistence.
677             *
678             * @return the expando value persistence
679             */
680            public ExpandoValuePersistence getExpandoValuePersistence() {
681                    return expandoValuePersistence;
682            }
683    
684            /**
685             * Sets the expando value persistence.
686             *
687             * @param expandoValuePersistence the expando value persistence
688             */
689            public void setExpandoValuePersistence(
690                    ExpandoValuePersistence expandoValuePersistence) {
691                    this.expandoValuePersistence = expandoValuePersistence;
692            }
693    
694            public void afterPropertiesSet() {
695                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.bookmarks.model.BookmarksFolder",
696                            bookmarksFolderLocalService);
697            }
698    
699            public void destroy() {
700                    persistedModelLocalServiceRegistry.unregister(
701                            "com.liferay.portlet.bookmarks.model.BookmarksFolder");
702            }
703    
704            /**
705             * Returns the Spring bean ID for this bean.
706             *
707             * @return the Spring bean ID for this bean
708             */
709            public String getBeanIdentifier() {
710                    return _beanIdentifier;
711            }
712    
713            /**
714             * Sets the Spring bean ID for this bean.
715             *
716             * @param beanIdentifier the Spring bean ID for this bean
717             */
718            public void setBeanIdentifier(String beanIdentifier) {
719                    _beanIdentifier = beanIdentifier;
720            }
721    
722            protected Class<?> getModelClass() {
723                    return BookmarksFolder.class;
724            }
725    
726            protected String getModelClassName() {
727                    return BookmarksFolder.class.getName();
728            }
729    
730            /**
731             * Performs an SQL query.
732             *
733             * @param sql the sql query
734             */
735            protected void runSQL(String sql) throws SystemException {
736                    try {
737                            DataSource dataSource = bookmarksFolderPersistence.getDataSource();
738    
739                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
740                                            sql, new int[0]);
741    
742                            sqlUpdate.update();
743                    }
744                    catch (Exception e) {
745                            throw new SystemException(e);
746                    }
747            }
748    
749            @BeanReference(type = BookmarksEntryLocalService.class)
750            protected BookmarksEntryLocalService bookmarksEntryLocalService;
751            @BeanReference(type = BookmarksEntryService.class)
752            protected BookmarksEntryService bookmarksEntryService;
753            @BeanReference(type = BookmarksEntryPersistence.class)
754            protected BookmarksEntryPersistence bookmarksEntryPersistence;
755            @BeanReference(type = BookmarksEntryFinder.class)
756            protected BookmarksEntryFinder bookmarksEntryFinder;
757            @BeanReference(type = BookmarksFolderLocalService.class)
758            protected BookmarksFolderLocalService bookmarksFolderLocalService;
759            @BeanReference(type = BookmarksFolderService.class)
760            protected BookmarksFolderService bookmarksFolderService;
761            @BeanReference(type = BookmarksFolderPersistence.class)
762            protected BookmarksFolderPersistence bookmarksFolderPersistence;
763            @BeanReference(type = CounterLocalService.class)
764            protected CounterLocalService counterLocalService;
765            @BeanReference(type = GroupLocalService.class)
766            protected GroupLocalService groupLocalService;
767            @BeanReference(type = GroupService.class)
768            protected GroupService groupService;
769            @BeanReference(type = GroupPersistence.class)
770            protected GroupPersistence groupPersistence;
771            @BeanReference(type = GroupFinder.class)
772            protected GroupFinder groupFinder;
773            @BeanReference(type = ResourceLocalService.class)
774            protected ResourceLocalService resourceLocalService;
775            @BeanReference(type = SubscriptionLocalService.class)
776            protected SubscriptionLocalService subscriptionLocalService;
777            @BeanReference(type = SubscriptionPersistence.class)
778            protected SubscriptionPersistence subscriptionPersistence;
779            @BeanReference(type = UserLocalService.class)
780            protected UserLocalService userLocalService;
781            @BeanReference(type = UserService.class)
782            protected UserService userService;
783            @BeanReference(type = UserPersistence.class)
784            protected UserPersistence userPersistence;
785            @BeanReference(type = UserFinder.class)
786            protected UserFinder userFinder;
787            @BeanReference(type = ExpandoValueLocalService.class)
788            protected ExpandoValueLocalService expandoValueLocalService;
789            @BeanReference(type = ExpandoValueService.class)
790            protected ExpandoValueService expandoValueService;
791            @BeanReference(type = ExpandoValuePersistence.class)
792            protected ExpandoValuePersistence expandoValuePersistence;
793            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
794            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
795            private String _beanIdentifier;
796    }