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