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.tags.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.tags.service.TagsAssetLocalService;
35  import com.liferay.portlet.tags.service.TagsAssetService;
36  import com.liferay.portlet.tags.service.TagsEntryLocalService;
37  import com.liferay.portlet.tags.service.TagsEntryService;
38  import com.liferay.portlet.tags.service.TagsPropertyLocalService;
39  import com.liferay.portlet.tags.service.TagsPropertyService;
40  import com.liferay.portlet.tags.service.TagsSourceLocalService;
41  import com.liferay.portlet.tags.service.TagsSourceService;
42  import com.liferay.portlet.tags.service.TagsVocabularyLocalService;
43  import com.liferay.portlet.tags.service.TagsVocabularyService;
44  import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
45  import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
46  import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
47  import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
48  import com.liferay.portlet.tags.service.persistence.TagsPropertyFinder;
49  import com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder;
50  import com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence;
51  import com.liferay.portlet.tags.service.persistence.TagsSourcePersistence;
52  import com.liferay.portlet.tags.service.persistence.TagsVocabularyPersistence;
53  
54  import javax.sql.DataSource;
55  
56  /**
57   * <a href="TagsVocabularyServiceBaseImpl.java.html"><b><i>View Source</i></b>
58   * </a>
59   *
60   * @author Brian Wing Shun Chan
61   */
62  public abstract class TagsVocabularyServiceBaseImpl extends PrincipalBean
63      implements TagsVocabularyService {
64      public TagsAssetLocalService getTagsAssetLocalService() {
65          return tagsAssetLocalService;
66      }
67  
68      public void setTagsAssetLocalService(
69          TagsAssetLocalService tagsAssetLocalService) {
70          this.tagsAssetLocalService = tagsAssetLocalService;
71      }
72  
73      public TagsAssetService getTagsAssetService() {
74          return tagsAssetService;
75      }
76  
77      public void setTagsAssetService(TagsAssetService tagsAssetService) {
78          this.tagsAssetService = tagsAssetService;
79      }
80  
81      public TagsAssetPersistence getTagsAssetPersistence() {
82          return tagsAssetPersistence;
83      }
84  
85      public void setTagsAssetPersistence(
86          TagsAssetPersistence tagsAssetPersistence) {
87          this.tagsAssetPersistence = tagsAssetPersistence;
88      }
89  
90      public TagsAssetFinder getTagsAssetFinder() {
91          return tagsAssetFinder;
92      }
93  
94      public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
95          this.tagsAssetFinder = tagsAssetFinder;
96      }
97  
98      public TagsEntryLocalService getTagsEntryLocalService() {
99          return tagsEntryLocalService;
100     }
101 
102     public void setTagsEntryLocalService(
103         TagsEntryLocalService tagsEntryLocalService) {
104         this.tagsEntryLocalService = tagsEntryLocalService;
105     }
106 
107     public TagsEntryService getTagsEntryService() {
108         return tagsEntryService;
109     }
110 
111     public void setTagsEntryService(TagsEntryService tagsEntryService) {
112         this.tagsEntryService = tagsEntryService;
113     }
114 
115     public TagsEntryPersistence getTagsEntryPersistence() {
116         return tagsEntryPersistence;
117     }
118 
119     public void setTagsEntryPersistence(
120         TagsEntryPersistence tagsEntryPersistence) {
121         this.tagsEntryPersistence = tagsEntryPersistence;
122     }
123 
124     public TagsEntryFinder getTagsEntryFinder() {
125         return tagsEntryFinder;
126     }
127 
128     public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
129         this.tagsEntryFinder = tagsEntryFinder;
130     }
131 
132     public TagsPropertyLocalService getTagsPropertyLocalService() {
133         return tagsPropertyLocalService;
134     }
135 
136     public void setTagsPropertyLocalService(
137         TagsPropertyLocalService tagsPropertyLocalService) {
138         this.tagsPropertyLocalService = tagsPropertyLocalService;
139     }
140 
141     public TagsPropertyService getTagsPropertyService() {
142         return tagsPropertyService;
143     }
144 
145     public void setTagsPropertyService(TagsPropertyService tagsPropertyService) {
146         this.tagsPropertyService = tagsPropertyService;
147     }
148 
149     public TagsPropertyPersistence getTagsPropertyPersistence() {
150         return tagsPropertyPersistence;
151     }
152 
153     public void setTagsPropertyPersistence(
154         TagsPropertyPersistence tagsPropertyPersistence) {
155         this.tagsPropertyPersistence = tagsPropertyPersistence;
156     }
157 
158     public TagsPropertyFinder getTagsPropertyFinder() {
159         return tagsPropertyFinder;
160     }
161 
162     public void setTagsPropertyFinder(TagsPropertyFinder tagsPropertyFinder) {
163         this.tagsPropertyFinder = tagsPropertyFinder;
164     }
165 
166     public TagsPropertyKeyFinder getTagsPropertyKeyFinder() {
167         return tagsPropertyKeyFinder;
168     }
169 
170     public void setTagsPropertyKeyFinder(
171         TagsPropertyKeyFinder tagsPropertyKeyFinder) {
172         this.tagsPropertyKeyFinder = tagsPropertyKeyFinder;
173     }
174 
175     public TagsSourceLocalService getTagsSourceLocalService() {
176         return tagsSourceLocalService;
177     }
178 
179     public void setTagsSourceLocalService(
180         TagsSourceLocalService tagsSourceLocalService) {
181         this.tagsSourceLocalService = tagsSourceLocalService;
182     }
183 
184     public TagsSourceService getTagsSourceService() {
185         return tagsSourceService;
186     }
187 
188     public void setTagsSourceService(TagsSourceService tagsSourceService) {
189         this.tagsSourceService = tagsSourceService;
190     }
191 
192     public TagsSourcePersistence getTagsSourcePersistence() {
193         return tagsSourcePersistence;
194     }
195 
196     public void setTagsSourcePersistence(
197         TagsSourcePersistence tagsSourcePersistence) {
198         this.tagsSourcePersistence = tagsSourcePersistence;
199     }
200 
201     public TagsVocabularyLocalService getTagsVocabularyLocalService() {
202         return tagsVocabularyLocalService;
203     }
204 
205     public void setTagsVocabularyLocalService(
206         TagsVocabularyLocalService tagsVocabularyLocalService) {
207         this.tagsVocabularyLocalService = tagsVocabularyLocalService;
208     }
209 
210     public TagsVocabularyService getTagsVocabularyService() {
211         return tagsVocabularyService;
212     }
213 
214     public void setTagsVocabularyService(
215         TagsVocabularyService tagsVocabularyService) {
216         this.tagsVocabularyService = tagsVocabularyService;
217     }
218 
219     public TagsVocabularyPersistence getTagsVocabularyPersistence() {
220         return tagsVocabularyPersistence;
221     }
222 
223     public void setTagsVocabularyPersistence(
224         TagsVocabularyPersistence tagsVocabularyPersistence) {
225         this.tagsVocabularyPersistence = tagsVocabularyPersistence;
226     }
227 
228     public CounterLocalService getCounterLocalService() {
229         return counterLocalService;
230     }
231 
232     public void setCounterLocalService(CounterLocalService counterLocalService) {
233         this.counterLocalService = counterLocalService;
234     }
235 
236     public CounterService getCounterService() {
237         return counterService;
238     }
239 
240     public void setCounterService(CounterService counterService) {
241         this.counterService = counterService;
242     }
243 
244     public ResourceLocalService getResourceLocalService() {
245         return resourceLocalService;
246     }
247 
248     public void setResourceLocalService(
249         ResourceLocalService resourceLocalService) {
250         this.resourceLocalService = resourceLocalService;
251     }
252 
253     public ResourceService getResourceService() {
254         return resourceService;
255     }
256 
257     public void setResourceService(ResourceService resourceService) {
258         this.resourceService = resourceService;
259     }
260 
261     public ResourcePersistence getResourcePersistence() {
262         return resourcePersistence;
263     }
264 
265     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
266         this.resourcePersistence = resourcePersistence;
267     }
268 
269     public ResourceFinder getResourceFinder() {
270         return resourceFinder;
271     }
272 
273     public void setResourceFinder(ResourceFinder resourceFinder) {
274         this.resourceFinder = resourceFinder;
275     }
276 
277     public UserLocalService getUserLocalService() {
278         return userLocalService;
279     }
280 
281     public void setUserLocalService(UserLocalService userLocalService) {
282         this.userLocalService = userLocalService;
283     }
284 
285     public UserService getUserService() {
286         return userService;
287     }
288 
289     public void setUserService(UserService userService) {
290         this.userService = userService;
291     }
292 
293     public UserPersistence getUserPersistence() {
294         return userPersistence;
295     }
296 
297     public void setUserPersistence(UserPersistence userPersistence) {
298         this.userPersistence = userPersistence;
299     }
300 
301     public UserFinder getUserFinder() {
302         return userFinder;
303     }
304 
305     public void setUserFinder(UserFinder userFinder) {
306         this.userFinder = userFinder;
307     }
308 
309     protected void runSQL(String sql) throws SystemException {
310         try {
311             DataSource dataSource = tagsVocabularyPersistence.getDataSource();
312 
313             SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
314                     sql, new int[0]);
315 
316             sqlUpdate.update(new Object[0]);
317         }
318         catch (Exception e) {
319             throw new SystemException(e);
320         }
321     }
322 
323     @BeanReference(type = TagsAssetLocalService.class)
324     protected TagsAssetLocalService tagsAssetLocalService;
325     @BeanReference(type = TagsAssetService.class)
326     protected TagsAssetService tagsAssetService;
327     @BeanReference(type = TagsAssetPersistence.class)
328     protected TagsAssetPersistence tagsAssetPersistence;
329     @BeanReference(type = TagsAssetFinder.class)
330     protected TagsAssetFinder tagsAssetFinder;
331     @BeanReference(type = TagsEntryLocalService.class)
332     protected TagsEntryLocalService tagsEntryLocalService;
333     @BeanReference(type = TagsEntryService.class)
334     protected TagsEntryService tagsEntryService;
335     @BeanReference(type = TagsEntryPersistence.class)
336     protected TagsEntryPersistence tagsEntryPersistence;
337     @BeanReference(type = TagsEntryFinder.class)
338     protected TagsEntryFinder tagsEntryFinder;
339     @BeanReference(type = TagsPropertyLocalService.class)
340     protected TagsPropertyLocalService tagsPropertyLocalService;
341     @BeanReference(type = TagsPropertyService.class)
342     protected TagsPropertyService tagsPropertyService;
343     @BeanReference(type = TagsPropertyPersistence.class)
344     protected TagsPropertyPersistence tagsPropertyPersistence;
345     @BeanReference(type = TagsPropertyFinder.class)
346     protected TagsPropertyFinder tagsPropertyFinder;
347     @BeanReference(type = TagsPropertyKeyFinder.class)
348     protected TagsPropertyKeyFinder tagsPropertyKeyFinder;
349     @BeanReference(type = TagsSourceLocalService.class)
350     protected TagsSourceLocalService tagsSourceLocalService;
351     @BeanReference(type = TagsSourceService.class)
352     protected TagsSourceService tagsSourceService;
353     @BeanReference(type = TagsSourcePersistence.class)
354     protected TagsSourcePersistence tagsSourcePersistence;
355     @BeanReference(type = TagsVocabularyLocalService.class)
356     protected TagsVocabularyLocalService tagsVocabularyLocalService;
357     @BeanReference(type = TagsVocabularyService.class)
358     protected TagsVocabularyService tagsVocabularyService;
359     @BeanReference(type = TagsVocabularyPersistence.class)
360     protected TagsVocabularyPersistence tagsVocabularyPersistence;
361     @BeanReference(type = CounterLocalService.class)
362     protected CounterLocalService counterLocalService;
363     @BeanReference(type = CounterService.class)
364     protected CounterService counterService;
365     @BeanReference(type = ResourceLocalService.class)
366     protected ResourceLocalService resourceLocalService;
367     @BeanReference(type = ResourceService.class)
368     protected ResourceService resourceService;
369     @BeanReference(type = ResourcePersistence.class)
370     protected ResourcePersistence resourcePersistence;
371     @BeanReference(type = ResourceFinder.class)
372     protected ResourceFinder resourceFinder;
373     @BeanReference(type = UserLocalService.class)
374     protected UserLocalService userLocalService;
375     @BeanReference(type = UserService.class)
376     protected UserService userService;
377     @BeanReference(type = UserPersistence.class)
378     protected UserPersistence userPersistence;
379     @BeanReference(type = UserFinder.class)
380     protected UserFinder userFinder;
381 }