1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.bookmarks.service.base;
16  
17  import com.liferay.counter.service.CounterLocalService;
18  import com.liferay.counter.service.CounterService;
19  
20  import com.liferay.portal.SystemException;
21  import com.liferay.portal.kernel.annotation.BeanReference;
22  import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
23  import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
24  import com.liferay.portal.service.ResourceLocalService;
25  import com.liferay.portal.service.ResourceService;
26  import com.liferay.portal.service.UserLocalService;
27  import com.liferay.portal.service.UserService;
28  import com.liferay.portal.service.base.PrincipalBean;
29  import com.liferay.portal.service.persistence.ResourceFinder;
30  import com.liferay.portal.service.persistence.ResourcePersistence;
31  import com.liferay.portal.service.persistence.UserFinder;
32  import com.liferay.portal.service.persistence.UserPersistence;
33  
34  import com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService;
35  import com.liferay.portlet.bookmarks.service.BookmarksEntryService;
36  import com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService;
37  import com.liferay.portlet.bookmarks.service.BookmarksFolderService;
38  import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder;
39  import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence;
40  import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence;
41  import com.liferay.portlet.expando.service.ExpandoValueLocalService;
42  import com.liferay.portlet.expando.service.ExpandoValueService;
43  import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
44  import com.liferay.portlet.tags.service.TagsAssetLocalService;
45  import com.liferay.portlet.tags.service.TagsAssetService;
46  import com.liferay.portlet.tags.service.TagsEntryLocalService;
47  import com.liferay.portlet.tags.service.TagsEntryService;
48  import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
49  import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
50  import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
51  import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
52  
53  import javax.sql.DataSource;
54  
55  /**
56   * <a href="BookmarksEntryServiceBaseImpl.java.html"><b><i>View Source</i></b>
57   * </a>
58   *
59   * @author Brian Wing Shun Chan
60   */
61  public abstract class BookmarksEntryServiceBaseImpl extends PrincipalBean
62      implements BookmarksEntryService {
63      public BookmarksEntryLocalService getBookmarksEntryLocalService() {
64          return bookmarksEntryLocalService;
65      }
66  
67      public void setBookmarksEntryLocalService(
68          BookmarksEntryLocalService bookmarksEntryLocalService) {
69          this.bookmarksEntryLocalService = bookmarksEntryLocalService;
70      }
71  
72      public BookmarksEntryService getBookmarksEntryService() {
73          return bookmarksEntryService;
74      }
75  
76      public void setBookmarksEntryService(
77          BookmarksEntryService bookmarksEntryService) {
78          this.bookmarksEntryService = bookmarksEntryService;
79      }
80  
81      public BookmarksEntryPersistence getBookmarksEntryPersistence() {
82          return bookmarksEntryPersistence;
83      }
84  
85      public void setBookmarksEntryPersistence(
86          BookmarksEntryPersistence bookmarksEntryPersistence) {
87          this.bookmarksEntryPersistence = bookmarksEntryPersistence;
88      }
89  
90      public BookmarksEntryFinder getBookmarksEntryFinder() {
91          return bookmarksEntryFinder;
92      }
93  
94      public void setBookmarksEntryFinder(
95          BookmarksEntryFinder bookmarksEntryFinder) {
96          this.bookmarksEntryFinder = bookmarksEntryFinder;
97      }
98  
99      public BookmarksFolderLocalService getBookmarksFolderLocalService() {
100         return bookmarksFolderLocalService;
101     }
102 
103     public void setBookmarksFolderLocalService(
104         BookmarksFolderLocalService bookmarksFolderLocalService) {
105         this.bookmarksFolderLocalService = bookmarksFolderLocalService;
106     }
107 
108     public BookmarksFolderService getBookmarksFolderService() {
109         return bookmarksFolderService;
110     }
111 
112     public void setBookmarksFolderService(
113         BookmarksFolderService bookmarksFolderService) {
114         this.bookmarksFolderService = bookmarksFolderService;
115     }
116 
117     public BookmarksFolderPersistence getBookmarksFolderPersistence() {
118         return bookmarksFolderPersistence;
119     }
120 
121     public void setBookmarksFolderPersistence(
122         BookmarksFolderPersistence bookmarksFolderPersistence) {
123         this.bookmarksFolderPersistence = bookmarksFolderPersistence;
124     }
125 
126     public CounterLocalService getCounterLocalService() {
127         return counterLocalService;
128     }
129 
130     public void setCounterLocalService(CounterLocalService counterLocalService) {
131         this.counterLocalService = counterLocalService;
132     }
133 
134     public CounterService getCounterService() {
135         return counterService;
136     }
137 
138     public void setCounterService(CounterService counterService) {
139         this.counterService = counterService;
140     }
141 
142     public ResourceLocalService getResourceLocalService() {
143         return resourceLocalService;
144     }
145 
146     public void setResourceLocalService(
147         ResourceLocalService resourceLocalService) {
148         this.resourceLocalService = resourceLocalService;
149     }
150 
151     public ResourceService getResourceService() {
152         return resourceService;
153     }
154 
155     public void setResourceService(ResourceService resourceService) {
156         this.resourceService = resourceService;
157     }
158 
159     public ResourcePersistence getResourcePersistence() {
160         return resourcePersistence;
161     }
162 
163     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
164         this.resourcePersistence = resourcePersistence;
165     }
166 
167     public ResourceFinder getResourceFinder() {
168         return resourceFinder;
169     }
170 
171     public void setResourceFinder(ResourceFinder resourceFinder) {
172         this.resourceFinder = resourceFinder;
173     }
174 
175     public UserLocalService getUserLocalService() {
176         return userLocalService;
177     }
178 
179     public void setUserLocalService(UserLocalService userLocalService) {
180         this.userLocalService = userLocalService;
181     }
182 
183     public UserService getUserService() {
184         return userService;
185     }
186 
187     public void setUserService(UserService userService) {
188         this.userService = userService;
189     }
190 
191     public UserPersistence getUserPersistence() {
192         return userPersistence;
193     }
194 
195     public void setUserPersistence(UserPersistence userPersistence) {
196         this.userPersistence = userPersistence;
197     }
198 
199     public UserFinder getUserFinder() {
200         return userFinder;
201     }
202 
203     public void setUserFinder(UserFinder userFinder) {
204         this.userFinder = userFinder;
205     }
206 
207     public ExpandoValueLocalService getExpandoValueLocalService() {
208         return expandoValueLocalService;
209     }
210 
211     public void setExpandoValueLocalService(
212         ExpandoValueLocalService expandoValueLocalService) {
213         this.expandoValueLocalService = expandoValueLocalService;
214     }
215 
216     public ExpandoValueService getExpandoValueService() {
217         return expandoValueService;
218     }
219 
220     public void setExpandoValueService(ExpandoValueService expandoValueService) {
221         this.expandoValueService = expandoValueService;
222     }
223 
224     public ExpandoValuePersistence getExpandoValuePersistence() {
225         return expandoValuePersistence;
226     }
227 
228     public void setExpandoValuePersistence(
229         ExpandoValuePersistence expandoValuePersistence) {
230         this.expandoValuePersistence = expandoValuePersistence;
231     }
232 
233     public TagsAssetLocalService getTagsAssetLocalService() {
234         return tagsAssetLocalService;
235     }
236 
237     public void setTagsAssetLocalService(
238         TagsAssetLocalService tagsAssetLocalService) {
239         this.tagsAssetLocalService = tagsAssetLocalService;
240     }
241 
242     public TagsAssetService getTagsAssetService() {
243         return tagsAssetService;
244     }
245 
246     public void setTagsAssetService(TagsAssetService tagsAssetService) {
247         this.tagsAssetService = tagsAssetService;
248     }
249 
250     public TagsAssetPersistence getTagsAssetPersistence() {
251         return tagsAssetPersistence;
252     }
253 
254     public void setTagsAssetPersistence(
255         TagsAssetPersistence tagsAssetPersistence) {
256         this.tagsAssetPersistence = tagsAssetPersistence;
257     }
258 
259     public TagsAssetFinder getTagsAssetFinder() {
260         return tagsAssetFinder;
261     }
262 
263     public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
264         this.tagsAssetFinder = tagsAssetFinder;
265     }
266 
267     public TagsEntryLocalService getTagsEntryLocalService() {
268         return tagsEntryLocalService;
269     }
270 
271     public void setTagsEntryLocalService(
272         TagsEntryLocalService tagsEntryLocalService) {
273         this.tagsEntryLocalService = tagsEntryLocalService;
274     }
275 
276     public TagsEntryService getTagsEntryService() {
277         return tagsEntryService;
278     }
279 
280     public void setTagsEntryService(TagsEntryService tagsEntryService) {
281         this.tagsEntryService = tagsEntryService;
282     }
283 
284     public TagsEntryPersistence getTagsEntryPersistence() {
285         return tagsEntryPersistence;
286     }
287 
288     public void setTagsEntryPersistence(
289         TagsEntryPersistence tagsEntryPersistence) {
290         this.tagsEntryPersistence = tagsEntryPersistence;
291     }
292 
293     public TagsEntryFinder getTagsEntryFinder() {
294         return tagsEntryFinder;
295     }
296 
297     public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
298         this.tagsEntryFinder = tagsEntryFinder;
299     }
300 
301     protected void runSQL(String sql) throws SystemException {
302         try {
303             DataSource dataSource = bookmarksEntryPersistence.getDataSource();
304 
305             SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
306                     sql, new int[0]);
307 
308             sqlUpdate.update(new Object[0]);
309         }
310         catch (Exception e) {
311             throw new SystemException(e);
312         }
313     }
314 
315     @BeanReference(type = BookmarksEntryLocalService.class)
316     protected BookmarksEntryLocalService bookmarksEntryLocalService;
317     @BeanReference(type = BookmarksEntryService.class)
318     protected BookmarksEntryService bookmarksEntryService;
319     @BeanReference(type = BookmarksEntryPersistence.class)
320     protected BookmarksEntryPersistence bookmarksEntryPersistence;
321     @BeanReference(type = BookmarksEntryFinder.class)
322     protected BookmarksEntryFinder bookmarksEntryFinder;
323     @BeanReference(type = BookmarksFolderLocalService.class)
324     protected BookmarksFolderLocalService bookmarksFolderLocalService;
325     @BeanReference(type = BookmarksFolderService.class)
326     protected BookmarksFolderService bookmarksFolderService;
327     @BeanReference(type = BookmarksFolderPersistence.class)
328     protected BookmarksFolderPersistence bookmarksFolderPersistence;
329     @BeanReference(type = CounterLocalService.class)
330     protected CounterLocalService counterLocalService;
331     @BeanReference(type = CounterService.class)
332     protected CounterService counterService;
333     @BeanReference(type = ResourceLocalService.class)
334     protected ResourceLocalService resourceLocalService;
335     @BeanReference(type = ResourceService.class)
336     protected ResourceService resourceService;
337     @BeanReference(type = ResourcePersistence.class)
338     protected ResourcePersistence resourcePersistence;
339     @BeanReference(type = ResourceFinder.class)
340     protected ResourceFinder resourceFinder;
341     @BeanReference(type = UserLocalService.class)
342     protected UserLocalService userLocalService;
343     @BeanReference(type = UserService.class)
344     protected UserService userService;
345     @BeanReference(type = UserPersistence.class)
346     protected UserPersistence userPersistence;
347     @BeanReference(type = UserFinder.class)
348     protected UserFinder userFinder;
349     @BeanReference(type = ExpandoValueLocalService.class)
350     protected ExpandoValueLocalService expandoValueLocalService;
351     @BeanReference(type = ExpandoValueService.class)
352     protected ExpandoValueService expandoValueService;
353     @BeanReference(type = ExpandoValuePersistence.class)
354     protected ExpandoValuePersistence expandoValuePersistence;
355     @BeanReference(type = TagsAssetLocalService.class)
356     protected TagsAssetLocalService tagsAssetLocalService;
357     @BeanReference(type = TagsAssetService.class)
358     protected TagsAssetService tagsAssetService;
359     @BeanReference(type = TagsAssetPersistence.class)
360     protected TagsAssetPersistence tagsAssetPersistence;
361     @BeanReference(type = TagsAssetFinder.class)
362     protected TagsAssetFinder tagsAssetFinder;
363     @BeanReference(type = TagsEntryLocalService.class)
364     protected TagsEntryLocalService tagsEntryLocalService;
365     @BeanReference(type = TagsEntryService.class)
366     protected TagsEntryService tagsEntryService;
367     @BeanReference(type = TagsEntryPersistence.class)
368     protected TagsEntryPersistence tagsEntryPersistence;
369     @BeanReference(type = TagsEntryFinder.class)
370     protected TagsEntryFinder tagsEntryFinder;
371 }