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