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 AssetLinkWrapper implements AssetLink, ModelWrapper<AssetLink> {
033 public AssetLinkWrapper(AssetLink assetLink) {
034 _assetLink = assetLink;
035 }
036
037 public Class<?> getModelClass() {
038 return AssetLink.class;
039 }
040
041 public String getModelClassName() {
042 return AssetLink.class.getName();
043 }
044
045 public Map<String, Object> getModelAttributes() {
046 Map<String, Object> attributes = new HashMap<String, Object>();
047
048 attributes.put("linkId", getLinkId());
049 attributes.put("companyId", getCompanyId());
050 attributes.put("userId", getUserId());
051 attributes.put("userName", getUserName());
052 attributes.put("createDate", getCreateDate());
053 attributes.put("entryId1", getEntryId1());
054 attributes.put("entryId2", getEntryId2());
055 attributes.put("type", getType());
056 attributes.put("weight", getWeight());
057
058 return attributes;
059 }
060
061 public void setModelAttributes(Map<String, Object> attributes) {
062 Long linkId = (Long)attributes.get("linkId");
063
064 if (linkId != null) {
065 setLinkId(linkId);
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 Long entryId1 = (Long)attributes.get("entryId1");
093
094 if (entryId1 != null) {
095 setEntryId1(entryId1);
096 }
097
098 Long entryId2 = (Long)attributes.get("entryId2");
099
100 if (entryId2 != null) {
101 setEntryId2(entryId2);
102 }
103
104 Integer type = (Integer)attributes.get("type");
105
106 if (type != null) {
107 setType(type);
108 }
109
110 Integer weight = (Integer)attributes.get("weight");
111
112 if (weight != null) {
113 setWeight(weight);
114 }
115 }
116
117
122 public long getPrimaryKey() {
123 return _assetLink.getPrimaryKey();
124 }
125
126
131 public void setPrimaryKey(long primaryKey) {
132 _assetLink.setPrimaryKey(primaryKey);
133 }
134
135
140 public long getLinkId() {
141 return _assetLink.getLinkId();
142 }
143
144
149 public void setLinkId(long linkId) {
150 _assetLink.setLinkId(linkId);
151 }
152
153
158 public long getCompanyId() {
159 return _assetLink.getCompanyId();
160 }
161
162
167 public void setCompanyId(long companyId) {
168 _assetLink.setCompanyId(companyId);
169 }
170
171
176 public long getUserId() {
177 return _assetLink.getUserId();
178 }
179
180
185 public void setUserId(long userId) {
186 _assetLink.setUserId(userId);
187 }
188
189
195 public java.lang.String getUserUuid()
196 throws com.liferay.portal.kernel.exception.SystemException {
197 return _assetLink.getUserUuid();
198 }
199
200
205 public void setUserUuid(java.lang.String userUuid) {
206 _assetLink.setUserUuid(userUuid);
207 }
208
209
214 public java.lang.String getUserName() {
215 return _assetLink.getUserName();
216 }
217
218
223 public void setUserName(java.lang.String userName) {
224 _assetLink.setUserName(userName);
225 }
226
227
232 public java.util.Date getCreateDate() {
233 return _assetLink.getCreateDate();
234 }
235
236
241 public void setCreateDate(java.util.Date createDate) {
242 _assetLink.setCreateDate(createDate);
243 }
244
245
250 public long getEntryId1() {
251 return _assetLink.getEntryId1();
252 }
253
254
259 public void setEntryId1(long entryId1) {
260 _assetLink.setEntryId1(entryId1);
261 }
262
263
268 public long getEntryId2() {
269 return _assetLink.getEntryId2();
270 }
271
272
277 public void setEntryId2(long entryId2) {
278 _assetLink.setEntryId2(entryId2);
279 }
280
281
286 public int getType() {
287 return _assetLink.getType();
288 }
289
290
295 public void setType(int type) {
296 _assetLink.setType(type);
297 }
298
299
304 public int getWeight() {
305 return _assetLink.getWeight();
306 }
307
308
313 public void setWeight(int weight) {
314 _assetLink.setWeight(weight);
315 }
316
317 public boolean isNew() {
318 return _assetLink.isNew();
319 }
320
321 public void setNew(boolean n) {
322 _assetLink.setNew(n);
323 }
324
325 public boolean isCachedModel() {
326 return _assetLink.isCachedModel();
327 }
328
329 public void setCachedModel(boolean cachedModel) {
330 _assetLink.setCachedModel(cachedModel);
331 }
332
333 public boolean isEscapedModel() {
334 return _assetLink.isEscapedModel();
335 }
336
337 public java.io.Serializable getPrimaryKeyObj() {
338 return _assetLink.getPrimaryKeyObj();
339 }
340
341 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
342 _assetLink.setPrimaryKeyObj(primaryKeyObj);
343 }
344
345 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
346 return _assetLink.getExpandoBridge();
347 }
348
349 public void setExpandoBridgeAttributes(
350 com.liferay.portal.model.BaseModel<?> baseModel) {
351 _assetLink.setExpandoBridgeAttributes(baseModel);
352 }
353
354 public void setExpandoBridgeAttributes(
355 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
356 _assetLink.setExpandoBridgeAttributes(expandoBridge);
357 }
358
359 public void setExpandoBridgeAttributes(
360 com.liferay.portal.service.ServiceContext serviceContext) {
361 _assetLink.setExpandoBridgeAttributes(serviceContext);
362 }
363
364 @Override
365 public java.lang.Object clone() {
366 return new AssetLinkWrapper((AssetLink)_assetLink.clone());
367 }
368
369 public int compareTo(com.liferay.portlet.asset.model.AssetLink assetLink) {
370 return _assetLink.compareTo(assetLink);
371 }
372
373 @Override
374 public int hashCode() {
375 return _assetLink.hashCode();
376 }
377
378 public com.liferay.portal.model.CacheModel<com.liferay.portlet.asset.model.AssetLink> toCacheModel() {
379 return _assetLink.toCacheModel();
380 }
381
382 public com.liferay.portlet.asset.model.AssetLink toEscapedModel() {
383 return new AssetLinkWrapper(_assetLink.toEscapedModel());
384 }
385
386 public com.liferay.portlet.asset.model.AssetLink toUnescapedModel() {
387 return new AssetLinkWrapper(_assetLink.toUnescapedModel());
388 }
389
390 @Override
391 public java.lang.String toString() {
392 return _assetLink.toString();
393 }
394
395 public java.lang.String toXmlString() {
396 return _assetLink.toXmlString();
397 }
398
399 public void persist()
400 throws com.liferay.portal.kernel.exception.SystemException {
401 _assetLink.persist();
402 }
403
404
407 public AssetLink getWrappedAssetLink() {
408 return _assetLink;
409 }
410
411 public AssetLink getWrappedModel() {
412 return _assetLink;
413 }
414
415 public void resetOriginalValues() {
416 _assetLink.resetOriginalValues();
417 }
418
419 private AssetLink _assetLink;
420 }