001
014
015 package com.liferay.portal.model;
016
017 import java.util.Date;
018 import java.util.HashMap;
019 import java.util.Map;
020
021
030 public class WebsiteWrapper implements Website, ModelWrapper<Website> {
031 public WebsiteWrapper(Website website) {
032 _website = website;
033 }
034
035 public Class<?> getModelClass() {
036 return Website.class;
037 }
038
039 public String getModelClassName() {
040 return Website.class.getName();
041 }
042
043 public Map<String, Object> getModelAttributes() {
044 Map<String, Object> attributes = new HashMap<String, Object>();
045
046 attributes.put("websiteId", getWebsiteId());
047 attributes.put("companyId", getCompanyId());
048 attributes.put("userId", getUserId());
049 attributes.put("userName", getUserName());
050 attributes.put("createDate", getCreateDate());
051 attributes.put("modifiedDate", getModifiedDate());
052 attributes.put("classNameId", getClassNameId());
053 attributes.put("classPK", getClassPK());
054 attributes.put("url", getUrl());
055 attributes.put("typeId", getTypeId());
056 attributes.put("primary", getPrimary());
057
058 return attributes;
059 }
060
061 public void setModelAttributes(Map<String, Object> attributes) {
062 Long websiteId = (Long)attributes.get("websiteId");
063
064 if (websiteId != null) {
065 setWebsiteId(websiteId);
066 }
067
068 Long companyId = (Long)attributes.get("companyId");
069
070 if (companyId != null) {
071 setCompanyId(companyId);
072 }
073
074 Long userId = (Long)attributes.get("userId");
075
076 if (userId != null) {
077 setUserId(userId);
078 }
079
080 String userName = (String)attributes.get("userName");
081
082 if (userName != null) {
083 setUserName(userName);
084 }
085
086 Date createDate = (Date)attributes.get("createDate");
087
088 if (createDate != null) {
089 setCreateDate(createDate);
090 }
091
092 Date modifiedDate = (Date)attributes.get("modifiedDate");
093
094 if (modifiedDate != null) {
095 setModifiedDate(modifiedDate);
096 }
097
098 Long classNameId = (Long)attributes.get("classNameId");
099
100 if (classNameId != null) {
101 setClassNameId(classNameId);
102 }
103
104 Long classPK = (Long)attributes.get("classPK");
105
106 if (classPK != null) {
107 setClassPK(classPK);
108 }
109
110 String url = (String)attributes.get("url");
111
112 if (url != null) {
113 setUrl(url);
114 }
115
116 Integer typeId = (Integer)attributes.get("typeId");
117
118 if (typeId != null) {
119 setTypeId(typeId);
120 }
121
122 Boolean primary = (Boolean)attributes.get("primary");
123
124 if (primary != null) {
125 setPrimary(primary);
126 }
127 }
128
129
134 public long getPrimaryKey() {
135 return _website.getPrimaryKey();
136 }
137
138
143 public void setPrimaryKey(long primaryKey) {
144 _website.setPrimaryKey(primaryKey);
145 }
146
147
152 public long getWebsiteId() {
153 return _website.getWebsiteId();
154 }
155
156
161 public void setWebsiteId(long websiteId) {
162 _website.setWebsiteId(websiteId);
163 }
164
165
170 public long getCompanyId() {
171 return _website.getCompanyId();
172 }
173
174
179 public void setCompanyId(long companyId) {
180 _website.setCompanyId(companyId);
181 }
182
183
188 public long getUserId() {
189 return _website.getUserId();
190 }
191
192
197 public void setUserId(long userId) {
198 _website.setUserId(userId);
199 }
200
201
207 public java.lang.String getUserUuid()
208 throws com.liferay.portal.kernel.exception.SystemException {
209 return _website.getUserUuid();
210 }
211
212
217 public void setUserUuid(java.lang.String userUuid) {
218 _website.setUserUuid(userUuid);
219 }
220
221
226 public java.lang.String getUserName() {
227 return _website.getUserName();
228 }
229
230
235 public void setUserName(java.lang.String userName) {
236 _website.setUserName(userName);
237 }
238
239
244 public java.util.Date getCreateDate() {
245 return _website.getCreateDate();
246 }
247
248
253 public void setCreateDate(java.util.Date createDate) {
254 _website.setCreateDate(createDate);
255 }
256
257
262 public java.util.Date getModifiedDate() {
263 return _website.getModifiedDate();
264 }
265
266
271 public void setModifiedDate(java.util.Date modifiedDate) {
272 _website.setModifiedDate(modifiedDate);
273 }
274
275
280 public java.lang.String getClassName() {
281 return _website.getClassName();
282 }
283
284 public void setClassName(java.lang.String className) {
285 _website.setClassName(className);
286 }
287
288
293 public long getClassNameId() {
294 return _website.getClassNameId();
295 }
296
297
302 public void setClassNameId(long classNameId) {
303 _website.setClassNameId(classNameId);
304 }
305
306
311 public long getClassPK() {
312 return _website.getClassPK();
313 }
314
315
320 public void setClassPK(long classPK) {
321 _website.setClassPK(classPK);
322 }
323
324
329 public java.lang.String getUrl() {
330 return _website.getUrl();
331 }
332
333
338 public void setUrl(java.lang.String url) {
339 _website.setUrl(url);
340 }
341
342
347 public int getTypeId() {
348 return _website.getTypeId();
349 }
350
351
356 public void setTypeId(int typeId) {
357 _website.setTypeId(typeId);
358 }
359
360
365 public boolean getPrimary() {
366 return _website.getPrimary();
367 }
368
369
374 public boolean isPrimary() {
375 return _website.isPrimary();
376 }
377
378
383 public void setPrimary(boolean primary) {
384 _website.setPrimary(primary);
385 }
386
387 public boolean isNew() {
388 return _website.isNew();
389 }
390
391 public void setNew(boolean n) {
392 _website.setNew(n);
393 }
394
395 public boolean isCachedModel() {
396 return _website.isCachedModel();
397 }
398
399 public void setCachedModel(boolean cachedModel) {
400 _website.setCachedModel(cachedModel);
401 }
402
403 public boolean isEscapedModel() {
404 return _website.isEscapedModel();
405 }
406
407 public java.io.Serializable getPrimaryKeyObj() {
408 return _website.getPrimaryKeyObj();
409 }
410
411 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
412 _website.setPrimaryKeyObj(primaryKeyObj);
413 }
414
415 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
416 return _website.getExpandoBridge();
417 }
418
419 public void setExpandoBridgeAttributes(
420 com.liferay.portal.model.BaseModel<?> baseModel) {
421 _website.setExpandoBridgeAttributes(baseModel);
422 }
423
424 public void setExpandoBridgeAttributes(
425 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
426 _website.setExpandoBridgeAttributes(expandoBridge);
427 }
428
429 public void setExpandoBridgeAttributes(
430 com.liferay.portal.service.ServiceContext serviceContext) {
431 _website.setExpandoBridgeAttributes(serviceContext);
432 }
433
434 @Override
435 public java.lang.Object clone() {
436 return new WebsiteWrapper((Website)_website.clone());
437 }
438
439 public int compareTo(com.liferay.portal.model.Website website) {
440 return _website.compareTo(website);
441 }
442
443 @Override
444 public int hashCode() {
445 return _website.hashCode();
446 }
447
448 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Website> toCacheModel() {
449 return _website.toCacheModel();
450 }
451
452 public com.liferay.portal.model.Website toEscapedModel() {
453 return new WebsiteWrapper(_website.toEscapedModel());
454 }
455
456 public com.liferay.portal.model.Website toUnescapedModel() {
457 return new WebsiteWrapper(_website.toUnescapedModel());
458 }
459
460 @Override
461 public java.lang.String toString() {
462 return _website.toString();
463 }
464
465 public java.lang.String toXmlString() {
466 return _website.toXmlString();
467 }
468
469 public void persist()
470 throws com.liferay.portal.kernel.exception.SystemException {
471 _website.persist();
472 }
473
474 public com.liferay.portal.model.ListType getType()
475 throws com.liferay.portal.kernel.exception.PortalException,
476 com.liferay.portal.kernel.exception.SystemException {
477 return _website.getType();
478 }
479
480
483 public Website getWrappedWebsite() {
484 return _website;
485 }
486
487 public Website getWrappedModel() {
488 return _website;
489 }
490
491 public void resetOriginalValues() {
492 _website.resetOriginalValues();
493 }
494
495 private Website _website;
496 }