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 DLFileEntryTypeWrapper implements DLFileEntryType,
033 ModelWrapper<DLFileEntryType> {
034 public DLFileEntryTypeWrapper(DLFileEntryType dlFileEntryType) {
035 _dlFileEntryType = dlFileEntryType;
036 }
037
038 public Class<?> getModelClass() {
039 return DLFileEntryType.class;
040 }
041
042 public String getModelClassName() {
043 return DLFileEntryType.class.getName();
044 }
045
046 public Map<String, Object> getModelAttributes() {
047 Map<String, Object> attributes = new HashMap<String, Object>();
048
049 attributes.put("uuid", getUuid());
050 attributes.put("fileEntryTypeId", getFileEntryTypeId());
051 attributes.put("groupId", getGroupId());
052 attributes.put("companyId", getCompanyId());
053 attributes.put("userId", getUserId());
054 attributes.put("userName", getUserName());
055 attributes.put("createDate", getCreateDate());
056 attributes.put("modifiedDate", getModifiedDate());
057 attributes.put("name", getName());
058 attributes.put("description", getDescription());
059
060 return attributes;
061 }
062
063 public void setModelAttributes(Map<String, Object> attributes) {
064 String uuid = (String)attributes.get("uuid");
065
066 if (uuid != null) {
067 setUuid(uuid);
068 }
069
070 Long fileEntryTypeId = (Long)attributes.get("fileEntryTypeId");
071
072 if (fileEntryTypeId != null) {
073 setFileEntryTypeId(fileEntryTypeId);
074 }
075
076 Long groupId = (Long)attributes.get("groupId");
077
078 if (groupId != null) {
079 setGroupId(groupId);
080 }
081
082 Long companyId = (Long)attributes.get("companyId");
083
084 if (companyId != null) {
085 setCompanyId(companyId);
086 }
087
088 Long userId = (Long)attributes.get("userId");
089
090 if (userId != null) {
091 setUserId(userId);
092 }
093
094 String userName = (String)attributes.get("userName");
095
096 if (userName != null) {
097 setUserName(userName);
098 }
099
100 Date createDate = (Date)attributes.get("createDate");
101
102 if (createDate != null) {
103 setCreateDate(createDate);
104 }
105
106 Date modifiedDate = (Date)attributes.get("modifiedDate");
107
108 if (modifiedDate != null) {
109 setModifiedDate(modifiedDate);
110 }
111
112 String name = (String)attributes.get("name");
113
114 if (name != null) {
115 setName(name);
116 }
117
118 String description = (String)attributes.get("description");
119
120 if (description != null) {
121 setDescription(description);
122 }
123 }
124
125
130 public long getPrimaryKey() {
131 return _dlFileEntryType.getPrimaryKey();
132 }
133
134
139 public void setPrimaryKey(long primaryKey) {
140 _dlFileEntryType.setPrimaryKey(primaryKey);
141 }
142
143
148 public java.lang.String getUuid() {
149 return _dlFileEntryType.getUuid();
150 }
151
152
157 public void setUuid(java.lang.String uuid) {
158 _dlFileEntryType.setUuid(uuid);
159 }
160
161
166 public long getFileEntryTypeId() {
167 return _dlFileEntryType.getFileEntryTypeId();
168 }
169
170
175 public void setFileEntryTypeId(long fileEntryTypeId) {
176 _dlFileEntryType.setFileEntryTypeId(fileEntryTypeId);
177 }
178
179
184 public long getGroupId() {
185 return _dlFileEntryType.getGroupId();
186 }
187
188
193 public void setGroupId(long groupId) {
194 _dlFileEntryType.setGroupId(groupId);
195 }
196
197
202 public long getCompanyId() {
203 return _dlFileEntryType.getCompanyId();
204 }
205
206
211 public void setCompanyId(long companyId) {
212 _dlFileEntryType.setCompanyId(companyId);
213 }
214
215
220 public long getUserId() {
221 return _dlFileEntryType.getUserId();
222 }
223
224
229 public void setUserId(long userId) {
230 _dlFileEntryType.setUserId(userId);
231 }
232
233
239 public java.lang.String getUserUuid()
240 throws com.liferay.portal.kernel.exception.SystemException {
241 return _dlFileEntryType.getUserUuid();
242 }
243
244
249 public void setUserUuid(java.lang.String userUuid) {
250 _dlFileEntryType.setUserUuid(userUuid);
251 }
252
253
258 public java.lang.String getUserName() {
259 return _dlFileEntryType.getUserName();
260 }
261
262
267 public void setUserName(java.lang.String userName) {
268 _dlFileEntryType.setUserName(userName);
269 }
270
271
276 public java.util.Date getCreateDate() {
277 return _dlFileEntryType.getCreateDate();
278 }
279
280
285 public void setCreateDate(java.util.Date createDate) {
286 _dlFileEntryType.setCreateDate(createDate);
287 }
288
289
294 public java.util.Date getModifiedDate() {
295 return _dlFileEntryType.getModifiedDate();
296 }
297
298
303 public void setModifiedDate(java.util.Date modifiedDate) {
304 _dlFileEntryType.setModifiedDate(modifiedDate);
305 }
306
307
312 public java.lang.String getName() {
313 return _dlFileEntryType.getName();
314 }
315
316
321 public void setName(java.lang.String name) {
322 _dlFileEntryType.setName(name);
323 }
324
325
330 public java.lang.String getDescription() {
331 return _dlFileEntryType.getDescription();
332 }
333
334
339 public void setDescription(java.lang.String description) {
340 _dlFileEntryType.setDescription(description);
341 }
342
343 public boolean isNew() {
344 return _dlFileEntryType.isNew();
345 }
346
347 public void setNew(boolean n) {
348 _dlFileEntryType.setNew(n);
349 }
350
351 public boolean isCachedModel() {
352 return _dlFileEntryType.isCachedModel();
353 }
354
355 public void setCachedModel(boolean cachedModel) {
356 _dlFileEntryType.setCachedModel(cachedModel);
357 }
358
359 public boolean isEscapedModel() {
360 return _dlFileEntryType.isEscapedModel();
361 }
362
363 public java.io.Serializable getPrimaryKeyObj() {
364 return _dlFileEntryType.getPrimaryKeyObj();
365 }
366
367 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
368 _dlFileEntryType.setPrimaryKeyObj(primaryKeyObj);
369 }
370
371 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
372 return _dlFileEntryType.getExpandoBridge();
373 }
374
375 public void setExpandoBridgeAttributes(
376 com.liferay.portal.service.ServiceContext serviceContext) {
377 _dlFileEntryType.setExpandoBridgeAttributes(serviceContext);
378 }
379
380 @Override
381 public java.lang.Object clone() {
382 return new DLFileEntryTypeWrapper((DLFileEntryType)_dlFileEntryType.clone());
383 }
384
385 public int compareTo(
386 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) {
387 return _dlFileEntryType.compareTo(dlFileEntryType);
388 }
389
390 @Override
391 public int hashCode() {
392 return _dlFileEntryType.hashCode();
393 }
394
395 public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFileEntryType> toCacheModel() {
396 return _dlFileEntryType.toCacheModel();
397 }
398
399 public com.liferay.portlet.documentlibrary.model.DLFileEntryType toEscapedModel() {
400 return new DLFileEntryTypeWrapper(_dlFileEntryType.toEscapedModel());
401 }
402
403 @Override
404 public java.lang.String toString() {
405 return _dlFileEntryType.toString();
406 }
407
408 public java.lang.String toXmlString() {
409 return _dlFileEntryType.toXmlString();
410 }
411
412 public void persist()
413 throws com.liferay.portal.kernel.exception.SystemException {
414 _dlFileEntryType.persist();
415 }
416
417 public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures()
418 throws com.liferay.portal.kernel.exception.SystemException {
419 return _dlFileEntryType.getDDMStructures();
420 }
421
422
425 public DLFileEntryType getWrappedDLFileEntryType() {
426 return _dlFileEntryType;
427 }
428
429 public DLFileEntryType getWrappedModel() {
430 return _dlFileEntryType;
431 }
432
433 public void resetOriginalValues() {
434 _dlFileEntryType.resetOriginalValues();
435 }
436
437 private DLFileEntryType _dlFileEntryType;
438 }