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.bean.BeanReference;
020 import com.liferay.portal.kernel.bean.IdentifiableBean;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023 import com.liferay.portal.kernel.exception.SystemException;
024 import com.liferay.portal.service.BaseServiceImpl;
025 import com.liferay.portal.service.ResourceLocalService;
026 import com.liferay.portal.service.ResourceService;
027 import com.liferay.portal.service.UserLocalService;
028 import com.liferay.portal.service.UserService;
029 import com.liferay.portal.service.persistence.ResourceFinder;
030 import com.liferay.portal.service.persistence.ResourcePersistence;
031 import com.liferay.portal.service.persistence.UserFinder;
032 import com.liferay.portal.service.persistence.UserPersistence;
033
034 import com.liferay.portlet.polls.model.PollsQuestion;
035 import com.liferay.portlet.polls.service.PollsChoiceLocalService;
036 import com.liferay.portlet.polls.service.PollsChoiceService;
037 import com.liferay.portlet.polls.service.PollsQuestionLocalService;
038 import com.liferay.portlet.polls.service.PollsQuestionService;
039 import com.liferay.portlet.polls.service.PollsVoteLocalService;
040 import com.liferay.portlet.polls.service.PollsVoteService;
041 import com.liferay.portlet.polls.service.persistence.PollsChoiceFinder;
042 import com.liferay.portlet.polls.service.persistence.PollsChoicePersistence;
043 import com.liferay.portlet.polls.service.persistence.PollsQuestionPersistence;
044 import com.liferay.portlet.polls.service.persistence.PollsVotePersistence;
045
046 import javax.sql.DataSource;
047
048
060 public abstract class PollsQuestionServiceBaseImpl extends BaseServiceImpl
061 implements PollsQuestionService, IdentifiableBean {
062
067
068
073 public PollsChoiceLocalService getPollsChoiceLocalService() {
074 return pollsChoiceLocalService;
075 }
076
077
082 public void setPollsChoiceLocalService(
083 PollsChoiceLocalService pollsChoiceLocalService) {
084 this.pollsChoiceLocalService = pollsChoiceLocalService;
085 }
086
087
092 public PollsChoiceService getPollsChoiceService() {
093 return pollsChoiceService;
094 }
095
096
101 public void setPollsChoiceService(PollsChoiceService pollsChoiceService) {
102 this.pollsChoiceService = pollsChoiceService;
103 }
104
105
110 public PollsChoicePersistence getPollsChoicePersistence() {
111 return pollsChoicePersistence;
112 }
113
114
119 public void setPollsChoicePersistence(
120 PollsChoicePersistence pollsChoicePersistence) {
121 this.pollsChoicePersistence = pollsChoicePersistence;
122 }
123
124
129 public PollsChoiceFinder getPollsChoiceFinder() {
130 return pollsChoiceFinder;
131 }
132
133
138 public void setPollsChoiceFinder(PollsChoiceFinder pollsChoiceFinder) {
139 this.pollsChoiceFinder = pollsChoiceFinder;
140 }
141
142
147 public PollsQuestionLocalService getPollsQuestionLocalService() {
148 return pollsQuestionLocalService;
149 }
150
151
156 public void setPollsQuestionLocalService(
157 PollsQuestionLocalService pollsQuestionLocalService) {
158 this.pollsQuestionLocalService = pollsQuestionLocalService;
159 }
160
161
166 public PollsQuestionService getPollsQuestionService() {
167 return pollsQuestionService;
168 }
169
170
175 public void setPollsQuestionService(
176 PollsQuestionService pollsQuestionService) {
177 this.pollsQuestionService = pollsQuestionService;
178 }
179
180
185 public PollsQuestionPersistence getPollsQuestionPersistence() {
186 return pollsQuestionPersistence;
187 }
188
189
194 public void setPollsQuestionPersistence(
195 PollsQuestionPersistence pollsQuestionPersistence) {
196 this.pollsQuestionPersistence = pollsQuestionPersistence;
197 }
198
199
204 public PollsVoteLocalService getPollsVoteLocalService() {
205 return pollsVoteLocalService;
206 }
207
208
213 public void setPollsVoteLocalService(
214 PollsVoteLocalService pollsVoteLocalService) {
215 this.pollsVoteLocalService = pollsVoteLocalService;
216 }
217
218
223 public PollsVoteService getPollsVoteService() {
224 return pollsVoteService;
225 }
226
227
232 public void setPollsVoteService(PollsVoteService pollsVoteService) {
233 this.pollsVoteService = pollsVoteService;
234 }
235
236
241 public PollsVotePersistence getPollsVotePersistence() {
242 return pollsVotePersistence;
243 }
244
245
250 public void setPollsVotePersistence(
251 PollsVotePersistence pollsVotePersistence) {
252 this.pollsVotePersistence = pollsVotePersistence;
253 }
254
255
260 public CounterLocalService getCounterLocalService() {
261 return counterLocalService;
262 }
263
264
269 public void setCounterLocalService(CounterLocalService counterLocalService) {
270 this.counterLocalService = counterLocalService;
271 }
272
273
278 public ResourceLocalService getResourceLocalService() {
279 return resourceLocalService;
280 }
281
282
287 public void setResourceLocalService(
288 ResourceLocalService resourceLocalService) {
289 this.resourceLocalService = resourceLocalService;
290 }
291
292
297 public ResourceService getResourceService() {
298 return resourceService;
299 }
300
301
306 public void setResourceService(ResourceService resourceService) {
307 this.resourceService = resourceService;
308 }
309
310
315 public ResourcePersistence getResourcePersistence() {
316 return resourcePersistence;
317 }
318
319
324 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
325 this.resourcePersistence = resourcePersistence;
326 }
327
328
333 public ResourceFinder getResourceFinder() {
334 return resourceFinder;
335 }
336
337
342 public void setResourceFinder(ResourceFinder resourceFinder) {
343 this.resourceFinder = resourceFinder;
344 }
345
346
351 public UserLocalService getUserLocalService() {
352 return userLocalService;
353 }
354
355
360 public void setUserLocalService(UserLocalService userLocalService) {
361 this.userLocalService = userLocalService;
362 }
363
364
369 public UserService getUserService() {
370 return userService;
371 }
372
373
378 public void setUserService(UserService userService) {
379 this.userService = userService;
380 }
381
382
387 public UserPersistence getUserPersistence() {
388 return userPersistence;
389 }
390
391
396 public void setUserPersistence(UserPersistence userPersistence) {
397 this.userPersistence = userPersistence;
398 }
399
400
405 public UserFinder getUserFinder() {
406 return userFinder;
407 }
408
409
414 public void setUserFinder(UserFinder userFinder) {
415 this.userFinder = userFinder;
416 }
417
418 public void afterPropertiesSet() {
419 }
420
421 public void destroy() {
422 }
423
424
429 public String getBeanIdentifier() {
430 return _beanIdentifier;
431 }
432
433
438 public void setBeanIdentifier(String beanIdentifier) {
439 _beanIdentifier = beanIdentifier;
440 }
441
442 protected Class<?> getModelClass() {
443 return PollsQuestion.class;
444 }
445
446 protected String getModelClassName() {
447 return PollsQuestion.class.getName();
448 }
449
450
455 protected void runSQL(String sql) throws SystemException {
456 try {
457 DataSource dataSource = pollsQuestionPersistence.getDataSource();
458
459 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
460 sql, new int[0]);
461
462 sqlUpdate.update();
463 }
464 catch (Exception e) {
465 throw new SystemException(e);
466 }
467 }
468
469 @BeanReference(type = PollsChoiceLocalService.class)
470 protected PollsChoiceLocalService pollsChoiceLocalService;
471 @BeanReference(type = PollsChoiceService.class)
472 protected PollsChoiceService pollsChoiceService;
473 @BeanReference(type = PollsChoicePersistence.class)
474 protected PollsChoicePersistence pollsChoicePersistence;
475 @BeanReference(type = PollsChoiceFinder.class)
476 protected PollsChoiceFinder pollsChoiceFinder;
477 @BeanReference(type = PollsQuestionLocalService.class)
478 protected PollsQuestionLocalService pollsQuestionLocalService;
479 @BeanReference(type = PollsQuestionService.class)
480 protected PollsQuestionService pollsQuestionService;
481 @BeanReference(type = PollsQuestionPersistence.class)
482 protected PollsQuestionPersistence pollsQuestionPersistence;
483 @BeanReference(type = PollsVoteLocalService.class)
484 protected PollsVoteLocalService pollsVoteLocalService;
485 @BeanReference(type = PollsVoteService.class)
486 protected PollsVoteService pollsVoteService;
487 @BeanReference(type = PollsVotePersistence.class)
488 protected PollsVotePersistence pollsVotePersistence;
489 @BeanReference(type = CounterLocalService.class)
490 protected CounterLocalService counterLocalService;
491 @BeanReference(type = ResourceLocalService.class)
492 protected ResourceLocalService resourceLocalService;
493 @BeanReference(type = ResourceService.class)
494 protected ResourceService resourceService;
495 @BeanReference(type = ResourcePersistence.class)
496 protected ResourcePersistence resourcePersistence;
497 @BeanReference(type = ResourceFinder.class)
498 protected ResourceFinder resourceFinder;
499 @BeanReference(type = UserLocalService.class)
500 protected UserLocalService userLocalService;
501 @BeanReference(type = UserService.class)
502 protected UserService userService;
503 @BeanReference(type = UserPersistence.class)
504 protected UserPersistence userPersistence;
505 @BeanReference(type = UserFinder.class)
506 protected UserFinder userFinder;
507 private String _beanIdentifier;
508 }