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 DLSyncWrapper implements DLSync, ModelWrapper<DLSync> {
033 public DLSyncWrapper(DLSync dlSync) {
034 _dlSync = dlSync;
035 }
036
037 public Class<?> getModelClass() {
038 return DLSync.class;
039 }
040
041 public String getModelClassName() {
042 return DLSync.class.getName();
043 }
044
045 public Map<String, Object> getModelAttributes() {
046 Map<String, Object> attributes = new HashMap<String, Object>();
047
048 attributes.put("syncId", getSyncId());
049 attributes.put("companyId", getCompanyId());
050 attributes.put("createDate", getCreateDate());
051 attributes.put("modifiedDate", getModifiedDate());
052 attributes.put("fileId", getFileId());
053 attributes.put("fileUuid", getFileUuid());
054 attributes.put("repositoryId", getRepositoryId());
055 attributes.put("parentFolderId", getParentFolderId());
056 attributes.put("name", getName());
057 attributes.put("description", getDescription());
058 attributes.put("event", getEvent());
059 attributes.put("type", getType());
060 attributes.put("version", getVersion());
061
062 return attributes;
063 }
064
065 public void setModelAttributes(Map<String, Object> attributes) {
066 Long syncId = (Long)attributes.get("syncId");
067
068 if (syncId != null) {
069 setSyncId(syncId);
070 }
071
072 Long companyId = (Long)attributes.get("companyId");
073
074 if (companyId != null) {
075 setCompanyId(companyId);
076 }
077
078 Date createDate = (Date)attributes.get("createDate");
079
080 if (createDate != null) {
081 setCreateDate(createDate);
082 }
083
084 Date modifiedDate = (Date)attributes.get("modifiedDate");
085
086 if (modifiedDate != null) {
087 setModifiedDate(modifiedDate);
088 }
089
090 Long fileId = (Long)attributes.get("fileId");
091
092 if (fileId != null) {
093 setFileId(fileId);
094 }
095
096 String fileUuid = (String)attributes.get("fileUuid");
097
098 if (fileUuid != null) {
099 setFileUuid(fileUuid);
100 }
101
102 Long repositoryId = (Long)attributes.get("repositoryId");
103
104 if (repositoryId != null) {
105 setRepositoryId(repositoryId);
106 }
107
108 Long parentFolderId = (Long)attributes.get("parentFolderId");
109
110 if (parentFolderId != null) {
111 setParentFolderId(parentFolderId);
112 }
113
114 String name = (String)attributes.get("name");
115
116 if (name != null) {
117 setName(name);
118 }
119
120 String description = (String)attributes.get("description");
121
122 if (description != null) {
123 setDescription(description);
124 }
125
126 String event = (String)attributes.get("event");
127
128 if (event != null) {
129 setEvent(event);
130 }
131
132 String type = (String)attributes.get("type");
133
134 if (type != null) {
135 setType(type);
136 }
137
138 String version = (String)attributes.get("version");
139
140 if (version != null) {
141 setVersion(version);
142 }
143 }
144
145
150 public long getPrimaryKey() {
151 return _dlSync.getPrimaryKey();
152 }
153
154
159 public void setPrimaryKey(long primaryKey) {
160 _dlSync.setPrimaryKey(primaryKey);
161 }
162
163
168 public long getSyncId() {
169 return _dlSync.getSyncId();
170 }
171
172
177 public void setSyncId(long syncId) {
178 _dlSync.setSyncId(syncId);
179 }
180
181
186 public long getCompanyId() {
187 return _dlSync.getCompanyId();
188 }
189
190
195 public void setCompanyId(long companyId) {
196 _dlSync.setCompanyId(companyId);
197 }
198
199
204 public java.util.Date getCreateDate() {
205 return _dlSync.getCreateDate();
206 }
207
208
213 public void setCreateDate(java.util.Date createDate) {
214 _dlSync.setCreateDate(createDate);
215 }
216
217
222 public java.util.Date getModifiedDate() {
223 return _dlSync.getModifiedDate();
224 }
225
226
231 public void setModifiedDate(java.util.Date modifiedDate) {
232 _dlSync.setModifiedDate(modifiedDate);
233 }
234
235
240 public long getFileId() {
241 return _dlSync.getFileId();
242 }
243
244
249 public void setFileId(long fileId) {
250 _dlSync.setFileId(fileId);
251 }
252
253
258 public java.lang.String getFileUuid() {
259 return _dlSync.getFileUuid();
260 }
261
262
267 public void setFileUuid(java.lang.String fileUuid) {
268 _dlSync.setFileUuid(fileUuid);
269 }
270
271
276 public long getRepositoryId() {
277 return _dlSync.getRepositoryId();
278 }
279
280
285 public void setRepositoryId(long repositoryId) {
286 _dlSync.setRepositoryId(repositoryId);
287 }
288
289
294 public long getParentFolderId() {
295 return _dlSync.getParentFolderId();
296 }
297
298
303 public void setParentFolderId(long parentFolderId) {
304 _dlSync.setParentFolderId(parentFolderId);
305 }
306
307
312 public java.lang.String getName() {
313 return _dlSync.getName();
314 }
315
316
321 public void setName(java.lang.String name) {
322 _dlSync.setName(name);
323 }
324
325
330 public java.lang.String getDescription() {
331 return _dlSync.getDescription();
332 }
333
334
339 public void setDescription(java.lang.String description) {
340 _dlSync.setDescription(description);
341 }
342
343
348 public java.lang.String getEvent() {
349 return _dlSync.getEvent();
350 }
351
352
357 public void setEvent(java.lang.String event) {
358 _dlSync.setEvent(event);
359 }
360
361
366 public java.lang.String getType() {
367 return _dlSync.getType();
368 }
369
370
375 public void setType(java.lang.String type) {
376 _dlSync.setType(type);
377 }
378
379
384 public java.lang.String getVersion() {
385 return _dlSync.getVersion();
386 }
387
388
393 public void setVersion(java.lang.String version) {
394 _dlSync.setVersion(version);
395 }
396
397 public boolean isNew() {
398 return _dlSync.isNew();
399 }
400
401 public void setNew(boolean n) {
402 _dlSync.setNew(n);
403 }
404
405 public boolean isCachedModel() {
406 return _dlSync.isCachedModel();
407 }
408
409 public void setCachedModel(boolean cachedModel) {
410 _dlSync.setCachedModel(cachedModel);
411 }
412
413 public boolean isEscapedModel() {
414 return _dlSync.isEscapedModel();
415 }
416
417 public java.io.Serializable getPrimaryKeyObj() {
418 return _dlSync.getPrimaryKeyObj();
419 }
420
421 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
422 _dlSync.setPrimaryKeyObj(primaryKeyObj);
423 }
424
425 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
426 return _dlSync.getExpandoBridge();
427 }
428
429 public void setExpandoBridgeAttributes(
430 com.liferay.portal.service.ServiceContext serviceContext) {
431 _dlSync.setExpandoBridgeAttributes(serviceContext);
432 }
433
434 @Override
435 public java.lang.Object clone() {
436 return new DLSyncWrapper((DLSync)_dlSync.clone());
437 }
438
439 public int compareTo(
440 com.liferay.portlet.documentlibrary.model.DLSync dlSync) {
441 return _dlSync.compareTo(dlSync);
442 }
443
444 @Override
445 public int hashCode() {
446 return _dlSync.hashCode();
447 }
448
449 public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLSync> toCacheModel() {
450 return _dlSync.toCacheModel();
451 }
452
453 public com.liferay.portlet.documentlibrary.model.DLSync toEscapedModel() {
454 return new DLSyncWrapper(_dlSync.toEscapedModel());
455 }
456
457 @Override
458 public java.lang.String toString() {
459 return _dlSync.toString();
460 }
461
462 public java.lang.String toXmlString() {
463 return _dlSync.toXmlString();
464 }
465
466 public void persist()
467 throws com.liferay.portal.kernel.exception.SystemException {
468 _dlSync.persist();
469 }
470
471
474 public DLSync getWrappedDLSync() {
475 return _dlSync;
476 }
477
478 public DLSync getWrappedModel() {
479 return _dlSync;
480 }
481
482 public void resetOriginalValues() {
483 _dlSync.resetOriginalValues();
484 }
485
486 private DLSync _dlSync;
487 }