001
014
015 package com.liferay.portlet.asset.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 AssetCategoryPropertyWrapper implements AssetCategoryProperty,
033 ModelWrapper<AssetCategoryProperty> {
034 public AssetCategoryPropertyWrapper(
035 AssetCategoryProperty assetCategoryProperty) {
036 _assetCategoryProperty = assetCategoryProperty;
037 }
038
039 public Class<?> getModelClass() {
040 return AssetCategoryProperty.class;
041 }
042
043 public String getModelClassName() {
044 return AssetCategoryProperty.class.getName();
045 }
046
047 public Map<String, Object> getModelAttributes() {
048 Map<String, Object> attributes = new HashMap<String, Object>();
049
050 attributes.put("categoryPropertyId", getCategoryPropertyId());
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("categoryId", getCategoryId());
057 attributes.put("key", getKey());
058 attributes.put("value", getValue());
059
060 return attributes;
061 }
062
063 public void setModelAttributes(Map<String, Object> attributes) {
064 Long categoryPropertyId = (Long)attributes.get("categoryPropertyId");
065
066 if (categoryPropertyId != null) {
067 setCategoryPropertyId(categoryPropertyId);
068 }
069
070 Long companyId = (Long)attributes.get("companyId");
071
072 if (companyId != null) {
073 setCompanyId(companyId);
074 }
075
076 Long userId = (Long)attributes.get("userId");
077
078 if (userId != null) {
079 setUserId(userId);
080 }
081
082 String userName = (String)attributes.get("userName");
083
084 if (userName != null) {
085 setUserName(userName);
086 }
087
088 Date createDate = (Date)attributes.get("createDate");
089
090 if (createDate != null) {
091 setCreateDate(createDate);
092 }
093
094 Date modifiedDate = (Date)attributes.get("modifiedDate");
095
096 if (modifiedDate != null) {
097 setModifiedDate(modifiedDate);
098 }
099
100 Long categoryId = (Long)attributes.get("categoryId");
101
102 if (categoryId != null) {
103 setCategoryId(categoryId);
104 }
105
106 String key = (String)attributes.get("key");
107
108 if (key != null) {
109 setKey(key);
110 }
111
112 String value = (String)attributes.get("value");
113
114 if (value != null) {
115 setValue(value);
116 }
117 }
118
119
124 public long getPrimaryKey() {
125 return _assetCategoryProperty.getPrimaryKey();
126 }
127
128
133 public void setPrimaryKey(long primaryKey) {
134 _assetCategoryProperty.setPrimaryKey(primaryKey);
135 }
136
137
142 public long getCategoryPropertyId() {
143 return _assetCategoryProperty.getCategoryPropertyId();
144 }
145
146
151 public void setCategoryPropertyId(long categoryPropertyId) {
152 _assetCategoryProperty.setCategoryPropertyId(categoryPropertyId);
153 }
154
155
160 public long getCompanyId() {
161 return _assetCategoryProperty.getCompanyId();
162 }
163
164
169 public void setCompanyId(long companyId) {
170 _assetCategoryProperty.setCompanyId(companyId);
171 }
172
173
178 public long getUserId() {
179 return _assetCategoryProperty.getUserId();
180 }
181
182
187 public void setUserId(long userId) {
188 _assetCategoryProperty.setUserId(userId);
189 }
190
191
197 public java.lang.String getUserUuid()
198 throws com.liferay.portal.kernel.exception.SystemException {
199 return _assetCategoryProperty.getUserUuid();
200 }
201
202
207 public void setUserUuid(java.lang.String userUuid) {
208 _assetCategoryProperty.setUserUuid(userUuid);
209 }
210
211
216 public java.lang.String getUserName() {
217 return _assetCategoryProperty.getUserName();
218 }
219
220
225 public void setUserName(java.lang.String userName) {
226 _assetCategoryProperty.setUserName(userName);
227 }
228
229
234 public java.util.Date getCreateDate() {
235 return _assetCategoryProperty.getCreateDate();
236 }
237
238
243 public void setCreateDate(java.util.Date createDate) {
244 _assetCategoryProperty.setCreateDate(createDate);
245 }
246
247
252 public java.util.Date getModifiedDate() {
253 return _assetCategoryProperty.getModifiedDate();
254 }
255
256
261 public void setModifiedDate(java.util.Date modifiedDate) {
262 _assetCategoryProperty.setModifiedDate(modifiedDate);
263 }
264
265
270 public long getCategoryId() {
271 return _assetCategoryProperty.getCategoryId();
272 }
273
274
279 public void setCategoryId(long categoryId) {
280 _assetCategoryProperty.setCategoryId(categoryId);
281 }
282
283
288 public java.lang.String getKey() {
289 return _assetCategoryProperty.getKey();
290 }
291
292
297 public void setKey(java.lang.String key) {
298 _assetCategoryProperty.setKey(key);
299 }
300
301
306 public java.lang.String getValue() {
307 return _assetCategoryProperty.getValue();
308 }
309
310
315 public void setValue(java.lang.String value) {
316 _assetCategoryProperty.setValue(value);
317 }
318
319 public boolean isNew() {
320 return _assetCategoryProperty.isNew();
321 }
322
323 public void setNew(boolean n) {
324 _assetCategoryProperty.setNew(n);
325 }
326
327 public boolean isCachedModel() {
328 return _assetCategoryProperty.isCachedModel();
329 }
330
331 public void setCachedModel(boolean cachedModel) {
332 _assetCategoryProperty.setCachedModel(cachedModel);
333 }
334
335 public boolean isEscapedModel() {
336 return _assetCategoryProperty.isEscapedModel();
337 }
338
339 public java.io.Serializable getPrimaryKeyObj() {
340 return _assetCategoryProperty.getPrimaryKeyObj();
341 }
342
343 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
344 _assetCategoryProperty.setPrimaryKeyObj(primaryKeyObj);
345 }
346
347 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
348 return _assetCategoryProperty.getExpandoBridge();
349 }
350
351 public void setExpandoBridgeAttributes(
352 com.liferay.portal.service.ServiceContext serviceContext) {
353 _assetCategoryProperty.setExpandoBridgeAttributes(serviceContext);
354 }
355
356 @Override
357 public java.lang.Object clone() {
358 return new AssetCategoryPropertyWrapper((AssetCategoryProperty)_assetCategoryProperty.clone());
359 }
360
361 public int compareTo(
362 com.liferay.portlet.asset.model.AssetCategoryProperty assetCategoryProperty) {
363 return _assetCategoryProperty.compareTo(assetCategoryProperty);
364 }
365
366 @Override
367 public int hashCode() {
368 return _assetCategoryProperty.hashCode();
369 }
370
371 public com.liferay.portal.model.CacheModel<com.liferay.portlet.asset.model.AssetCategoryProperty> toCacheModel() {
372 return _assetCategoryProperty.toCacheModel();
373 }
374
375 public com.liferay.portlet.asset.model.AssetCategoryProperty toEscapedModel() {
376 return new AssetCategoryPropertyWrapper(_assetCategoryProperty.toEscapedModel());
377 }
378
379 public com.liferay.portlet.asset.model.AssetCategoryProperty toUnescapedModel() {
380 return new AssetCategoryPropertyWrapper(_assetCategoryProperty.toUnescapedModel());
381 }
382
383 @Override
384 public java.lang.String toString() {
385 return _assetCategoryProperty.toString();
386 }
387
388 public java.lang.String toXmlString() {
389 return _assetCategoryProperty.toXmlString();
390 }
391
392 public void persist()
393 throws com.liferay.portal.kernel.exception.SystemException {
394 _assetCategoryProperty.persist();
395 }
396
397
400 public AssetCategoryProperty getWrappedAssetCategoryProperty() {
401 return _assetCategoryProperty;
402 }
403
404 public AssetCategoryProperty getWrappedModel() {
405 return _assetCategoryProperty;
406 }
407
408 public void resetOriginalValues() {
409 _assetCategoryProperty.resetOriginalValues();
410 }
411
412 private AssetCategoryProperty _assetCategoryProperty;
413 }