001
014
015 package com.liferay.portlet.shopping.model;
016
017 import com.liferay.portal.model.ModelWrapper;
018
019 import java.util.Date;
020 import java.util.HashMap;
021 import java.util.Map;
022
023
032 public class ShoppingCategoryWrapper implements ShoppingCategory,
033 ModelWrapper<ShoppingCategory> {
034 public ShoppingCategoryWrapper(ShoppingCategory shoppingCategory) {
035 _shoppingCategory = shoppingCategory;
036 }
037
038 public Class<?> getModelClass() {
039 return ShoppingCategory.class;
040 }
041
042 public String getModelClassName() {
043 return ShoppingCategory.class.getName();
044 }
045
046 public Map<String, Object> getModelAttributes() {
047 Map<String, Object> attributes = new HashMap<String, Object>();
048
049 attributes.put("categoryId", getCategoryId());
050 attributes.put("groupId", getGroupId());
051 attributes.put("companyId", getCompanyId());
052 attributes.put("userId", getUserId());
053 attributes.put("userName", getUserName());
054 attributes.put("createDate", getCreateDate());
055 attributes.put("modifiedDate", getModifiedDate());
056 attributes.put("parentCategoryId", getParentCategoryId());
057 attributes.put("name", getName());
058 attributes.put("description", getDescription());
059
060 return attributes;
061 }
062
063 public void setModelAttributes(Map<String, Object> attributes) {
064 Long categoryId = (Long)attributes.get("categoryId");
065
066 if (categoryId != null) {
067 setCategoryId(categoryId);
068 }
069
070 Long groupId = (Long)attributes.get("groupId");
071
072 if (groupId != null) {
073 setGroupId(groupId);
074 }
075
076 Long companyId = (Long)attributes.get("companyId");
077
078 if (companyId != null) {
079 setCompanyId(companyId);
080 }
081
082 Long userId = (Long)attributes.get("userId");
083
084 if (userId != null) {
085 setUserId(userId);
086 }
087
088 String userName = (String)attributes.get("userName");
089
090 if (userName != null) {
091 setUserName(userName);
092 }
093
094 Date createDate = (Date)attributes.get("createDate");
095
096 if (createDate != null) {
097 setCreateDate(createDate);
098 }
099
100 Date modifiedDate = (Date)attributes.get("modifiedDate");
101
102 if (modifiedDate != null) {
103 setModifiedDate(modifiedDate);
104 }
105
106 Long parentCategoryId = (Long)attributes.get("parentCategoryId");
107
108 if (parentCategoryId != null) {
109 setParentCategoryId(parentCategoryId);
110 }
111
112 String name = (String)attributes.get("name");
113
114 if (name != null) {
115 setName(name);
116 }
117
118 String description = (String)attributes.get("description");
119
120 if (description != null) {
121 setDescription(description);
122 }
123 }
124
125
130 public long getPrimaryKey() {
131 return _shoppingCategory.getPrimaryKey();
132 }
133
134
139 public void setPrimaryKey(long primaryKey) {
140 _shoppingCategory.setPrimaryKey(primaryKey);
141 }
142
143
148 public long getCategoryId() {
149 return _shoppingCategory.getCategoryId();
150 }
151
152
157 public void setCategoryId(long categoryId) {
158 _shoppingCategory.setCategoryId(categoryId);
159 }
160
161
166 public long getGroupId() {
167 return _shoppingCategory.getGroupId();
168 }
169
170
175 public void setGroupId(long groupId) {
176 _shoppingCategory.setGroupId(groupId);
177 }
178
179
184 public long getCompanyId() {
185 return _shoppingCategory.getCompanyId();
186 }
187
188
193 public void setCompanyId(long companyId) {
194 _shoppingCategory.setCompanyId(companyId);
195 }
196
197
202 public long getUserId() {
203 return _shoppingCategory.getUserId();
204 }
205
206
211 public void setUserId(long userId) {
212 _shoppingCategory.setUserId(userId);
213 }
214
215
221 public java.lang.String getUserUuid()
222 throws com.liferay.portal.kernel.exception.SystemException {
223 return _shoppingCategory.getUserUuid();
224 }
225
226
231 public void setUserUuid(java.lang.String userUuid) {
232 _shoppingCategory.setUserUuid(userUuid);
233 }
234
235
240 public java.lang.String getUserName() {
241 return _shoppingCategory.getUserName();
242 }
243
244
249 public void setUserName(java.lang.String userName) {
250 _shoppingCategory.setUserName(userName);
251 }
252
253
258 public java.util.Date getCreateDate() {
259 return _shoppingCategory.getCreateDate();
260 }
261
262
267 public void setCreateDate(java.util.Date createDate) {
268 _shoppingCategory.setCreateDate(createDate);
269 }
270
271
276 public java.util.Date getModifiedDate() {
277 return _shoppingCategory.getModifiedDate();
278 }
279
280
285 public void setModifiedDate(java.util.Date modifiedDate) {
286 _shoppingCategory.setModifiedDate(modifiedDate);
287 }
288
289
294 public long getParentCategoryId() {
295 return _shoppingCategory.getParentCategoryId();
296 }
297
298
303 public void setParentCategoryId(long parentCategoryId) {
304 _shoppingCategory.setParentCategoryId(parentCategoryId);
305 }
306
307
312 public java.lang.String getName() {
313 return _shoppingCategory.getName();
314 }
315
316
321 public void setName(java.lang.String name) {
322 _shoppingCategory.setName(name);
323 }
324
325
330 public java.lang.String getDescription() {
331 return _shoppingCategory.getDescription();
332 }
333
334
339 public void setDescription(java.lang.String description) {
340 _shoppingCategory.setDescription(description);
341 }
342
343 public boolean isNew() {
344 return _shoppingCategory.isNew();
345 }
346
347 public void setNew(boolean n) {
348 _shoppingCategory.setNew(n);
349 }
350
351 public boolean isCachedModel() {
352 return _shoppingCategory.isCachedModel();
353 }
354
355 public void setCachedModel(boolean cachedModel) {
356 _shoppingCategory.setCachedModel(cachedModel);
357 }
358
359 public boolean isEscapedModel() {
360 return _shoppingCategory.isEscapedModel();
361 }
362
363 public java.io.Serializable getPrimaryKeyObj() {
364 return _shoppingCategory.getPrimaryKeyObj();
365 }
366
367 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
368 _shoppingCategory.setPrimaryKeyObj(primaryKeyObj);
369 }
370
371 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
372 return _shoppingCategory.getExpandoBridge();
373 }
374
375 public void setExpandoBridgeAttributes(
376 com.liferay.portal.service.ServiceContext serviceContext) {
377 _shoppingCategory.setExpandoBridgeAttributes(serviceContext);
378 }
379
380 @Override
381 public java.lang.Object clone() {
382 return new ShoppingCategoryWrapper((ShoppingCategory)_shoppingCategory.clone());
383 }
384
385 public int compareTo(
386 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory) {
387 return _shoppingCategory.compareTo(shoppingCategory);
388 }
389
390 @Override
391 public int hashCode() {
392 return _shoppingCategory.hashCode();
393 }
394
395 public com.liferay.portal.model.CacheModel<com.liferay.portlet.shopping.model.ShoppingCategory> toCacheModel() {
396 return _shoppingCategory.toCacheModel();
397 }
398
399 public com.liferay.portlet.shopping.model.ShoppingCategory toEscapedModel() {
400 return new ShoppingCategoryWrapper(_shoppingCategory.toEscapedModel());
401 }
402
403 public com.liferay.portlet.shopping.model.ShoppingCategory toUnescapedModel() {
404 return new ShoppingCategoryWrapper(_shoppingCategory.toUnescapedModel());
405 }
406
407 @Override
408 public java.lang.String toString() {
409 return _shoppingCategory.toString();
410 }
411
412 public java.lang.String toXmlString() {
413 return _shoppingCategory.toXmlString();
414 }
415
416 public void persist()
417 throws com.liferay.portal.kernel.exception.SystemException {
418 _shoppingCategory.persist();
419 }
420
421 public boolean isRoot() {
422 return _shoppingCategory.isRoot();
423 }
424
425
428 public ShoppingCategory getWrappedShoppingCategory() {
429 return _shoppingCategory;
430 }
431
432 public ShoppingCategory getWrappedModel() {
433 return _shoppingCategory;
434 }
435
436 public void resetOriginalValues() {
437 _shoppingCategory.resetOriginalValues();
438 }
439
440 private ShoppingCategory _shoppingCategory;
441 }