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.UserLocalService;
027 import com.liferay.portal.service.UserService;
028 import com.liferay.portal.service.persistence.UserFinder;
029 import com.liferay.portal.service.persistence.UserPersistence;
030
031 import com.liferay.portlet.polls.model.PollsChoice;
032 import com.liferay.portlet.polls.service.PollsChoiceLocalService;
033 import com.liferay.portlet.polls.service.PollsChoiceService;
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
057 public abstract class PollsChoiceServiceBaseImpl extends BaseServiceImpl
058 implements PollsChoiceService, IdentifiableBean {
059
064
065
070 public PollsChoiceLocalService getPollsChoiceLocalService() {
071 return pollsChoiceLocalService;
072 }
073
074
079 public void setPollsChoiceLocalService(
080 PollsChoiceLocalService pollsChoiceLocalService) {
081 this.pollsChoiceLocalService = pollsChoiceLocalService;
082 }
083
084
089 public PollsChoiceService getPollsChoiceService() {
090 return pollsChoiceService;
091 }
092
093
098 public void setPollsChoiceService(PollsChoiceService pollsChoiceService) {
099 this.pollsChoiceService = pollsChoiceService;
100 }
101
102
107 public PollsChoicePersistence getPollsChoicePersistence() {
108 return pollsChoicePersistence;
109 }
110
111
116 public void setPollsChoicePersistence(
117 PollsChoicePersistence pollsChoicePersistence) {
118 this.pollsChoicePersistence = pollsChoicePersistence;
119 }
120
121
126 public PollsChoiceFinder getPollsChoiceFinder() {
127 return pollsChoiceFinder;
128 }
129
130
135 public void setPollsChoiceFinder(PollsChoiceFinder pollsChoiceFinder) {
136 this.pollsChoiceFinder = pollsChoiceFinder;
137 }
138
139
144 public PollsQuestionLocalService getPollsQuestionLocalService() {
145 return pollsQuestionLocalService;
146 }
147
148
153 public void setPollsQuestionLocalService(
154 PollsQuestionLocalService pollsQuestionLocalService) {
155 this.pollsQuestionLocalService = pollsQuestionLocalService;
156 }
157
158
163 public PollsQuestionService getPollsQuestionService() {
164 return pollsQuestionService;
165 }
166
167
172 public void setPollsQuestionService(
173 PollsQuestionService pollsQuestionService) {
174 this.pollsQuestionService = pollsQuestionService;
175 }
176
177
182 public PollsQuestionPersistence getPollsQuestionPersistence() {
183 return pollsQuestionPersistence;
184 }
185
186
191 public void setPollsQuestionPersistence(
192 PollsQuestionPersistence pollsQuestionPersistence) {
193 this.pollsQuestionPersistence = pollsQuestionPersistence;
194 }
195
196
201 public PollsVoteLocalService getPollsVoteLocalService() {
202 return pollsVoteLocalService;
203 }
204
205
210 public void setPollsVoteLocalService(
211 PollsVoteLocalService pollsVoteLocalService) {
212 this.pollsVoteLocalService = pollsVoteLocalService;
213 }
214
215
220 public PollsVoteService getPollsVoteService() {
221 return pollsVoteService;
222 }
223
224
229 public void setPollsVoteService(PollsVoteService pollsVoteService) {
230 this.pollsVoteService = pollsVoteService;
231 }
232
233
238 public PollsVotePersistence getPollsVotePersistence() {
239 return pollsVotePersistence;
240 }
241
242
247 public void setPollsVotePersistence(
248 PollsVotePersistence pollsVotePersistence) {
249 this.pollsVotePersistence = pollsVotePersistence;
250 }
251
252
257 public CounterLocalService getCounterLocalService() {
258 return counterLocalService;
259 }
260
261
266 public void setCounterLocalService(CounterLocalService counterLocalService) {
267 this.counterLocalService = counterLocalService;
268 }
269
270
275 public ResourceLocalService getResourceLocalService() {
276 return resourceLocalService;
277 }
278
279
284 public void setResourceLocalService(
285 ResourceLocalService resourceLocalService) {
286 this.resourceLocalService = resourceLocalService;
287 }
288
289
294 public UserLocalService getUserLocalService() {
295 return userLocalService;
296 }
297
298
303 public void setUserLocalService(UserLocalService userLocalService) {
304 this.userLocalService = userLocalService;
305 }
306
307
312 public UserService getUserService() {
313 return userService;
314 }
315
316
321 public void setUserService(UserService userService) {
322 this.userService = userService;
323 }
324
325
330 public UserPersistence getUserPersistence() {
331 return userPersistence;
332 }
333
334
339 public void setUserPersistence(UserPersistence userPersistence) {
340 this.userPersistence = userPersistence;
341 }
342
343
348 public UserFinder getUserFinder() {
349 return userFinder;
350 }
351
352
357 public void setUserFinder(UserFinder userFinder) {
358 this.userFinder = userFinder;
359 }
360
361 public void afterPropertiesSet() {
362 }
363
364 public void destroy() {
365 }
366
367
372 public String getBeanIdentifier() {
373 return _beanIdentifier;
374 }
375
376
381 public void setBeanIdentifier(String beanIdentifier) {
382 _beanIdentifier = beanIdentifier;
383 }
384
385 protected Class<?> getModelClass() {
386 return PollsChoice.class;
387 }
388
389 protected String getModelClassName() {
390 return PollsChoice.class.getName();
391 }
392
393
398 protected void runSQL(String sql) throws SystemException {
399 try {
400 DataSource dataSource = pollsChoicePersistence.getDataSource();
401
402 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
403 sql, new int[0]);
404
405 sqlUpdate.update();
406 }
407 catch (Exception e) {
408 throw new SystemException(e);
409 }
410 }
411
412 @BeanReference(type = PollsChoiceLocalService.class)
413 protected PollsChoiceLocalService pollsChoiceLocalService;
414 @BeanReference(type = PollsChoiceService.class)
415 protected PollsChoiceService pollsChoiceService;
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 = UserLocalService.class)
437 protected UserLocalService userLocalService;
438 @BeanReference(type = UserService.class)
439 protected UserService userService;
440 @BeanReference(type = UserPersistence.class)
441 protected UserPersistence userPersistence;
442 @BeanReference(type = UserFinder.class)
443 protected UserFinder userFinder;
444 private String _beanIdentifier;
445 }