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