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