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.ratings.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.blogs.service.BlogsEntryLocalService;
34  import com.liferay.portlet.blogs.service.BlogsEntryService;
35  import com.liferay.portlet.blogs.service.BlogsStatsUserLocalService;
36  import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
37  import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
38  import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
39  import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
40  import com.liferay.portlet.ratings.service.RatingsEntryLocalService;
41  import com.liferay.portlet.ratings.service.RatingsEntryService;
42  import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
43  import com.liferay.portlet.ratings.service.persistence.RatingsEntryFinder;
44  import com.liferay.portlet.ratings.service.persistence.RatingsEntryPersistence;
45  import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
46  import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
47  
48  import javax.sql.DataSource;
49  
50  /**
51   * <a href="RatingsEntryServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
52   *
53   * @author Brian Wing Shun Chan
54   */
55  public abstract class RatingsEntryServiceBaseImpl extends PrincipalBean
56      implements RatingsEntryService {
57      public RatingsEntryLocalService getRatingsEntryLocalService() {
58          return ratingsEntryLocalService;
59      }
60  
61      public void setRatingsEntryLocalService(
62          RatingsEntryLocalService ratingsEntryLocalService) {
63          this.ratingsEntryLocalService = ratingsEntryLocalService;
64      }
65  
66      public RatingsEntryService getRatingsEntryService() {
67          return ratingsEntryService;
68      }
69  
70      public void setRatingsEntryService(RatingsEntryService ratingsEntryService) {
71          this.ratingsEntryService = ratingsEntryService;
72      }
73  
74      public RatingsEntryPersistence getRatingsEntryPersistence() {
75          return ratingsEntryPersistence;
76      }
77  
78      public void setRatingsEntryPersistence(
79          RatingsEntryPersistence ratingsEntryPersistence) {
80          this.ratingsEntryPersistence = ratingsEntryPersistence;
81      }
82  
83      public RatingsEntryFinder getRatingsEntryFinder() {
84          return ratingsEntryFinder;
85      }
86  
87      public void setRatingsEntryFinder(RatingsEntryFinder ratingsEntryFinder) {
88          this.ratingsEntryFinder = ratingsEntryFinder;
89      }
90  
91      public RatingsStatsLocalService getRatingsStatsLocalService() {
92          return ratingsStatsLocalService;
93      }
94  
95      public void setRatingsStatsLocalService(
96          RatingsStatsLocalService ratingsStatsLocalService) {
97          this.ratingsStatsLocalService = ratingsStatsLocalService;
98      }
99  
100     public RatingsStatsPersistence getRatingsStatsPersistence() {
101         return ratingsStatsPersistence;
102     }
103 
104     public void setRatingsStatsPersistence(
105         RatingsStatsPersistence ratingsStatsPersistence) {
106         this.ratingsStatsPersistence = ratingsStatsPersistence;
107     }
108 
109     public RatingsStatsFinder getRatingsStatsFinder() {
110         return ratingsStatsFinder;
111     }
112 
113     public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
114         this.ratingsStatsFinder = ratingsStatsFinder;
115     }
116 
117     public CounterLocalService getCounterLocalService() {
118         return counterLocalService;
119     }
120 
121     public void setCounterLocalService(CounterLocalService counterLocalService) {
122         this.counterLocalService = counterLocalService;
123     }
124 
125     public ResourceLocalService getResourceLocalService() {
126         return resourceLocalService;
127     }
128 
129     public void setResourceLocalService(
130         ResourceLocalService resourceLocalService) {
131         this.resourceLocalService = resourceLocalService;
132     }
133 
134     public ResourceService getResourceService() {
135         return resourceService;
136     }
137 
138     public void setResourceService(ResourceService resourceService) {
139         this.resourceService = resourceService;
140     }
141 
142     public ResourcePersistence getResourcePersistence() {
143         return resourcePersistence;
144     }
145 
146     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
147         this.resourcePersistence = resourcePersistence;
148     }
149 
150     public ResourceFinder getResourceFinder() {
151         return resourceFinder;
152     }
153 
154     public void setResourceFinder(ResourceFinder resourceFinder) {
155         this.resourceFinder = resourceFinder;
156     }
157 
158     public UserLocalService getUserLocalService() {
159         return userLocalService;
160     }
161 
162     public void setUserLocalService(UserLocalService userLocalService) {
163         this.userLocalService = userLocalService;
164     }
165 
166     public UserService getUserService() {
167         return userService;
168     }
169 
170     public void setUserService(UserService userService) {
171         this.userService = userService;
172     }
173 
174     public UserPersistence getUserPersistence() {
175         return userPersistence;
176     }
177 
178     public void setUserPersistence(UserPersistence userPersistence) {
179         this.userPersistence = userPersistence;
180     }
181 
182     public UserFinder getUserFinder() {
183         return userFinder;
184     }
185 
186     public void setUserFinder(UserFinder userFinder) {
187         this.userFinder = userFinder;
188     }
189 
190     public BlogsEntryLocalService getBlogsEntryLocalService() {
191         return blogsEntryLocalService;
192     }
193 
194     public void setBlogsEntryLocalService(
195         BlogsEntryLocalService blogsEntryLocalService) {
196         this.blogsEntryLocalService = blogsEntryLocalService;
197     }
198 
199     public BlogsEntryService getBlogsEntryService() {
200         return blogsEntryService;
201     }
202 
203     public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
204         this.blogsEntryService = blogsEntryService;
205     }
206 
207     public BlogsEntryPersistence getBlogsEntryPersistence() {
208         return blogsEntryPersistence;
209     }
210 
211     public void setBlogsEntryPersistence(
212         BlogsEntryPersistence blogsEntryPersistence) {
213         this.blogsEntryPersistence = blogsEntryPersistence;
214     }
215 
216     public BlogsEntryFinder getBlogsEntryFinder() {
217         return blogsEntryFinder;
218     }
219 
220     public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
221         this.blogsEntryFinder = blogsEntryFinder;
222     }
223 
224     public BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
225         return blogsStatsUserLocalService;
226     }
227 
228     public void setBlogsStatsUserLocalService(
229         BlogsStatsUserLocalService blogsStatsUserLocalService) {
230         this.blogsStatsUserLocalService = blogsStatsUserLocalService;
231     }
232 
233     public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
234         return blogsStatsUserPersistence;
235     }
236 
237     public void setBlogsStatsUserPersistence(
238         BlogsStatsUserPersistence blogsStatsUserPersistence) {
239         this.blogsStatsUserPersistence = blogsStatsUserPersistence;
240     }
241 
242     public BlogsStatsUserFinder getBlogsStatsUserFinder() {
243         return blogsStatsUserFinder;
244     }
245 
246     public void setBlogsStatsUserFinder(
247         BlogsStatsUserFinder blogsStatsUserFinder) {
248         this.blogsStatsUserFinder = blogsStatsUserFinder;
249     }
250 
251     protected void runSQL(String sql) throws SystemException {
252         try {
253             DataSource dataSource = ratingsEntryPersistence.getDataSource();
254 
255             SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
256                     sql, new int[0]);
257 
258             sqlUpdate.update();
259         }
260         catch (Exception e) {
261             throw new SystemException(e);
262         }
263     }
264 
265     @BeanReference(type = RatingsEntryLocalService.class)
266     protected RatingsEntryLocalService ratingsEntryLocalService;
267     @BeanReference(type = RatingsEntryService.class)
268     protected RatingsEntryService ratingsEntryService;
269     @BeanReference(type = RatingsEntryPersistence.class)
270     protected RatingsEntryPersistence ratingsEntryPersistence;
271     @BeanReference(type = RatingsEntryFinder.class)
272     protected RatingsEntryFinder ratingsEntryFinder;
273     @BeanReference(type = RatingsStatsLocalService.class)
274     protected RatingsStatsLocalService ratingsStatsLocalService;
275     @BeanReference(type = RatingsStatsPersistence.class)
276     protected RatingsStatsPersistence ratingsStatsPersistence;
277     @BeanReference(type = RatingsStatsFinder.class)
278     protected RatingsStatsFinder ratingsStatsFinder;
279     @BeanReference(type = CounterLocalService.class)
280     protected CounterLocalService counterLocalService;
281     @BeanReference(type = ResourceLocalService.class)
282     protected ResourceLocalService resourceLocalService;
283     @BeanReference(type = ResourceService.class)
284     protected ResourceService resourceService;
285     @BeanReference(type = ResourcePersistence.class)
286     protected ResourcePersistence resourcePersistence;
287     @BeanReference(type = ResourceFinder.class)
288     protected ResourceFinder resourceFinder;
289     @BeanReference(type = UserLocalService.class)
290     protected UserLocalService userLocalService;
291     @BeanReference(type = UserService.class)
292     protected UserService userService;
293     @BeanReference(type = UserPersistence.class)
294     protected UserPersistence userPersistence;
295     @BeanReference(type = UserFinder.class)
296     protected UserFinder userFinder;
297     @BeanReference(type = BlogsEntryLocalService.class)
298     protected BlogsEntryLocalService blogsEntryLocalService;
299     @BeanReference(type = BlogsEntryService.class)
300     protected BlogsEntryService blogsEntryService;
301     @BeanReference(type = BlogsEntryPersistence.class)
302     protected BlogsEntryPersistence blogsEntryPersistence;
303     @BeanReference(type = BlogsEntryFinder.class)
304     protected BlogsEntryFinder blogsEntryFinder;
305     @BeanReference(type = BlogsStatsUserLocalService.class)
306     protected BlogsStatsUserLocalService blogsStatsUserLocalService;
307     @BeanReference(type = BlogsStatsUserPersistence.class)
308     protected BlogsStatsUserPersistence blogsStatsUserPersistence;
309     @BeanReference(type = BlogsStatsUserFinder.class)
310     protected BlogsStatsUserFinder blogsStatsUserFinder;
311 }