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