1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.bookmarks.service.base;
16  
17  import com.liferay.counter.service.CounterLocalService;
18  
19  import com.liferay.portal.kernel.annotation.BeanReference;
20  import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
21  import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
22  import com.liferay.portal.kernel.exception.SystemException;
23  import com.liferay.portal.service.ResourceLocalService;
24  import com.liferay.portal.service.ResourceService;
25  import com.liferay.portal.service.UserLocalService;
26  import com.liferay.portal.service.UserService;
27  import com.liferay.portal.service.base.PrincipalBean;
28  import com.liferay.portal.service.persistence.ResourceFinder;
29  import com.liferay.portal.service.persistence.ResourcePersistence;
30  import com.liferay.portal.service.persistence.UserFinder;
31  import com.liferay.portal.service.persistence.UserPersistence;
32  
33  import com.liferay.portlet.asset.service.AssetEntryLocalService;
34  import com.liferay.portlet.asset.service.AssetEntryService;
35  import com.liferay.portlet.asset.service.AssetTagLocalService;
36  import com.liferay.portlet.asset.service.AssetTagService;
37  import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
38  import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
39  import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
40  import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
41  import com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService;
42  import com.liferay.portlet.bookmarks.service.BookmarksEntryService;
43  import com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService;
44  import com.liferay.portlet.bookmarks.service.BookmarksFolderService;
45  import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder;
46  import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence;
47  import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence;
48  import com.liferay.portlet.expando.service.ExpandoValueLocalService;
49  import com.liferay.portlet.expando.service.ExpandoValueService;
50  import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
51  
52  import javax.sql.DataSource;
53  
54  /**
55   * <a href="BookmarksEntryServiceBaseImpl.java.html"><b><i>View Source</i></b>
56   * </a>
57   *
58   * @author Brian Wing Shun Chan
59   */
60  public abstract class BookmarksEntryServiceBaseImpl extends PrincipalBean
61      implements BookmarksEntryService {
62      public BookmarksEntryLocalService getBookmarksEntryLocalService() {
63          return bookmarksEntryLocalService;
64      }
65  
66      public void setBookmarksEntryLocalService(
67          BookmarksEntryLocalService bookmarksEntryLocalService) {
68          this.bookmarksEntryLocalService = bookmarksEntryLocalService;
69      }
70  
71      public BookmarksEntryService getBookmarksEntryService() {
72          return bookmarksEntryService;
73      }
74  
75      public void setBookmarksEntryService(
76          BookmarksEntryService bookmarksEntryService) {
77          this.bookmarksEntryService = bookmarksEntryService;
78      }
79  
80      public BookmarksEntryPersistence getBookmarksEntryPersistence() {
81          return bookmarksEntryPersistence;
82      }
83  
84      public void setBookmarksEntryPersistence(
85          BookmarksEntryPersistence bookmarksEntryPersistence) {
86          this.bookmarksEntryPersistence = bookmarksEntryPersistence;
87      }
88  
89      public BookmarksEntryFinder getBookmarksEntryFinder() {
90          return bookmarksEntryFinder;
91      }
92  
93      public void setBookmarksEntryFinder(
94          BookmarksEntryFinder bookmarksEntryFinder) {
95          this.bookmarksEntryFinder = bookmarksEntryFinder;
96      }
97  
98      public BookmarksFolderLocalService getBookmarksFolderLocalService() {
99          return bookmarksFolderLocalService;
100     }
101 
102     public void setBookmarksFolderLocalService(
103         BookmarksFolderLocalService bookmarksFolderLocalService) {
104         this.bookmarksFolderLocalService = bookmarksFolderLocalService;
105     }
106 
107     public BookmarksFolderService getBookmarksFolderService() {
108         return bookmarksFolderService;
109     }
110 
111     public void setBookmarksFolderService(
112         BookmarksFolderService bookmarksFolderService) {
113         this.bookmarksFolderService = bookmarksFolderService;
114     }
115 
116     public BookmarksFolderPersistence getBookmarksFolderPersistence() {
117         return bookmarksFolderPersistence;
118     }
119 
120     public void setBookmarksFolderPersistence(
121         BookmarksFolderPersistence bookmarksFolderPersistence) {
122         this.bookmarksFolderPersistence = bookmarksFolderPersistence;
123     }
124 
125     public CounterLocalService getCounterLocalService() {
126         return counterLocalService;
127     }
128 
129     public void setCounterLocalService(CounterLocalService counterLocalService) {
130         this.counterLocalService = counterLocalService;
131     }
132 
133     public ResourceLocalService getResourceLocalService() {
134         return resourceLocalService;
135     }
136 
137     public void setResourceLocalService(
138         ResourceLocalService resourceLocalService) {
139         this.resourceLocalService = resourceLocalService;
140     }
141 
142     public ResourceService getResourceService() {
143         return resourceService;
144     }
145 
146     public void setResourceService(ResourceService resourceService) {
147         this.resourceService = resourceService;
148     }
149 
150     public ResourcePersistence getResourcePersistence() {
151         return resourcePersistence;
152     }
153 
154     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
155         this.resourcePersistence = resourcePersistence;
156     }
157 
158     public ResourceFinder getResourceFinder() {
159         return resourceFinder;
160     }
161 
162     public void setResourceFinder(ResourceFinder resourceFinder) {
163         this.resourceFinder = resourceFinder;
164     }
165 
166     public UserLocalService getUserLocalService() {
167         return userLocalService;
168     }
169 
170     public void setUserLocalService(UserLocalService userLocalService) {
171         this.userLocalService = userLocalService;
172     }
173 
174     public UserService getUserService() {
175         return userService;
176     }
177 
178     public void setUserService(UserService userService) {
179         this.userService = userService;
180     }
181 
182     public UserPersistence getUserPersistence() {
183         return userPersistence;
184     }
185 
186     public void setUserPersistence(UserPersistence userPersistence) {
187         this.userPersistence = userPersistence;
188     }
189 
190     public UserFinder getUserFinder() {
191         return userFinder;
192     }
193 
194     public void setUserFinder(UserFinder userFinder) {
195         this.userFinder = userFinder;
196     }
197 
198     public AssetEntryLocalService getAssetEntryLocalService() {
199         return assetEntryLocalService;
200     }
201 
202     public void setAssetEntryLocalService(
203         AssetEntryLocalService assetEntryLocalService) {
204         this.assetEntryLocalService = assetEntryLocalService;
205     }
206 
207     public AssetEntryService getAssetEntryService() {
208         return assetEntryService;
209     }
210 
211     public void setAssetEntryService(AssetEntryService assetEntryService) {
212         this.assetEntryService = assetEntryService;
213     }
214 
215     public AssetEntryPersistence getAssetEntryPersistence() {
216         return assetEntryPersistence;
217     }
218 
219     public void setAssetEntryPersistence(
220         AssetEntryPersistence assetEntryPersistence) {
221         this.assetEntryPersistence = assetEntryPersistence;
222     }
223 
224     public AssetEntryFinder getAssetEntryFinder() {
225         return assetEntryFinder;
226     }
227 
228     public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
229         this.assetEntryFinder = assetEntryFinder;
230     }
231 
232     public AssetTagLocalService getAssetTagLocalService() {
233         return assetTagLocalService;
234     }
235 
236     public void setAssetTagLocalService(
237         AssetTagLocalService assetTagLocalService) {
238         this.assetTagLocalService = assetTagLocalService;
239     }
240 
241     public AssetTagService getAssetTagService() {
242         return assetTagService;
243     }
244 
245     public void setAssetTagService(AssetTagService assetTagService) {
246         this.assetTagService = assetTagService;
247     }
248 
249     public AssetTagPersistence getAssetTagPersistence() {
250         return assetTagPersistence;
251     }
252 
253     public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
254         this.assetTagPersistence = assetTagPersistence;
255     }
256 
257     public AssetTagFinder getAssetTagFinder() {
258         return assetTagFinder;
259     }
260 
261     public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
262         this.assetTagFinder = assetTagFinder;
263     }
264 
265     public ExpandoValueLocalService getExpandoValueLocalService() {
266         return expandoValueLocalService;
267     }
268 
269     public void setExpandoValueLocalService(
270         ExpandoValueLocalService expandoValueLocalService) {
271         this.expandoValueLocalService = expandoValueLocalService;
272     }
273 
274     public ExpandoValueService getExpandoValueService() {
275         return expandoValueService;
276     }
277 
278     public void setExpandoValueService(ExpandoValueService expandoValueService) {
279         this.expandoValueService = expandoValueService;
280     }
281 
282     public ExpandoValuePersistence getExpandoValuePersistence() {
283         return expandoValuePersistence;
284     }
285 
286     public void setExpandoValuePersistence(
287         ExpandoValuePersistence expandoValuePersistence) {
288         this.expandoValuePersistence = expandoValuePersistence;
289     }
290 
291     protected void runSQL(String sql) throws SystemException {
292         try {
293             DataSource dataSource = bookmarksEntryPersistence.getDataSource();
294 
295             SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
296                     sql, new int[0]);
297 
298             sqlUpdate.update();
299         }
300         catch (Exception e) {
301             throw new SystemException(e);
302         }
303     }
304 
305     @BeanReference(type = BookmarksEntryLocalService.class)
306     protected BookmarksEntryLocalService bookmarksEntryLocalService;
307     @BeanReference(type = BookmarksEntryService.class)
308     protected BookmarksEntryService bookmarksEntryService;
309     @BeanReference(type = BookmarksEntryPersistence.class)
310     protected BookmarksEntryPersistence bookmarksEntryPersistence;
311     @BeanReference(type = BookmarksEntryFinder.class)
312     protected BookmarksEntryFinder bookmarksEntryFinder;
313     @BeanReference(type = BookmarksFolderLocalService.class)
314     protected BookmarksFolderLocalService bookmarksFolderLocalService;
315     @BeanReference(type = BookmarksFolderService.class)
316     protected BookmarksFolderService bookmarksFolderService;
317     @BeanReference(type = BookmarksFolderPersistence.class)
318     protected BookmarksFolderPersistence bookmarksFolderPersistence;
319     @BeanReference(type = CounterLocalService.class)
320     protected CounterLocalService counterLocalService;
321     @BeanReference(type = ResourceLocalService.class)
322     protected ResourceLocalService resourceLocalService;
323     @BeanReference(type = ResourceService.class)
324     protected ResourceService resourceService;
325     @BeanReference(type = ResourcePersistence.class)
326     protected ResourcePersistence resourcePersistence;
327     @BeanReference(type = ResourceFinder.class)
328     protected ResourceFinder resourceFinder;
329     @BeanReference(type = UserLocalService.class)
330     protected UserLocalService userLocalService;
331     @BeanReference(type = UserService.class)
332     protected UserService userService;
333     @BeanReference(type = UserPersistence.class)
334     protected UserPersistence userPersistence;
335     @BeanReference(type = UserFinder.class)
336     protected UserFinder userFinder;
337     @BeanReference(type = AssetEntryLocalService.class)
338     protected AssetEntryLocalService assetEntryLocalService;
339     @BeanReference(type = AssetEntryService.class)
340     protected AssetEntryService assetEntryService;
341     @BeanReference(type = AssetEntryPersistence.class)
342     protected AssetEntryPersistence assetEntryPersistence;
343     @BeanReference(type = AssetEntryFinder.class)
344     protected AssetEntryFinder assetEntryFinder;
345     @BeanReference(type = AssetTagLocalService.class)
346     protected AssetTagLocalService assetTagLocalService;
347     @BeanReference(type = AssetTagService.class)
348     protected AssetTagService assetTagService;
349     @BeanReference(type = AssetTagPersistence.class)
350     protected AssetTagPersistence assetTagPersistence;
351     @BeanReference(type = AssetTagFinder.class)
352     protected AssetTagFinder assetTagFinder;
353     @BeanReference(type = ExpandoValueLocalService.class)
354     protected ExpandoValueLocalService expandoValueLocalService;
355     @BeanReference(type = ExpandoValueService.class)
356     protected ExpandoValueService expandoValueService;
357     @BeanReference(type = ExpandoValuePersistence.class)
358     protected ExpandoValuePersistence expandoValuePersistence;
359 }