001
014
015 package com.liferay.portlet.announcements.model;
016
017 import com.liferay.portal.model.ModelWrapper;
018
019 import java.util.HashMap;
020 import java.util.Map;
021
022
031 public class AnnouncementsDeliveryWrapper implements AnnouncementsDelivery,
032 ModelWrapper<AnnouncementsDelivery> {
033 public AnnouncementsDeliveryWrapper(
034 AnnouncementsDelivery announcementsDelivery) {
035 _announcementsDelivery = announcementsDelivery;
036 }
037
038 public Class<?> getModelClass() {
039 return AnnouncementsDelivery.class;
040 }
041
042 public String getModelClassName() {
043 return AnnouncementsDelivery.class.getName();
044 }
045
046 public Map<String, Object> getModelAttributes() {
047 Map<String, Object> attributes = new HashMap<String, Object>();
048
049 attributes.put("deliveryId", getDeliveryId());
050 attributes.put("companyId", getCompanyId());
051 attributes.put("userId", getUserId());
052 attributes.put("type", getType());
053 attributes.put("email", getEmail());
054 attributes.put("sms", getSms());
055 attributes.put("website", getWebsite());
056
057 return attributes;
058 }
059
060 public void setModelAttributes(Map<String, Object> attributes) {
061 Long deliveryId = (Long)attributes.get("deliveryId");
062
063 if (deliveryId != null) {
064 setDeliveryId(deliveryId);
065 }
066
067 Long companyId = (Long)attributes.get("companyId");
068
069 if (companyId != null) {
070 setCompanyId(companyId);
071 }
072
073 Long userId = (Long)attributes.get("userId");
074
075 if (userId != null) {
076 setUserId(userId);
077 }
078
079 String type = (String)attributes.get("type");
080
081 if (type != null) {
082 setType(type);
083 }
084
085 Boolean email = (Boolean)attributes.get("email");
086
087 if (email != null) {
088 setEmail(email);
089 }
090
091 Boolean sms = (Boolean)attributes.get("sms");
092
093 if (sms != null) {
094 setSms(sms);
095 }
096
097 Boolean website = (Boolean)attributes.get("website");
098
099 if (website != null) {
100 setWebsite(website);
101 }
102 }
103
104
109 public long getPrimaryKey() {
110 return _announcementsDelivery.getPrimaryKey();
111 }
112
113
118 public void setPrimaryKey(long primaryKey) {
119 _announcementsDelivery.setPrimaryKey(primaryKey);
120 }
121
122
127 public long getDeliveryId() {
128 return _announcementsDelivery.getDeliveryId();
129 }
130
131
136 public void setDeliveryId(long deliveryId) {
137 _announcementsDelivery.setDeliveryId(deliveryId);
138 }
139
140
145 public long getCompanyId() {
146 return _announcementsDelivery.getCompanyId();
147 }
148
149
154 public void setCompanyId(long companyId) {
155 _announcementsDelivery.setCompanyId(companyId);
156 }
157
158
163 public long getUserId() {
164 return _announcementsDelivery.getUserId();
165 }
166
167
172 public void setUserId(long userId) {
173 _announcementsDelivery.setUserId(userId);
174 }
175
176
182 public java.lang.String getUserUuid()
183 throws com.liferay.portal.kernel.exception.SystemException {
184 return _announcementsDelivery.getUserUuid();
185 }
186
187
192 public void setUserUuid(java.lang.String userUuid) {
193 _announcementsDelivery.setUserUuid(userUuid);
194 }
195
196
201 public java.lang.String getType() {
202 return _announcementsDelivery.getType();
203 }
204
205
210 public void setType(java.lang.String type) {
211 _announcementsDelivery.setType(type);
212 }
213
214
219 public boolean getEmail() {
220 return _announcementsDelivery.getEmail();
221 }
222
223
228 public boolean isEmail() {
229 return _announcementsDelivery.isEmail();
230 }
231
232
237 public void setEmail(boolean email) {
238 _announcementsDelivery.setEmail(email);
239 }
240
241
246 public boolean getSms() {
247 return _announcementsDelivery.getSms();
248 }
249
250
255 public boolean isSms() {
256 return _announcementsDelivery.isSms();
257 }
258
259
264 public void setSms(boolean sms) {
265 _announcementsDelivery.setSms(sms);
266 }
267
268
273 public boolean getWebsite() {
274 return _announcementsDelivery.getWebsite();
275 }
276
277
282 public boolean isWebsite() {
283 return _announcementsDelivery.isWebsite();
284 }
285
286
291 public void setWebsite(boolean website) {
292 _announcementsDelivery.setWebsite(website);
293 }
294
295 public boolean isNew() {
296 return _announcementsDelivery.isNew();
297 }
298
299 public void setNew(boolean n) {
300 _announcementsDelivery.setNew(n);
301 }
302
303 public boolean isCachedModel() {
304 return _announcementsDelivery.isCachedModel();
305 }
306
307 public void setCachedModel(boolean cachedModel) {
308 _announcementsDelivery.setCachedModel(cachedModel);
309 }
310
311 public boolean isEscapedModel() {
312 return _announcementsDelivery.isEscapedModel();
313 }
314
315 public java.io.Serializable getPrimaryKeyObj() {
316 return _announcementsDelivery.getPrimaryKeyObj();
317 }
318
319 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
320 _announcementsDelivery.setPrimaryKeyObj(primaryKeyObj);
321 }
322
323 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
324 return _announcementsDelivery.getExpandoBridge();
325 }
326
327 public void setExpandoBridgeAttributes(
328 com.liferay.portal.service.ServiceContext serviceContext) {
329 _announcementsDelivery.setExpandoBridgeAttributes(serviceContext);
330 }
331
332 @Override
333 public java.lang.Object clone() {
334 return new AnnouncementsDeliveryWrapper((AnnouncementsDelivery)_announcementsDelivery.clone());
335 }
336
337 public int compareTo(
338 com.liferay.portlet.announcements.model.AnnouncementsDelivery announcementsDelivery) {
339 return _announcementsDelivery.compareTo(announcementsDelivery);
340 }
341
342 @Override
343 public int hashCode() {
344 return _announcementsDelivery.hashCode();
345 }
346
347 public com.liferay.portal.model.CacheModel<com.liferay.portlet.announcements.model.AnnouncementsDelivery> toCacheModel() {
348 return _announcementsDelivery.toCacheModel();
349 }
350
351 public com.liferay.portlet.announcements.model.AnnouncementsDelivery toEscapedModel() {
352 return new AnnouncementsDeliveryWrapper(_announcementsDelivery.toEscapedModel());
353 }
354
355 public com.liferay.portlet.announcements.model.AnnouncementsDelivery toUnescapedModel() {
356 return new AnnouncementsDeliveryWrapper(_announcementsDelivery.toUnescapedModel());
357 }
358
359 @Override
360 public java.lang.String toString() {
361 return _announcementsDelivery.toString();
362 }
363
364 public java.lang.String toXmlString() {
365 return _announcementsDelivery.toXmlString();
366 }
367
368 public void persist()
369 throws com.liferay.portal.kernel.exception.SystemException {
370 _announcementsDelivery.persist();
371 }
372
373
376 public AnnouncementsDelivery getWrappedAnnouncementsDelivery() {
377 return _announcementsDelivery;
378 }
379
380 public AnnouncementsDelivery getWrappedModel() {
381 return _announcementsDelivery;
382 }
383
384 public void resetOriginalValues() {
385 _announcementsDelivery.resetOriginalValues();
386 }
387
388 private AnnouncementsDelivery _announcementsDelivery;
389 }