1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.ratings.service.base;
24  
25  import com.liferay.counter.service.CounterLocalService;
26  import com.liferay.counter.service.CounterService;
27  
28  import com.liferay.portal.SystemException;
29  import com.liferay.portal.kernel.annotation.BeanReference;
30  import com.liferay.portal.kernel.dao.db.DB;
31  import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
32  import com.liferay.portal.service.ResourceLocalService;
33  import com.liferay.portal.service.ResourceService;
34  import com.liferay.portal.service.UserLocalService;
35  import com.liferay.portal.service.UserService;
36  import com.liferay.portal.service.base.PrincipalBean;
37  import com.liferay.portal.service.persistence.ResourceFinder;
38  import com.liferay.portal.service.persistence.ResourcePersistence;
39  import com.liferay.portal.service.persistence.UserFinder;
40  import com.liferay.portal.service.persistence.UserPersistence;
41  
42  import com.liferay.portlet.blogs.service.BlogsEntryLocalService;
43  import com.liferay.portlet.blogs.service.BlogsEntryService;
44  import com.liferay.portlet.blogs.service.BlogsStatsUserLocalService;
45  import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
46  import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
47  import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
48  import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
49  import com.liferay.portlet.ratings.service.RatingsEntryLocalService;
50  import com.liferay.portlet.ratings.service.RatingsEntryService;
51  import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
52  import com.liferay.portlet.ratings.service.persistence.RatingsEntryPersistence;
53  import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
54  
55  /**
56   * <a href="RatingsEntryServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
57   *
58   * @author Brian Wing Shun Chan
59   */
60  public abstract class RatingsEntryServiceBaseImpl extends PrincipalBean
61      implements RatingsEntryService {
62      public RatingsEntryLocalService getRatingsEntryLocalService() {
63          return ratingsEntryLocalService;
64      }
65  
66      public void setRatingsEntryLocalService(
67          RatingsEntryLocalService ratingsEntryLocalService) {
68          this.ratingsEntryLocalService = ratingsEntryLocalService;
69      }
70  
71      public RatingsEntryService getRatingsEntryService() {
72          return ratingsEntryService;
73      }
74  
75      public void setRatingsEntryService(RatingsEntryService ratingsEntryService) {
76          this.ratingsEntryService = ratingsEntryService;
77      }
78  
79      public RatingsEntryPersistence getRatingsEntryPersistence() {
80          return ratingsEntryPersistence;
81      }
82  
83      public void setRatingsEntryPersistence(
84          RatingsEntryPersistence ratingsEntryPersistence) {
85          this.ratingsEntryPersistence = ratingsEntryPersistence;
86      }
87  
88      public RatingsStatsLocalService getRatingsStatsLocalService() {
89          return ratingsStatsLocalService;
90      }
91  
92      public void setRatingsStatsLocalService(
93          RatingsStatsLocalService ratingsStatsLocalService) {
94          this.ratingsStatsLocalService = ratingsStatsLocalService;
95      }
96  
97      public RatingsStatsPersistence getRatingsStatsPersistence() {
98          return ratingsStatsPersistence;
99      }
100 
101     public void setRatingsStatsPersistence(
102         RatingsStatsPersistence ratingsStatsPersistence) {
103         this.ratingsStatsPersistence = ratingsStatsPersistence;
104     }
105 
106     public CounterLocalService getCounterLocalService() {
107         return counterLocalService;
108     }
109 
110     public void setCounterLocalService(CounterLocalService counterLocalService) {
111         this.counterLocalService = counterLocalService;
112     }
113 
114     public CounterService getCounterService() {
115         return counterService;
116     }
117 
118     public void setCounterService(CounterService counterService) {
119         this.counterService = counterService;
120     }
121 
122     public ResourceLocalService getResourceLocalService() {
123         return resourceLocalService;
124     }
125 
126     public void setResourceLocalService(
127         ResourceLocalService resourceLocalService) {
128         this.resourceLocalService = resourceLocalService;
129     }
130 
131     public ResourceService getResourceService() {
132         return resourceService;
133     }
134 
135     public void setResourceService(ResourceService resourceService) {
136         this.resourceService = resourceService;
137     }
138 
139     public ResourcePersistence getResourcePersistence() {
140         return resourcePersistence;
141     }
142 
143     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
144         this.resourcePersistence = resourcePersistence;
145     }
146 
147     public ResourceFinder getResourceFinder() {
148         return resourceFinder;
149     }
150 
151     public void setResourceFinder(ResourceFinder resourceFinder) {
152         this.resourceFinder = resourceFinder;
153     }
154 
155     public UserLocalService getUserLocalService() {
156         return userLocalService;
157     }
158 
159     public void setUserLocalService(UserLocalService userLocalService) {
160         this.userLocalService = userLocalService;
161     }
162 
163     public UserService getUserService() {
164         return userService;
165     }
166 
167     public void setUserService(UserService userService) {
168         this.userService = userService;
169     }
170 
171     public UserPersistence getUserPersistence() {
172         return userPersistence;
173     }
174 
175     public void setUserPersistence(UserPersistence userPersistence) {
176         this.userPersistence = userPersistence;
177     }
178 
179     public UserFinder getUserFinder() {
180         return userFinder;
181     }
182 
183     public void setUserFinder(UserFinder userFinder) {
184         this.userFinder = userFinder;
185     }
186 
187     public BlogsEntryLocalService getBlogsEntryLocalService() {
188         return blogsEntryLocalService;
189     }
190 
191     public void setBlogsEntryLocalService(
192         BlogsEntryLocalService blogsEntryLocalService) {
193         this.blogsEntryLocalService = blogsEntryLocalService;
194     }
195 
196     public BlogsEntryService getBlogsEntryService() {
197         return blogsEntryService;
198     }
199 
200     public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
201         this.blogsEntryService = blogsEntryService;
202     }
203 
204     public BlogsEntryPersistence getBlogsEntryPersistence() {
205         return blogsEntryPersistence;
206     }
207 
208     public void setBlogsEntryPersistence(
209         BlogsEntryPersistence blogsEntryPersistence) {
210         this.blogsEntryPersistence = blogsEntryPersistence;
211     }
212 
213     public BlogsEntryFinder getBlogsEntryFinder() {
214         return blogsEntryFinder;
215     }
216 
217     public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
218         this.blogsEntryFinder = blogsEntryFinder;
219     }
220 
221     public BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
222         return blogsStatsUserLocalService;
223     }
224 
225     public void setBlogsStatsUserLocalService(
226         BlogsStatsUserLocalService blogsStatsUserLocalService) {
227         this.blogsStatsUserLocalService = blogsStatsUserLocalService;
228     }
229 
230     public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
231         return blogsStatsUserPersistence;
232     }
233 
234     public void setBlogsStatsUserPersistence(
235         BlogsStatsUserPersistence blogsStatsUserPersistence) {
236         this.blogsStatsUserPersistence = blogsStatsUserPersistence;
237     }
238 
239     public BlogsStatsUserFinder getBlogsStatsUserFinder() {
240         return blogsStatsUserFinder;
241     }
242 
243     public void setBlogsStatsUserFinder(
244         BlogsStatsUserFinder blogsStatsUserFinder) {
245         this.blogsStatsUserFinder = blogsStatsUserFinder;
246     }
247 
248     protected void runSQL(String sql) throws SystemException {
249         try {
250             DB db = DBFactoryUtil.getDB();
251 
252             db.runSQL(sql);
253         }
254         catch (Exception e) {
255             throw new SystemException(e);
256         }
257     }
258 
259     @BeanReference(name = "com.liferay.portlet.ratings.service.RatingsEntryLocalService")
260     protected RatingsEntryLocalService ratingsEntryLocalService;
261     @BeanReference(name = "com.liferay.portlet.ratings.service.RatingsEntryService")
262     protected RatingsEntryService ratingsEntryService;
263     @BeanReference(name = "com.liferay.portlet.ratings.service.persistence.RatingsEntryPersistence")
264     protected RatingsEntryPersistence ratingsEntryPersistence;
265     @BeanReference(name = "com.liferay.portlet.ratings.service.RatingsStatsLocalService")
266     protected RatingsStatsLocalService ratingsStatsLocalService;
267     @BeanReference(name = "com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence")
268     protected RatingsStatsPersistence ratingsStatsPersistence;
269     @BeanReference(name = "com.liferay.counter.service.CounterLocalService")
270     protected CounterLocalService counterLocalService;
271     @BeanReference(name = "com.liferay.counter.service.CounterService")
272     protected CounterService counterService;
273     @BeanReference(name = "com.liferay.portal.service.ResourceLocalService")
274     protected ResourceLocalService resourceLocalService;
275     @BeanReference(name = "com.liferay.portal.service.ResourceService")
276     protected ResourceService resourceService;
277     @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence")
278     protected ResourcePersistence resourcePersistence;
279     @BeanReference(name = "com.liferay.portal.service.persistence.ResourceFinder")
280     protected ResourceFinder resourceFinder;
281     @BeanReference(name = "com.liferay.portal.service.UserLocalService")
282     protected UserLocalService userLocalService;
283     @BeanReference(name = "com.liferay.portal.service.UserService")
284     protected UserService userService;
285     @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence")
286     protected UserPersistence userPersistence;
287     @BeanReference(name = "com.liferay.portal.service.persistence.UserFinder")
288     protected UserFinder userFinder;
289     @BeanReference(name = "com.liferay.portlet.blogs.service.BlogsEntryLocalService")
290     protected BlogsEntryLocalService blogsEntryLocalService;
291     @BeanReference(name = "com.liferay.portlet.blogs.service.BlogsEntryService")
292     protected BlogsEntryService blogsEntryService;
293     @BeanReference(name = "com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence")
294     protected BlogsEntryPersistence blogsEntryPersistence;
295     @BeanReference(name = "com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder")
296     protected BlogsEntryFinder blogsEntryFinder;
297     @BeanReference(name = "com.liferay.portlet.blogs.service.BlogsStatsUserLocalService")
298     protected BlogsStatsUserLocalService blogsStatsUserLocalService;
299     @BeanReference(name = "com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence")
300     protected BlogsStatsUserPersistence blogsStatsUserPersistence;
301     @BeanReference(name = "com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder")
302     protected BlogsStatsUserFinder blogsStatsUserFinder;
303 }