001
014
015 package com.liferay.portlet.documentlibrary.model;
016
017 import com.liferay.portal.kernel.util.Validator;
018 import com.liferay.portal.model.ModelWrapper;
019
020 import java.util.Date;
021 import java.util.HashMap;
022 import java.util.Map;
023
024
033 public class DLFileRankWrapper implements DLFileRank, ModelWrapper<DLFileRank> {
034 public DLFileRankWrapper(DLFileRank dlFileRank) {
035 _dlFileRank = dlFileRank;
036 }
037
038 public Class<?> getModelClass() {
039 return DLFileRank.class;
040 }
041
042 public String getModelClassName() {
043 return DLFileRank.class.getName();
044 }
045
046 public Map<String, Object> getModelAttributes() {
047 Map<String, Object> attributes = new HashMap<String, Object>();
048
049 attributes.put("fileRankId", getFileRankId());
050 attributes.put("groupId", getGroupId());
051 attributes.put("companyId", getCompanyId());
052 attributes.put("userId", getUserId());
053 attributes.put("createDate", getCreateDate());
054 attributes.put("fileEntryId", getFileEntryId());
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
097
102 public long getPrimaryKey() {
103 return _dlFileRank.getPrimaryKey();
104 }
105
106
111 public void setPrimaryKey(long primaryKey) {
112 _dlFileRank.setPrimaryKey(primaryKey);
113 }
114
115
120 public long getFileRankId() {
121 return _dlFileRank.getFileRankId();
122 }
123
124
129 public void setFileRankId(long fileRankId) {
130 _dlFileRank.setFileRankId(fileRankId);
131 }
132
133
138 public long getGroupId() {
139 return _dlFileRank.getGroupId();
140 }
141
142
147 public void setGroupId(long groupId) {
148 _dlFileRank.setGroupId(groupId);
149 }
150
151
156 public long getCompanyId() {
157 return _dlFileRank.getCompanyId();
158 }
159
160
165 public void setCompanyId(long companyId) {
166 _dlFileRank.setCompanyId(companyId);
167 }
168
169
174 public long getUserId() {
175 return _dlFileRank.getUserId();
176 }
177
178
183 public void setUserId(long userId) {
184 _dlFileRank.setUserId(userId);
185 }
186
187
193 public java.lang.String getUserUuid()
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return _dlFileRank.getUserUuid();
196 }
197
198
203 public void setUserUuid(java.lang.String userUuid) {
204 _dlFileRank.setUserUuid(userUuid);
205 }
206
207
212 public java.util.Date getCreateDate() {
213 return _dlFileRank.getCreateDate();
214 }
215
216
221 public void setCreateDate(java.util.Date createDate) {
222 _dlFileRank.setCreateDate(createDate);
223 }
224
225
230 public long getFileEntryId() {
231 return _dlFileRank.getFileEntryId();
232 }
233
234
239 public void setFileEntryId(long fileEntryId) {
240 _dlFileRank.setFileEntryId(fileEntryId);
241 }
242
243 public boolean isNew() {
244 return _dlFileRank.isNew();
245 }
246
247 public void setNew(boolean n) {
248 _dlFileRank.setNew(n);
249 }
250
251 public boolean isCachedModel() {
252 return _dlFileRank.isCachedModel();
253 }
254
255 public void setCachedModel(boolean cachedModel) {
256 _dlFileRank.setCachedModel(cachedModel);
257 }
258
259 public boolean isEscapedModel() {
260 return _dlFileRank.isEscapedModel();
261 }
262
263 public java.io.Serializable getPrimaryKeyObj() {
264 return _dlFileRank.getPrimaryKeyObj();
265 }
266
267 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
268 _dlFileRank.setPrimaryKeyObj(primaryKeyObj);
269 }
270
271 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
272 return _dlFileRank.getExpandoBridge();
273 }
274
275 public void setExpandoBridgeAttributes(
276 com.liferay.portal.service.ServiceContext serviceContext) {
277 _dlFileRank.setExpandoBridgeAttributes(serviceContext);
278 }
279
280 @Override
281 public java.lang.Object clone() {
282 return new DLFileRankWrapper((DLFileRank)_dlFileRank.clone());
283 }
284
285 public int compareTo(
286 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) {
287 return _dlFileRank.compareTo(dlFileRank);
288 }
289
290 @Override
291 public int hashCode() {
292 return _dlFileRank.hashCode();
293 }
294
295 public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFileRank> toCacheModel() {
296 return _dlFileRank.toCacheModel();
297 }
298
299 public com.liferay.portlet.documentlibrary.model.DLFileRank toEscapedModel() {
300 return new DLFileRankWrapper(_dlFileRank.toEscapedModel());
301 }
302
303 public com.liferay.portlet.documentlibrary.model.DLFileRank toUnescapedModel() {
304 return new DLFileRankWrapper(_dlFileRank.toUnescapedModel());
305 }
306
307 @Override
308 public java.lang.String toString() {
309 return _dlFileRank.toString();
310 }
311
312 public java.lang.String toXmlString() {
313 return _dlFileRank.toXmlString();
314 }
315
316 public void persist()
317 throws com.liferay.portal.kernel.exception.SystemException {
318 _dlFileRank.persist();
319 }
320
321 @Override
322 public boolean equals(Object obj) {
323 if (this == obj) {
324 return true;
325 }
326
327 if (!(obj instanceof DLFileRankWrapper)) {
328 return false;
329 }
330
331 DLFileRankWrapper dlFileRankWrapper = (DLFileRankWrapper)obj;
332
333 if (Validator.equals(_dlFileRank, dlFileRankWrapper._dlFileRank)) {
334 return true;
335 }
336
337 return false;
338 }
339
340
343 public DLFileRank getWrappedDLFileRank() {
344 return _dlFileRank;
345 }
346
347 public DLFileRank getWrappedModel() {
348 return _dlFileRank;
349 }
350
351 public void resetOriginalValues() {
352 _dlFileRank.resetOriginalValues();
353 }
354
355 private DLFileRank _dlFileRank;
356 }