001
014
015 package com.liferay.portal.model;
016
017 import java.util.Date;
018 import java.util.HashMap;
019 import java.util.Map;
020
021
030 public class ContactWrapper implements Contact, ModelWrapper<Contact> {
031 public ContactWrapper(Contact contact) {
032 _contact = contact;
033 }
034
035 public Class<?> getModelClass() {
036 return Contact.class;
037 }
038
039 public String getModelClassName() {
040 return Contact.class.getName();
041 }
042
043 public Map<String, Object> getModelAttributes() {
044 Map<String, Object> attributes = new HashMap<String, Object>();
045
046 attributes.put("contactId", getContactId());
047 attributes.put("companyId", getCompanyId());
048 attributes.put("userId", getUserId());
049 attributes.put("userName", getUserName());
050 attributes.put("createDate", getCreateDate());
051 attributes.put("modifiedDate", getModifiedDate());
052 attributes.put("classNameId", getClassNameId());
053 attributes.put("classPK", getClassPK());
054 attributes.put("accountId", getAccountId());
055 attributes.put("parentContactId", getParentContactId());
056 attributes.put("emailAddress", getEmailAddress());
057 attributes.put("firstName", getFirstName());
058 attributes.put("middleName", getMiddleName());
059 attributes.put("lastName", getLastName());
060 attributes.put("prefixId", getPrefixId());
061 attributes.put("suffixId", getSuffixId());
062 attributes.put("male", getMale());
063 attributes.put("birthday", getBirthday());
064 attributes.put("smsSn", getSmsSn());
065 attributes.put("aimSn", getAimSn());
066 attributes.put("facebookSn", getFacebookSn());
067 attributes.put("icqSn", getIcqSn());
068 attributes.put("jabberSn", getJabberSn());
069 attributes.put("msnSn", getMsnSn());
070 attributes.put("mySpaceSn", getMySpaceSn());
071 attributes.put("skypeSn", getSkypeSn());
072 attributes.put("twitterSn", getTwitterSn());
073 attributes.put("ymSn", getYmSn());
074 attributes.put("employeeStatusId", getEmployeeStatusId());
075 attributes.put("employeeNumber", getEmployeeNumber());
076 attributes.put("jobTitle", getJobTitle());
077 attributes.put("jobClass", getJobClass());
078 attributes.put("hoursOfOperation", getHoursOfOperation());
079
080 return attributes;
081 }
082
083 public void setModelAttributes(Map<String, Object> attributes) {
084 Long contactId = (Long)attributes.get("contactId");
085
086 if (contactId != null) {
087 setContactId(contactId);
088 }
089
090 Long companyId = (Long)attributes.get("companyId");
091
092 if (companyId != null) {
093 setCompanyId(companyId);
094 }
095
096 Long userId = (Long)attributes.get("userId");
097
098 if (userId != null) {
099 setUserId(userId);
100 }
101
102 String userName = (String)attributes.get("userName");
103
104 if (userName != null) {
105 setUserName(userName);
106 }
107
108 Date createDate = (Date)attributes.get("createDate");
109
110 if (createDate != null) {
111 setCreateDate(createDate);
112 }
113
114 Date modifiedDate = (Date)attributes.get("modifiedDate");
115
116 if (modifiedDate != null) {
117 setModifiedDate(modifiedDate);
118 }
119
120 Long classNameId = (Long)attributes.get("classNameId");
121
122 if (classNameId != null) {
123 setClassNameId(classNameId);
124 }
125
126 Long classPK = (Long)attributes.get("classPK");
127
128 if (classPK != null) {
129 setClassPK(classPK);
130 }
131
132 Long accountId = (Long)attributes.get("accountId");
133
134 if (accountId != null) {
135 setAccountId(accountId);
136 }
137
138 Long parentContactId = (Long)attributes.get("parentContactId");
139
140 if (parentContactId != null) {
141 setParentContactId(parentContactId);
142 }
143
144 String emailAddress = (String)attributes.get("emailAddress");
145
146 if (emailAddress != null) {
147 setEmailAddress(emailAddress);
148 }
149
150 String firstName = (String)attributes.get("firstName");
151
152 if (firstName != null) {
153 setFirstName(firstName);
154 }
155
156 String middleName = (String)attributes.get("middleName");
157
158 if (middleName != null) {
159 setMiddleName(middleName);
160 }
161
162 String lastName = (String)attributes.get("lastName");
163
164 if (lastName != null) {
165 setLastName(lastName);
166 }
167
168 Integer prefixId = (Integer)attributes.get("prefixId");
169
170 if (prefixId != null) {
171 setPrefixId(prefixId);
172 }
173
174 Integer suffixId = (Integer)attributes.get("suffixId");
175
176 if (suffixId != null) {
177 setSuffixId(suffixId);
178 }
179
180 Boolean male = (Boolean)attributes.get("male");
181
182 if (male != null) {
183 setMale(male);
184 }
185
186 Date birthday = (Date)attributes.get("birthday");
187
188 if (birthday != null) {
189 setBirthday(birthday);
190 }
191
192 String smsSn = (String)attributes.get("smsSn");
193
194 if (smsSn != null) {
195 setSmsSn(smsSn);
196 }
197
198 String aimSn = (String)attributes.get("aimSn");
199
200 if (aimSn != null) {
201 setAimSn(aimSn);
202 }
203
204 String facebookSn = (String)attributes.get("facebookSn");
205
206 if (facebookSn != null) {
207 setFacebookSn(facebookSn);
208 }
209
210 String icqSn = (String)attributes.get("icqSn");
211
212 if (icqSn != null) {
213 setIcqSn(icqSn);
214 }
215
216 String jabberSn = (String)attributes.get("jabberSn");
217
218 if (jabberSn != null) {
219 setJabberSn(jabberSn);
220 }
221
222 String msnSn = (String)attributes.get("msnSn");
223
224 if (msnSn != null) {
225 setMsnSn(msnSn);
226 }
227
228 String mySpaceSn = (String)attributes.get("mySpaceSn");
229
230 if (mySpaceSn != null) {
231 setMySpaceSn(mySpaceSn);
232 }
233
234 String skypeSn = (String)attributes.get("skypeSn");
235
236 if (skypeSn != null) {
237 setSkypeSn(skypeSn);
238 }
239
240 String twitterSn = (String)attributes.get("twitterSn");
241
242 if (twitterSn != null) {
243 setTwitterSn(twitterSn);
244 }
245
246 String ymSn = (String)attributes.get("ymSn");
247
248 if (ymSn != null) {
249 setYmSn(ymSn);
250 }
251
252 String employeeStatusId = (String)attributes.get("employeeStatusId");
253
254 if (employeeStatusId != null) {
255 setEmployeeStatusId(employeeStatusId);
256 }
257
258 String employeeNumber = (String)attributes.get("employeeNumber");
259
260 if (employeeNumber != null) {
261 setEmployeeNumber(employeeNumber);
262 }
263
264 String jobTitle = (String)attributes.get("jobTitle");
265
266 if (jobTitle != null) {
267 setJobTitle(jobTitle);
268 }
269
270 String jobClass = (String)attributes.get("jobClass");
271
272 if (jobClass != null) {
273 setJobClass(jobClass);
274 }
275
276 String hoursOfOperation = (String)attributes.get("hoursOfOperation");
277
278 if (hoursOfOperation != null) {
279 setHoursOfOperation(hoursOfOperation);
280 }
281 }
282
283
288 public long getPrimaryKey() {
289 return _contact.getPrimaryKey();
290 }
291
292
297 public void setPrimaryKey(long primaryKey) {
298 _contact.setPrimaryKey(primaryKey);
299 }
300
301
306 public long getContactId() {
307 return _contact.getContactId();
308 }
309
310
315 public void setContactId(long contactId) {
316 _contact.setContactId(contactId);
317 }
318
319
324 public long getCompanyId() {
325 return _contact.getCompanyId();
326 }
327
328
333 public void setCompanyId(long companyId) {
334 _contact.setCompanyId(companyId);
335 }
336
337
342 public long getUserId() {
343 return _contact.getUserId();
344 }
345
346
351 public void setUserId(long userId) {
352 _contact.setUserId(userId);
353 }
354
355
361 public java.lang.String getUserUuid()
362 throws com.liferay.portal.kernel.exception.SystemException {
363 return _contact.getUserUuid();
364 }
365
366
371 public void setUserUuid(java.lang.String userUuid) {
372 _contact.setUserUuid(userUuid);
373 }
374
375
380 public java.lang.String getUserName() {
381 return _contact.getUserName();
382 }
383
384
389 public void setUserName(java.lang.String userName) {
390 _contact.setUserName(userName);
391 }
392
393
398 public java.util.Date getCreateDate() {
399 return _contact.getCreateDate();
400 }
401
402
407 public void setCreateDate(java.util.Date createDate) {
408 _contact.setCreateDate(createDate);
409 }
410
411
416 public java.util.Date getModifiedDate() {
417 return _contact.getModifiedDate();
418 }
419
420
425 public void setModifiedDate(java.util.Date modifiedDate) {
426 _contact.setModifiedDate(modifiedDate);
427 }
428
429
434 public java.lang.String getClassName() {
435 return _contact.getClassName();
436 }
437
438 public void setClassName(java.lang.String className) {
439 _contact.setClassName(className);
440 }
441
442
447 public long getClassNameId() {
448 return _contact.getClassNameId();
449 }
450
451
456 public void setClassNameId(long classNameId) {
457 _contact.setClassNameId(classNameId);
458 }
459
460
465 public long getClassPK() {
466 return _contact.getClassPK();
467 }
468
469
474 public void setClassPK(long classPK) {
475 _contact.setClassPK(classPK);
476 }
477
478
483 public long getAccountId() {
484 return _contact.getAccountId();
485 }
486
487
492 public void setAccountId(long accountId) {
493 _contact.setAccountId(accountId);
494 }
495
496
501 public long getParentContactId() {
502 return _contact.getParentContactId();
503 }
504
505
510 public void setParentContactId(long parentContactId) {
511 _contact.setParentContactId(parentContactId);
512 }
513
514
519 public java.lang.String getEmailAddress() {
520 return _contact.getEmailAddress();
521 }
522
523
528 public void setEmailAddress(java.lang.String emailAddress) {
529 _contact.setEmailAddress(emailAddress);
530 }
531
532
537 public java.lang.String getFirstName() {
538 return _contact.getFirstName();
539 }
540
541
546 public void setFirstName(java.lang.String firstName) {
547 _contact.setFirstName(firstName);
548 }
549
550
555 public java.lang.String getMiddleName() {
556 return _contact.getMiddleName();
557 }
558
559
564 public void setMiddleName(java.lang.String middleName) {
565 _contact.setMiddleName(middleName);
566 }
567
568
573 public java.lang.String getLastName() {
574 return _contact.getLastName();
575 }
576
577
582 public void setLastName(java.lang.String lastName) {
583 _contact.setLastName(lastName);
584 }
585
586
591 public int getPrefixId() {
592 return _contact.getPrefixId();
593 }
594
595
600 public void setPrefixId(int prefixId) {
601 _contact.setPrefixId(prefixId);
602 }
603
604
609 public int getSuffixId() {
610 return _contact.getSuffixId();
611 }
612
613
618 public void setSuffixId(int suffixId) {
619 _contact.setSuffixId(suffixId);
620 }
621
622
627 public boolean getMale() {
628 return _contact.getMale();
629 }
630
631
636 public boolean isMale() {
637 return _contact.isMale();
638 }
639
640
645 public void setMale(boolean male) {
646 _contact.setMale(male);
647 }
648
649
654 public java.util.Date getBirthday() {
655 return _contact.getBirthday();
656 }
657
658
663 public void setBirthday(java.util.Date birthday) {
664 _contact.setBirthday(birthday);
665 }
666
667
672 public java.lang.String getSmsSn() {
673 return _contact.getSmsSn();
674 }
675
676
681 public void setSmsSn(java.lang.String smsSn) {
682 _contact.setSmsSn(smsSn);
683 }
684
685
690 public java.lang.String getAimSn() {
691 return _contact.getAimSn();
692 }
693
694
699 public void setAimSn(java.lang.String aimSn) {
700 _contact.setAimSn(aimSn);
701 }
702
703
708 public java.lang.String getFacebookSn() {
709 return _contact.getFacebookSn();
710 }
711
712
717 public void setFacebookSn(java.lang.String facebookSn) {
718 _contact.setFacebookSn(facebookSn);
719 }
720
721
726 public java.lang.String getIcqSn() {
727 return _contact.getIcqSn();
728 }
729
730
735 public void setIcqSn(java.lang.String icqSn) {
736 _contact.setIcqSn(icqSn);
737 }
738
739
744 public java.lang.String getJabberSn() {
745 return _contact.getJabberSn();
746 }
747
748
753 public void setJabberSn(java.lang.String jabberSn) {
754 _contact.setJabberSn(jabberSn);
755 }
756
757
762 public java.lang.String getMsnSn() {
763 return _contact.getMsnSn();
764 }
765
766
771 public void setMsnSn(java.lang.String msnSn) {
772 _contact.setMsnSn(msnSn);
773 }
774
775
780 public java.lang.String getMySpaceSn() {
781 return _contact.getMySpaceSn();
782 }
783
784
789 public void setMySpaceSn(java.lang.String mySpaceSn) {
790 _contact.setMySpaceSn(mySpaceSn);
791 }
792
793
798 public java.lang.String getSkypeSn() {
799 return _contact.getSkypeSn();
800 }
801
802
807 public void setSkypeSn(java.lang.String skypeSn) {
808 _contact.setSkypeSn(skypeSn);
809 }
810
811
816 public java.lang.String getTwitterSn() {
817 return _contact.getTwitterSn();
818 }
819
820
825 public void setTwitterSn(java.lang.String twitterSn) {
826 _contact.setTwitterSn(twitterSn);
827 }
828
829
834 public java.lang.String getYmSn() {
835 return _contact.getYmSn();
836 }
837
838
843 public void setYmSn(java.lang.String ymSn) {
844 _contact.setYmSn(ymSn);
845 }
846
847
852 public java.lang.String getEmployeeStatusId() {
853 return _contact.getEmployeeStatusId();
854 }
855
856
861 public void setEmployeeStatusId(java.lang.String employeeStatusId) {
862 _contact.setEmployeeStatusId(employeeStatusId);
863 }
864
865
870 public java.lang.String getEmployeeNumber() {
871 return _contact.getEmployeeNumber();
872 }
873
874
879 public void setEmployeeNumber(java.lang.String employeeNumber) {
880 _contact.setEmployeeNumber(employeeNumber);
881 }
882
883
888 public java.lang.String getJobTitle() {
889 return _contact.getJobTitle();
890 }
891
892
897 public void setJobTitle(java.lang.String jobTitle) {
898 _contact.setJobTitle(jobTitle);
899 }
900
901
906 public java.lang.String getJobClass() {
907 return _contact.getJobClass();
908 }
909
910
915 public void setJobClass(java.lang.String jobClass) {
916 _contact.setJobClass(jobClass);
917 }
918
919
924 public java.lang.String getHoursOfOperation() {
925 return _contact.getHoursOfOperation();
926 }
927
928
933 public void setHoursOfOperation(java.lang.String hoursOfOperation) {
934 _contact.setHoursOfOperation(hoursOfOperation);
935 }
936
937 public boolean isNew() {
938 return _contact.isNew();
939 }
940
941 public void setNew(boolean n) {
942 _contact.setNew(n);
943 }
944
945 public boolean isCachedModel() {
946 return _contact.isCachedModel();
947 }
948
949 public void setCachedModel(boolean cachedModel) {
950 _contact.setCachedModel(cachedModel);
951 }
952
953 public boolean isEscapedModel() {
954 return _contact.isEscapedModel();
955 }
956
957 public java.io.Serializable getPrimaryKeyObj() {
958 return _contact.getPrimaryKeyObj();
959 }
960
961 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
962 _contact.setPrimaryKeyObj(primaryKeyObj);
963 }
964
965 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
966 return _contact.getExpandoBridge();
967 }
968
969 public void setExpandoBridgeAttributes(
970 com.liferay.portal.model.BaseModel<?> baseModel) {
971 _contact.setExpandoBridgeAttributes(baseModel);
972 }
973
974 public void setExpandoBridgeAttributes(
975 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
976 _contact.setExpandoBridgeAttributes(expandoBridge);
977 }
978
979 public void setExpandoBridgeAttributes(
980 com.liferay.portal.service.ServiceContext serviceContext) {
981 _contact.setExpandoBridgeAttributes(serviceContext);
982 }
983
984 @Override
985 public java.lang.Object clone() {
986 return new ContactWrapper((Contact)_contact.clone());
987 }
988
989 public int compareTo(com.liferay.portal.model.Contact contact) {
990 return _contact.compareTo(contact);
991 }
992
993 @Override
994 public int hashCode() {
995 return _contact.hashCode();
996 }
997
998 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Contact> toCacheModel() {
999 return _contact.toCacheModel();
1000 }
1001
1002 public com.liferay.portal.model.Contact toEscapedModel() {
1003 return new ContactWrapper(_contact.toEscapedModel());
1004 }
1005
1006 public com.liferay.portal.model.Contact toUnescapedModel() {
1007 return new ContactWrapper(_contact.toUnescapedModel());
1008 }
1009
1010 @Override
1011 public java.lang.String toString() {
1012 return _contact.toString();
1013 }
1014
1015 public java.lang.String toXmlString() {
1016 return _contact.toXmlString();
1017 }
1018
1019 public void persist()
1020 throws com.liferay.portal.kernel.exception.SystemException {
1021 _contact.persist();
1022 }
1023
1024 public java.lang.String getFullName() {
1025 return _contact.getFullName();
1026 }
1027
1028 public boolean isUser() {
1029 return _contact.isUser();
1030 }
1031
1032
1035 public Contact getWrappedContact() {
1036 return _contact;
1037 }
1038
1039 public Contact getWrappedModel() {
1040 return _contact;
1041 }
1042
1043 public void resetOriginalValues() {
1044 _contact.resetOriginalValues();
1045 }
1046
1047 private Contact _contact;
1048 }