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