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