001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.bookmarks.service.base;
016    
017    import com.liferay.portal.kernel.bean.BeanReference;
018    import com.liferay.portal.kernel.bean.IdentifiableBean;
019    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
021    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
022    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
023    import com.liferay.portal.kernel.dao.orm.Projection;
024    import com.liferay.portal.kernel.exception.PortalException;
025    import com.liferay.portal.kernel.exception.SystemException;
026    import com.liferay.portal.kernel.search.Indexable;
027    import com.liferay.portal.kernel.search.IndexableType;
028    import com.liferay.portal.kernel.util.OrderByComparator;
029    import com.liferay.portal.model.PersistedModel;
030    import com.liferay.portal.service.BaseLocalServiceImpl;
031    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
032    import com.liferay.portal.service.persistence.GroupFinder;
033    import com.liferay.portal.service.persistence.GroupPersistence;
034    import com.liferay.portal.service.persistence.PortletPreferencesFinder;
035    import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
036    import com.liferay.portal.service.persistence.SubscriptionPersistence;
037    import com.liferay.portal.service.persistence.UserFinder;
038    import com.liferay.portal.service.persistence.UserPersistence;
039    
040    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
041    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
042    import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
043    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
044    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
045    import com.liferay.portlet.bookmarks.model.BookmarksEntry;
046    import com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService;
047    import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder;
048    import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence;
049    import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderFinder;
050    import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence;
051    import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
052    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
053    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
054    import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
055    
056    import java.io.Serializable;
057    
058    import java.util.List;
059    
060    import javax.sql.DataSource;
061    
062    /**
063     * Provides the base implementation for the bookmarks entry local service.
064     *
065     * <p>
066     * 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.BookmarksEntryLocalServiceImpl}.
067     * </p>
068     *
069     * @author Brian Wing Shun Chan
070     * @see com.liferay.portlet.bookmarks.service.impl.BookmarksEntryLocalServiceImpl
071     * @see com.liferay.portlet.bookmarks.service.BookmarksEntryLocalServiceUtil
072     * @generated
073     */
074    public abstract class BookmarksEntryLocalServiceBaseImpl
075            extends BaseLocalServiceImpl implements BookmarksEntryLocalService,
076                    IdentifiableBean {
077            /*
078             * NOTE FOR DEVELOPERS:
079             *
080             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.bookmarks.service.BookmarksEntryLocalServiceUtil} to access the bookmarks entry local service.
081             */
082    
083            /**
084             * Adds the bookmarks entry to the database. Also notifies the appropriate model listeners.
085             *
086             * @param bookmarksEntry the bookmarks entry
087             * @return the bookmarks entry that was added
088             * @throws SystemException if a system exception occurred
089             */
090            @Indexable(type = IndexableType.REINDEX)
091            @Override
092            public BookmarksEntry addBookmarksEntry(BookmarksEntry bookmarksEntry)
093                    throws SystemException {
094                    bookmarksEntry.setNew(true);
095    
096                    return bookmarksEntryPersistence.update(bookmarksEntry);
097            }
098    
099            /**
100             * Creates a new bookmarks entry with the primary key. Does not add the bookmarks entry to the database.
101             *
102             * @param entryId the primary key for the new bookmarks entry
103             * @return the new bookmarks entry
104             */
105            @Override
106            public BookmarksEntry createBookmarksEntry(long entryId) {
107                    return bookmarksEntryPersistence.create(entryId);
108            }
109    
110            /**
111             * Deletes the bookmarks entry with the primary key from the database. Also notifies the appropriate model listeners.
112             *
113             * @param entryId the primary key of the bookmarks entry
114             * @return the bookmarks entry that was removed
115             * @throws PortalException if a bookmarks entry with the primary key could not be found
116             * @throws SystemException if a system exception occurred
117             */
118            @Indexable(type = IndexableType.DELETE)
119            @Override
120            public BookmarksEntry deleteBookmarksEntry(long entryId)
121                    throws PortalException, SystemException {
122                    return bookmarksEntryPersistence.remove(entryId);
123            }
124    
125            /**
126             * Deletes the bookmarks entry from the database. Also notifies the appropriate model listeners.
127             *
128             * @param bookmarksEntry the bookmarks entry
129             * @return the bookmarks entry that was removed
130             * @throws SystemException if a system exception occurred
131             */
132            @Indexable(type = IndexableType.DELETE)
133            @Override
134            public BookmarksEntry deleteBookmarksEntry(BookmarksEntry bookmarksEntry)
135                    throws SystemException {
136                    return bookmarksEntryPersistence.remove(bookmarksEntry);
137            }
138    
139            @Override
140            public DynamicQuery dynamicQuery() {
141                    Class<?> clazz = getClass();
142    
143                    return DynamicQueryFactoryUtil.forClass(BookmarksEntry.class,
144                            clazz.getClassLoader());
145            }
146    
147            /**
148             * Performs a dynamic query on the database and returns the matching rows.
149             *
150             * @param dynamicQuery the dynamic query
151             * @return the matching rows
152             * @throws SystemException if a system exception occurred
153             */
154            @Override
155            @SuppressWarnings("rawtypes")
156            public List dynamicQuery(DynamicQuery dynamicQuery)
157                    throws SystemException {
158                    return bookmarksEntryPersistence.findWithDynamicQuery(dynamicQuery);
159            }
160    
161            /**
162             * Performs a dynamic query on the database and returns a range of the matching rows.
163             *
164             * <p>
165             * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
166             * </p>
167             *
168             * @param dynamicQuery the dynamic query
169             * @param start the lower bound of the range of model instances
170             * @param end the upper bound of the range of model instances (not inclusive)
171             * @return the range of matching rows
172             * @throws SystemException if a system exception occurred
173             */
174            @Override
175            @SuppressWarnings("rawtypes")
176            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
177                    throws SystemException {
178                    return bookmarksEntryPersistence.findWithDynamicQuery(dynamicQuery,
179                            start, end);
180            }
181    
182            /**
183             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
184             *
185             * <p>
186             * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
187             * </p>
188             *
189             * @param dynamicQuery the dynamic query
190             * @param start the lower bound of the range of model instances
191             * @param end the upper bound of the range of model instances (not inclusive)
192             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
193             * @return the ordered range of matching rows
194             * @throws SystemException if a system exception occurred
195             */
196            @Override
197            @SuppressWarnings("rawtypes")
198            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
199                    OrderByComparator orderByComparator) throws SystemException {
200                    return bookmarksEntryPersistence.findWithDynamicQuery(dynamicQuery,
201                            start, end, orderByComparator);
202            }
203    
204            /**
205             * Returns the number of rows that match the dynamic query.
206             *
207             * @param dynamicQuery the dynamic query
208             * @return the number of rows that match the dynamic query
209             * @throws SystemException if a system exception occurred
210             */
211            @Override
212            public long dynamicQueryCount(DynamicQuery dynamicQuery)
213                    throws SystemException {
214                    return bookmarksEntryPersistence.countWithDynamicQuery(dynamicQuery);
215            }
216    
217            /**
218             * Returns the number of rows that match the dynamic query.
219             *
220             * @param dynamicQuery the dynamic query
221             * @param projection the projection to apply to the query
222             * @return the number of rows that match the dynamic query
223             * @throws SystemException if a system exception occurred
224             */
225            @Override
226            public long dynamicQueryCount(DynamicQuery dynamicQuery,
227                    Projection projection) throws SystemException {
228                    return bookmarksEntryPersistence.countWithDynamicQuery(dynamicQuery,
229                            projection);
230            }
231    
232            @Override
233            public BookmarksEntry fetchBookmarksEntry(long entryId)
234                    throws SystemException {
235                    return bookmarksEntryPersistence.fetchByPrimaryKey(entryId);
236            }
237    
238            /**
239             * Returns the bookmarks entry with the matching UUID and company.
240             *
241             * @param uuid the bookmarks entry's UUID
242             * @param  companyId the primary key of the company
243             * @return the matching bookmarks entry, or <code>null</code> if a matching bookmarks entry could not be found
244             * @throws SystemException if a system exception occurred
245             */
246            @Override
247            public BookmarksEntry fetchBookmarksEntryByUuidAndCompanyId(String uuid,
248                    long companyId) throws SystemException {
249                    return bookmarksEntryPersistence.fetchByUuid_C_First(uuid, companyId,
250                            null);
251            }
252    
253            /**
254             * Returns the bookmarks entry matching the UUID and group.
255             *
256             * @param uuid the bookmarks entry's UUID
257             * @param groupId the primary key of the group
258             * @return the matching bookmarks entry, or <code>null</code> if a matching bookmarks entry could not be found
259             * @throws SystemException if a system exception occurred
260             */
261            @Override
262            public BookmarksEntry fetchBookmarksEntryByUuidAndGroupId(String uuid,
263                    long groupId) throws SystemException {
264                    return bookmarksEntryPersistence.fetchByUUID_G(uuid, groupId);
265            }
266    
267            /**
268             * Returns the bookmarks entry with the primary key.
269             *
270             * @param entryId the primary key of the bookmarks entry
271             * @return the bookmarks entry
272             * @throws PortalException if a bookmarks entry with the primary key could not be found
273             * @throws SystemException if a system exception occurred
274             */
275            @Override
276            public BookmarksEntry getBookmarksEntry(long entryId)
277                    throws PortalException, SystemException {
278                    return bookmarksEntryPersistence.findByPrimaryKey(entryId);
279            }
280    
281            @Override
282            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
283                    throws PortalException, SystemException {
284                    return bookmarksEntryPersistence.findByPrimaryKey(primaryKeyObj);
285            }
286    
287            /**
288             * Returns the bookmarks entry with the matching UUID and company.
289             *
290             * @param uuid the bookmarks entry's UUID
291             * @param  companyId the primary key of the company
292             * @return the matching bookmarks entry
293             * @throws PortalException if a matching bookmarks entry could not be found
294             * @throws SystemException if a system exception occurred
295             */
296            @Override
297            public BookmarksEntry getBookmarksEntryByUuidAndCompanyId(String uuid,
298                    long companyId) throws PortalException, SystemException {
299                    return bookmarksEntryPersistence.findByUuid_C_First(uuid, companyId,
300                            null);
301            }
302    
303            /**
304             * Returns the bookmarks entry matching the UUID and group.
305             *
306             * @param uuid the bookmarks entry's UUID
307             * @param groupId the primary key of the group
308             * @return the matching bookmarks entry
309             * @throws PortalException if a matching bookmarks entry could not be found
310             * @throws SystemException if a system exception occurred
311             */
312            @Override
313            public BookmarksEntry getBookmarksEntryByUuidAndGroupId(String uuid,
314                    long groupId) throws PortalException, SystemException {
315                    return bookmarksEntryPersistence.findByUUID_G(uuid, groupId);
316            }
317    
318            /**
319             * Returns a range of all the bookmarks entries.
320             *
321             * <p>
322             * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.bookmarks.model.impl.BookmarksEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
323             * </p>
324             *
325             * @param start the lower bound of the range of bookmarks entries
326             * @param end the upper bound of the range of bookmarks entries (not inclusive)
327             * @return the range of bookmarks entries
328             * @throws SystemException if a system exception occurred
329             */
330            @Override
331            public List<BookmarksEntry> getBookmarksEntries(int start, int end)
332                    throws SystemException {
333                    return bookmarksEntryPersistence.findAll(start, end);
334            }
335    
336            /**
337             * Returns the number of bookmarks entries.
338             *
339             * @return the number of bookmarks entries
340             * @throws SystemException if a system exception occurred
341             */
342            @Override
343            public int getBookmarksEntriesCount() throws SystemException {
344                    return bookmarksEntryPersistence.countAll();
345            }
346    
347            /**
348             * Updates the bookmarks entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
349             *
350             * @param bookmarksEntry the bookmarks entry
351             * @return the bookmarks entry that was updated
352             * @throws SystemException if a system exception occurred
353             */
354            @Indexable(type = IndexableType.REINDEX)
355            @Override
356            public BookmarksEntry updateBookmarksEntry(BookmarksEntry bookmarksEntry)
357                    throws SystemException {
358                    return bookmarksEntryPersistence.update(bookmarksEntry);
359            }
360    
361            /**
362             * Returns the bookmarks entry local service.
363             *
364             * @return the bookmarks entry local service
365             */
366            public com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService getBookmarksEntryLocalService() {
367                    return bookmarksEntryLocalService;
368            }
369    
370            /**
371             * Sets the bookmarks entry local service.
372             *
373             * @param bookmarksEntryLocalService the bookmarks entry local service
374             */
375            public void setBookmarksEntryLocalService(
376                    com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService bookmarksEntryLocalService) {
377                    this.bookmarksEntryLocalService = bookmarksEntryLocalService;
378            }
379    
380            /**
381             * Returns the bookmarks entry remote service.
382             *
383             * @return the bookmarks entry remote service
384             */
385            public com.liferay.portlet.bookmarks.service.BookmarksEntryService getBookmarksEntryService() {
386                    return bookmarksEntryService;
387            }
388    
389            /**
390             * Sets the bookmarks entry remote service.
391             *
392             * @param bookmarksEntryService the bookmarks entry remote service
393             */
394            public void setBookmarksEntryService(
395                    com.liferay.portlet.bookmarks.service.BookmarksEntryService bookmarksEntryService) {
396                    this.bookmarksEntryService = bookmarksEntryService;
397            }
398    
399            /**
400             * Returns the bookmarks entry persistence.
401             *
402             * @return the bookmarks entry persistence
403             */
404            public BookmarksEntryPersistence getBookmarksEntryPersistence() {
405                    return bookmarksEntryPersistence;
406            }
407    
408            /**
409             * Sets the bookmarks entry persistence.
410             *
411             * @param bookmarksEntryPersistence the bookmarks entry persistence
412             */
413            public void setBookmarksEntryPersistence(
414                    BookmarksEntryPersistence bookmarksEntryPersistence) {
415                    this.bookmarksEntryPersistence = bookmarksEntryPersistence;
416            }
417    
418            /**
419             * Returns the bookmarks entry finder.
420             *
421             * @return the bookmarks entry finder
422             */
423            public BookmarksEntryFinder getBookmarksEntryFinder() {
424                    return bookmarksEntryFinder;
425            }
426    
427            /**
428             * Sets the bookmarks entry finder.
429             *
430             * @param bookmarksEntryFinder the bookmarks entry finder
431             */
432            public void setBookmarksEntryFinder(
433                    BookmarksEntryFinder bookmarksEntryFinder) {
434                    this.bookmarksEntryFinder = bookmarksEntryFinder;
435            }
436    
437            /**
438             * Returns the bookmarks folder local service.
439             *
440             * @return the bookmarks folder local service
441             */
442            public com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService getBookmarksFolderLocalService() {
443                    return bookmarksFolderLocalService;
444            }
445    
446            /**
447             * Sets the bookmarks folder local service.
448             *
449             * @param bookmarksFolderLocalService the bookmarks folder local service
450             */
451            public void setBookmarksFolderLocalService(
452                    com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService bookmarksFolderLocalService) {
453                    this.bookmarksFolderLocalService = bookmarksFolderLocalService;
454            }
455    
456            /**
457             * Returns the bookmarks folder remote service.
458             *
459             * @return the bookmarks folder remote service
460             */
461            public com.liferay.portlet.bookmarks.service.BookmarksFolderService getBookmarksFolderService() {
462                    return bookmarksFolderService;
463            }
464    
465            /**
466             * Sets the bookmarks folder remote service.
467             *
468             * @param bookmarksFolderService the bookmarks folder remote service
469             */
470            public void setBookmarksFolderService(
471                    com.liferay.portlet.bookmarks.service.BookmarksFolderService bookmarksFolderService) {
472                    this.bookmarksFolderService = bookmarksFolderService;
473            }
474    
475            /**
476             * Returns the bookmarks folder persistence.
477             *
478             * @return the bookmarks folder persistence
479             */
480            public BookmarksFolderPersistence getBookmarksFolderPersistence() {
481                    return bookmarksFolderPersistence;
482            }
483    
484            /**
485             * Sets the bookmarks folder persistence.
486             *
487             * @param bookmarksFolderPersistence the bookmarks folder persistence
488             */
489            public void setBookmarksFolderPersistence(
490                    BookmarksFolderPersistence bookmarksFolderPersistence) {
491                    this.bookmarksFolderPersistence = bookmarksFolderPersistence;
492            }
493    
494            /**
495             * Returns the bookmarks folder finder.
496             *
497             * @return the bookmarks folder finder
498             */
499            public BookmarksFolderFinder getBookmarksFolderFinder() {
500                    return bookmarksFolderFinder;
501            }
502    
503            /**
504             * Sets the bookmarks folder finder.
505             *
506             * @param bookmarksFolderFinder the bookmarks folder finder
507             */
508            public void setBookmarksFolderFinder(
509                    BookmarksFolderFinder bookmarksFolderFinder) {
510                    this.bookmarksFolderFinder = bookmarksFolderFinder;
511            }
512    
513            /**
514             * Returns the counter local service.
515             *
516             * @return the counter local service
517             */
518            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
519                    return counterLocalService;
520            }
521    
522            /**
523             * Sets the counter local service.
524             *
525             * @param counterLocalService the counter local service
526             */
527            public void setCounterLocalService(
528                    com.liferay.counter.service.CounterLocalService counterLocalService) {
529                    this.counterLocalService = counterLocalService;
530            }
531    
532            /**
533             * Returns the group local service.
534             *
535             * @return the group local service
536             */
537            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
538                    return groupLocalService;
539            }
540    
541            /**
542             * Sets the group local service.
543             *
544             * @param groupLocalService the group local service
545             */
546            public void setGroupLocalService(
547                    com.liferay.portal.service.GroupLocalService groupLocalService) {
548                    this.groupLocalService = groupLocalService;
549            }
550    
551            /**
552             * Returns the group remote service.
553             *
554             * @return the group remote service
555             */
556            public com.liferay.portal.service.GroupService getGroupService() {
557                    return groupService;
558            }
559    
560            /**
561             * Sets the group remote service.
562             *
563             * @param groupService the group remote service
564             */
565            public void setGroupService(
566                    com.liferay.portal.service.GroupService groupService) {
567                    this.groupService = groupService;
568            }
569    
570            /**
571             * Returns the group persistence.
572             *
573             * @return the group persistence
574             */
575            public GroupPersistence getGroupPersistence() {
576                    return groupPersistence;
577            }
578    
579            /**
580             * Sets the group persistence.
581             *
582             * @param groupPersistence the group persistence
583             */
584            public void setGroupPersistence(GroupPersistence groupPersistence) {
585                    this.groupPersistence = groupPersistence;
586            }
587    
588            /**
589             * Returns the group finder.
590             *
591             * @return the group finder
592             */
593            public GroupFinder getGroupFinder() {
594                    return groupFinder;
595            }
596    
597            /**
598             * Sets the group finder.
599             *
600             * @param groupFinder the group finder
601             */
602            public void setGroupFinder(GroupFinder groupFinder) {
603                    this.groupFinder = groupFinder;
604            }
605    
606            /**
607             * Returns the portlet preferences local service.
608             *
609             * @return the portlet preferences local service
610             */
611            public com.liferay.portal.service.PortletPreferencesLocalService getPortletPreferencesLocalService() {
612                    return portletPreferencesLocalService;
613            }
614    
615            /**
616             * Sets the portlet preferences local service.
617             *
618             * @param portletPreferencesLocalService the portlet preferences local service
619             */
620            public void setPortletPreferencesLocalService(
621                    com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService) {
622                    this.portletPreferencesLocalService = portletPreferencesLocalService;
623            }
624    
625            /**
626             * Returns the portlet preferences remote service.
627             *
628             * @return the portlet preferences remote service
629             */
630            public com.liferay.portal.service.PortletPreferencesService getPortletPreferencesService() {
631                    return portletPreferencesService;
632            }
633    
634            /**
635             * Sets the portlet preferences remote service.
636             *
637             * @param portletPreferencesService the portlet preferences remote service
638             */
639            public void setPortletPreferencesService(
640                    com.liferay.portal.service.PortletPreferencesService portletPreferencesService) {
641                    this.portletPreferencesService = portletPreferencesService;
642            }
643    
644            /**
645             * Returns the portlet preferences persistence.
646             *
647             * @return the portlet preferences persistence
648             */
649            public PortletPreferencesPersistence getPortletPreferencesPersistence() {
650                    return portletPreferencesPersistence;
651            }
652    
653            /**
654             * Sets the portlet preferences persistence.
655             *
656             * @param portletPreferencesPersistence the portlet preferences persistence
657             */
658            public void setPortletPreferencesPersistence(
659                    PortletPreferencesPersistence portletPreferencesPersistence) {
660                    this.portletPreferencesPersistence = portletPreferencesPersistence;
661            }
662    
663            /**
664             * Returns the portlet preferences finder.
665             *
666             * @return the portlet preferences finder
667             */
668            public PortletPreferencesFinder getPortletPreferencesFinder() {
669                    return portletPreferencesFinder;
670            }
671    
672            /**
673             * Sets the portlet preferences finder.
674             *
675             * @param portletPreferencesFinder the portlet preferences finder
676             */
677            public void setPortletPreferencesFinder(
678                    PortletPreferencesFinder portletPreferencesFinder) {
679                    this.portletPreferencesFinder = portletPreferencesFinder;
680            }
681    
682            /**
683             * Returns the resource local service.
684             *
685             * @return the resource local service
686             */
687            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
688                    return resourceLocalService;
689            }
690    
691            /**
692             * Sets the resource local service.
693             *
694             * @param resourceLocalService the resource local service
695             */
696            public void setResourceLocalService(
697                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
698                    this.resourceLocalService = resourceLocalService;
699            }
700    
701            /**
702             * Returns the subscription local service.
703             *
704             * @return the subscription local service
705             */
706            public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
707                    return subscriptionLocalService;
708            }
709    
710            /**
711             * Sets the subscription local service.
712             *
713             * @param subscriptionLocalService the subscription local service
714             */
715            public void setSubscriptionLocalService(
716                    com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
717                    this.subscriptionLocalService = subscriptionLocalService;
718            }
719    
720            /**
721             * Returns the subscription persistence.
722             *
723             * @return the subscription persistence
724             */
725            public SubscriptionPersistence getSubscriptionPersistence() {
726                    return subscriptionPersistence;
727            }
728    
729            /**
730             * Sets the subscription persistence.
731             *
732             * @param subscriptionPersistence the subscription persistence
733             */
734            public void setSubscriptionPersistence(
735                    SubscriptionPersistence subscriptionPersistence) {
736                    this.subscriptionPersistence = subscriptionPersistence;
737            }
738    
739            /**
740             * Returns the user local service.
741             *
742             * @return the user local service
743             */
744            public com.liferay.portal.service.UserLocalService getUserLocalService() {
745                    return userLocalService;
746            }
747    
748            /**
749             * Sets the user local service.
750             *
751             * @param userLocalService the user local service
752             */
753            public void setUserLocalService(
754                    com.liferay.portal.service.UserLocalService userLocalService) {
755                    this.userLocalService = userLocalService;
756            }
757    
758            /**
759             * Returns the user remote service.
760             *
761             * @return the user remote service
762             */
763            public com.liferay.portal.service.UserService getUserService() {
764                    return userService;
765            }
766    
767            /**
768             * Sets the user remote service.
769             *
770             * @param userService the user remote service
771             */
772            public void setUserService(
773                    com.liferay.portal.service.UserService userService) {
774                    this.userService = userService;
775            }
776    
777            /**
778             * Returns the user persistence.
779             *
780             * @return the user persistence
781             */
782            public UserPersistence getUserPersistence() {
783                    return userPersistence;
784            }
785    
786            /**
787             * Sets the user persistence.
788             *
789             * @param userPersistence the user persistence
790             */
791            public void setUserPersistence(UserPersistence userPersistence) {
792                    this.userPersistence = userPersistence;
793            }
794    
795            /**
796             * Returns the user finder.
797             *
798             * @return the user finder
799             */
800            public UserFinder getUserFinder() {
801                    return userFinder;
802            }
803    
804            /**
805             * Sets the user finder.
806             *
807             * @param userFinder the user finder
808             */
809            public void setUserFinder(UserFinder userFinder) {
810                    this.userFinder = userFinder;
811            }
812    
813            /**
814             * Returns the asset entry local service.
815             *
816             * @return the asset entry local service
817             */
818            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
819                    return assetEntryLocalService;
820            }
821    
822            /**
823             * Sets the asset entry local service.
824             *
825             * @param assetEntryLocalService the asset entry local service
826             */
827            public void setAssetEntryLocalService(
828                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
829                    this.assetEntryLocalService = assetEntryLocalService;
830            }
831    
832            /**
833             * Returns the asset entry remote service.
834             *
835             * @return the asset entry remote service
836             */
837            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
838                    return assetEntryService;
839            }
840    
841            /**
842             * Sets the asset entry remote service.
843             *
844             * @param assetEntryService the asset entry remote service
845             */
846            public void setAssetEntryService(
847                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
848                    this.assetEntryService = assetEntryService;
849            }
850    
851            /**
852             * Returns the asset entry persistence.
853             *
854             * @return the asset entry persistence
855             */
856            public AssetEntryPersistence getAssetEntryPersistence() {
857                    return assetEntryPersistence;
858            }
859    
860            /**
861             * Sets the asset entry persistence.
862             *
863             * @param assetEntryPersistence the asset entry persistence
864             */
865            public void setAssetEntryPersistence(
866                    AssetEntryPersistence assetEntryPersistence) {
867                    this.assetEntryPersistence = assetEntryPersistence;
868            }
869    
870            /**
871             * Returns the asset entry finder.
872             *
873             * @return the asset entry finder
874             */
875            public AssetEntryFinder getAssetEntryFinder() {
876                    return assetEntryFinder;
877            }
878    
879            /**
880             * Sets the asset entry finder.
881             *
882             * @param assetEntryFinder the asset entry finder
883             */
884            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
885                    this.assetEntryFinder = assetEntryFinder;
886            }
887    
888            /**
889             * Returns the asset link local service.
890             *
891             * @return the asset link local service
892             */
893            public com.liferay.portlet.asset.service.AssetLinkLocalService getAssetLinkLocalService() {
894                    return assetLinkLocalService;
895            }
896    
897            /**
898             * Sets the asset link local service.
899             *
900             * @param assetLinkLocalService the asset link local service
901             */
902            public void setAssetLinkLocalService(
903                    com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService) {
904                    this.assetLinkLocalService = assetLinkLocalService;
905            }
906    
907            /**
908             * Returns the asset link persistence.
909             *
910             * @return the asset link persistence
911             */
912            public AssetLinkPersistence getAssetLinkPersistence() {
913                    return assetLinkPersistence;
914            }
915    
916            /**
917             * Sets the asset link persistence.
918             *
919             * @param assetLinkPersistence the asset link persistence
920             */
921            public void setAssetLinkPersistence(
922                    AssetLinkPersistence assetLinkPersistence) {
923                    this.assetLinkPersistence = assetLinkPersistence;
924            }
925    
926            /**
927             * Returns the asset tag local service.
928             *
929             * @return the asset tag local service
930             */
931            public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
932                    return assetTagLocalService;
933            }
934    
935            /**
936             * Sets the asset tag local service.
937             *
938             * @param assetTagLocalService the asset tag local service
939             */
940            public void setAssetTagLocalService(
941                    com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
942                    this.assetTagLocalService = assetTagLocalService;
943            }
944    
945            /**
946             * Returns the asset tag remote service.
947             *
948             * @return the asset tag remote service
949             */
950            public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
951                    return assetTagService;
952            }
953    
954            /**
955             * Sets the asset tag remote service.
956             *
957             * @param assetTagService the asset tag remote service
958             */
959            public void setAssetTagService(
960                    com.liferay.portlet.asset.service.AssetTagService assetTagService) {
961                    this.assetTagService = assetTagService;
962            }
963    
964            /**
965             * Returns the asset tag persistence.
966             *
967             * @return the asset tag persistence
968             */
969            public AssetTagPersistence getAssetTagPersistence() {
970                    return assetTagPersistence;
971            }
972    
973            /**
974             * Sets the asset tag persistence.
975             *
976             * @param assetTagPersistence the asset tag persistence
977             */
978            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
979                    this.assetTagPersistence = assetTagPersistence;
980            }
981    
982            /**
983             * Returns the asset tag finder.
984             *
985             * @return the asset tag finder
986             */
987            public AssetTagFinder getAssetTagFinder() {
988                    return assetTagFinder;
989            }
990    
991            /**
992             * Sets the asset tag finder.
993             *
994             * @param assetTagFinder the asset tag finder
995             */
996            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
997                    this.assetTagFinder = assetTagFinder;
998            }
999    
1000            /**
1001             * Returns the expando row local service.
1002             *
1003             * @return the expando row local service
1004             */
1005            public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
1006                    return expandoRowLocalService;
1007            }
1008    
1009            /**
1010             * Sets the expando row local service.
1011             *
1012             * @param expandoRowLocalService the expando row local service
1013             */
1014            public void setExpandoRowLocalService(
1015                    com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
1016                    this.expandoRowLocalService = expandoRowLocalService;
1017            }
1018    
1019            /**
1020             * Returns the expando row persistence.
1021             *
1022             * @return the expando row persistence
1023             */
1024            public ExpandoRowPersistence getExpandoRowPersistence() {
1025                    return expandoRowPersistence;
1026            }
1027    
1028            /**
1029             * Sets the expando row persistence.
1030             *
1031             * @param expandoRowPersistence the expando row persistence
1032             */
1033            public void setExpandoRowPersistence(
1034                    ExpandoRowPersistence expandoRowPersistence) {
1035                    this.expandoRowPersistence = expandoRowPersistence;
1036            }
1037    
1038            /**
1039             * Returns the social activity local service.
1040             *
1041             * @return the social activity local service
1042             */
1043            public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
1044                    return socialActivityLocalService;
1045            }
1046    
1047            /**
1048             * Sets the social activity local service.
1049             *
1050             * @param socialActivityLocalService the social activity local service
1051             */
1052            public void setSocialActivityLocalService(
1053                    com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
1054                    this.socialActivityLocalService = socialActivityLocalService;
1055            }
1056    
1057            /**
1058             * Returns the social activity persistence.
1059             *
1060             * @return the social activity persistence
1061             */
1062            public SocialActivityPersistence getSocialActivityPersistence() {
1063                    return socialActivityPersistence;
1064            }
1065    
1066            /**
1067             * Sets the social activity persistence.
1068             *
1069             * @param socialActivityPersistence the social activity persistence
1070             */
1071            public void setSocialActivityPersistence(
1072                    SocialActivityPersistence socialActivityPersistence) {
1073                    this.socialActivityPersistence = socialActivityPersistence;
1074            }
1075    
1076            /**
1077             * Returns the social activity finder.
1078             *
1079             * @return the social activity finder
1080             */
1081            public SocialActivityFinder getSocialActivityFinder() {
1082                    return socialActivityFinder;
1083            }
1084    
1085            /**
1086             * Sets the social activity finder.
1087             *
1088             * @param socialActivityFinder the social activity finder
1089             */
1090            public void setSocialActivityFinder(
1091                    SocialActivityFinder socialActivityFinder) {
1092                    this.socialActivityFinder = socialActivityFinder;
1093            }
1094    
1095            /**
1096             * Returns the trash entry local service.
1097             *
1098             * @return the trash entry local service
1099             */
1100            public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
1101                    return trashEntryLocalService;
1102            }
1103    
1104            /**
1105             * Sets the trash entry local service.
1106             *
1107             * @param trashEntryLocalService the trash entry local service
1108             */
1109            public void setTrashEntryLocalService(
1110                    com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
1111                    this.trashEntryLocalService = trashEntryLocalService;
1112            }
1113    
1114            /**
1115             * Returns the trash entry remote service.
1116             *
1117             * @return the trash entry remote service
1118             */
1119            public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
1120                    return trashEntryService;
1121            }
1122    
1123            /**
1124             * Sets the trash entry remote service.
1125             *
1126             * @param trashEntryService the trash entry remote service
1127             */
1128            public void setTrashEntryService(
1129                    com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
1130                    this.trashEntryService = trashEntryService;
1131            }
1132    
1133            /**
1134             * Returns the trash entry persistence.
1135             *
1136             * @return the trash entry persistence
1137             */
1138            public TrashEntryPersistence getTrashEntryPersistence() {
1139                    return trashEntryPersistence;
1140            }
1141    
1142            /**
1143             * Sets the trash entry persistence.
1144             *
1145             * @param trashEntryPersistence the trash entry persistence
1146             */
1147            public void setTrashEntryPersistence(
1148                    TrashEntryPersistence trashEntryPersistence) {
1149                    this.trashEntryPersistence = trashEntryPersistence;
1150            }
1151    
1152            public void afterPropertiesSet() {
1153                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.bookmarks.model.BookmarksEntry",
1154                            bookmarksEntryLocalService);
1155            }
1156    
1157            public void destroy() {
1158                    persistedModelLocalServiceRegistry.unregister(
1159                            "com.liferay.portlet.bookmarks.model.BookmarksEntry");
1160            }
1161    
1162            /**
1163             * Returns the Spring bean ID for this bean.
1164             *
1165             * @return the Spring bean ID for this bean
1166             */
1167            @Override
1168            public String getBeanIdentifier() {
1169                    return _beanIdentifier;
1170            }
1171    
1172            /**
1173             * Sets the Spring bean ID for this bean.
1174             *
1175             * @param beanIdentifier the Spring bean ID for this bean
1176             */
1177            @Override
1178            public void setBeanIdentifier(String beanIdentifier) {
1179                    _beanIdentifier = beanIdentifier;
1180            }
1181    
1182            protected Class<?> getModelClass() {
1183                    return BookmarksEntry.class;
1184            }
1185    
1186            protected String getModelClassName() {
1187                    return BookmarksEntry.class.getName();
1188            }
1189    
1190            /**
1191             * Performs an SQL query.
1192             *
1193             * @param sql the sql query
1194             */
1195            protected void runSQL(String sql) throws SystemException {
1196                    try {
1197                            DataSource dataSource = bookmarksEntryPersistence.getDataSource();
1198    
1199                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1200                                            sql, new int[0]);
1201    
1202                            sqlUpdate.update();
1203                    }
1204                    catch (Exception e) {
1205                            throw new SystemException(e);
1206                    }
1207            }
1208    
1209            @BeanReference(type = com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService.class)
1210            protected com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService bookmarksEntryLocalService;
1211            @BeanReference(type = com.liferay.portlet.bookmarks.service.BookmarksEntryService.class)
1212            protected com.liferay.portlet.bookmarks.service.BookmarksEntryService bookmarksEntryService;
1213            @BeanReference(type = BookmarksEntryPersistence.class)
1214            protected BookmarksEntryPersistence bookmarksEntryPersistence;
1215            @BeanReference(type = BookmarksEntryFinder.class)
1216            protected BookmarksEntryFinder bookmarksEntryFinder;
1217            @BeanReference(type = com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService.class)
1218            protected com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService bookmarksFolderLocalService;
1219            @BeanReference(type = com.liferay.portlet.bookmarks.service.BookmarksFolderService.class)
1220            protected com.liferay.portlet.bookmarks.service.BookmarksFolderService bookmarksFolderService;
1221            @BeanReference(type = BookmarksFolderPersistence.class)
1222            protected BookmarksFolderPersistence bookmarksFolderPersistence;
1223            @BeanReference(type = BookmarksFolderFinder.class)
1224            protected BookmarksFolderFinder bookmarksFolderFinder;
1225            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1226            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1227            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1228            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1229            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1230            protected com.liferay.portal.service.GroupService groupService;
1231            @BeanReference(type = GroupPersistence.class)
1232            protected GroupPersistence groupPersistence;
1233            @BeanReference(type = GroupFinder.class)
1234            protected GroupFinder groupFinder;
1235            @BeanReference(type = com.liferay.portal.service.PortletPreferencesLocalService.class)
1236            protected com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService;
1237            @BeanReference(type = com.liferay.portal.service.PortletPreferencesService.class)
1238            protected com.liferay.portal.service.PortletPreferencesService portletPreferencesService;
1239            @BeanReference(type = PortletPreferencesPersistence.class)
1240            protected PortletPreferencesPersistence portletPreferencesPersistence;
1241            @BeanReference(type = PortletPreferencesFinder.class)
1242            protected PortletPreferencesFinder portletPreferencesFinder;
1243            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1244            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1245            @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1246            protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1247            @BeanReference(type = SubscriptionPersistence.class)
1248            protected SubscriptionPersistence subscriptionPersistence;
1249            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1250            protected com.liferay.portal.service.UserLocalService userLocalService;
1251            @BeanReference(type = com.liferay.portal.service.UserService.class)
1252            protected com.liferay.portal.service.UserService userService;
1253            @BeanReference(type = UserPersistence.class)
1254            protected UserPersistence userPersistence;
1255            @BeanReference(type = UserFinder.class)
1256            protected UserFinder userFinder;
1257            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1258            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1259            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1260            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1261            @BeanReference(type = AssetEntryPersistence.class)
1262            protected AssetEntryPersistence assetEntryPersistence;
1263            @BeanReference(type = AssetEntryFinder.class)
1264            protected AssetEntryFinder assetEntryFinder;
1265            @BeanReference(type = com.liferay.portlet.asset.service.AssetLinkLocalService.class)
1266            protected com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService;
1267            @BeanReference(type = AssetLinkPersistence.class)
1268            protected AssetLinkPersistence assetLinkPersistence;
1269            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1270            protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1271            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
1272            protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
1273            @BeanReference(type = AssetTagPersistence.class)
1274            protected AssetTagPersistence assetTagPersistence;
1275            @BeanReference(type = AssetTagFinder.class)
1276            protected AssetTagFinder assetTagFinder;
1277            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1278            protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1279            @BeanReference(type = ExpandoRowPersistence.class)
1280            protected ExpandoRowPersistence expandoRowPersistence;
1281            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1282            protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1283            @BeanReference(type = SocialActivityPersistence.class)
1284            protected SocialActivityPersistence socialActivityPersistence;
1285            @BeanReference(type = SocialActivityFinder.class)
1286            protected SocialActivityFinder socialActivityFinder;
1287            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1288            protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1289            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1290            protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1291            @BeanReference(type = TrashEntryPersistence.class)
1292            protected TrashEntryPersistence trashEntryPersistence;
1293            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1294            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1295            private String _beanIdentifier;
1296    }