001
014
015 package com.liferay.portlet.dynamicdatalists.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 DDLRecordSetWrapper implements DDLRecordSet,
033 ModelWrapper<DDLRecordSet> {
034 public DDLRecordSetWrapper(DDLRecordSet ddlRecordSet) {
035 _ddlRecordSet = ddlRecordSet;
036 }
037
038 public Class<?> getModelClass() {
039 return DDLRecordSet.class;
040 }
041
042 public String getModelClassName() {
043 return DDLRecordSet.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("recordSetId", getRecordSetId());
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("DDMStructureId", getDDMStructureId());
058 attributes.put("recordSetKey", getRecordSetKey());
059 attributes.put("name", getName());
060 attributes.put("description", getDescription());
061 attributes.put("minDisplayRows", getMinDisplayRows());
062 attributes.put("scope", getScope());
063
064 return attributes;
065 }
066
067 public void setModelAttributes(Map<String, Object> attributes) {
068 String uuid = (String)attributes.get("uuid");
069
070 if (uuid != null) {
071 setUuid(uuid);
072 }
073
074 Long recordSetId = (Long)attributes.get("recordSetId");
075
076 if (recordSetId != null) {
077 setRecordSetId(recordSetId);
078 }
079
080 Long groupId = (Long)attributes.get("groupId");
081
082 if (groupId != null) {
083 setGroupId(groupId);
084 }
085
086 Long companyId = (Long)attributes.get("companyId");
087
088 if (companyId != null) {
089 setCompanyId(companyId);
090 }
091
092 Long userId = (Long)attributes.get("userId");
093
094 if (userId != null) {
095 setUserId(userId);
096 }
097
098 String userName = (String)attributes.get("userName");
099
100 if (userName != null) {
101 setUserName(userName);
102 }
103
104 Date createDate = (Date)attributes.get("createDate");
105
106 if (createDate != null) {
107 setCreateDate(createDate);
108 }
109
110 Date modifiedDate = (Date)attributes.get("modifiedDate");
111
112 if (modifiedDate != null) {
113 setModifiedDate(modifiedDate);
114 }
115
116 Long DDMStructureId = (Long)attributes.get("DDMStructureId");
117
118 if (DDMStructureId != null) {
119 setDDMStructureId(DDMStructureId);
120 }
121
122 String recordSetKey = (String)attributes.get("recordSetKey");
123
124 if (recordSetKey != null) {
125 setRecordSetKey(recordSetKey);
126 }
127
128 String name = (String)attributes.get("name");
129
130 if (name != null) {
131 setName(name);
132 }
133
134 String description = (String)attributes.get("description");
135
136 if (description != null) {
137 setDescription(description);
138 }
139
140 Integer minDisplayRows = (Integer)attributes.get("minDisplayRows");
141
142 if (minDisplayRows != null) {
143 setMinDisplayRows(minDisplayRows);
144 }
145
146 Integer scope = (Integer)attributes.get("scope");
147
148 if (scope != null) {
149 setScope(scope);
150 }
151 }
152
153
158 public long getPrimaryKey() {
159 return _ddlRecordSet.getPrimaryKey();
160 }
161
162
167 public void setPrimaryKey(long primaryKey) {
168 _ddlRecordSet.setPrimaryKey(primaryKey);
169 }
170
171
176 public java.lang.String getUuid() {
177 return _ddlRecordSet.getUuid();
178 }
179
180
185 public void setUuid(java.lang.String uuid) {
186 _ddlRecordSet.setUuid(uuid);
187 }
188
189
194 public long getRecordSetId() {
195 return _ddlRecordSet.getRecordSetId();
196 }
197
198
203 public void setRecordSetId(long recordSetId) {
204 _ddlRecordSet.setRecordSetId(recordSetId);
205 }
206
207
212 public long getGroupId() {
213 return _ddlRecordSet.getGroupId();
214 }
215
216
221 public void setGroupId(long groupId) {
222 _ddlRecordSet.setGroupId(groupId);
223 }
224
225
230 public long getCompanyId() {
231 return _ddlRecordSet.getCompanyId();
232 }
233
234
239 public void setCompanyId(long companyId) {
240 _ddlRecordSet.setCompanyId(companyId);
241 }
242
243
248 public long getUserId() {
249 return _ddlRecordSet.getUserId();
250 }
251
252
257 public void setUserId(long userId) {
258 _ddlRecordSet.setUserId(userId);
259 }
260
261
267 public java.lang.String getUserUuid()
268 throws com.liferay.portal.kernel.exception.SystemException {
269 return _ddlRecordSet.getUserUuid();
270 }
271
272
277 public void setUserUuid(java.lang.String userUuid) {
278 _ddlRecordSet.setUserUuid(userUuid);
279 }
280
281
286 public java.lang.String getUserName() {
287 return _ddlRecordSet.getUserName();
288 }
289
290
295 public void setUserName(java.lang.String userName) {
296 _ddlRecordSet.setUserName(userName);
297 }
298
299
304 public java.util.Date getCreateDate() {
305 return _ddlRecordSet.getCreateDate();
306 }
307
308
313 public void setCreateDate(java.util.Date createDate) {
314 _ddlRecordSet.setCreateDate(createDate);
315 }
316
317
322 public java.util.Date getModifiedDate() {
323 return _ddlRecordSet.getModifiedDate();
324 }
325
326
331 public void setModifiedDate(java.util.Date modifiedDate) {
332 _ddlRecordSet.setModifiedDate(modifiedDate);
333 }
334
335
340 public long getDDMStructureId() {
341 return _ddlRecordSet.getDDMStructureId();
342 }
343
344
349 public void setDDMStructureId(long DDMStructureId) {
350 _ddlRecordSet.setDDMStructureId(DDMStructureId);
351 }
352
353
358 public java.lang.String getRecordSetKey() {
359 return _ddlRecordSet.getRecordSetKey();
360 }
361
362
367 public void setRecordSetKey(java.lang.String recordSetKey) {
368 _ddlRecordSet.setRecordSetKey(recordSetKey);
369 }
370
371
376 public java.lang.String getName() {
377 return _ddlRecordSet.getName();
378 }
379
380
386 public java.lang.String getName(java.util.Locale locale) {
387 return _ddlRecordSet.getName(locale);
388 }
389
390
397 public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
398 return _ddlRecordSet.getName(locale, useDefault);
399 }
400
401
407 public java.lang.String getName(java.lang.String languageId) {
408 return _ddlRecordSet.getName(languageId);
409 }
410
411
418 public java.lang.String getName(java.lang.String languageId,
419 boolean useDefault) {
420 return _ddlRecordSet.getName(languageId, useDefault);
421 }
422
423 public java.lang.String getNameCurrentLanguageId() {
424 return _ddlRecordSet.getNameCurrentLanguageId();
425 }
426
427 public java.lang.String getNameCurrentValue() {
428 return _ddlRecordSet.getNameCurrentValue();
429 }
430
431
436 public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
437 return _ddlRecordSet.getNameMap();
438 }
439
440
445 public void setName(java.lang.String name) {
446 _ddlRecordSet.setName(name);
447 }
448
449
455 public void setName(java.lang.String name, java.util.Locale locale) {
456 _ddlRecordSet.setName(name, locale);
457 }
458
459
466 public void setName(java.lang.String name, java.util.Locale locale,
467 java.util.Locale defaultLocale) {
468 _ddlRecordSet.setName(name, locale, defaultLocale);
469 }
470
471 public void setNameCurrentLanguageId(java.lang.String languageId) {
472 _ddlRecordSet.setNameCurrentLanguageId(languageId);
473 }
474
475
480 public void setNameMap(
481 java.util.Map<java.util.Locale, java.lang.String> nameMap) {
482 _ddlRecordSet.setNameMap(nameMap);
483 }
484
485
491 public void setNameMap(
492 java.util.Map<java.util.Locale, java.lang.String> nameMap,
493 java.util.Locale defaultLocale) {
494 _ddlRecordSet.setNameMap(nameMap, defaultLocale);
495 }
496
497
502 public java.lang.String getDescription() {
503 return _ddlRecordSet.getDescription();
504 }
505
506
512 public java.lang.String getDescription(java.util.Locale locale) {
513 return _ddlRecordSet.getDescription(locale);
514 }
515
516
523 public java.lang.String getDescription(java.util.Locale locale,
524 boolean useDefault) {
525 return _ddlRecordSet.getDescription(locale, useDefault);
526 }
527
528
534 public java.lang.String getDescription(java.lang.String languageId) {
535 return _ddlRecordSet.getDescription(languageId);
536 }
537
538
545 public java.lang.String getDescription(java.lang.String languageId,
546 boolean useDefault) {
547 return _ddlRecordSet.getDescription(languageId, useDefault);
548 }
549
550 public java.lang.String getDescriptionCurrentLanguageId() {
551 return _ddlRecordSet.getDescriptionCurrentLanguageId();
552 }
553
554 public java.lang.String getDescriptionCurrentValue() {
555 return _ddlRecordSet.getDescriptionCurrentValue();
556 }
557
558
563 public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
564 return _ddlRecordSet.getDescriptionMap();
565 }
566
567
572 public void setDescription(java.lang.String description) {
573 _ddlRecordSet.setDescription(description);
574 }
575
576
582 public void setDescription(java.lang.String description,
583 java.util.Locale locale) {
584 _ddlRecordSet.setDescription(description, locale);
585 }
586
587
594 public void setDescription(java.lang.String description,
595 java.util.Locale locale, java.util.Locale defaultLocale) {
596 _ddlRecordSet.setDescription(description, locale, defaultLocale);
597 }
598
599 public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
600 _ddlRecordSet.setDescriptionCurrentLanguageId(languageId);
601 }
602
603
608 public void setDescriptionMap(
609 java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
610 _ddlRecordSet.setDescriptionMap(descriptionMap);
611 }
612
613
619 public void setDescriptionMap(
620 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
621 java.util.Locale defaultLocale) {
622 _ddlRecordSet.setDescriptionMap(descriptionMap, defaultLocale);
623 }
624
625
630 public int getMinDisplayRows() {
631 return _ddlRecordSet.getMinDisplayRows();
632 }
633
634
639 public void setMinDisplayRows(int minDisplayRows) {
640 _ddlRecordSet.setMinDisplayRows(minDisplayRows);
641 }
642
643
648 public int getScope() {
649 return _ddlRecordSet.getScope();
650 }
651
652
657 public void setScope(int scope) {
658 _ddlRecordSet.setScope(scope);
659 }
660
661 public boolean isNew() {
662 return _ddlRecordSet.isNew();
663 }
664
665 public void setNew(boolean n) {
666 _ddlRecordSet.setNew(n);
667 }
668
669 public boolean isCachedModel() {
670 return _ddlRecordSet.isCachedModel();
671 }
672
673 public void setCachedModel(boolean cachedModel) {
674 _ddlRecordSet.setCachedModel(cachedModel);
675 }
676
677 public boolean isEscapedModel() {
678 return _ddlRecordSet.isEscapedModel();
679 }
680
681 public java.io.Serializable getPrimaryKeyObj() {
682 return _ddlRecordSet.getPrimaryKeyObj();
683 }
684
685 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
686 _ddlRecordSet.setPrimaryKeyObj(primaryKeyObj);
687 }
688
689 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
690 return _ddlRecordSet.getExpandoBridge();
691 }
692
693 public void setExpandoBridgeAttributes(
694 com.liferay.portal.service.ServiceContext serviceContext) {
695 _ddlRecordSet.setExpandoBridgeAttributes(serviceContext);
696 }
697
698 public void prepareLocalizedFieldsForImport(
699 java.util.Locale defaultImportLocale)
700 throws com.liferay.portal.LocaleException {
701 _ddlRecordSet.prepareLocalizedFieldsForImport(defaultImportLocale);
702 }
703
704 @Override
705 public java.lang.Object clone() {
706 return new DDLRecordSetWrapper((DDLRecordSet)_ddlRecordSet.clone());
707 }
708
709 public int compareTo(
710 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet ddlRecordSet) {
711 return _ddlRecordSet.compareTo(ddlRecordSet);
712 }
713
714 @Override
715 public int hashCode() {
716 return _ddlRecordSet.hashCode();
717 }
718
719 public com.liferay.portal.model.CacheModel<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> toCacheModel() {
720 return _ddlRecordSet.toCacheModel();
721 }
722
723 public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet toEscapedModel() {
724 return new DDLRecordSetWrapper(_ddlRecordSet.toEscapedModel());
725 }
726
727 @Override
728 public java.lang.String toString() {
729 return _ddlRecordSet.toString();
730 }
731
732 public java.lang.String toXmlString() {
733 return _ddlRecordSet.toXmlString();
734 }
735
736 public void persist()
737 throws com.liferay.portal.kernel.exception.SystemException {
738 _ddlRecordSet.persist();
739 }
740
741 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getDDMStructure()
742 throws com.liferay.portal.kernel.exception.PortalException,
743 com.liferay.portal.kernel.exception.SystemException {
744 return _ddlRecordSet.getDDMStructure();
745 }
746
747 public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getDDMStructure(
748 long formDDMTemplateId)
749 throws com.liferay.portal.kernel.exception.PortalException,
750 com.liferay.portal.kernel.exception.SystemException {
751 return _ddlRecordSet.getDDMStructure(formDDMTemplateId);
752 }
753
754 public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> getRecords()
755 throws com.liferay.portal.kernel.exception.SystemException {
756 return _ddlRecordSet.getRecords();
757 }
758
759 public java.util.List<com.liferay.portlet.dynamicdatamapping.storage.Fields> getRecordsFieldsList()
760 throws com.liferay.portal.kernel.exception.PortalException,
761 com.liferay.portal.kernel.exception.SystemException {
762 return _ddlRecordSet.getRecordsFieldsList();
763 }
764
765
768 public DDLRecordSet getWrappedDDLRecordSet() {
769 return _ddlRecordSet;
770 }
771
772 public DDLRecordSet getWrappedModel() {
773 return _ddlRecordSet;
774 }
775
776 public void resetOriginalValues() {
777 _ddlRecordSet.resetOriginalValues();
778 }
779
780 private DDLRecordSet _ddlRecordSet;
781 }