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.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.announcements.service.AnnouncementsDeliveryLocalService;
034 import com.liferay.portlet.announcements.service.AnnouncementsDeliveryService;
035 import com.liferay.portlet.announcements.service.AnnouncementsEntryLocalService;
036 import com.liferay.portlet.announcements.service.AnnouncementsEntryService;
037 import com.liferay.portlet.announcements.service.AnnouncementsFlagLocalService;
038 import com.liferay.portlet.announcements.service.AnnouncementsFlagService;
039 import com.liferay.portlet.announcements.service.persistence.AnnouncementsDeliveryPersistence;
040 import com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryFinder;
041 import com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryPersistence;
042 import com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence;
043
044 import javax.sql.DataSource;
045
046
062 public abstract class AnnouncementsDeliveryServiceBaseImpl extends PrincipalBean
063 implements AnnouncementsDeliveryService {
064
069 public AnnouncementsDeliveryLocalService getAnnouncementsDeliveryLocalService() {
070 return announcementsDeliveryLocalService;
071 }
072
073
078 public void setAnnouncementsDeliveryLocalService(
079 AnnouncementsDeliveryLocalService announcementsDeliveryLocalService) {
080 this.announcementsDeliveryLocalService = announcementsDeliveryLocalService;
081 }
082
083
088 public AnnouncementsDeliveryService getAnnouncementsDeliveryService() {
089 return announcementsDeliveryService;
090 }
091
092
097 public void setAnnouncementsDeliveryService(
098 AnnouncementsDeliveryService announcementsDeliveryService) {
099 this.announcementsDeliveryService = announcementsDeliveryService;
100 }
101
102
107 public AnnouncementsDeliveryPersistence getAnnouncementsDeliveryPersistence() {
108 return announcementsDeliveryPersistence;
109 }
110
111
116 public void setAnnouncementsDeliveryPersistence(
117 AnnouncementsDeliveryPersistence announcementsDeliveryPersistence) {
118 this.announcementsDeliveryPersistence = announcementsDeliveryPersistence;
119 }
120
121
126 public AnnouncementsEntryLocalService getAnnouncementsEntryLocalService() {
127 return announcementsEntryLocalService;
128 }
129
130
135 public void setAnnouncementsEntryLocalService(
136 AnnouncementsEntryLocalService announcementsEntryLocalService) {
137 this.announcementsEntryLocalService = announcementsEntryLocalService;
138 }
139
140
145 public AnnouncementsEntryService getAnnouncementsEntryService() {
146 return announcementsEntryService;
147 }
148
149
154 public void setAnnouncementsEntryService(
155 AnnouncementsEntryService announcementsEntryService) {
156 this.announcementsEntryService = announcementsEntryService;
157 }
158
159
164 public AnnouncementsEntryPersistence getAnnouncementsEntryPersistence() {
165 return announcementsEntryPersistence;
166 }
167
168
173 public void setAnnouncementsEntryPersistence(
174 AnnouncementsEntryPersistence announcementsEntryPersistence) {
175 this.announcementsEntryPersistence = announcementsEntryPersistence;
176 }
177
178
183 public AnnouncementsEntryFinder getAnnouncementsEntryFinder() {
184 return announcementsEntryFinder;
185 }
186
187
192 public void setAnnouncementsEntryFinder(
193 AnnouncementsEntryFinder announcementsEntryFinder) {
194 this.announcementsEntryFinder = announcementsEntryFinder;
195 }
196
197
202 public AnnouncementsFlagLocalService getAnnouncementsFlagLocalService() {
203 return announcementsFlagLocalService;
204 }
205
206
211 public void setAnnouncementsFlagLocalService(
212 AnnouncementsFlagLocalService announcementsFlagLocalService) {
213 this.announcementsFlagLocalService = announcementsFlagLocalService;
214 }
215
216
221 public AnnouncementsFlagService getAnnouncementsFlagService() {
222 return announcementsFlagService;
223 }
224
225
230 public void setAnnouncementsFlagService(
231 AnnouncementsFlagService announcementsFlagService) {
232 this.announcementsFlagService = announcementsFlagService;
233 }
234
235
240 public AnnouncementsFlagPersistence getAnnouncementsFlagPersistence() {
241 return announcementsFlagPersistence;
242 }
243
244
249 public void setAnnouncementsFlagPersistence(
250 AnnouncementsFlagPersistence announcementsFlagPersistence) {
251 this.announcementsFlagPersistence = announcementsFlagPersistence;
252 }
253
254
259 public CounterLocalService getCounterLocalService() {
260 return counterLocalService;
261 }
262
263
268 public void setCounterLocalService(CounterLocalService counterLocalService) {
269 this.counterLocalService = counterLocalService;
270 }
271
272
277 public ResourceLocalService getResourceLocalService() {
278 return resourceLocalService;
279 }
280
281
286 public void setResourceLocalService(
287 ResourceLocalService resourceLocalService) {
288 this.resourceLocalService = resourceLocalService;
289 }
290
291
296 public ResourceService getResourceService() {
297 return resourceService;
298 }
299
300
305 public void setResourceService(ResourceService resourceService) {
306 this.resourceService = resourceService;
307 }
308
309
314 public ResourcePersistence getResourcePersistence() {
315 return resourcePersistence;
316 }
317
318
323 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
324 this.resourcePersistence = resourcePersistence;
325 }
326
327
332 public ResourceFinder getResourceFinder() {
333 return resourceFinder;
334 }
335
336
341 public void setResourceFinder(ResourceFinder resourceFinder) {
342 this.resourceFinder = resourceFinder;
343 }
344
345
350 public UserLocalService getUserLocalService() {
351 return userLocalService;
352 }
353
354
359 public void setUserLocalService(UserLocalService userLocalService) {
360 this.userLocalService = userLocalService;
361 }
362
363
368 public UserService getUserService() {
369 return userService;
370 }
371
372
377 public void setUserService(UserService userService) {
378 this.userService = userService;
379 }
380
381
386 public UserPersistence getUserPersistence() {
387 return userPersistence;
388 }
389
390
395 public void setUserPersistence(UserPersistence userPersistence) {
396 this.userPersistence = userPersistence;
397 }
398
399
404 public UserFinder getUserFinder() {
405 return userFinder;
406 }
407
408
413 public void setUserFinder(UserFinder userFinder) {
414 this.userFinder = userFinder;
415 }
416
417
422 protected void runSQL(String sql) throws SystemException {
423 try {
424 DataSource dataSource = announcementsDeliveryPersistence.getDataSource();
425
426 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
427 sql, new int[0]);
428
429 sqlUpdate.update();
430 }
431 catch (Exception e) {
432 throw new SystemException(e);
433 }
434 }
435
436 @BeanReference(type = AnnouncementsDeliveryLocalService.class)
437 protected AnnouncementsDeliveryLocalService announcementsDeliveryLocalService;
438 @BeanReference(type = AnnouncementsDeliveryService.class)
439 protected AnnouncementsDeliveryService announcementsDeliveryService;
440 @BeanReference(type = AnnouncementsDeliveryPersistence.class)
441 protected AnnouncementsDeliveryPersistence announcementsDeliveryPersistence;
442 @BeanReference(type = AnnouncementsEntryLocalService.class)
443 protected AnnouncementsEntryLocalService announcementsEntryLocalService;
444 @BeanReference(type = AnnouncementsEntryService.class)
445 protected AnnouncementsEntryService announcementsEntryService;
446 @BeanReference(type = AnnouncementsEntryPersistence.class)
447 protected AnnouncementsEntryPersistence announcementsEntryPersistence;
448 @BeanReference(type = AnnouncementsEntryFinder.class)
449 protected AnnouncementsEntryFinder announcementsEntryFinder;
450 @BeanReference(type = AnnouncementsFlagLocalService.class)
451 protected AnnouncementsFlagLocalService announcementsFlagLocalService;
452 @BeanReference(type = AnnouncementsFlagService.class)
453 protected AnnouncementsFlagService announcementsFlagService;
454 @BeanReference(type = AnnouncementsFlagPersistence.class)
455 protected AnnouncementsFlagPersistence announcementsFlagPersistence;
456 @BeanReference(type = CounterLocalService.class)
457 protected CounterLocalService counterLocalService;
458 @BeanReference(type = ResourceLocalService.class)
459 protected ResourceLocalService resourceLocalService;
460 @BeanReference(type = ResourceService.class)
461 protected ResourceService resourceService;
462 @BeanReference(type = ResourcePersistence.class)
463 protected ResourcePersistence resourcePersistence;
464 @BeanReference(type = ResourceFinder.class)
465 protected ResourceFinder resourceFinder;
466 @BeanReference(type = UserLocalService.class)
467 protected UserLocalService userLocalService;
468 @BeanReference(type = UserService.class)
469 protected UserService userService;
470 @BeanReference(type = UserPersistence.class)
471 protected UserPersistence userPersistence;
472 @BeanReference(type = UserFinder.class)
473 protected UserFinder userFinder;
474 }