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("fileRankId", getFileRankId());
049 attributes.put("groupId", getGroupId());
050 attributes.put("companyId", getCompanyId());
051 attributes.put("userId", getUserId());
052 attributes.put("createDate", getCreateDate());
053 attributes.put("fileEntryId", getFileEntryId());
054 attributes.put("active", getActive());
055
056 return attributes;
057 }
058
059 public void setModelAttributes(Map<String, Object> attributes) {
060 Long fileRankId = (Long)attributes.get("fileRankId");
061
062 if (fileRankId != null) {
063 setFileRankId(fileRankId);
064 }
065
066 Long groupId = (Long)attributes.get("groupId");
067
068 if (groupId != null) {
069 setGroupId(groupId);
070 }
071
072 Long companyId = (Long)attributes.get("companyId");
073
074 if (companyId != null) {
075 setCompanyId(companyId);
076 }
077
078 Long userId = (Long)attributes.get("userId");
079
080 if (userId != null) {
081 setUserId(userId);
082 }
083
084 Date createDate = (Date)attributes.get("createDate");
085
086 if (createDate != null) {
087 setCreateDate(createDate);
088 }
089
090 Long fileEntryId = (Long)attributes.get("fileEntryId");
091
092 if (fileEntryId != null) {
093 setFileEntryId(fileEntryId);
094 }
095
096 Boolean active = (Boolean)attributes.get("active");
097
098 if (active != null) {
099 setActive(active);
100 }
101 }
102
103
108 public long getPrimaryKey() {
109 return _dlFileRank.getPrimaryKey();
110 }
111
112
117 public void setPrimaryKey(long primaryKey) {
118 _dlFileRank.setPrimaryKey(primaryKey);
119 }
120
121
126 public long getFileRankId() {
127 return _dlFileRank.getFileRankId();
128 }
129
130
135 public void setFileRankId(long fileRankId) {
136 _dlFileRank.setFileRankId(fileRankId);
137 }
138
139
144 public long getGroupId() {
145 return _dlFileRank.getGroupId();
146 }
147
148
153 public void setGroupId(long groupId) {
154 _dlFileRank.setGroupId(groupId);
155 }
156
157
162 public long getCompanyId() {
163 return _dlFileRank.getCompanyId();
164 }
165
166
171 public void setCompanyId(long companyId) {
172 _dlFileRank.setCompanyId(companyId);
173 }
174
175
180 public long getUserId() {
181 return _dlFileRank.getUserId();
182 }
183
184
189 public void setUserId(long userId) {
190 _dlFileRank.setUserId(userId);
191 }
192
193
199 public java.lang.String getUserUuid()
200 throws com.liferay.portal.kernel.exception.SystemException {
201 return _dlFileRank.getUserUuid();
202 }
203
204
209 public void setUserUuid(java.lang.String userUuid) {
210 _dlFileRank.setUserUuid(userUuid);
211 }
212
213
218 public java.util.Date getCreateDate() {
219 return _dlFileRank.getCreateDate();
220 }
221
222
227 public void setCreateDate(java.util.Date createDate) {
228 _dlFileRank.setCreateDate(createDate);
229 }
230
231
236 public long getFileEntryId() {
237 return _dlFileRank.getFileEntryId();
238 }
239
240
245 public void setFileEntryId(long fileEntryId) {
246 _dlFileRank.setFileEntryId(fileEntryId);
247 }
248
249
254 public boolean getActive() {
255 return _dlFileRank.getActive();
256 }
257
258
263 public boolean isActive() {
264 return _dlFileRank.isActive();
265 }
266
267
272 public void setActive(boolean active) {
273 _dlFileRank.setActive(active);
274 }
275
276 public boolean isNew() {
277 return _dlFileRank.isNew();
278 }
279
280 public void setNew(boolean n) {
281 _dlFileRank.setNew(n);
282 }
283
284 public boolean isCachedModel() {
285 return _dlFileRank.isCachedModel();
286 }
287
288 public void setCachedModel(boolean cachedModel) {
289 _dlFileRank.setCachedModel(cachedModel);
290 }
291
292 public boolean isEscapedModel() {
293 return _dlFileRank.isEscapedModel();
294 }
295
296 public java.io.Serializable getPrimaryKeyObj() {
297 return _dlFileRank.getPrimaryKeyObj();
298 }
299
300 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
301 _dlFileRank.setPrimaryKeyObj(primaryKeyObj);
302 }
303
304 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
305 return _dlFileRank.getExpandoBridge();
306 }
307
308 public void setExpandoBridgeAttributes(
309 com.liferay.portal.service.ServiceContext serviceContext) {
310 _dlFileRank.setExpandoBridgeAttributes(serviceContext);
311 }
312
313 @Override
314 public java.lang.Object clone() {
315 return new DLFileRankWrapper((DLFileRank)_dlFileRank.clone());
316 }
317
318 public int compareTo(
319 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) {
320 return _dlFileRank.compareTo(dlFileRank);
321 }
322
323 @Override
324 public int hashCode() {
325 return _dlFileRank.hashCode();
326 }
327
328 public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFileRank> toCacheModel() {
329 return _dlFileRank.toCacheModel();
330 }
331
332 public com.liferay.portlet.documentlibrary.model.DLFileRank toEscapedModel() {
333 return new DLFileRankWrapper(_dlFileRank.toEscapedModel());
334 }
335
336 @Override
337 public java.lang.String toString() {
338 return _dlFileRank.toString();
339 }
340
341 public java.lang.String toXmlString() {
342 return _dlFileRank.toXmlString();
343 }
344
345 public void persist()
346 throws com.liferay.portal.kernel.exception.SystemException {
347 _dlFileRank.persist();
348 }
349
350
353 public DLFileRank getWrappedDLFileRank() {
354 return _dlFileRank;
355 }
356
357 public DLFileRank getWrappedModel() {
358 return _dlFileRank;
359 }
360
361 public void resetOriginalValues() {
362 _dlFileRank.resetOriginalValues();
363 }
364
365 private DLFileRank _dlFileRank;
366 }