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