001    /**
002     * Copyright (c) 2000-present 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.portal.kernel.bean.BeanReference;
018    import com.liferay.portal.kernel.bean.IdentifiableBean;
019    import com.liferay.portal.kernel.dao.db.DB;
020    import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
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.persistence.ClassNamePersistence;
026    import com.liferay.portal.service.persistence.GroupFinder;
027    import com.liferay.portal.service.persistence.GroupPersistence;
028    import com.liferay.portal.service.persistence.PortletPreferencesFinder;
029    import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
030    import com.liferay.portal.service.persistence.SubscriptionPersistence;
031    import com.liferay.portal.service.persistence.UserFinder;
032    import com.liferay.portal.service.persistence.UserPersistence;
033    import com.liferay.portal.util.PortalUtil;
034    
035    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
036    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
037    import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
038    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
039    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
040    import com.liferay.portlet.bookmarks.model.BookmarksEntry;
041    import com.liferay.portlet.bookmarks.service.BookmarksEntryService;
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.BookmarksFolderFinder;
045    import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence;
046    import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
047    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
048    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
049    import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
050    import com.liferay.portlet.trash.service.persistence.TrashVersionPersistence;
051    
052    import javax.sql.DataSource;
053    
054    /**
055     * Provides the base implementation for the bookmarks entry remote service.
056     *
057     * <p>
058     * 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.BookmarksEntryServiceImpl}.
059     * </p>
060     *
061     * @author Brian Wing Shun Chan
062     * @see com.liferay.portlet.bookmarks.service.impl.BookmarksEntryServiceImpl
063     * @see com.liferay.portlet.bookmarks.service.BookmarksEntryServiceUtil
064     * @generated
065     */
066    public abstract class BookmarksEntryServiceBaseImpl extends BaseServiceImpl
067            implements BookmarksEntryService, IdentifiableBean {
068            /*
069             * NOTE FOR DEVELOPERS:
070             *
071             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.bookmarks.service.BookmarksEntryServiceUtil} to access the bookmarks entry remote service.
072             */
073    
074            /**
075             * Returns the bookmarks entry local service.
076             *
077             * @return the bookmarks entry local service
078             */
079            public com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService getBookmarksEntryLocalService() {
080                    return bookmarksEntryLocalService;
081            }
082    
083            /**
084             * Sets the bookmarks entry local service.
085             *
086             * @param bookmarksEntryLocalService the bookmarks entry local service
087             */
088            public void setBookmarksEntryLocalService(
089                    com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService bookmarksEntryLocalService) {
090                    this.bookmarksEntryLocalService = bookmarksEntryLocalService;
091            }
092    
093            /**
094             * Returns the bookmarks entry remote service.
095             *
096             * @return the bookmarks entry remote service
097             */
098            public com.liferay.portlet.bookmarks.service.BookmarksEntryService getBookmarksEntryService() {
099                    return bookmarksEntryService;
100            }
101    
102            /**
103             * Sets the bookmarks entry remote service.
104             *
105             * @param bookmarksEntryService the bookmarks entry remote service
106             */
107            public void setBookmarksEntryService(
108                    com.liferay.portlet.bookmarks.service.BookmarksEntryService bookmarksEntryService) {
109                    this.bookmarksEntryService = bookmarksEntryService;
110            }
111    
112            /**
113             * Returns the bookmarks entry persistence.
114             *
115             * @return the bookmarks entry persistence
116             */
117            public BookmarksEntryPersistence getBookmarksEntryPersistence() {
118                    return bookmarksEntryPersistence;
119            }
120    
121            /**
122             * Sets the bookmarks entry persistence.
123             *
124             * @param bookmarksEntryPersistence the bookmarks entry persistence
125             */
126            public void setBookmarksEntryPersistence(
127                    BookmarksEntryPersistence bookmarksEntryPersistence) {
128                    this.bookmarksEntryPersistence = bookmarksEntryPersistence;
129            }
130    
131            /**
132             * Returns the bookmarks entry finder.
133             *
134             * @return the bookmarks entry finder
135             */
136            public BookmarksEntryFinder getBookmarksEntryFinder() {
137                    return bookmarksEntryFinder;
138            }
139    
140            /**
141             * Sets the bookmarks entry finder.
142             *
143             * @param bookmarksEntryFinder the bookmarks entry finder
144             */
145            public void setBookmarksEntryFinder(
146                    BookmarksEntryFinder bookmarksEntryFinder) {
147                    this.bookmarksEntryFinder = bookmarksEntryFinder;
148            }
149    
150            /**
151             * Returns the bookmarks folder local service.
152             *
153             * @return the bookmarks folder local service
154             */
155            public com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService getBookmarksFolderLocalService() {
156                    return bookmarksFolderLocalService;
157            }
158    
159            /**
160             * Sets the bookmarks folder local service.
161             *
162             * @param bookmarksFolderLocalService the bookmarks folder local service
163             */
164            public void setBookmarksFolderLocalService(
165                    com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService bookmarksFolderLocalService) {
166                    this.bookmarksFolderLocalService = bookmarksFolderLocalService;
167            }
168    
169            /**
170             * Returns the bookmarks folder remote service.
171             *
172             * @return the bookmarks folder remote service
173             */
174            public com.liferay.portlet.bookmarks.service.BookmarksFolderService getBookmarksFolderService() {
175                    return bookmarksFolderService;
176            }
177    
178            /**
179             * Sets the bookmarks folder remote service.
180             *
181             * @param bookmarksFolderService the bookmarks folder remote service
182             */
183            public void setBookmarksFolderService(
184                    com.liferay.portlet.bookmarks.service.BookmarksFolderService bookmarksFolderService) {
185                    this.bookmarksFolderService = bookmarksFolderService;
186            }
187    
188            /**
189             * Returns the bookmarks folder persistence.
190             *
191             * @return the bookmarks folder persistence
192             */
193            public BookmarksFolderPersistence getBookmarksFolderPersistence() {
194                    return bookmarksFolderPersistence;
195            }
196    
197            /**
198             * Sets the bookmarks folder persistence.
199             *
200             * @param bookmarksFolderPersistence the bookmarks folder persistence
201             */
202            public void setBookmarksFolderPersistence(
203                    BookmarksFolderPersistence bookmarksFolderPersistence) {
204                    this.bookmarksFolderPersistence = bookmarksFolderPersistence;
205            }
206    
207            /**
208             * Returns the bookmarks folder finder.
209             *
210             * @return the bookmarks folder finder
211             */
212            public BookmarksFolderFinder getBookmarksFolderFinder() {
213                    return bookmarksFolderFinder;
214            }
215    
216            /**
217             * Sets the bookmarks folder finder.
218             *
219             * @param bookmarksFolderFinder the bookmarks folder finder
220             */
221            public void setBookmarksFolderFinder(
222                    BookmarksFolderFinder bookmarksFolderFinder) {
223                    this.bookmarksFolderFinder = bookmarksFolderFinder;
224            }
225    
226            /**
227             * Returns the counter local service.
228             *
229             * @return the counter local service
230             */
231            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
232                    return counterLocalService;
233            }
234    
235            /**
236             * Sets the counter local service.
237             *
238             * @param counterLocalService the counter local service
239             */
240            public void setCounterLocalService(
241                    com.liferay.counter.service.CounterLocalService counterLocalService) {
242                    this.counterLocalService = counterLocalService;
243            }
244    
245            /**
246             * Returns the class name local service.
247             *
248             * @return the class name local service
249             */
250            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
251                    return classNameLocalService;
252            }
253    
254            /**
255             * Sets the class name local service.
256             *
257             * @param classNameLocalService the class name local service
258             */
259            public void setClassNameLocalService(
260                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
261                    this.classNameLocalService = classNameLocalService;
262            }
263    
264            /**
265             * Returns the class name remote service.
266             *
267             * @return the class name remote service
268             */
269            public com.liferay.portal.service.ClassNameService getClassNameService() {
270                    return classNameService;
271            }
272    
273            /**
274             * Sets the class name remote service.
275             *
276             * @param classNameService the class name remote service
277             */
278            public void setClassNameService(
279                    com.liferay.portal.service.ClassNameService classNameService) {
280                    this.classNameService = classNameService;
281            }
282    
283            /**
284             * Returns the class name persistence.
285             *
286             * @return the class name persistence
287             */
288            public ClassNamePersistence getClassNamePersistence() {
289                    return classNamePersistence;
290            }
291    
292            /**
293             * Sets the class name persistence.
294             *
295             * @param classNamePersistence the class name persistence
296             */
297            public void setClassNamePersistence(
298                    ClassNamePersistence classNamePersistence) {
299                    this.classNamePersistence = classNamePersistence;
300            }
301    
302            /**
303             * Returns the group local service.
304             *
305             * @return the group local service
306             */
307            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
308                    return groupLocalService;
309            }
310    
311            /**
312             * Sets the group local service.
313             *
314             * @param groupLocalService the group local service
315             */
316            public void setGroupLocalService(
317                    com.liferay.portal.service.GroupLocalService groupLocalService) {
318                    this.groupLocalService = groupLocalService;
319            }
320    
321            /**
322             * Returns the group remote service.
323             *
324             * @return the group remote service
325             */
326            public com.liferay.portal.service.GroupService getGroupService() {
327                    return groupService;
328            }
329    
330            /**
331             * Sets the group remote service.
332             *
333             * @param groupService the group remote service
334             */
335            public void setGroupService(
336                    com.liferay.portal.service.GroupService groupService) {
337                    this.groupService = groupService;
338            }
339    
340            /**
341             * Returns the group persistence.
342             *
343             * @return the group persistence
344             */
345            public GroupPersistence getGroupPersistence() {
346                    return groupPersistence;
347            }
348    
349            /**
350             * Sets the group persistence.
351             *
352             * @param groupPersistence the group persistence
353             */
354            public void setGroupPersistence(GroupPersistence groupPersistence) {
355                    this.groupPersistence = groupPersistence;
356            }
357    
358            /**
359             * Returns the group finder.
360             *
361             * @return the group finder
362             */
363            public GroupFinder getGroupFinder() {
364                    return groupFinder;
365            }
366    
367            /**
368             * Sets the group finder.
369             *
370             * @param groupFinder the group finder
371             */
372            public void setGroupFinder(GroupFinder groupFinder) {
373                    this.groupFinder = groupFinder;
374            }
375    
376            /**
377             * Returns the portlet preferences local service.
378             *
379             * @return the portlet preferences local service
380             */
381            public com.liferay.portal.service.PortletPreferencesLocalService getPortletPreferencesLocalService() {
382                    return portletPreferencesLocalService;
383            }
384    
385            /**
386             * Sets the portlet preferences local service.
387             *
388             * @param portletPreferencesLocalService the portlet preferences local service
389             */
390            public void setPortletPreferencesLocalService(
391                    com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService) {
392                    this.portletPreferencesLocalService = portletPreferencesLocalService;
393            }
394    
395            /**
396             * Returns the portlet preferences remote service.
397             *
398             * @return the portlet preferences remote service
399             */
400            public com.liferay.portal.service.PortletPreferencesService getPortletPreferencesService() {
401                    return portletPreferencesService;
402            }
403    
404            /**
405             * Sets the portlet preferences remote service.
406             *
407             * @param portletPreferencesService the portlet preferences remote service
408             */
409            public void setPortletPreferencesService(
410                    com.liferay.portal.service.PortletPreferencesService portletPreferencesService) {
411                    this.portletPreferencesService = portletPreferencesService;
412            }
413    
414            /**
415             * Returns the portlet preferences persistence.
416             *
417             * @return the portlet preferences persistence
418             */
419            public PortletPreferencesPersistence getPortletPreferencesPersistence() {
420                    return portletPreferencesPersistence;
421            }
422    
423            /**
424             * Sets the portlet preferences persistence.
425             *
426             * @param portletPreferencesPersistence the portlet preferences persistence
427             */
428            public void setPortletPreferencesPersistence(
429                    PortletPreferencesPersistence portletPreferencesPersistence) {
430                    this.portletPreferencesPersistence = portletPreferencesPersistence;
431            }
432    
433            /**
434             * Returns the portlet preferences finder.
435             *
436             * @return the portlet preferences finder
437             */
438            public PortletPreferencesFinder getPortletPreferencesFinder() {
439                    return portletPreferencesFinder;
440            }
441    
442            /**
443             * Sets the portlet preferences finder.
444             *
445             * @param portletPreferencesFinder the portlet preferences finder
446             */
447            public void setPortletPreferencesFinder(
448                    PortletPreferencesFinder portletPreferencesFinder) {
449                    this.portletPreferencesFinder = portletPreferencesFinder;
450            }
451    
452            /**
453             * Returns the resource local service.
454             *
455             * @return the resource local service
456             */
457            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
458                    return resourceLocalService;
459            }
460    
461            /**
462             * Sets the resource local service.
463             *
464             * @param resourceLocalService the resource local service
465             */
466            public void setResourceLocalService(
467                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
468                    this.resourceLocalService = resourceLocalService;
469            }
470    
471            /**
472             * Returns the subscription local service.
473             *
474             * @return the subscription local service
475             */
476            public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
477                    return subscriptionLocalService;
478            }
479    
480            /**
481             * Sets the subscription local service.
482             *
483             * @param subscriptionLocalService the subscription local service
484             */
485            public void setSubscriptionLocalService(
486                    com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
487                    this.subscriptionLocalService = subscriptionLocalService;
488            }
489    
490            /**
491             * Returns the subscription persistence.
492             *
493             * @return the subscription persistence
494             */
495            public SubscriptionPersistence getSubscriptionPersistence() {
496                    return subscriptionPersistence;
497            }
498    
499            /**
500             * Sets the subscription persistence.
501             *
502             * @param subscriptionPersistence the subscription persistence
503             */
504            public void setSubscriptionPersistence(
505                    SubscriptionPersistence subscriptionPersistence) {
506                    this.subscriptionPersistence = subscriptionPersistence;
507            }
508    
509            /**
510             * Returns the user local service.
511             *
512             * @return the user local service
513             */
514            public com.liferay.portal.service.UserLocalService getUserLocalService() {
515                    return userLocalService;
516            }
517    
518            /**
519             * Sets the user local service.
520             *
521             * @param userLocalService the user local service
522             */
523            public void setUserLocalService(
524                    com.liferay.portal.service.UserLocalService userLocalService) {
525                    this.userLocalService = userLocalService;
526            }
527    
528            /**
529             * Returns the user remote service.
530             *
531             * @return the user remote service
532             */
533            public com.liferay.portal.service.UserService getUserService() {
534                    return userService;
535            }
536    
537            /**
538             * Sets the user remote service.
539             *
540             * @param userService the user remote service
541             */
542            public void setUserService(
543                    com.liferay.portal.service.UserService userService) {
544                    this.userService = userService;
545            }
546    
547            /**
548             * Returns the user persistence.
549             *
550             * @return the user persistence
551             */
552            public UserPersistence getUserPersistence() {
553                    return userPersistence;
554            }
555    
556            /**
557             * Sets the user persistence.
558             *
559             * @param userPersistence the user persistence
560             */
561            public void setUserPersistence(UserPersistence userPersistence) {
562                    this.userPersistence = userPersistence;
563            }
564    
565            /**
566             * Returns the user finder.
567             *
568             * @return the user finder
569             */
570            public UserFinder getUserFinder() {
571                    return userFinder;
572            }
573    
574            /**
575             * Sets the user finder.
576             *
577             * @param userFinder the user finder
578             */
579            public void setUserFinder(UserFinder userFinder) {
580                    this.userFinder = userFinder;
581            }
582    
583            /**
584             * Returns the asset entry local service.
585             *
586             * @return the asset entry local service
587             */
588            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
589                    return assetEntryLocalService;
590            }
591    
592            /**
593             * Sets the asset entry local service.
594             *
595             * @param assetEntryLocalService the asset entry local service
596             */
597            public void setAssetEntryLocalService(
598                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
599                    this.assetEntryLocalService = assetEntryLocalService;
600            }
601    
602            /**
603             * Returns the asset entry remote service.
604             *
605             * @return the asset entry remote service
606             */
607            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
608                    return assetEntryService;
609            }
610    
611            /**
612             * Sets the asset entry remote service.
613             *
614             * @param assetEntryService the asset entry remote service
615             */
616            public void setAssetEntryService(
617                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
618                    this.assetEntryService = assetEntryService;
619            }
620    
621            /**
622             * Returns the asset entry persistence.
623             *
624             * @return the asset entry persistence
625             */
626            public AssetEntryPersistence getAssetEntryPersistence() {
627                    return assetEntryPersistence;
628            }
629    
630            /**
631             * Sets the asset entry persistence.
632             *
633             * @param assetEntryPersistence the asset entry persistence
634             */
635            public void setAssetEntryPersistence(
636                    AssetEntryPersistence assetEntryPersistence) {
637                    this.assetEntryPersistence = assetEntryPersistence;
638            }
639    
640            /**
641             * Returns the asset entry finder.
642             *
643             * @return the asset entry finder
644             */
645            public AssetEntryFinder getAssetEntryFinder() {
646                    return assetEntryFinder;
647            }
648    
649            /**
650             * Sets the asset entry finder.
651             *
652             * @param assetEntryFinder the asset entry finder
653             */
654            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
655                    this.assetEntryFinder = assetEntryFinder;
656            }
657    
658            /**
659             * Returns the asset link local service.
660             *
661             * @return the asset link local service
662             */
663            public com.liferay.portlet.asset.service.AssetLinkLocalService getAssetLinkLocalService() {
664                    return assetLinkLocalService;
665            }
666    
667            /**
668             * Sets the asset link local service.
669             *
670             * @param assetLinkLocalService the asset link local service
671             */
672            public void setAssetLinkLocalService(
673                    com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService) {
674                    this.assetLinkLocalService = assetLinkLocalService;
675            }
676    
677            /**
678             * Returns the asset link persistence.
679             *
680             * @return the asset link persistence
681             */
682            public AssetLinkPersistence getAssetLinkPersistence() {
683                    return assetLinkPersistence;
684            }
685    
686            /**
687             * Sets the asset link persistence.
688             *
689             * @param assetLinkPersistence the asset link persistence
690             */
691            public void setAssetLinkPersistence(
692                    AssetLinkPersistence assetLinkPersistence) {
693                    this.assetLinkPersistence = assetLinkPersistence;
694            }
695    
696            /**
697             * Returns the asset tag local service.
698             *
699             * @return the asset tag local service
700             */
701            public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
702                    return assetTagLocalService;
703            }
704    
705            /**
706             * Sets the asset tag local service.
707             *
708             * @param assetTagLocalService the asset tag local service
709             */
710            public void setAssetTagLocalService(
711                    com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
712                    this.assetTagLocalService = assetTagLocalService;
713            }
714    
715            /**
716             * Returns the asset tag remote service.
717             *
718             * @return the asset tag remote service
719             */
720            public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
721                    return assetTagService;
722            }
723    
724            /**
725             * Sets the asset tag remote service.
726             *
727             * @param assetTagService the asset tag remote service
728             */
729            public void setAssetTagService(
730                    com.liferay.portlet.asset.service.AssetTagService assetTagService) {
731                    this.assetTagService = assetTagService;
732            }
733    
734            /**
735             * Returns the asset tag persistence.
736             *
737             * @return the asset tag persistence
738             */
739            public AssetTagPersistence getAssetTagPersistence() {
740                    return assetTagPersistence;
741            }
742    
743            /**
744             * Sets the asset tag persistence.
745             *
746             * @param assetTagPersistence the asset tag persistence
747             */
748            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
749                    this.assetTagPersistence = assetTagPersistence;
750            }
751    
752            /**
753             * Returns the asset tag finder.
754             *
755             * @return the asset tag finder
756             */
757            public AssetTagFinder getAssetTagFinder() {
758                    return assetTagFinder;
759            }
760    
761            /**
762             * Sets the asset tag finder.
763             *
764             * @param assetTagFinder the asset tag finder
765             */
766            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
767                    this.assetTagFinder = assetTagFinder;
768            }
769    
770            /**
771             * Returns the expando row local service.
772             *
773             * @return the expando row local service
774             */
775            public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
776                    return expandoRowLocalService;
777            }
778    
779            /**
780             * Sets the expando row local service.
781             *
782             * @param expandoRowLocalService the expando row local service
783             */
784            public void setExpandoRowLocalService(
785                    com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
786                    this.expandoRowLocalService = expandoRowLocalService;
787            }
788    
789            /**
790             * Returns the expando row persistence.
791             *
792             * @return the expando row persistence
793             */
794            public ExpandoRowPersistence getExpandoRowPersistence() {
795                    return expandoRowPersistence;
796            }
797    
798            /**
799             * Sets the expando row persistence.
800             *
801             * @param expandoRowPersistence the expando row persistence
802             */
803            public void setExpandoRowPersistence(
804                    ExpandoRowPersistence expandoRowPersistence) {
805                    this.expandoRowPersistence = expandoRowPersistence;
806            }
807    
808            /**
809             * Returns the social activity local service.
810             *
811             * @return the social activity local service
812             */
813            public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
814                    return socialActivityLocalService;
815            }
816    
817            /**
818             * Sets the social activity local service.
819             *
820             * @param socialActivityLocalService the social activity local service
821             */
822            public void setSocialActivityLocalService(
823                    com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
824                    this.socialActivityLocalService = socialActivityLocalService;
825            }
826    
827            /**
828             * Returns the social activity remote service.
829             *
830             * @return the social activity remote service
831             */
832            public com.liferay.portlet.social.service.SocialActivityService getSocialActivityService() {
833                    return socialActivityService;
834            }
835    
836            /**
837             * Sets the social activity remote service.
838             *
839             * @param socialActivityService the social activity remote service
840             */
841            public void setSocialActivityService(
842                    com.liferay.portlet.social.service.SocialActivityService socialActivityService) {
843                    this.socialActivityService = socialActivityService;
844            }
845    
846            /**
847             * Returns the social activity persistence.
848             *
849             * @return the social activity persistence
850             */
851            public SocialActivityPersistence getSocialActivityPersistence() {
852                    return socialActivityPersistence;
853            }
854    
855            /**
856             * Sets the social activity persistence.
857             *
858             * @param socialActivityPersistence the social activity persistence
859             */
860            public void setSocialActivityPersistence(
861                    SocialActivityPersistence socialActivityPersistence) {
862                    this.socialActivityPersistence = socialActivityPersistence;
863            }
864    
865            /**
866             * Returns the social activity finder.
867             *
868             * @return the social activity finder
869             */
870            public SocialActivityFinder getSocialActivityFinder() {
871                    return socialActivityFinder;
872            }
873    
874            /**
875             * Sets the social activity finder.
876             *
877             * @param socialActivityFinder the social activity finder
878             */
879            public void setSocialActivityFinder(
880                    SocialActivityFinder socialActivityFinder) {
881                    this.socialActivityFinder = socialActivityFinder;
882            }
883    
884            /**
885             * Returns the trash entry local service.
886             *
887             * @return the trash entry local service
888             */
889            public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
890                    return trashEntryLocalService;
891            }
892    
893            /**
894             * Sets the trash entry local service.
895             *
896             * @param trashEntryLocalService the trash entry local service
897             */
898            public void setTrashEntryLocalService(
899                    com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
900                    this.trashEntryLocalService = trashEntryLocalService;
901            }
902    
903            /**
904             * Returns the trash entry remote service.
905             *
906             * @return the trash entry remote service
907             */
908            public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
909                    return trashEntryService;
910            }
911    
912            /**
913             * Sets the trash entry remote service.
914             *
915             * @param trashEntryService the trash entry remote service
916             */
917            public void setTrashEntryService(
918                    com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
919                    this.trashEntryService = trashEntryService;
920            }
921    
922            /**
923             * Returns the trash entry persistence.
924             *
925             * @return the trash entry persistence
926             */
927            public TrashEntryPersistence getTrashEntryPersistence() {
928                    return trashEntryPersistence;
929            }
930    
931            /**
932             * Sets the trash entry persistence.
933             *
934             * @param trashEntryPersistence the trash entry persistence
935             */
936            public void setTrashEntryPersistence(
937                    TrashEntryPersistence trashEntryPersistence) {
938                    this.trashEntryPersistence = trashEntryPersistence;
939            }
940    
941            /**
942             * Returns the trash version local service.
943             *
944             * @return the trash version local service
945             */
946            public com.liferay.portlet.trash.service.TrashVersionLocalService getTrashVersionLocalService() {
947                    return trashVersionLocalService;
948            }
949    
950            /**
951             * Sets the trash version local service.
952             *
953             * @param trashVersionLocalService the trash version local service
954             */
955            public void setTrashVersionLocalService(
956                    com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService) {
957                    this.trashVersionLocalService = trashVersionLocalService;
958            }
959    
960            /**
961             * Returns the trash version persistence.
962             *
963             * @return the trash version persistence
964             */
965            public TrashVersionPersistence getTrashVersionPersistence() {
966                    return trashVersionPersistence;
967            }
968    
969            /**
970             * Sets the trash version persistence.
971             *
972             * @param trashVersionPersistence the trash version persistence
973             */
974            public void setTrashVersionPersistence(
975                    TrashVersionPersistence trashVersionPersistence) {
976                    this.trashVersionPersistence = trashVersionPersistence;
977            }
978    
979            public void afterPropertiesSet() {
980            }
981    
982            public void destroy() {
983            }
984    
985            /**
986             * Returns the Spring bean ID for this bean.
987             *
988             * @return the Spring bean ID for this bean
989             */
990            @Override
991            public String getBeanIdentifier() {
992                    return _beanIdentifier;
993            }
994    
995            /**
996             * Sets the Spring bean ID for this bean.
997             *
998             * @param beanIdentifier the Spring bean ID for this bean
999             */
1000            @Override
1001            public void setBeanIdentifier(String beanIdentifier) {
1002                    _beanIdentifier = beanIdentifier;
1003            }
1004    
1005            protected Class<?> getModelClass() {
1006                    return BookmarksEntry.class;
1007            }
1008    
1009            protected String getModelClassName() {
1010                    return BookmarksEntry.class.getName();
1011            }
1012    
1013            /**
1014             * Performs a SQL query.
1015             *
1016             * @param sql the sql query
1017             */
1018            protected void runSQL(String sql) {
1019                    try {
1020                            DataSource dataSource = bookmarksEntryPersistence.getDataSource();
1021    
1022                            DB db = DBFactoryUtil.getDB();
1023    
1024                            sql = db.buildSQL(sql);
1025                            sql = PortalUtil.transformSQL(sql);
1026    
1027                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1028                                            sql, new int[0]);
1029    
1030                            sqlUpdate.update();
1031                    }
1032                    catch (Exception e) {
1033                            throw new SystemException(e);
1034                    }
1035            }
1036    
1037            @BeanReference(type = com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService.class)
1038            protected com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService bookmarksEntryLocalService;
1039            @BeanReference(type = com.liferay.portlet.bookmarks.service.BookmarksEntryService.class)
1040            protected com.liferay.portlet.bookmarks.service.BookmarksEntryService bookmarksEntryService;
1041            @BeanReference(type = BookmarksEntryPersistence.class)
1042            protected BookmarksEntryPersistence bookmarksEntryPersistence;
1043            @BeanReference(type = BookmarksEntryFinder.class)
1044            protected BookmarksEntryFinder bookmarksEntryFinder;
1045            @BeanReference(type = com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService.class)
1046            protected com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService bookmarksFolderLocalService;
1047            @BeanReference(type = com.liferay.portlet.bookmarks.service.BookmarksFolderService.class)
1048            protected com.liferay.portlet.bookmarks.service.BookmarksFolderService bookmarksFolderService;
1049            @BeanReference(type = BookmarksFolderPersistence.class)
1050            protected BookmarksFolderPersistence bookmarksFolderPersistence;
1051            @BeanReference(type = BookmarksFolderFinder.class)
1052            protected BookmarksFolderFinder bookmarksFolderFinder;
1053            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1054            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1055            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1056            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1057            @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
1058            protected com.liferay.portal.service.ClassNameService classNameService;
1059            @BeanReference(type = ClassNamePersistence.class)
1060            protected ClassNamePersistence classNamePersistence;
1061            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1062            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1063            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1064            protected com.liferay.portal.service.GroupService groupService;
1065            @BeanReference(type = GroupPersistence.class)
1066            protected GroupPersistence groupPersistence;
1067            @BeanReference(type = GroupFinder.class)
1068            protected GroupFinder groupFinder;
1069            @BeanReference(type = com.liferay.portal.service.PortletPreferencesLocalService.class)
1070            protected com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService;
1071            @BeanReference(type = com.liferay.portal.service.PortletPreferencesService.class)
1072            protected com.liferay.portal.service.PortletPreferencesService portletPreferencesService;
1073            @BeanReference(type = PortletPreferencesPersistence.class)
1074            protected PortletPreferencesPersistence portletPreferencesPersistence;
1075            @BeanReference(type = PortletPreferencesFinder.class)
1076            protected PortletPreferencesFinder portletPreferencesFinder;
1077            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1078            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1079            @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1080            protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1081            @BeanReference(type = SubscriptionPersistence.class)
1082            protected SubscriptionPersistence subscriptionPersistence;
1083            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1084            protected com.liferay.portal.service.UserLocalService userLocalService;
1085            @BeanReference(type = com.liferay.portal.service.UserService.class)
1086            protected com.liferay.portal.service.UserService userService;
1087            @BeanReference(type = UserPersistence.class)
1088            protected UserPersistence userPersistence;
1089            @BeanReference(type = UserFinder.class)
1090            protected UserFinder userFinder;
1091            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1092            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1093            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1094            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1095            @BeanReference(type = AssetEntryPersistence.class)
1096            protected AssetEntryPersistence assetEntryPersistence;
1097            @BeanReference(type = AssetEntryFinder.class)
1098            protected AssetEntryFinder assetEntryFinder;
1099            @BeanReference(type = com.liferay.portlet.asset.service.AssetLinkLocalService.class)
1100            protected com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService;
1101            @BeanReference(type = AssetLinkPersistence.class)
1102            protected AssetLinkPersistence assetLinkPersistence;
1103            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1104            protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1105            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
1106            protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
1107            @BeanReference(type = AssetTagPersistence.class)
1108            protected AssetTagPersistence assetTagPersistence;
1109            @BeanReference(type = AssetTagFinder.class)
1110            protected AssetTagFinder assetTagFinder;
1111            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1112            protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1113            @BeanReference(type = ExpandoRowPersistence.class)
1114            protected ExpandoRowPersistence expandoRowPersistence;
1115            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1116            protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1117            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityService.class)
1118            protected com.liferay.portlet.social.service.SocialActivityService socialActivityService;
1119            @BeanReference(type = SocialActivityPersistence.class)
1120            protected SocialActivityPersistence socialActivityPersistence;
1121            @BeanReference(type = SocialActivityFinder.class)
1122            protected SocialActivityFinder socialActivityFinder;
1123            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1124            protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1125            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1126            protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1127            @BeanReference(type = TrashEntryPersistence.class)
1128            protected TrashEntryPersistence trashEntryPersistence;
1129            @BeanReference(type = com.liferay.portlet.trash.service.TrashVersionLocalService.class)
1130            protected com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService;
1131            @BeanReference(type = TrashVersionPersistence.class)
1132            protected TrashVersionPersistence trashVersionPersistence;
1133            private String _beanIdentifier;
1134    }