1
19
20 package com.liferay.portlet.announcements.service.base;
21
22 import com.liferay.counter.service.CounterLocalService;
23 import com.liferay.counter.service.CounterService;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.BeanReference;
28 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
29 import com.liferay.portal.service.UserLocalService;
30 import com.liferay.portal.service.UserService;
31 import com.liferay.portal.service.persistence.UserFinder;
32 import com.liferay.portal.service.persistence.UserPersistence;
33 import com.liferay.portal.util.PortalUtil;
34
35 import com.liferay.portlet.announcements.model.AnnouncementsDelivery;
36 import com.liferay.portlet.announcements.service.AnnouncementsDeliveryLocalService;
37 import com.liferay.portlet.announcements.service.AnnouncementsDeliveryService;
38 import com.liferay.portlet.announcements.service.AnnouncementsEntryLocalService;
39 import com.liferay.portlet.announcements.service.AnnouncementsEntryService;
40 import com.liferay.portlet.announcements.service.AnnouncementsFlagLocalService;
41 import com.liferay.portlet.announcements.service.AnnouncementsFlagService;
42 import com.liferay.portlet.announcements.service.persistence.AnnouncementsDeliveryPersistence;
43 import com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryFinder;
44 import com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryPersistence;
45 import com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence;
46
47 import java.util.List;
48
49
55 public abstract class AnnouncementsDeliveryLocalServiceBaseImpl
56 implements AnnouncementsDeliveryLocalService {
57 public AnnouncementsDelivery addAnnouncementsDelivery(
58 AnnouncementsDelivery announcementsDelivery) throws SystemException {
59 announcementsDelivery.setNew(true);
60
61 return announcementsDeliveryPersistence.update(announcementsDelivery,
62 false);
63 }
64
65 public AnnouncementsDelivery createAnnouncementsDelivery(long deliveryId) {
66 return announcementsDeliveryPersistence.create(deliveryId);
67 }
68
69 public void deleteAnnouncementsDelivery(long deliveryId)
70 throws PortalException, SystemException {
71 announcementsDeliveryPersistence.remove(deliveryId);
72 }
73
74 public void deleteAnnouncementsDelivery(
75 AnnouncementsDelivery announcementsDelivery) throws SystemException {
76 announcementsDeliveryPersistence.remove(announcementsDelivery);
77 }
78
79 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
80 throws SystemException {
81 return announcementsDeliveryPersistence.findWithDynamicQuery(dynamicQuery);
82 }
83
84 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
85 int end) throws SystemException {
86 return announcementsDeliveryPersistence.findWithDynamicQuery(dynamicQuery,
87 start, end);
88 }
89
90 public AnnouncementsDelivery getAnnouncementsDelivery(long deliveryId)
91 throws PortalException, SystemException {
92 return announcementsDeliveryPersistence.findByPrimaryKey(deliveryId);
93 }
94
95 public List<AnnouncementsDelivery> getAnnouncementsDeliveries(int start,
96 int end) throws SystemException {
97 return announcementsDeliveryPersistence.findAll(start, end);
98 }
99
100 public int getAnnouncementsDeliveriesCount() throws SystemException {
101 return announcementsDeliveryPersistence.countAll();
102 }
103
104 public AnnouncementsDelivery updateAnnouncementsDelivery(
105 AnnouncementsDelivery announcementsDelivery) throws SystemException {
106 announcementsDelivery.setNew(false);
107
108 return announcementsDeliveryPersistence.update(announcementsDelivery,
109 true);
110 }
111
112 public AnnouncementsDelivery updateAnnouncementsDelivery(
113 AnnouncementsDelivery announcementsDelivery, boolean merge)
114 throws SystemException {
115 announcementsDelivery.setNew(false);
116
117 return announcementsDeliveryPersistence.update(announcementsDelivery,
118 merge);
119 }
120
121 public AnnouncementsDeliveryLocalService getAnnouncementsDeliveryLocalService() {
122 return announcementsDeliveryLocalService;
123 }
124
125 public void setAnnouncementsDeliveryLocalService(
126 AnnouncementsDeliveryLocalService announcementsDeliveryLocalService) {
127 this.announcementsDeliveryLocalService = announcementsDeliveryLocalService;
128 }
129
130 public AnnouncementsDeliveryService getAnnouncementsDeliveryService() {
131 return announcementsDeliveryService;
132 }
133
134 public void setAnnouncementsDeliveryService(
135 AnnouncementsDeliveryService announcementsDeliveryService) {
136 this.announcementsDeliveryService = announcementsDeliveryService;
137 }
138
139 public AnnouncementsDeliveryPersistence getAnnouncementsDeliveryPersistence() {
140 return announcementsDeliveryPersistence;
141 }
142
143 public void setAnnouncementsDeliveryPersistence(
144 AnnouncementsDeliveryPersistence announcementsDeliveryPersistence) {
145 this.announcementsDeliveryPersistence = announcementsDeliveryPersistence;
146 }
147
148 public AnnouncementsEntryLocalService getAnnouncementsEntryLocalService() {
149 return announcementsEntryLocalService;
150 }
151
152 public void setAnnouncementsEntryLocalService(
153 AnnouncementsEntryLocalService announcementsEntryLocalService) {
154 this.announcementsEntryLocalService = announcementsEntryLocalService;
155 }
156
157 public AnnouncementsEntryService getAnnouncementsEntryService() {
158 return announcementsEntryService;
159 }
160
161 public void setAnnouncementsEntryService(
162 AnnouncementsEntryService announcementsEntryService) {
163 this.announcementsEntryService = announcementsEntryService;
164 }
165
166 public AnnouncementsEntryPersistence getAnnouncementsEntryPersistence() {
167 return announcementsEntryPersistence;
168 }
169
170 public void setAnnouncementsEntryPersistence(
171 AnnouncementsEntryPersistence announcementsEntryPersistence) {
172 this.announcementsEntryPersistence = announcementsEntryPersistence;
173 }
174
175 public AnnouncementsEntryFinder getAnnouncementsEntryFinder() {
176 return announcementsEntryFinder;
177 }
178
179 public void setAnnouncementsEntryFinder(
180 AnnouncementsEntryFinder announcementsEntryFinder) {
181 this.announcementsEntryFinder = announcementsEntryFinder;
182 }
183
184 public AnnouncementsFlagLocalService getAnnouncementsFlagLocalService() {
185 return announcementsFlagLocalService;
186 }
187
188 public void setAnnouncementsFlagLocalService(
189 AnnouncementsFlagLocalService announcementsFlagLocalService) {
190 this.announcementsFlagLocalService = announcementsFlagLocalService;
191 }
192
193 public AnnouncementsFlagService getAnnouncementsFlagService() {
194 return announcementsFlagService;
195 }
196
197 public void setAnnouncementsFlagService(
198 AnnouncementsFlagService announcementsFlagService) {
199 this.announcementsFlagService = announcementsFlagService;
200 }
201
202 public AnnouncementsFlagPersistence getAnnouncementsFlagPersistence() {
203 return announcementsFlagPersistence;
204 }
205
206 public void setAnnouncementsFlagPersistence(
207 AnnouncementsFlagPersistence announcementsFlagPersistence) {
208 this.announcementsFlagPersistence = announcementsFlagPersistence;
209 }
210
211 public CounterLocalService getCounterLocalService() {
212 return counterLocalService;
213 }
214
215 public void setCounterLocalService(CounterLocalService counterLocalService) {
216 this.counterLocalService = counterLocalService;
217 }
218
219 public CounterService getCounterService() {
220 return counterService;
221 }
222
223 public void setCounterService(CounterService counterService) {
224 this.counterService = counterService;
225 }
226
227 public UserLocalService getUserLocalService() {
228 return userLocalService;
229 }
230
231 public void setUserLocalService(UserLocalService userLocalService) {
232 this.userLocalService = userLocalService;
233 }
234
235 public UserService getUserService() {
236 return userService;
237 }
238
239 public void setUserService(UserService userService) {
240 this.userService = userService;
241 }
242
243 public UserPersistence getUserPersistence() {
244 return userPersistence;
245 }
246
247 public void setUserPersistence(UserPersistence userPersistence) {
248 this.userPersistence = userPersistence;
249 }
250
251 public UserFinder getUserFinder() {
252 return userFinder;
253 }
254
255 public void setUserFinder(UserFinder userFinder) {
256 this.userFinder = userFinder;
257 }
258
259 protected void runSQL(String sql) throws SystemException {
260 try {
261 PortalUtil.runSQL(sql);
262 }
263 catch (Exception e) {
264 throw new SystemException(e);
265 }
266 }
267
268 @BeanReference(name = "com.liferay.portlet.announcements.service.AnnouncementsDeliveryLocalService.impl")
269 protected AnnouncementsDeliveryLocalService announcementsDeliveryLocalService;
270 @BeanReference(name = "com.liferay.portlet.announcements.service.AnnouncementsDeliveryService.impl")
271 protected AnnouncementsDeliveryService announcementsDeliveryService;
272 @BeanReference(name = "com.liferay.portlet.announcements.service.persistence.AnnouncementsDeliveryPersistence.impl")
273 protected AnnouncementsDeliveryPersistence announcementsDeliveryPersistence;
274 @BeanReference(name = "com.liferay.portlet.announcements.service.AnnouncementsEntryLocalService.impl")
275 protected AnnouncementsEntryLocalService announcementsEntryLocalService;
276 @BeanReference(name = "com.liferay.portlet.announcements.service.AnnouncementsEntryService.impl")
277 protected AnnouncementsEntryService announcementsEntryService;
278 @BeanReference(name = "com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryPersistence.impl")
279 protected AnnouncementsEntryPersistence announcementsEntryPersistence;
280 @BeanReference(name = "com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryFinder.impl")
281 protected AnnouncementsEntryFinder announcementsEntryFinder;
282 @BeanReference(name = "com.liferay.portlet.announcements.service.AnnouncementsFlagLocalService.impl")
283 protected AnnouncementsFlagLocalService announcementsFlagLocalService;
284 @BeanReference(name = "com.liferay.portlet.announcements.service.AnnouncementsFlagService.impl")
285 protected AnnouncementsFlagService announcementsFlagService;
286 @BeanReference(name = "com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence.impl")
287 protected AnnouncementsFlagPersistence announcementsFlagPersistence;
288 @BeanReference(name = "com.liferay.counter.service.CounterLocalService.impl")
289 protected CounterLocalService counterLocalService;
290 @BeanReference(name = "com.liferay.counter.service.CounterService.impl")
291 protected CounterService counterService;
292 @BeanReference(name = "com.liferay.portal.service.UserLocalService.impl")
293 protected UserLocalService userLocalService;
294 @BeanReference(name = "com.liferay.portal.service.UserService.impl")
295 protected UserService userService;
296 @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
297 protected UserPersistence userPersistence;
298 @BeanReference(name = "com.liferay.portal.service.persistence.UserFinder.impl")
299 protected UserFinder userFinder;
300 }