001
014
015 package com.liferay.portlet.documentlibrary.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 DLFileRankWrapper implements DLFileRank, ModelWrapper<DLFileRank> {
033 public DLFileRankWrapper(DLFileRank dlFileRank) {
034 _dlFileRank = dlFileRank;
035 }
036
037 public Class<?> getModelClass() {
038 return DLFileRank.class;
039 }
040
041 public String getModelClassName() {
042 return DLFileRank.class.getName();
043 }
044
045 public Map<String, Object> getModelAttributes() {
046 Map<String, Object> attributes = new HashMap<String, Object>();
047
048 attributes.put("uuid", getUuid());
049 attributes.put("fileRankId", getFileRankId());
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("fileEntryId", getFileEntryId());
057 attributes.put("active", getActive());
058
059 return attributes;
060 }
061
062 public void setModelAttributes(Map<String, Object> attributes) {
063 String uuid = (String)attributes.get("uuid");
064
065 if (uuid != null) {
066 setUuid(uuid);
067 }
068
069 Long fileRankId = (Long)attributes.get("fileRankId");
070
071 if (fileRankId != null) {
072 setFileRankId(fileRankId);
073 }
074
075 Long groupId = (Long)attributes.get("groupId");
076
077 if (groupId != null) {
078 setGroupId(groupId);
079 }
080
081 Long companyId = (Long)attributes.get("companyId");
082
083 if (companyId != null) {
084 setCompanyId(companyId);
085 }
086
087 Long userId = (Long)attributes.get("userId");
088
089 if (userId != null) {
090 setUserId(userId);
091 }
092
093 String userName = (String)attributes.get("userName");
094
095 if (userName != null) {
096 setUserName(userName);
097 }
098
099 Date createDate = (Date)attributes.get("createDate");
100
101 if (createDate != null) {
102 setCreateDate(createDate);
103 }
104
105 Date modifiedDate = (Date)attributes.get("modifiedDate");
106
107 if (modifiedDate != null) {
108 setModifiedDate(modifiedDate);
109 }
110
111 Long fileEntryId = (Long)attributes.get("fileEntryId");
112
113 if (fileEntryId != null) {
114 setFileEntryId(fileEntryId);
115 }
116
117 Boolean active = (Boolean)attributes.get("active");
118
119 if (active != null) {
120 setActive(active);
121 }
122 }
123
124
129 public long getPrimaryKey() {
130 return _dlFileRank.getPrimaryKey();
131 }
132
133
138 public void setPrimaryKey(long primaryKey) {
139 _dlFileRank.setPrimaryKey(primaryKey);
140 }
141
142
147 public java.lang.String getUuid() {
148 return _dlFileRank.getUuid();
149 }
150
151
156 public void setUuid(java.lang.String uuid) {
157 _dlFileRank.setUuid(uuid);
158 }
159
160
165 public long getFileRankId() {
166 return _dlFileRank.getFileRankId();
167 }
168
169
174 public void setFileRankId(long fileRankId) {
175 _dlFileRank.setFileRankId(fileRankId);
176 }
177
178
183 public long getGroupId() {
184 return _dlFileRank.getGroupId();
185 }
186
187
192 public void setGroupId(long groupId) {
193 _dlFileRank.setGroupId(groupId);
194 }
195
196
201 public long getCompanyId() {
202 return _dlFileRank.getCompanyId();
203 }
204
205
210 public void setCompanyId(long companyId) {
211 _dlFileRank.setCompanyId(companyId);
212 }
213
214
219 public long getUserId() {
220 return _dlFileRank.getUserId();
221 }
222
223
228 public void setUserId(long userId) {
229 _dlFileRank.setUserId(userId);
230 }
231
232
238 public java.lang.String getUserUuid()
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return _dlFileRank.getUserUuid();
241 }
242
243
248 public void setUserUuid(java.lang.String userUuid) {
249 _dlFileRank.setUserUuid(userUuid);
250 }
251
252
257 public java.lang.String getUserName() {
258 return _dlFileRank.getUserName();
259 }
260
261
266 public void setUserName(java.lang.String userName) {
267 _dlFileRank.setUserName(userName);
268 }
269
270
275 public java.util.Date getCreateDate() {
276 return _dlFileRank.getCreateDate();
277 }
278
279
284 public void setCreateDate(java.util.Date createDate) {
285 _dlFileRank.setCreateDate(createDate);
286 }
287
288
293 public java.util.Date getModifiedDate() {
294 return _dlFileRank.getModifiedDate();
295 }
296
297
302 public void setModifiedDate(java.util.Date modifiedDate) {
303 _dlFileRank.setModifiedDate(modifiedDate);
304 }
305
306
311 public long getFileEntryId() {
312 return _dlFileRank.getFileEntryId();
313 }
314
315
320 public void setFileEntryId(long fileEntryId) {
321 _dlFileRank.setFileEntryId(fileEntryId);
322 }
323
324
329 public boolean getActive() {
330 return _dlFileRank.getActive();
331 }
332
333
338 public boolean isActive() {
339 return _dlFileRank.isActive();
340 }
341
342
347 public void setActive(boolean active) {
348 _dlFileRank.setActive(active);
349 }
350
351 public boolean isNew() {
352 return _dlFileRank.isNew();
353 }
354
355 public void setNew(boolean n) {
356 _dlFileRank.setNew(n);
357 }
358
359 public boolean isCachedModel() {
360 return _dlFileRank.isCachedModel();
361 }
362
363 public void setCachedModel(boolean cachedModel) {
364 _dlFileRank.setCachedModel(cachedModel);
365 }
366
367 public boolean isEscapedModel() {
368 return _dlFileRank.isEscapedModel();
369 }
370
371 public java.io.Serializable getPrimaryKeyObj() {
372 return _dlFileRank.getPrimaryKeyObj();
373 }
374
375 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
376 _dlFileRank.setPrimaryKeyObj(primaryKeyObj);
377 }
378
379 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
380 return _dlFileRank.getExpandoBridge();
381 }
382
383 public void setExpandoBridgeAttributes(
384 com.liferay.portal.service.ServiceContext serviceContext) {
385 _dlFileRank.setExpandoBridgeAttributes(serviceContext);
386 }
387
388 @Override
389 public java.lang.Object clone() {
390 return new DLFileRankWrapper((DLFileRank)_dlFileRank.clone());
391 }
392
393 public int compareTo(
394 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) {
395 return _dlFileRank.compareTo(dlFileRank);
396 }
397
398 @Override
399 public int hashCode() {
400 return _dlFileRank.hashCode();
401 }
402
403 public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFileRank> toCacheModel() {
404 return _dlFileRank.toCacheModel();
405 }
406
407 public com.liferay.portlet.documentlibrary.model.DLFileRank toEscapedModel() {
408 return new DLFileRankWrapper(_dlFileRank.toEscapedModel());
409 }
410
411 public com.liferay.portlet.documentlibrary.model.DLFileRank toUnescapedModel() {
412 return new DLFileRankWrapper(_dlFileRank.toUnescapedModel());
413 }
414
415 @Override
416 public java.lang.String toString() {
417 return _dlFileRank.toString();
418 }
419
420 public java.lang.String toXmlString() {
421 return _dlFileRank.toXmlString();
422 }
423
424 public void persist()
425 throws com.liferay.portal.kernel.exception.SystemException {
426 _dlFileRank.persist();
427 }
428
429
432 public DLFileRank getWrappedDLFileRank() {
433 return _dlFileRank;
434 }
435
436 public DLFileRank getWrappedModel() {
437 return _dlFileRank;
438 }
439
440 public void resetOriginalValues() {
441 _dlFileRank.resetOriginalValues();
442 }
443
444 private DLFileRank _dlFileRank;
445 }