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.service.ServiceContext serviceContext) {
421 _website.setExpandoBridgeAttributes(serviceContext);
422 }
423
424 @Override
425 public java.lang.Object clone() {
426 return new WebsiteWrapper((Website)_website.clone());
427 }
428
429 public int compareTo(com.liferay.portal.model.Website website) {
430 return _website.compareTo(website);
431 }
432
433 @Override
434 public int hashCode() {
435 return _website.hashCode();
436 }
437
438 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Website> toCacheModel() {
439 return _website.toCacheModel();
440 }
441
442 public com.liferay.portal.model.Website toEscapedModel() {
443 return new WebsiteWrapper(_website.toEscapedModel());
444 }
445
446 @Override
447 public java.lang.String toString() {
448 return _website.toString();
449 }
450
451 public java.lang.String toXmlString() {
452 return _website.toXmlString();
453 }
454
455 public void persist()
456 throws com.liferay.portal.kernel.exception.SystemException {
457 _website.persist();
458 }
459
460 public com.liferay.portal.model.ListType getType()
461 throws com.liferay.portal.kernel.exception.PortalException,
462 com.liferay.portal.kernel.exception.SystemException {
463 return _website.getType();
464 }
465
466
469 public Website getWrappedWebsite() {
470 return _website;
471 }
472
473 public Website getWrappedModel() {
474 return _website;
475 }
476
477 public void resetOriginalValues() {
478 _website.resetOriginalValues();
479 }
480
481 private Website _website;
482 }