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.AnnouncementsFlag;
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 AnnouncementsFlagServiceBaseImpl extends BaseServiceImpl
061 implements AnnouncementsFlagService, IdentifiableBean {
062
067
068
073 public AnnouncementsDeliveryLocalService getAnnouncementsDeliveryLocalService() {
074 return announcementsDeliveryLocalService;
075 }
076
077
082 public void setAnnouncementsDeliveryLocalService(
083 AnnouncementsDeliveryLocalService announcementsDeliveryLocalService) {
084 this.announcementsDeliveryLocalService = announcementsDeliveryLocalService;
085 }
086
087
092 public AnnouncementsDeliveryService getAnnouncementsDeliveryService() {
093 return announcementsDeliveryService;
094 }
095
096
101 public void setAnnouncementsDeliveryService(
102 AnnouncementsDeliveryService announcementsDeliveryService) {
103 this.announcementsDeliveryService = announcementsDeliveryService;
104 }
105
106
111 public AnnouncementsDeliveryPersistence getAnnouncementsDeliveryPersistence() {
112 return announcementsDeliveryPersistence;
113 }
114
115
120 public void setAnnouncementsDeliveryPersistence(
121 AnnouncementsDeliveryPersistence announcementsDeliveryPersistence) {
122 this.announcementsDeliveryPersistence = announcementsDeliveryPersistence;
123 }
124
125
130 public AnnouncementsEntryLocalService getAnnouncementsEntryLocalService() {
131 return announcementsEntryLocalService;
132 }
133
134
139 public void setAnnouncementsEntryLocalService(
140 AnnouncementsEntryLocalService announcementsEntryLocalService) {
141 this.announcementsEntryLocalService = announcementsEntryLocalService;
142 }
143
144
149 public AnnouncementsEntryService getAnnouncementsEntryService() {
150 return announcementsEntryService;
151 }
152
153
158 public void setAnnouncementsEntryService(
159 AnnouncementsEntryService announcementsEntryService) {
160 this.announcementsEntryService = announcementsEntryService;
161 }
162
163
168 public AnnouncementsEntryPersistence getAnnouncementsEntryPersistence() {
169 return announcementsEntryPersistence;
170 }
171
172
177 public void setAnnouncementsEntryPersistence(
178 AnnouncementsEntryPersistence announcementsEntryPersistence) {
179 this.announcementsEntryPersistence = announcementsEntryPersistence;
180 }
181
182
187 public AnnouncementsEntryFinder getAnnouncementsEntryFinder() {
188 return announcementsEntryFinder;
189 }
190
191
196 public void setAnnouncementsEntryFinder(
197 AnnouncementsEntryFinder announcementsEntryFinder) {
198 this.announcementsEntryFinder = announcementsEntryFinder;
199 }
200
201
206 public AnnouncementsFlagLocalService getAnnouncementsFlagLocalService() {
207 return announcementsFlagLocalService;
208 }
209
210
215 public void setAnnouncementsFlagLocalService(
216 AnnouncementsFlagLocalService announcementsFlagLocalService) {
217 this.announcementsFlagLocalService = announcementsFlagLocalService;
218 }
219
220
225 public AnnouncementsFlagService getAnnouncementsFlagService() {
226 return announcementsFlagService;
227 }
228
229
234 public void setAnnouncementsFlagService(
235 AnnouncementsFlagService announcementsFlagService) {
236 this.announcementsFlagService = announcementsFlagService;
237 }
238
239
244 public AnnouncementsFlagPersistence getAnnouncementsFlagPersistence() {
245 return announcementsFlagPersistence;
246 }
247
248
253 public void setAnnouncementsFlagPersistence(
254 AnnouncementsFlagPersistence announcementsFlagPersistence) {
255 this.announcementsFlagPersistence = announcementsFlagPersistence;
256 }
257
258
263 public CounterLocalService getCounterLocalService() {
264 return counterLocalService;
265 }
266
267
272 public void setCounterLocalService(CounterLocalService counterLocalService) {
273 this.counterLocalService = counterLocalService;
274 }
275
276
281 public ResourceLocalService getResourceLocalService() {
282 return resourceLocalService;
283 }
284
285
290 public void setResourceLocalService(
291 ResourceLocalService resourceLocalService) {
292 this.resourceLocalService = resourceLocalService;
293 }
294
295
300 public ResourceService getResourceService() {
301 return resourceService;
302 }
303
304
309 public void setResourceService(ResourceService resourceService) {
310 this.resourceService = resourceService;
311 }
312
313
318 public ResourcePersistence getResourcePersistence() {
319 return resourcePersistence;
320 }
321
322
327 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
328 this.resourcePersistence = resourcePersistence;
329 }
330
331
336 public ResourceFinder getResourceFinder() {
337 return resourceFinder;
338 }
339
340
345 public void setResourceFinder(ResourceFinder resourceFinder) {
346 this.resourceFinder = resourceFinder;
347 }
348
349
354 public UserLocalService getUserLocalService() {
355 return userLocalService;
356 }
357
358
363 public void setUserLocalService(UserLocalService userLocalService) {
364 this.userLocalService = userLocalService;
365 }
366
367
372 public UserService getUserService() {
373 return userService;
374 }
375
376
381 public void setUserService(UserService userService) {
382 this.userService = userService;
383 }
384
385
390 public UserPersistence getUserPersistence() {
391 return userPersistence;
392 }
393
394
399 public void setUserPersistence(UserPersistence userPersistence) {
400 this.userPersistence = userPersistence;
401 }
402
403
408 public UserFinder getUserFinder() {
409 return userFinder;
410 }
411
412
417 public void setUserFinder(UserFinder userFinder) {
418 this.userFinder = userFinder;
419 }
420
421 public void afterPropertiesSet() {
422 }
423
424 public void destroy() {
425 }
426
427
432 public String getBeanIdentifier() {
433 return _beanIdentifier;
434 }
435
436
441 public void setBeanIdentifier(String beanIdentifier) {
442 _beanIdentifier = beanIdentifier;
443 }
444
445 protected Class<?> getModelClass() {
446 return AnnouncementsFlag.class;
447 }
448
449 protected String getModelClassName() {
450 return AnnouncementsFlag.class.getName();
451 }
452
453
458 protected void runSQL(String sql) throws SystemException {
459 try {
460 DataSource dataSource = announcementsFlagPersistence.getDataSource();
461
462 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
463 sql, new int[0]);
464
465 sqlUpdate.update();
466 }
467 catch (Exception e) {
468 throw new SystemException(e);
469 }
470 }
471
472 @BeanReference(type = AnnouncementsDeliveryLocalService.class)
473 protected AnnouncementsDeliveryLocalService announcementsDeliveryLocalService;
474 @BeanReference(type = AnnouncementsDeliveryService.class)
475 protected AnnouncementsDeliveryService announcementsDeliveryService;
476 @BeanReference(type = AnnouncementsDeliveryPersistence.class)
477 protected AnnouncementsDeliveryPersistence announcementsDeliveryPersistence;
478 @BeanReference(type = AnnouncementsEntryLocalService.class)
479 protected AnnouncementsEntryLocalService announcementsEntryLocalService;
480 @BeanReference(type = AnnouncementsEntryService.class)
481 protected AnnouncementsEntryService announcementsEntryService;
482 @BeanReference(type = AnnouncementsEntryPersistence.class)
483 protected AnnouncementsEntryPersistence announcementsEntryPersistence;
484 @BeanReference(type = AnnouncementsEntryFinder.class)
485 protected AnnouncementsEntryFinder announcementsEntryFinder;
486 @BeanReference(type = AnnouncementsFlagLocalService.class)
487 protected AnnouncementsFlagLocalService announcementsFlagLocalService;
488 @BeanReference(type = AnnouncementsFlagService.class)
489 protected AnnouncementsFlagService announcementsFlagService;
490 @BeanReference(type = AnnouncementsFlagPersistence.class)
491 protected AnnouncementsFlagPersistence announcementsFlagPersistence;
492 @BeanReference(type = CounterLocalService.class)
493 protected CounterLocalService counterLocalService;
494 @BeanReference(type = ResourceLocalService.class)
495 protected ResourceLocalService resourceLocalService;
496 @BeanReference(type = ResourceService.class)
497 protected ResourceService resourceService;
498 @BeanReference(type = ResourcePersistence.class)
499 protected ResourcePersistence resourcePersistence;
500 @BeanReference(type = ResourceFinder.class)
501 protected ResourceFinder resourceFinder;
502 @BeanReference(type = UserLocalService.class)
503 protected UserLocalService userLocalService;
504 @BeanReference(type = UserService.class)
505 protected UserService userService;
506 @BeanReference(type = UserPersistence.class)
507 protected UserPersistence userPersistence;
508 @BeanReference(type = UserFinder.class)
509 protected UserFinder userFinder;
510 private String _beanIdentifier;
511 }