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