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