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.polls.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.db.DB;
21  import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
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.polls.service.PollsChoiceLocalService;
34  import com.liferay.portlet.polls.service.PollsQuestionLocalService;
35  import com.liferay.portlet.polls.service.PollsQuestionService;
36  import com.liferay.portlet.polls.service.PollsVoteLocalService;
37  import com.liferay.portlet.polls.service.PollsVoteService;
38  import com.liferay.portlet.polls.service.persistence.PollsChoiceFinder;
39  import com.liferay.portlet.polls.service.persistence.PollsChoicePersistence;
40  import com.liferay.portlet.polls.service.persistence.PollsQuestionPersistence;
41  import com.liferay.portlet.polls.service.persistence.PollsVotePersistence;
42  
43  /**
44   * <a href="PollsVoteServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
45   *
46   * @author Brian Wing Shun Chan
47   */
48  public abstract class PollsVoteServiceBaseImpl extends PrincipalBean
49      implements PollsVoteService {
50      public PollsChoiceLocalService getPollsChoiceLocalService() {
51          return pollsChoiceLocalService;
52      }
53  
54      public void setPollsChoiceLocalService(
55          PollsChoiceLocalService pollsChoiceLocalService) {
56          this.pollsChoiceLocalService = pollsChoiceLocalService;
57      }
58  
59      public PollsChoicePersistence getPollsChoicePersistence() {
60          return pollsChoicePersistence;
61      }
62  
63      public void setPollsChoicePersistence(
64          PollsChoicePersistence pollsChoicePersistence) {
65          this.pollsChoicePersistence = pollsChoicePersistence;
66      }
67  
68      public PollsChoiceFinder getPollsChoiceFinder() {
69          return pollsChoiceFinder;
70      }
71  
72      public void setPollsChoiceFinder(PollsChoiceFinder pollsChoiceFinder) {
73          this.pollsChoiceFinder = pollsChoiceFinder;
74      }
75  
76      public PollsQuestionLocalService getPollsQuestionLocalService() {
77          return pollsQuestionLocalService;
78      }
79  
80      public void setPollsQuestionLocalService(
81          PollsQuestionLocalService pollsQuestionLocalService) {
82          this.pollsQuestionLocalService = pollsQuestionLocalService;
83      }
84  
85      public PollsQuestionService getPollsQuestionService() {
86          return pollsQuestionService;
87      }
88  
89      public void setPollsQuestionService(
90          PollsQuestionService pollsQuestionService) {
91          this.pollsQuestionService = pollsQuestionService;
92      }
93  
94      public PollsQuestionPersistence getPollsQuestionPersistence() {
95          return pollsQuestionPersistence;
96      }
97  
98      public void setPollsQuestionPersistence(
99          PollsQuestionPersistence pollsQuestionPersistence) {
100         this.pollsQuestionPersistence = pollsQuestionPersistence;
101     }
102 
103     public PollsVoteLocalService getPollsVoteLocalService() {
104         return pollsVoteLocalService;
105     }
106 
107     public void setPollsVoteLocalService(
108         PollsVoteLocalService pollsVoteLocalService) {
109         this.pollsVoteLocalService = pollsVoteLocalService;
110     }
111 
112     public PollsVoteService getPollsVoteService() {
113         return pollsVoteService;
114     }
115 
116     public void setPollsVoteService(PollsVoteService pollsVoteService) {
117         this.pollsVoteService = pollsVoteService;
118     }
119 
120     public PollsVotePersistence getPollsVotePersistence() {
121         return pollsVotePersistence;
122     }
123 
124     public void setPollsVotePersistence(
125         PollsVotePersistence pollsVotePersistence) {
126         this.pollsVotePersistence = pollsVotePersistence;
127     }
128 
129     public CounterLocalService getCounterLocalService() {
130         return counterLocalService;
131     }
132 
133     public void setCounterLocalService(CounterLocalService counterLocalService) {
134         this.counterLocalService = counterLocalService;
135     }
136 
137     public ResourceLocalService getResourceLocalService() {
138         return resourceLocalService;
139     }
140 
141     public void setResourceLocalService(
142         ResourceLocalService resourceLocalService) {
143         this.resourceLocalService = resourceLocalService;
144     }
145 
146     public ResourceService getResourceService() {
147         return resourceService;
148     }
149 
150     public void setResourceService(ResourceService resourceService) {
151         this.resourceService = resourceService;
152     }
153 
154     public ResourcePersistence getResourcePersistence() {
155         return resourcePersistence;
156     }
157 
158     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
159         this.resourcePersistence = resourcePersistence;
160     }
161 
162     public ResourceFinder getResourceFinder() {
163         return resourceFinder;
164     }
165 
166     public void setResourceFinder(ResourceFinder resourceFinder) {
167         this.resourceFinder = resourceFinder;
168     }
169 
170     public UserLocalService getUserLocalService() {
171         return userLocalService;
172     }
173 
174     public void setUserLocalService(UserLocalService userLocalService) {
175         this.userLocalService = userLocalService;
176     }
177 
178     public UserService getUserService() {
179         return userService;
180     }
181 
182     public void setUserService(UserService userService) {
183         this.userService = userService;
184     }
185 
186     public UserPersistence getUserPersistence() {
187         return userPersistence;
188     }
189 
190     public void setUserPersistence(UserPersistence userPersistence) {
191         this.userPersistence = userPersistence;
192     }
193 
194     public UserFinder getUserFinder() {
195         return userFinder;
196     }
197 
198     public void setUserFinder(UserFinder userFinder) {
199         this.userFinder = userFinder;
200     }
201 
202     protected void runSQL(String sql) throws SystemException {
203         try {
204             DB db = DBFactoryUtil.getDB();
205 
206             db.runSQL(sql);
207         }
208         catch (Exception e) {
209             throw new SystemException(e);
210         }
211     }
212 
213     @BeanReference(type = PollsChoiceLocalService.class)
214     protected PollsChoiceLocalService pollsChoiceLocalService;
215     @BeanReference(type = PollsChoicePersistence.class)
216     protected PollsChoicePersistence pollsChoicePersistence;
217     @BeanReference(type = PollsChoiceFinder.class)
218     protected PollsChoiceFinder pollsChoiceFinder;
219     @BeanReference(type = PollsQuestionLocalService.class)
220     protected PollsQuestionLocalService pollsQuestionLocalService;
221     @BeanReference(type = PollsQuestionService.class)
222     protected PollsQuestionService pollsQuestionService;
223     @BeanReference(type = PollsQuestionPersistence.class)
224     protected PollsQuestionPersistence pollsQuestionPersistence;
225     @BeanReference(type = PollsVoteLocalService.class)
226     protected PollsVoteLocalService pollsVoteLocalService;
227     @BeanReference(type = PollsVoteService.class)
228     protected PollsVoteService pollsVoteService;
229     @BeanReference(type = PollsVotePersistence.class)
230     protected PollsVotePersistence pollsVotePersistence;
231     @BeanReference(type = CounterLocalService.class)
232     protected CounterLocalService counterLocalService;
233     @BeanReference(type = ResourceLocalService.class)
234     protected ResourceLocalService resourceLocalService;
235     @BeanReference(type = ResourceService.class)
236     protected ResourceService resourceService;
237     @BeanReference(type = ResourcePersistence.class)
238     protected ResourcePersistence resourcePersistence;
239     @BeanReference(type = ResourceFinder.class)
240     protected ResourceFinder resourceFinder;
241     @BeanReference(type = UserLocalService.class)
242     protected UserLocalService userLocalService;
243     @BeanReference(type = UserService.class)
244     protected UserService userService;
245     @BeanReference(type = UserPersistence.class)
246     protected UserPersistence userPersistence;
247     @BeanReference(type = UserFinder.class)
248     protected UserFinder userFinder;
249 }