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