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