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