001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.util.Validator;
020    
021    import java.util.Date;
022    import java.util.HashMap;
023    import java.util.Map;
024    
025    /**
026     * <p>
027     * This class is a wrapper for {@link Contact}.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see Contact
032     * @generated
033     */
034    @ProviderType
035    public class ContactWrapper implements Contact, ModelWrapper<Contact> {
036            public ContactWrapper(Contact contact) {
037                    _contact = contact;
038            }
039    
040            @Override
041            public Class<?> getModelClass() {
042                    return Contact.class;
043            }
044    
045            @Override
046            public String getModelClassName() {
047                    return Contact.class.getName();
048            }
049    
050            @Override
051            public Map<String, Object> getModelAttributes() {
052                    Map<String, Object> attributes = new HashMap<String, Object>();
053    
054                    attributes.put("mvccVersion", getMvccVersion());
055                    attributes.put("contactId", getContactId());
056                    attributes.put("companyId", getCompanyId());
057                    attributes.put("userId", getUserId());
058                    attributes.put("userName", getUserName());
059                    attributes.put("createDate", getCreateDate());
060                    attributes.put("modifiedDate", getModifiedDate());
061                    attributes.put("classNameId", getClassNameId());
062                    attributes.put("classPK", getClassPK());
063                    attributes.put("accountId", getAccountId());
064                    attributes.put("parentContactId", getParentContactId());
065                    attributes.put("emailAddress", getEmailAddress());
066                    attributes.put("firstName", getFirstName());
067                    attributes.put("middleName", getMiddleName());
068                    attributes.put("lastName", getLastName());
069                    attributes.put("prefixId", getPrefixId());
070                    attributes.put("suffixId", getSuffixId());
071                    attributes.put("male", getMale());
072                    attributes.put("birthday", getBirthday());
073                    attributes.put("smsSn", getSmsSn());
074                    attributes.put("facebookSn", getFacebookSn());
075                    attributes.put("jabberSn", getJabberSn());
076                    attributes.put("skypeSn", getSkypeSn());
077                    attributes.put("twitterSn", getTwitterSn());
078                    attributes.put("employeeStatusId", getEmployeeStatusId());
079                    attributes.put("employeeNumber", getEmployeeNumber());
080                    attributes.put("jobTitle", getJobTitle());
081                    attributes.put("jobClass", getJobClass());
082                    attributes.put("hoursOfOperation", getHoursOfOperation());
083    
084                    return attributes;
085            }
086    
087            @Override
088            public void setModelAttributes(Map<String, Object> attributes) {
089                    Long mvccVersion = (Long)attributes.get("mvccVersion");
090    
091                    if (mvccVersion != null) {
092                            setMvccVersion(mvccVersion);
093                    }
094    
095                    Long contactId = (Long)attributes.get("contactId");
096    
097                    if (contactId != null) {
098                            setContactId(contactId);
099                    }
100    
101                    Long companyId = (Long)attributes.get("companyId");
102    
103                    if (companyId != null) {
104                            setCompanyId(companyId);
105                    }
106    
107                    Long userId = (Long)attributes.get("userId");
108    
109                    if (userId != null) {
110                            setUserId(userId);
111                    }
112    
113                    String userName = (String)attributes.get("userName");
114    
115                    if (userName != null) {
116                            setUserName(userName);
117                    }
118    
119                    Date createDate = (Date)attributes.get("createDate");
120    
121                    if (createDate != null) {
122                            setCreateDate(createDate);
123                    }
124    
125                    Date modifiedDate = (Date)attributes.get("modifiedDate");
126    
127                    if (modifiedDate != null) {
128                            setModifiedDate(modifiedDate);
129                    }
130    
131                    Long classNameId = (Long)attributes.get("classNameId");
132    
133                    if (classNameId != null) {
134                            setClassNameId(classNameId);
135                    }
136    
137                    Long classPK = (Long)attributes.get("classPK");
138    
139                    if (classPK != null) {
140                            setClassPK(classPK);
141                    }
142    
143                    Long accountId = (Long)attributes.get("accountId");
144    
145                    if (accountId != null) {
146                            setAccountId(accountId);
147                    }
148    
149                    Long parentContactId = (Long)attributes.get("parentContactId");
150    
151                    if (parentContactId != null) {
152                            setParentContactId(parentContactId);
153                    }
154    
155                    String emailAddress = (String)attributes.get("emailAddress");
156    
157                    if (emailAddress != null) {
158                            setEmailAddress(emailAddress);
159                    }
160    
161                    String firstName = (String)attributes.get("firstName");
162    
163                    if (firstName != null) {
164                            setFirstName(firstName);
165                    }
166    
167                    String middleName = (String)attributes.get("middleName");
168    
169                    if (middleName != null) {
170                            setMiddleName(middleName);
171                    }
172    
173                    String lastName = (String)attributes.get("lastName");
174    
175                    if (lastName != null) {
176                            setLastName(lastName);
177                    }
178    
179                    Long prefixId = (Long)attributes.get("prefixId");
180    
181                    if (prefixId != null) {
182                            setPrefixId(prefixId);
183                    }
184    
185                    Long suffixId = (Long)attributes.get("suffixId");
186    
187                    if (suffixId != null) {
188                            setSuffixId(suffixId);
189                    }
190    
191                    Boolean male = (Boolean)attributes.get("male");
192    
193                    if (male != null) {
194                            setMale(male);
195                    }
196    
197                    Date birthday = (Date)attributes.get("birthday");
198    
199                    if (birthday != null) {
200                            setBirthday(birthday);
201                    }
202    
203                    String smsSn = (String)attributes.get("smsSn");
204    
205                    if (smsSn != null) {
206                            setSmsSn(smsSn);
207                    }
208    
209                    String facebookSn = (String)attributes.get("facebookSn");
210    
211                    if (facebookSn != null) {
212                            setFacebookSn(facebookSn);
213                    }
214    
215                    String jabberSn = (String)attributes.get("jabberSn");
216    
217                    if (jabberSn != null) {
218                            setJabberSn(jabberSn);
219                    }
220    
221                    String skypeSn = (String)attributes.get("skypeSn");
222    
223                    if (skypeSn != null) {
224                            setSkypeSn(skypeSn);
225                    }
226    
227                    String twitterSn = (String)attributes.get("twitterSn");
228    
229                    if (twitterSn != null) {
230                            setTwitterSn(twitterSn);
231                    }
232    
233                    String employeeStatusId = (String)attributes.get("employeeStatusId");
234    
235                    if (employeeStatusId != null) {
236                            setEmployeeStatusId(employeeStatusId);
237                    }
238    
239                    String employeeNumber = (String)attributes.get("employeeNumber");
240    
241                    if (employeeNumber != null) {
242                            setEmployeeNumber(employeeNumber);
243                    }
244    
245                    String jobTitle = (String)attributes.get("jobTitle");
246    
247                    if (jobTitle != null) {
248                            setJobTitle(jobTitle);
249                    }
250    
251                    String jobClass = (String)attributes.get("jobClass");
252    
253                    if (jobClass != null) {
254                            setJobClass(jobClass);
255                    }
256    
257                    String hoursOfOperation = (String)attributes.get("hoursOfOperation");
258    
259                    if (hoursOfOperation != null) {
260                            setHoursOfOperation(hoursOfOperation);
261                    }
262            }
263    
264            @Override
265            public java.lang.Object clone() {
266                    return new ContactWrapper((Contact)_contact.clone());
267            }
268    
269            @Override
270            public int compareTo(com.liferay.portal.model.Contact contact) {
271                    return _contact.compareTo(contact);
272            }
273    
274            /**
275            * Returns the account ID of this contact.
276            *
277            * @return the account ID of this contact
278            */
279            @Override
280            public long getAccountId() {
281                    return _contact.getAccountId();
282            }
283    
284            /**
285            * Returns the birthday of this contact.
286            *
287            * @return the birthday of this contact
288            */
289            @Override
290            public Date getBirthday() {
291                    return _contact.getBirthday();
292            }
293    
294            /**
295            * Returns the fully qualified class name of this contact.
296            *
297            * @return the fully qualified class name of this contact
298            */
299            @Override
300            public java.lang.String getClassName() {
301                    return _contact.getClassName();
302            }
303    
304            /**
305            * Returns the class name ID of this contact.
306            *
307            * @return the class name ID of this contact
308            */
309            @Override
310            public long getClassNameId() {
311                    return _contact.getClassNameId();
312            }
313    
314            /**
315            * Returns the class p k of this contact.
316            *
317            * @return the class p k of this contact
318            */
319            @Override
320            public long getClassPK() {
321                    return _contact.getClassPK();
322            }
323    
324            /**
325            * Returns the company ID of this contact.
326            *
327            * @return the company ID of this contact
328            */
329            @Override
330            public long getCompanyId() {
331                    return _contact.getCompanyId();
332            }
333    
334            /**
335            * Returns the contact ID of this contact.
336            *
337            * @return the contact ID of this contact
338            */
339            @Override
340            public long getContactId() {
341                    return _contact.getContactId();
342            }
343    
344            /**
345            * Returns the create date of this contact.
346            *
347            * @return the create date of this contact
348            */
349            @Override
350            public Date getCreateDate() {
351                    return _contact.getCreateDate();
352            }
353    
354            /**
355            * Returns the email address of this contact.
356            *
357            * @return the email address of this contact
358            */
359            @Override
360            public java.lang.String getEmailAddress() {
361                    return _contact.getEmailAddress();
362            }
363    
364            /**
365            * Returns the employee number of this contact.
366            *
367            * @return the employee number of this contact
368            */
369            @Override
370            public java.lang.String getEmployeeNumber() {
371                    return _contact.getEmployeeNumber();
372            }
373    
374            /**
375            * Returns the employee status ID of this contact.
376            *
377            * @return the employee status ID of this contact
378            */
379            @Override
380            public java.lang.String getEmployeeStatusId() {
381                    return _contact.getEmployeeStatusId();
382            }
383    
384            @Override
385            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
386                    return _contact.getExpandoBridge();
387            }
388    
389            /**
390            * Returns the facebook sn of this contact.
391            *
392            * @return the facebook sn of this contact
393            */
394            @Override
395            public java.lang.String getFacebookSn() {
396                    return _contact.getFacebookSn();
397            }
398    
399            /**
400            * Returns the first name of this contact.
401            *
402            * @return the first name of this contact
403            */
404            @Override
405            public java.lang.String getFirstName() {
406                    return _contact.getFirstName();
407            }
408    
409            @Override
410            public java.lang.String getFullName() {
411                    return _contact.getFullName();
412            }
413    
414            /**
415            * Returns the hours of operation of this contact.
416            *
417            * @return the hours of operation of this contact
418            */
419            @Override
420            public java.lang.String getHoursOfOperation() {
421                    return _contact.getHoursOfOperation();
422            }
423    
424            /**
425            * Returns the jabber sn of this contact.
426            *
427            * @return the jabber sn of this contact
428            */
429            @Override
430            public java.lang.String getJabberSn() {
431                    return _contact.getJabberSn();
432            }
433    
434            /**
435            * Returns the job class of this contact.
436            *
437            * @return the job class of this contact
438            */
439            @Override
440            public java.lang.String getJobClass() {
441                    return _contact.getJobClass();
442            }
443    
444            /**
445            * Returns the job title of this contact.
446            *
447            * @return the job title of this contact
448            */
449            @Override
450            public java.lang.String getJobTitle() {
451                    return _contact.getJobTitle();
452            }
453    
454            /**
455            * Returns the last name of this contact.
456            *
457            * @return the last name of this contact
458            */
459            @Override
460            public java.lang.String getLastName() {
461                    return _contact.getLastName();
462            }
463    
464            /**
465            * Returns the male of this contact.
466            *
467            * @return the male of this contact
468            */
469            @Override
470            public boolean getMale() {
471                    return _contact.getMale();
472            }
473    
474            /**
475            * Returns the middle name of this contact.
476            *
477            * @return the middle name of this contact
478            */
479            @Override
480            public java.lang.String getMiddleName() {
481                    return _contact.getMiddleName();
482            }
483    
484            /**
485            * Returns the modified date of this contact.
486            *
487            * @return the modified date of this contact
488            */
489            @Override
490            public Date getModifiedDate() {
491                    return _contact.getModifiedDate();
492            }
493    
494            /**
495            * Returns the mvcc version of this contact.
496            *
497            * @return the mvcc version of this contact
498            */
499            @Override
500            public long getMvccVersion() {
501                    return _contact.getMvccVersion();
502            }
503    
504            /**
505            * Returns the parent contact ID of this contact.
506            *
507            * @return the parent contact ID of this contact
508            */
509            @Override
510            public long getParentContactId() {
511                    return _contact.getParentContactId();
512            }
513    
514            /**
515            * Returns the prefix ID of this contact.
516            *
517            * @return the prefix ID of this contact
518            */
519            @Override
520            public long getPrefixId() {
521                    return _contact.getPrefixId();
522            }
523    
524            /**
525            * Returns the primary key of this contact.
526            *
527            * @return the primary key of this contact
528            */
529            @Override
530            public long getPrimaryKey() {
531                    return _contact.getPrimaryKey();
532            }
533    
534            @Override
535            public java.io.Serializable getPrimaryKeyObj() {
536                    return _contact.getPrimaryKeyObj();
537            }
538    
539            /**
540            * Returns the skype sn of this contact.
541            *
542            * @return the skype sn of this contact
543            */
544            @Override
545            public java.lang.String getSkypeSn() {
546                    return _contact.getSkypeSn();
547            }
548    
549            /**
550            * Returns the sms sn of this contact.
551            *
552            * @return the sms sn of this contact
553            */
554            @Override
555            public java.lang.String getSmsSn() {
556                    return _contact.getSmsSn();
557            }
558    
559            /**
560            * Returns the suffix ID of this contact.
561            *
562            * @return the suffix ID of this contact
563            */
564            @Override
565            public long getSuffixId() {
566                    return _contact.getSuffixId();
567            }
568    
569            /**
570            * Returns the twitter sn of this contact.
571            *
572            * @return the twitter sn of this contact
573            */
574            @Override
575            public java.lang.String getTwitterSn() {
576                    return _contact.getTwitterSn();
577            }
578    
579            /**
580            * Returns the user ID of this contact.
581            *
582            * @return the user ID of this contact
583            */
584            @Override
585            public long getUserId() {
586                    return _contact.getUserId();
587            }
588    
589            /**
590            * Returns the user name of this contact.
591            *
592            * @return the user name of this contact
593            */
594            @Override
595            public java.lang.String getUserName() {
596                    return _contact.getUserName();
597            }
598    
599            /**
600            * Returns the user uuid of this contact.
601            *
602            * @return the user uuid of this contact
603            */
604            @Override
605            public java.lang.String getUserUuid() {
606                    return _contact.getUserUuid();
607            }
608    
609            @Override
610            public int hashCode() {
611                    return _contact.hashCode();
612            }
613    
614            @Override
615            public boolean isCachedModel() {
616                    return _contact.isCachedModel();
617            }
618    
619            @Override
620            public boolean isEscapedModel() {
621                    return _contact.isEscapedModel();
622            }
623    
624            /**
625            * Returns <code>true</code> if this contact is male.
626            *
627            * @return <code>true</code> if this contact is male; <code>false</code> otherwise
628            */
629            @Override
630            public boolean isMale() {
631                    return _contact.isMale();
632            }
633    
634            @Override
635            public boolean isNew() {
636                    return _contact.isNew();
637            }
638    
639            @Override
640            public boolean isUser() {
641                    return _contact.isUser();
642            }
643    
644            @Override
645            public void persist() {
646                    _contact.persist();
647            }
648    
649            /**
650            * Sets the account ID of this contact.
651            *
652            * @param accountId the account ID of this contact
653            */
654            @Override
655            public void setAccountId(long accountId) {
656                    _contact.setAccountId(accountId);
657            }
658    
659            /**
660            * Sets the birthday of this contact.
661            *
662            * @param birthday the birthday of this contact
663            */
664            @Override
665            public void setBirthday(Date birthday) {
666                    _contact.setBirthday(birthday);
667            }
668    
669            @Override
670            public void setCachedModel(boolean cachedModel) {
671                    _contact.setCachedModel(cachedModel);
672            }
673    
674            @Override
675            public void setClassName(java.lang.String className) {
676                    _contact.setClassName(className);
677            }
678    
679            /**
680            * Sets the class name ID of this contact.
681            *
682            * @param classNameId the class name ID of this contact
683            */
684            @Override
685            public void setClassNameId(long classNameId) {
686                    _contact.setClassNameId(classNameId);
687            }
688    
689            /**
690            * Sets the class p k of this contact.
691            *
692            * @param classPK the class p k of this contact
693            */
694            @Override
695            public void setClassPK(long classPK) {
696                    _contact.setClassPK(classPK);
697            }
698    
699            /**
700            * Sets the company ID of this contact.
701            *
702            * @param companyId the company ID of this contact
703            */
704            @Override
705            public void setCompanyId(long companyId) {
706                    _contact.setCompanyId(companyId);
707            }
708    
709            /**
710            * Sets the contact ID of this contact.
711            *
712            * @param contactId the contact ID of this contact
713            */
714            @Override
715            public void setContactId(long contactId) {
716                    _contact.setContactId(contactId);
717            }
718    
719            /**
720            * Sets the create date of this contact.
721            *
722            * @param createDate the create date of this contact
723            */
724            @Override
725            public void setCreateDate(Date createDate) {
726                    _contact.setCreateDate(createDate);
727            }
728    
729            /**
730            * Sets the email address of this contact.
731            *
732            * @param emailAddress the email address of this contact
733            */
734            @Override
735            public void setEmailAddress(java.lang.String emailAddress) {
736                    _contact.setEmailAddress(emailAddress);
737            }
738    
739            /**
740            * Sets the employee number of this contact.
741            *
742            * @param employeeNumber the employee number of this contact
743            */
744            @Override
745            public void setEmployeeNumber(java.lang.String employeeNumber) {
746                    _contact.setEmployeeNumber(employeeNumber);
747            }
748    
749            /**
750            * Sets the employee status ID of this contact.
751            *
752            * @param employeeStatusId the employee status ID of this contact
753            */
754            @Override
755            public void setEmployeeStatusId(java.lang.String employeeStatusId) {
756                    _contact.setEmployeeStatusId(employeeStatusId);
757            }
758    
759            @Override
760            public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
761                    _contact.setExpandoBridgeAttributes(baseModel);
762            }
763    
764            @Override
765            public void setExpandoBridgeAttributes(
766                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
767                    _contact.setExpandoBridgeAttributes(expandoBridge);
768            }
769    
770            @Override
771            public void setExpandoBridgeAttributes(
772                    com.liferay.portal.service.ServiceContext serviceContext) {
773                    _contact.setExpandoBridgeAttributes(serviceContext);
774            }
775    
776            /**
777            * Sets the facebook sn of this contact.
778            *
779            * @param facebookSn the facebook sn of this contact
780            */
781            @Override
782            public void setFacebookSn(java.lang.String facebookSn) {
783                    _contact.setFacebookSn(facebookSn);
784            }
785    
786            /**
787            * Sets the first name of this contact.
788            *
789            * @param firstName the first name of this contact
790            */
791            @Override
792            public void setFirstName(java.lang.String firstName) {
793                    _contact.setFirstName(firstName);
794            }
795    
796            /**
797            * Sets the hours of operation of this contact.
798            *
799            * @param hoursOfOperation the hours of operation of this contact
800            */
801            @Override
802            public void setHoursOfOperation(java.lang.String hoursOfOperation) {
803                    _contact.setHoursOfOperation(hoursOfOperation);
804            }
805    
806            /**
807            * Sets the jabber sn of this contact.
808            *
809            * @param jabberSn the jabber sn of this contact
810            */
811            @Override
812            public void setJabberSn(java.lang.String jabberSn) {
813                    _contact.setJabberSn(jabberSn);
814            }
815    
816            /**
817            * Sets the job class of this contact.
818            *
819            * @param jobClass the job class of this contact
820            */
821            @Override
822            public void setJobClass(java.lang.String jobClass) {
823                    _contact.setJobClass(jobClass);
824            }
825    
826            /**
827            * Sets the job title of this contact.
828            *
829            * @param jobTitle the job title of this contact
830            */
831            @Override
832            public void setJobTitle(java.lang.String jobTitle) {
833                    _contact.setJobTitle(jobTitle);
834            }
835    
836            /**
837            * Sets the last name of this contact.
838            *
839            * @param lastName the last name of this contact
840            */
841            @Override
842            public void setLastName(java.lang.String lastName) {
843                    _contact.setLastName(lastName);
844            }
845    
846            /**
847            * Sets whether this contact is male.
848            *
849            * @param male the male of this contact
850            */
851            @Override
852            public void setMale(boolean male) {
853                    _contact.setMale(male);
854            }
855    
856            /**
857            * Sets the middle name of this contact.
858            *
859            * @param middleName the middle name of this contact
860            */
861            @Override
862            public void setMiddleName(java.lang.String middleName) {
863                    _contact.setMiddleName(middleName);
864            }
865    
866            /**
867            * Sets the modified date of this contact.
868            *
869            * @param modifiedDate the modified date of this contact
870            */
871            @Override
872            public void setModifiedDate(Date modifiedDate) {
873                    _contact.setModifiedDate(modifiedDate);
874            }
875    
876            /**
877            * Sets the mvcc version of this contact.
878            *
879            * @param mvccVersion the mvcc version of this contact
880            */
881            @Override
882            public void setMvccVersion(long mvccVersion) {
883                    _contact.setMvccVersion(mvccVersion);
884            }
885    
886            @Override
887            public void setNew(boolean n) {
888                    _contact.setNew(n);
889            }
890    
891            /**
892            * Sets the parent contact ID of this contact.
893            *
894            * @param parentContactId the parent contact ID of this contact
895            */
896            @Override
897            public void setParentContactId(long parentContactId) {
898                    _contact.setParentContactId(parentContactId);
899            }
900    
901            /**
902            * Sets the prefix ID of this contact.
903            *
904            * @param prefixId the prefix ID of this contact
905            */
906            @Override
907            public void setPrefixId(long prefixId) {
908                    _contact.setPrefixId(prefixId);
909            }
910    
911            /**
912            * Sets the primary key of this contact.
913            *
914            * @param primaryKey the primary key of this contact
915            */
916            @Override
917            public void setPrimaryKey(long primaryKey) {
918                    _contact.setPrimaryKey(primaryKey);
919            }
920    
921            @Override
922            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
923                    _contact.setPrimaryKeyObj(primaryKeyObj);
924            }
925    
926            /**
927            * Sets the skype sn of this contact.
928            *
929            * @param skypeSn the skype sn of this contact
930            */
931            @Override
932            public void setSkypeSn(java.lang.String skypeSn) {
933                    _contact.setSkypeSn(skypeSn);
934            }
935    
936            /**
937            * Sets the sms sn of this contact.
938            *
939            * @param smsSn the sms sn of this contact
940            */
941            @Override
942            public void setSmsSn(java.lang.String smsSn) {
943                    _contact.setSmsSn(smsSn);
944            }
945    
946            /**
947            * Sets the suffix ID of this contact.
948            *
949            * @param suffixId the suffix ID of this contact
950            */
951            @Override
952            public void setSuffixId(long suffixId) {
953                    _contact.setSuffixId(suffixId);
954            }
955    
956            /**
957            * Sets the twitter sn of this contact.
958            *
959            * @param twitterSn the twitter sn of this contact
960            */
961            @Override
962            public void setTwitterSn(java.lang.String twitterSn) {
963                    _contact.setTwitterSn(twitterSn);
964            }
965    
966            /**
967            * Sets the user ID of this contact.
968            *
969            * @param userId the user ID of this contact
970            */
971            @Override
972            public void setUserId(long userId) {
973                    _contact.setUserId(userId);
974            }
975    
976            /**
977            * Sets the user name of this contact.
978            *
979            * @param userName the user name of this contact
980            */
981            @Override
982            public void setUserName(java.lang.String userName) {
983                    _contact.setUserName(userName);
984            }
985    
986            /**
987            * Sets the user uuid of this contact.
988            *
989            * @param userUuid the user uuid of this contact
990            */
991            @Override
992            public void setUserUuid(java.lang.String userUuid) {
993                    _contact.setUserUuid(userUuid);
994            }
995    
996            @Override
997            public CacheModel<com.liferay.portal.model.Contact> toCacheModel() {
998                    return _contact.toCacheModel();
999            }
1000    
1001            @Override
1002            public com.liferay.portal.model.Contact toEscapedModel() {
1003                    return new ContactWrapper(_contact.toEscapedModel());
1004            }
1005    
1006            @Override
1007            public java.lang.String toString() {
1008                    return _contact.toString();
1009            }
1010    
1011            @Override
1012            public com.liferay.portal.model.Contact toUnescapedModel() {
1013                    return new ContactWrapper(_contact.toUnescapedModel());
1014            }
1015    
1016            @Override
1017            public java.lang.String toXmlString() {
1018                    return _contact.toXmlString();
1019            }
1020    
1021            @Override
1022            public boolean equals(Object obj) {
1023                    if (this == obj) {
1024                            return true;
1025                    }
1026    
1027                    if (!(obj instanceof ContactWrapper)) {
1028                            return false;
1029                    }
1030    
1031                    ContactWrapper contactWrapper = (ContactWrapper)obj;
1032    
1033                    if (Validator.equals(_contact, contactWrapper._contact)) {
1034                            return true;
1035                    }
1036    
1037                    return false;
1038            }
1039    
1040            @Override
1041            public Contact getWrappedModel() {
1042                    return _contact;
1043            }
1044    
1045            @Override
1046            public boolean isEntityCacheEnabled() {
1047                    return _contact.isEntityCacheEnabled();
1048            }
1049    
1050            @Override
1051            public boolean isFinderCacheEnabled() {
1052                    return _contact.isFinderCacheEnabled();
1053            }
1054    
1055            @Override
1056            public void resetOriginalValues() {
1057                    _contact.resetOriginalValues();
1058            }
1059    
1060            private final Contact _contact;
1061    }