001
014
015 package com.liferay.portlet.polls.service.base;
016
017 import com.liferay.counter.service.CounterLocalService;
018
019 import com.liferay.portal.kernel.annotation.BeanReference;
020 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022 import com.liferay.portal.kernel.exception.SystemException;
023 import com.liferay.portal.service.ResourceLocalService;
024 import com.liferay.portal.service.ResourceService;
025 import com.liferay.portal.service.UserLocalService;
026 import com.liferay.portal.service.UserService;
027 import com.liferay.portal.service.base.PrincipalBean;
028 import com.liferay.portal.service.persistence.ResourceFinder;
029 import com.liferay.portal.service.persistence.ResourcePersistence;
030 import com.liferay.portal.service.persistence.UserFinder;
031 import com.liferay.portal.service.persistence.UserPersistence;
032
033 import com.liferay.portlet.polls.service.PollsChoiceLocalService;
034 import com.liferay.portlet.polls.service.PollsQuestionLocalService;
035 import com.liferay.portlet.polls.service.PollsQuestionService;
036 import com.liferay.portlet.polls.service.PollsVoteLocalService;
037 import com.liferay.portlet.polls.service.PollsVoteService;
038 import com.liferay.portlet.polls.service.persistence.PollsChoiceFinder;
039 import com.liferay.portlet.polls.service.persistence.PollsChoicePersistence;
040 import com.liferay.portlet.polls.service.persistence.PollsQuestionPersistence;
041 import com.liferay.portlet.polls.service.persistence.PollsVotePersistence;
042
043 import javax.sql.DataSource;
044
045
061 public abstract class PollsQuestionServiceBaseImpl extends PrincipalBean
062 implements PollsQuestionService {
063
068 public PollsChoiceLocalService getPollsChoiceLocalService() {
069 return pollsChoiceLocalService;
070 }
071
072
077 public void setPollsChoiceLocalService(
078 PollsChoiceLocalService pollsChoiceLocalService) {
079 this.pollsChoiceLocalService = pollsChoiceLocalService;
080 }
081
082
087 public PollsChoicePersistence getPollsChoicePersistence() {
088 return pollsChoicePersistence;
089 }
090
091
096 public void setPollsChoicePersistence(
097 PollsChoicePersistence pollsChoicePersistence) {
098 this.pollsChoicePersistence = pollsChoicePersistence;
099 }
100
101
106 public PollsChoiceFinder getPollsChoiceFinder() {
107 return pollsChoiceFinder;
108 }
109
110
115 public void setPollsChoiceFinder(PollsChoiceFinder pollsChoiceFinder) {
116 this.pollsChoiceFinder = pollsChoiceFinder;
117 }
118
119
124 public PollsQuestionLocalService getPollsQuestionLocalService() {
125 return pollsQuestionLocalService;
126 }
127
128
133 public void setPollsQuestionLocalService(
134 PollsQuestionLocalService pollsQuestionLocalService) {
135 this.pollsQuestionLocalService = pollsQuestionLocalService;
136 }
137
138
143 public PollsQuestionService getPollsQuestionService() {
144 return pollsQuestionService;
145 }
146
147
152 public void setPollsQuestionService(
153 PollsQuestionService pollsQuestionService) {
154 this.pollsQuestionService = pollsQuestionService;
155 }
156
157
162 public PollsQuestionPersistence getPollsQuestionPersistence() {
163 return pollsQuestionPersistence;
164 }
165
166
171 public void setPollsQuestionPersistence(
172 PollsQuestionPersistence pollsQuestionPersistence) {
173 this.pollsQuestionPersistence = pollsQuestionPersistence;
174 }
175
176
181 public PollsVoteLocalService getPollsVoteLocalService() {
182 return pollsVoteLocalService;
183 }
184
185
190 public void setPollsVoteLocalService(
191 PollsVoteLocalService pollsVoteLocalService) {
192 this.pollsVoteLocalService = pollsVoteLocalService;
193 }
194
195
200 public PollsVoteService getPollsVoteService() {
201 return pollsVoteService;
202 }
203
204
209 public void setPollsVoteService(PollsVoteService pollsVoteService) {
210 this.pollsVoteService = pollsVoteService;
211 }
212
213
218 public PollsVotePersistence getPollsVotePersistence() {
219 return pollsVotePersistence;
220 }
221
222
227 public void setPollsVotePersistence(
228 PollsVotePersistence pollsVotePersistence) {
229 this.pollsVotePersistence = pollsVotePersistence;
230 }
231
232
237 public CounterLocalService getCounterLocalService() {
238 return counterLocalService;
239 }
240
241
246 public void setCounterLocalService(CounterLocalService counterLocalService) {
247 this.counterLocalService = counterLocalService;
248 }
249
250
255 public ResourceLocalService getResourceLocalService() {
256 return resourceLocalService;
257 }
258
259
264 public void setResourceLocalService(
265 ResourceLocalService resourceLocalService) {
266 this.resourceLocalService = resourceLocalService;
267 }
268
269
274 public ResourceService getResourceService() {
275 return resourceService;
276 }
277
278
283 public void setResourceService(ResourceService resourceService) {
284 this.resourceService = resourceService;
285 }
286
287
292 public ResourcePersistence getResourcePersistence() {
293 return resourcePersistence;
294 }
295
296
301 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
302 this.resourcePersistence = resourcePersistence;
303 }
304
305
310 public ResourceFinder getResourceFinder() {
311 return resourceFinder;
312 }
313
314
319 public void setResourceFinder(ResourceFinder resourceFinder) {
320 this.resourceFinder = resourceFinder;
321 }
322
323
328 public UserLocalService getUserLocalService() {
329 return userLocalService;
330 }
331
332
337 public void setUserLocalService(UserLocalService userLocalService) {
338 this.userLocalService = userLocalService;
339 }
340
341
346 public UserService getUserService() {
347 return userService;
348 }
349
350
355 public void setUserService(UserService userService) {
356 this.userService = userService;
357 }
358
359
364 public UserPersistence getUserPersistence() {
365 return userPersistence;
366 }
367
368
373 public void setUserPersistence(UserPersistence userPersistence) {
374 this.userPersistence = userPersistence;
375 }
376
377
382 public UserFinder getUserFinder() {
383 return userFinder;
384 }
385
386
391 public void setUserFinder(UserFinder userFinder) {
392 this.userFinder = userFinder;
393 }
394
395
400 protected void runSQL(String sql) throws SystemException {
401 try {
402 DataSource dataSource = pollsQuestionPersistence.getDataSource();
403
404 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
405 sql, new int[0]);
406
407 sqlUpdate.update();
408 }
409 catch (Exception e) {
410 throw new SystemException(e);
411 }
412 }
413
414 @BeanReference(type = PollsChoiceLocalService.class)
415 protected PollsChoiceLocalService pollsChoiceLocalService;
416 @BeanReference(type = PollsChoicePersistence.class)
417 protected PollsChoicePersistence pollsChoicePersistence;
418 @BeanReference(type = PollsChoiceFinder.class)
419 protected PollsChoiceFinder pollsChoiceFinder;
420 @BeanReference(type = PollsQuestionLocalService.class)
421 protected PollsQuestionLocalService pollsQuestionLocalService;
422 @BeanReference(type = PollsQuestionService.class)
423 protected PollsQuestionService pollsQuestionService;
424 @BeanReference(type = PollsQuestionPersistence.class)
425 protected PollsQuestionPersistence pollsQuestionPersistence;
426 @BeanReference(type = PollsVoteLocalService.class)
427 protected PollsVoteLocalService pollsVoteLocalService;
428 @BeanReference(type = PollsVoteService.class)
429 protected PollsVoteService pollsVoteService;
430 @BeanReference(type = PollsVotePersistence.class)
431 protected PollsVotePersistence pollsVotePersistence;
432 @BeanReference(type = CounterLocalService.class)
433 protected CounterLocalService counterLocalService;
434 @BeanReference(type = ResourceLocalService.class)
435 protected ResourceLocalService resourceLocalService;
436 @BeanReference(type = ResourceService.class)
437 protected ResourceService resourceService;
438 @BeanReference(type = ResourcePersistence.class)
439 protected ResourcePersistence resourcePersistence;
440 @BeanReference(type = ResourceFinder.class)
441 protected ResourceFinder resourceFinder;
442 @BeanReference(type = UserLocalService.class)
443 protected UserLocalService userLocalService;
444 @BeanReference(type = UserService.class)
445 protected UserService userService;
446 @BeanReference(type = UserPersistence.class)
447 protected UserPersistence userPersistence;
448 @BeanReference(type = UserFinder.class)
449 protected UserFinder userFinder;
450 }