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