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
055 return attributes;
056 }
057
058 public void setModelAttributes(Map<String, Object> attributes) {
059 Long fileRankId = (Long)attributes.get("fileRankId");
060
061 if (fileRankId != null) {
062 setFileRankId(fileRankId);
063 }
064
065 Long groupId = (Long)attributes.get("groupId");
066
067 if (groupId != null) {
068 setGroupId(groupId);
069 }
070
071 Long companyId = (Long)attributes.get("companyId");
072
073 if (companyId != null) {
074 setCompanyId(companyId);
075 }
076
077 Long userId = (Long)attributes.get("userId");
078
079 if (userId != null) {
080 setUserId(userId);
081 }
082
083 Date createDate = (Date)attributes.get("createDate");
084
085 if (createDate != null) {
086 setCreateDate(createDate);
087 }
088
089 Long fileEntryId = (Long)attributes.get("fileEntryId");
090
091 if (fileEntryId != null) {
092 setFileEntryId(fileEntryId);
093 }
094 }
095
096
101 public long getPrimaryKey() {
102 return _dlFileRank.getPrimaryKey();
103 }
104
105
110 public void setPrimaryKey(long primaryKey) {
111 _dlFileRank.setPrimaryKey(primaryKey);
112 }
113
114
119 public long getFileRankId() {
120 return _dlFileRank.getFileRankId();
121 }
122
123
128 public void setFileRankId(long fileRankId) {
129 _dlFileRank.setFileRankId(fileRankId);
130 }
131
132
137 public long getGroupId() {
138 return _dlFileRank.getGroupId();
139 }
140
141
146 public void setGroupId(long groupId) {
147 _dlFileRank.setGroupId(groupId);
148 }
149
150
155 public long getCompanyId() {
156 return _dlFileRank.getCompanyId();
157 }
158
159
164 public void setCompanyId(long companyId) {
165 _dlFileRank.setCompanyId(companyId);
166 }
167
168
173 public long getUserId() {
174 return _dlFileRank.getUserId();
175 }
176
177
182 public void setUserId(long userId) {
183 _dlFileRank.setUserId(userId);
184 }
185
186
192 public java.lang.String getUserUuid()
193 throws com.liferay.portal.kernel.exception.SystemException {
194 return _dlFileRank.getUserUuid();
195 }
196
197
202 public void setUserUuid(java.lang.String userUuid) {
203 _dlFileRank.setUserUuid(userUuid);
204 }
205
206
211 public java.util.Date getCreateDate() {
212 return _dlFileRank.getCreateDate();
213 }
214
215
220 public void setCreateDate(java.util.Date createDate) {
221 _dlFileRank.setCreateDate(createDate);
222 }
223
224
229 public long getFileEntryId() {
230 return _dlFileRank.getFileEntryId();
231 }
232
233
238 public void setFileEntryId(long fileEntryId) {
239 _dlFileRank.setFileEntryId(fileEntryId);
240 }
241
242 public boolean isNew() {
243 return _dlFileRank.isNew();
244 }
245
246 public void setNew(boolean n) {
247 _dlFileRank.setNew(n);
248 }
249
250 public boolean isCachedModel() {
251 return _dlFileRank.isCachedModel();
252 }
253
254 public void setCachedModel(boolean cachedModel) {
255 _dlFileRank.setCachedModel(cachedModel);
256 }
257
258 public boolean isEscapedModel() {
259 return _dlFileRank.isEscapedModel();
260 }
261
262 public java.io.Serializable getPrimaryKeyObj() {
263 return _dlFileRank.getPrimaryKeyObj();
264 }
265
266 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
267 _dlFileRank.setPrimaryKeyObj(primaryKeyObj);
268 }
269
270 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
271 return _dlFileRank.getExpandoBridge();
272 }
273
274 public void setExpandoBridgeAttributes(
275 com.liferay.portal.service.ServiceContext serviceContext) {
276 _dlFileRank.setExpandoBridgeAttributes(serviceContext);
277 }
278
279 @Override
280 public java.lang.Object clone() {
281 return new DLFileRankWrapper((DLFileRank)_dlFileRank.clone());
282 }
283
284 public int compareTo(
285 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) {
286 return _dlFileRank.compareTo(dlFileRank);
287 }
288
289 @Override
290 public int hashCode() {
291 return _dlFileRank.hashCode();
292 }
293
294 public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFileRank> toCacheModel() {
295 return _dlFileRank.toCacheModel();
296 }
297
298 public com.liferay.portlet.documentlibrary.model.DLFileRank toEscapedModel() {
299 return new DLFileRankWrapper(_dlFileRank.toEscapedModel());
300 }
301
302 @Override
303 public java.lang.String toString() {
304 return _dlFileRank.toString();
305 }
306
307 public java.lang.String toXmlString() {
308 return _dlFileRank.toXmlString();
309 }
310
311 public void persist()
312 throws com.liferay.portal.kernel.exception.SystemException {
313 _dlFileRank.persist();
314 }
315
316
319 public DLFileRank getWrappedDLFileRank() {
320 return _dlFileRank;
321 }
322
323 public DLFileRank getWrappedModel() {
324 return _dlFileRank;
325 }
326
327 public void resetOriginalValues() {
328 _dlFileRank.resetOriginalValues();
329 }
330
331 private DLFileRank _dlFileRank;
332 }