001
014
015 package com.liferay.portlet.announcements.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.announcements.model.AnnouncementsDelivery;
035 import com.liferay.portlet.announcements.service.AnnouncementsDeliveryLocalService;
036 import com.liferay.portlet.announcements.service.AnnouncementsDeliveryService;
037 import com.liferay.portlet.announcements.service.AnnouncementsEntryLocalService;
038 import com.liferay.portlet.announcements.service.AnnouncementsEntryService;
039 import com.liferay.portlet.announcements.service.AnnouncementsFlagLocalService;
040 import com.liferay.portlet.announcements.service.AnnouncementsFlagService;
041 import com.liferay.portlet.announcements.service.persistence.AnnouncementsDeliveryPersistence;
042 import com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryFinder;
043 import com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryPersistence;
044 import com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence;
045
046 import javax.sql.DataSource;
047
048
060 public abstract class AnnouncementsDeliveryServiceBaseImpl
061 extends BaseServiceImpl implements AnnouncementsDeliveryService,
062 IdentifiableBean {
063
068
069
074 public AnnouncementsDeliveryLocalService getAnnouncementsDeliveryLocalService() {
075 return announcementsDeliveryLocalService;
076 }
077
078
083 public void setAnnouncementsDeliveryLocalService(
084 AnnouncementsDeliveryLocalService announcementsDeliveryLocalService) {
085 this.announcementsDeliveryLocalService = announcementsDeliveryLocalService;
086 }
087
088
093 public AnnouncementsDeliveryService getAnnouncementsDeliveryService() {
094 return announcementsDeliveryService;
095 }
096
097
102 public void setAnnouncementsDeliveryService(
103 AnnouncementsDeliveryService announcementsDeliveryService) {
104 this.announcementsDeliveryService = announcementsDeliveryService;
105 }
106
107
112 public AnnouncementsDeliveryPersistence getAnnouncementsDeliveryPersistence() {
113 return announcementsDeliveryPersistence;
114 }
115
116
121 public void setAnnouncementsDeliveryPersistence(
122 AnnouncementsDeliveryPersistence announcementsDeliveryPersistence) {
123 this.announcementsDeliveryPersistence = announcementsDeliveryPersistence;
124 }
125
126
131 public AnnouncementsEntryLocalService getAnnouncementsEntryLocalService() {
132 return announcementsEntryLocalService;
133 }
134
135
140 public void setAnnouncementsEntryLocalService(
141 AnnouncementsEntryLocalService announcementsEntryLocalService) {
142 this.announcementsEntryLocalService = announcementsEntryLocalService;
143 }
144
145
150 public AnnouncementsEntryService getAnnouncementsEntryService() {
151 return announcementsEntryService;
152 }
153
154
159 public void setAnnouncementsEntryService(
160 AnnouncementsEntryService announcementsEntryService) {
161 this.announcementsEntryService = announcementsEntryService;
162 }
163
164
169 public AnnouncementsEntryPersistence getAnnouncementsEntryPersistence() {
170 return announcementsEntryPersistence;
171 }
172
173
178 public void setAnnouncementsEntryPersistence(
179 AnnouncementsEntryPersistence announcementsEntryPersistence) {
180 this.announcementsEntryPersistence = announcementsEntryPersistence;
181 }
182
183
188 public AnnouncementsEntryFinder getAnnouncementsEntryFinder() {
189 return announcementsEntryFinder;
190 }
191
192
197 public void setAnnouncementsEntryFinder(
198 AnnouncementsEntryFinder announcementsEntryFinder) {
199 this.announcementsEntryFinder = announcementsEntryFinder;
200 }
201
202
207 public AnnouncementsFlagLocalService getAnnouncementsFlagLocalService() {
208 return announcementsFlagLocalService;
209 }
210
211
216 public void setAnnouncementsFlagLocalService(
217 AnnouncementsFlagLocalService announcementsFlagLocalService) {
218 this.announcementsFlagLocalService = announcementsFlagLocalService;
219 }
220
221
226 public AnnouncementsFlagService getAnnouncementsFlagService() {
227 return announcementsFlagService;
228 }
229
230
235 public void setAnnouncementsFlagService(
236 AnnouncementsFlagService announcementsFlagService) {
237 this.announcementsFlagService = announcementsFlagService;
238 }
239
240
245 public AnnouncementsFlagPersistence getAnnouncementsFlagPersistence() {
246 return announcementsFlagPersistence;
247 }
248
249
254 public void setAnnouncementsFlagPersistence(
255 AnnouncementsFlagPersistence announcementsFlagPersistence) {
256 this.announcementsFlagPersistence = announcementsFlagPersistence;
257 }
258
259
264 public CounterLocalService getCounterLocalService() {
265 return counterLocalService;
266 }
267
268
273 public void setCounterLocalService(CounterLocalService counterLocalService) {
274 this.counterLocalService = counterLocalService;
275 }
276
277
282 public ResourceLocalService getResourceLocalService() {
283 return resourceLocalService;
284 }
285
286
291 public void setResourceLocalService(
292 ResourceLocalService resourceLocalService) {
293 this.resourceLocalService = resourceLocalService;
294 }
295
296
301 public ResourceService getResourceService() {
302 return resourceService;
303 }
304
305
310 public void setResourceService(ResourceService resourceService) {
311 this.resourceService = resourceService;
312 }
313
314
319 public ResourcePersistence getResourcePersistence() {
320 return resourcePersistence;
321 }
322
323
328 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
329 this.resourcePersistence = resourcePersistence;
330 }
331
332
337 public ResourceFinder getResourceFinder() {
338 return resourceFinder;
339 }
340
341
346 public void setResourceFinder(ResourceFinder resourceFinder) {
347 this.resourceFinder = resourceFinder;
348 }
349
350
355 public UserLocalService getUserLocalService() {
356 return userLocalService;
357 }
358
359
364 public void setUserLocalService(UserLocalService userLocalService) {
365 this.userLocalService = userLocalService;
366 }
367
368
373 public UserService getUserService() {
374 return userService;
375 }
376
377
382 public void setUserService(UserService userService) {
383 this.userService = userService;
384 }
385
386
391 public UserPersistence getUserPersistence() {
392 return userPersistence;
393 }
394
395
400 public void setUserPersistence(UserPersistence userPersistence) {
401 this.userPersistence = userPersistence;
402 }
403
404
409 public UserFinder getUserFinder() {
410 return userFinder;
411 }
412
413
418 public void setUserFinder(UserFinder userFinder) {
419 this.userFinder = userFinder;
420 }
421
422 public void afterPropertiesSet() {
423 }
424
425 public void destroy() {
426 }
427
428
433 public String getBeanIdentifier() {
434 return _beanIdentifier;
435 }
436
437
442 public void setBeanIdentifier(String beanIdentifier) {
443 _beanIdentifier = beanIdentifier;
444 }
445
446 protected Class<?> getModelClass() {
447 return AnnouncementsDelivery.class;
448 }
449
450 protected String getModelClassName() {
451 return AnnouncementsDelivery.class.getName();
452 }
453
454
459 protected void runSQL(String sql) throws SystemException {
460 try {
461 DataSource dataSource = announcementsDeliveryPersistence.getDataSource();
462
463 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
464 sql, new int[0]);
465
466 sqlUpdate.update();
467 }
468 catch (Exception e) {
469 throw new SystemException(e);
470 }
471 }
472
473 @BeanReference(type = AnnouncementsDeliveryLocalService.class)
474 protected AnnouncementsDeliveryLocalService announcementsDeliveryLocalService;
475 @BeanReference(type = AnnouncementsDeliveryService.class)
476 protected AnnouncementsDeliveryService announcementsDeliveryService;
477 @BeanReference(type = AnnouncementsDeliveryPersistence.class)
478 protected AnnouncementsDeliveryPersistence announcementsDeliveryPersistence;
479 @BeanReference(type = AnnouncementsEntryLocalService.class)
480 protected AnnouncementsEntryLocalService announcementsEntryLocalService;
481 @BeanReference(type = AnnouncementsEntryService.class)
482 protected AnnouncementsEntryService announcementsEntryService;
483 @BeanReference(type = AnnouncementsEntryPersistence.class)
484 protected AnnouncementsEntryPersistence announcementsEntryPersistence;
485 @BeanReference(type = AnnouncementsEntryFinder.class)
486 protected AnnouncementsEntryFinder announcementsEntryFinder;
487 @BeanReference(type = AnnouncementsFlagLocalService.class)
488 protected AnnouncementsFlagLocalService announcementsFlagLocalService;
489 @BeanReference(type = AnnouncementsFlagService.class)
490 protected AnnouncementsFlagService announcementsFlagService;
491 @BeanReference(type = AnnouncementsFlagPersistence.class)
492 protected AnnouncementsFlagPersistence announcementsFlagPersistence;
493 @BeanReference(type = CounterLocalService.class)
494 protected CounterLocalService counterLocalService;
495 @BeanReference(type = ResourceLocalService.class)
496 protected ResourceLocalService resourceLocalService;
497 @BeanReference(type = ResourceService.class)
498 protected ResourceService resourceService;
499 @BeanReference(type = ResourcePersistence.class)
500 protected ResourcePersistence resourcePersistence;
501 @BeanReference(type = ResourceFinder.class)
502 protected ResourceFinder resourceFinder;
503 @BeanReference(type = UserLocalService.class)
504 protected UserLocalService userLocalService;
505 @BeanReference(type = UserService.class)
506 protected UserService userService;
507 @BeanReference(type = UserPersistence.class)
508 protected UserPersistence userPersistence;
509 @BeanReference(type = UserFinder.class)
510 protected UserFinder userFinder;
511 private String _beanIdentifier;
512 }