001
014
015 package com.liferay.exportimport.kernel.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.expando.kernel.model.ExpandoBridge;
020
021 import com.liferay.portal.kernel.model.ModelWrapper;
022 import com.liferay.portal.kernel.service.ServiceContext;
023
024 import java.io.Serializable;
025
026 import java.util.Date;
027 import java.util.HashMap;
028 import java.util.Map;
029 import java.util.Objects;
030
031
040 @ProviderType
041 public class ExportImportConfigurationWrapper
042 implements ExportImportConfiguration,
043 ModelWrapper<ExportImportConfiguration> {
044 public ExportImportConfigurationWrapper(
045 ExportImportConfiguration exportImportConfiguration) {
046 _exportImportConfiguration = exportImportConfiguration;
047 }
048
049 @Override
050 public Class<?> getModelClass() {
051 return ExportImportConfiguration.class;
052 }
053
054 @Override
055 public String getModelClassName() {
056 return ExportImportConfiguration.class.getName();
057 }
058
059 @Override
060 public Map<String, Object> getModelAttributes() {
061 Map<String, Object> attributes = new HashMap<String, Object>();
062
063 attributes.put("mvccVersion", getMvccVersion());
064 attributes.put("exportImportConfigurationId",
065 getExportImportConfigurationId());
066 attributes.put("groupId", getGroupId());
067 attributes.put("companyId", getCompanyId());
068 attributes.put("userId", getUserId());
069 attributes.put("userName", getUserName());
070 attributes.put("createDate", getCreateDate());
071 attributes.put("modifiedDate", getModifiedDate());
072 attributes.put("name", getName());
073 attributes.put("description", getDescription());
074 attributes.put("type", getType());
075 attributes.put("settings", getSettings());
076 attributes.put("status", getStatus());
077 attributes.put("statusByUserId", getStatusByUserId());
078 attributes.put("statusByUserName", getStatusByUserName());
079 attributes.put("statusDate", getStatusDate());
080
081 return attributes;
082 }
083
084 @Override
085 public void setModelAttributes(Map<String, Object> attributes) {
086 Long mvccVersion = (Long)attributes.get("mvccVersion");
087
088 if (mvccVersion != null) {
089 setMvccVersion(mvccVersion);
090 }
091
092 Long exportImportConfigurationId = (Long)attributes.get(
093 "exportImportConfigurationId");
094
095 if (exportImportConfigurationId != null) {
096 setExportImportConfigurationId(exportImportConfigurationId);
097 }
098
099 Long groupId = (Long)attributes.get("groupId");
100
101 if (groupId != null) {
102 setGroupId(groupId);
103 }
104
105 Long companyId = (Long)attributes.get("companyId");
106
107 if (companyId != null) {
108 setCompanyId(companyId);
109 }
110
111 Long userId = (Long)attributes.get("userId");
112
113 if (userId != null) {
114 setUserId(userId);
115 }
116
117 String userName = (String)attributes.get("userName");
118
119 if (userName != null) {
120 setUserName(userName);
121 }
122
123 Date createDate = (Date)attributes.get("createDate");
124
125 if (createDate != null) {
126 setCreateDate(createDate);
127 }
128
129 Date modifiedDate = (Date)attributes.get("modifiedDate");
130
131 if (modifiedDate != null) {
132 setModifiedDate(modifiedDate);
133 }
134
135 String name = (String)attributes.get("name");
136
137 if (name != null) {
138 setName(name);
139 }
140
141 String description = (String)attributes.get("description");
142
143 if (description != null) {
144 setDescription(description);
145 }
146
147 Integer type = (Integer)attributes.get("type");
148
149 if (type != null) {
150 setType(type);
151 }
152
153 String settings = (String)attributes.get("settings");
154
155 if (settings != null) {
156 setSettings(settings);
157 }
158
159 Integer status = (Integer)attributes.get("status");
160
161 if (status != null) {
162 setStatus(status);
163 }
164
165 Long statusByUserId = (Long)attributes.get("statusByUserId");
166
167 if (statusByUserId != null) {
168 setStatusByUserId(statusByUserId);
169 }
170
171 String statusByUserName = (String)attributes.get("statusByUserName");
172
173 if (statusByUserName != null) {
174 setStatusByUserName(statusByUserName);
175 }
176
177 Date statusDate = (Date)attributes.get("statusDate");
178
179 if (statusDate != null) {
180 setStatusDate(statusDate);
181 }
182 }
183
184 @Override
185 public ExportImportConfiguration toEscapedModel() {
186 return new ExportImportConfigurationWrapper(_exportImportConfiguration.toEscapedModel());
187 }
188
189 @Override
190 public ExportImportConfiguration toUnescapedModel() {
191 return new ExportImportConfigurationWrapper(_exportImportConfiguration.toUnescapedModel());
192 }
193
194
199 @Override
200 public boolean isApproved() {
201 return _exportImportConfiguration.isApproved();
202 }
203
204 @Override
205 public boolean isCachedModel() {
206 return _exportImportConfiguration.isCachedModel();
207 }
208
209
214 @Override
215 public boolean isDenied() {
216 return _exportImportConfiguration.isDenied();
217 }
218
219
224 @Override
225 public boolean isDraft() {
226 return _exportImportConfiguration.isDraft();
227 }
228
229 @Override
230 public boolean isEscapedModel() {
231 return _exportImportConfiguration.isEscapedModel();
232 }
233
234
239 @Override
240 public boolean isExpired() {
241 return _exportImportConfiguration.isExpired();
242 }
243
244
249 @Override
250 public boolean isInTrash() {
251 return _exportImportConfiguration.isInTrash();
252 }
253
254
259 @Override
260 public boolean isInTrashContainer() {
261 return _exportImportConfiguration.isInTrashContainer();
262 }
263
264 @Override
265 public boolean isInTrashExplicitly() {
266 return _exportImportConfiguration.isInTrashExplicitly();
267 }
268
269 @Override
270 public boolean isInTrashImplicitly() {
271 return _exportImportConfiguration.isInTrashImplicitly();
272 }
273
274
279 @Override
280 public boolean isInactive() {
281 return _exportImportConfiguration.isInactive();
282 }
283
284
289 @Override
290 public boolean isIncomplete() {
291 return _exportImportConfiguration.isIncomplete();
292 }
293
294 @Override
295 public boolean isNew() {
296 return _exportImportConfiguration.isNew();
297 }
298
299
304 @Override
305 public boolean isPending() {
306 return _exportImportConfiguration.isPending();
307 }
308
309
314 @Override
315 public boolean isScheduled() {
316 return _exportImportConfiguration.isScheduled();
317 }
318
319 @Override
320 public ExpandoBridge getExpandoBridge() {
321 return _exportImportConfiguration.getExpandoBridge();
322 }
323
324 @Override
325 public com.liferay.portal.kernel.model.CacheModel<ExportImportConfiguration> toCacheModel() {
326 return _exportImportConfiguration.toCacheModel();
327 }
328
329
334 @Override
335 public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler() {
336 return _exportImportConfiguration.getTrashHandler();
337 }
338
339
344 @Override
345 public com.liferay.trash.kernel.model.TrashEntry getTrashEntry()
346 throws com.liferay.portal.kernel.exception.PortalException {
347 return _exportImportConfiguration.getTrashEntry();
348 }
349
350 @Override
351 public int compareTo(ExportImportConfiguration exportImportConfiguration) {
352 return _exportImportConfiguration.compareTo(exportImportConfiguration);
353 }
354
355
360 @Override
361 public int getStatus() {
362 return _exportImportConfiguration.getStatus();
363 }
364
365
370 @Override
371 public int getType() {
372 return _exportImportConfiguration.getType();
373 }
374
375 @Override
376 public int hashCode() {
377 return _exportImportConfiguration.hashCode();
378 }
379
380 @Override
381 public Serializable getPrimaryKeyObj() {
382 return _exportImportConfiguration.getPrimaryKeyObj();
383 }
384
385 @Override
386 public java.lang.Object clone() {
387 return new ExportImportConfigurationWrapper((ExportImportConfiguration)_exportImportConfiguration.clone());
388 }
389
390
395 @Override
396 public java.lang.String getDescription() {
397 return _exportImportConfiguration.getDescription();
398 }
399
400
405 @Override
406 public java.lang.String getName() {
407 return _exportImportConfiguration.getName();
408 }
409
410
415 @Override
416 public java.lang.String getSettings() {
417 return _exportImportConfiguration.getSettings();
418 }
419
420
425 @Override
426 public java.lang.String getStatusByUserName() {
427 return _exportImportConfiguration.getStatusByUserName();
428 }
429
430
435 @Override
436 public java.lang.String getStatusByUserUuid() {
437 return _exportImportConfiguration.getStatusByUserUuid();
438 }
439
440
445 @Override
446 public java.lang.String getUserName() {
447 return _exportImportConfiguration.getUserName();
448 }
449
450
455 @Override
456 public java.lang.String getUserUuid() {
457 return _exportImportConfiguration.getUserUuid();
458 }
459
460 @Override
461 public java.lang.String toString() {
462 return _exportImportConfiguration.toString();
463 }
464
465 @Override
466 public java.lang.String toXmlString() {
467 return _exportImportConfiguration.toXmlString();
468 }
469
470
475 @Override
476 public Date getCreateDate() {
477 return _exportImportConfiguration.getCreateDate();
478 }
479
480
485 @Override
486 public Date getModifiedDate() {
487 return _exportImportConfiguration.getModifiedDate();
488 }
489
490
495 @Override
496 public Date getStatusDate() {
497 return _exportImportConfiguration.getStatusDate();
498 }
499
500 @Override
501 public Map<java.lang.String, Serializable> getSettingsMap() {
502 return _exportImportConfiguration.getSettingsMap();
503 }
504
505
510 @Override
511 public long getCompanyId() {
512 return _exportImportConfiguration.getCompanyId();
513 }
514
515
520 @Override
521 public long getExportImportConfigurationId() {
522 return _exportImportConfiguration.getExportImportConfigurationId();
523 }
524
525
530 @Override
531 public long getGroupId() {
532 return _exportImportConfiguration.getGroupId();
533 }
534
535
540 @Override
541 public long getMvccVersion() {
542 return _exportImportConfiguration.getMvccVersion();
543 }
544
545
550 @Override
551 public long getPrimaryKey() {
552 return _exportImportConfiguration.getPrimaryKey();
553 }
554
555
560 @Override
561 public long getStatusByUserId() {
562 return _exportImportConfiguration.getStatusByUserId();
563 }
564
565
570 @Override
571 public long getTrashEntryClassPK() {
572 return _exportImportConfiguration.getTrashEntryClassPK();
573 }
574
575
580 @Override
581 public long getUserId() {
582 return _exportImportConfiguration.getUserId();
583 }
584
585 @Override
586 public void persist() {
587 _exportImportConfiguration.persist();
588 }
589
590 @Override
591 public void setCachedModel(boolean cachedModel) {
592 _exportImportConfiguration.setCachedModel(cachedModel);
593 }
594
595
600 @Override
601 public void setCompanyId(long companyId) {
602 _exportImportConfiguration.setCompanyId(companyId);
603 }
604
605
610 @Override
611 public void setCreateDate(Date createDate) {
612 _exportImportConfiguration.setCreateDate(createDate);
613 }
614
615
620 @Override
621 public void setDescription(java.lang.String description) {
622 _exportImportConfiguration.setDescription(description);
623 }
624
625 @Override
626 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
627 _exportImportConfiguration.setExpandoBridgeAttributes(expandoBridge);
628 }
629
630 @Override
631 public void setExpandoBridgeAttributes(
632 com.liferay.portal.kernel.model.BaseModel<?> baseModel) {
633 _exportImportConfiguration.setExpandoBridgeAttributes(baseModel);
634 }
635
636 @Override
637 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
638 _exportImportConfiguration.setExpandoBridgeAttributes(serviceContext);
639 }
640
641
646 @Override
647 public void setExportImportConfigurationId(long exportImportConfigurationId) {
648 _exportImportConfiguration.setExportImportConfigurationId(exportImportConfigurationId);
649 }
650
651
656 @Override
657 public void setGroupId(long groupId) {
658 _exportImportConfiguration.setGroupId(groupId);
659 }
660
661
666 @Override
667 public void setModifiedDate(Date modifiedDate) {
668 _exportImportConfiguration.setModifiedDate(modifiedDate);
669 }
670
671
676 @Override
677 public void setMvccVersion(long mvccVersion) {
678 _exportImportConfiguration.setMvccVersion(mvccVersion);
679 }
680
681
686 @Override
687 public void setName(java.lang.String name) {
688 _exportImportConfiguration.setName(name);
689 }
690
691 @Override
692 public void setNew(boolean n) {
693 _exportImportConfiguration.setNew(n);
694 }
695
696
701 @Override
702 public void setPrimaryKey(long primaryKey) {
703 _exportImportConfiguration.setPrimaryKey(primaryKey);
704 }
705
706 @Override
707 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
708 _exportImportConfiguration.setPrimaryKeyObj(primaryKeyObj);
709 }
710
711
716 @Override
717 public void setSettings(java.lang.String settings) {
718 _exportImportConfiguration.setSettings(settings);
719 }
720
721
726 @Override
727 public void setStatus(int status) {
728 _exportImportConfiguration.setStatus(status);
729 }
730
731
736 @Override
737 public void setStatusByUserId(long statusByUserId) {
738 _exportImportConfiguration.setStatusByUserId(statusByUserId);
739 }
740
741
746 @Override
747 public void setStatusByUserName(java.lang.String statusByUserName) {
748 _exportImportConfiguration.setStatusByUserName(statusByUserName);
749 }
750
751
756 @Override
757 public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
758 _exportImportConfiguration.setStatusByUserUuid(statusByUserUuid);
759 }
760
761
766 @Override
767 public void setStatusDate(Date statusDate) {
768 _exportImportConfiguration.setStatusDate(statusDate);
769 }
770
771
776 @Override
777 public void setType(int type) {
778 _exportImportConfiguration.setType(type);
779 }
780
781
786 @Override
787 public void setUserId(long userId) {
788 _exportImportConfiguration.setUserId(userId);
789 }
790
791
796 @Override
797 public void setUserName(java.lang.String userName) {
798 _exportImportConfiguration.setUserName(userName);
799 }
800
801
806 @Override
807 public void setUserUuid(java.lang.String userUuid) {
808 _exportImportConfiguration.setUserUuid(userUuid);
809 }
810
811 @Override
812 public boolean equals(Object obj) {
813 if (this == obj) {
814 return true;
815 }
816
817 if (!(obj instanceof ExportImportConfigurationWrapper)) {
818 return false;
819 }
820
821 ExportImportConfigurationWrapper exportImportConfigurationWrapper = (ExportImportConfigurationWrapper)obj;
822
823 if (Objects.equals(_exportImportConfiguration,
824 exportImportConfigurationWrapper._exportImportConfiguration)) {
825 return true;
826 }
827
828 return false;
829 }
830
831 @Override
832 public ExportImportConfiguration getWrappedModel() {
833 return _exportImportConfiguration;
834 }
835
836 @Override
837 public boolean isEntityCacheEnabled() {
838 return _exportImportConfiguration.isEntityCacheEnabled();
839 }
840
841 @Override
842 public boolean isFinderCacheEnabled() {
843 return _exportImportConfiguration.isFinderCacheEnabled();
844 }
845
846 @Override
847 public void resetOriginalValues() {
848 _exportImportConfiguration.resetOriginalValues();
849 }
850
851 private final ExportImportConfiguration _exportImportConfiguration;
852 }