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