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("aimSn", getAimSn());
075                    attributes.put("facebookSn", getFacebookSn());
076                    attributes.put("icqSn", getIcqSn());
077                    attributes.put("jabberSn", getJabberSn());
078                    attributes.put("msnSn", getMsnSn());
079                    attributes.put("mySpaceSn", getMySpaceSn());
080                    attributes.put("skypeSn", getSkypeSn());
081                    attributes.put("twitterSn", getTwitterSn());
082                    attributes.put("ymSn", getYmSn());
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 aimSn = (String)attributes.get("aimSn");
215    
216                    if (aimSn != null) {
217                            setAimSn(aimSn);
218                    }
219    
220                    String facebookSn = (String)attributes.get("facebookSn");
221    
222                    if (facebookSn != null) {
223                            setFacebookSn(facebookSn);
224                    }
225    
226                    String icqSn = (String)attributes.get("icqSn");
227    
228                    if (icqSn != null) {
229                            setIcqSn(icqSn);
230                    }
231    
232                    String jabberSn = (String)attributes.get("jabberSn");
233    
234                    if (jabberSn != null) {
235                            setJabberSn(jabberSn);
236                    }
237    
238                    String msnSn = (String)attributes.get("msnSn");
239    
240                    if (msnSn != null) {
241                            setMsnSn(msnSn);
242                    }
243    
244                    String mySpaceSn = (String)attributes.get("mySpaceSn");
245    
246                    if (mySpaceSn != null) {
247                            setMySpaceSn(mySpaceSn);
248                    }
249    
250                    String skypeSn = (String)attributes.get("skypeSn");
251    
252                    if (skypeSn != null) {
253                            setSkypeSn(skypeSn);
254                    }
255    
256                    String twitterSn = (String)attributes.get("twitterSn");
257    
258                    if (twitterSn != null) {
259                            setTwitterSn(twitterSn);
260                    }
261    
262                    String ymSn = (String)attributes.get("ymSn");
263    
264                    if (ymSn != null) {
265                            setYmSn(ymSn);
266                    }
267    
268                    String employeeStatusId = (String)attributes.get("employeeStatusId");
269    
270                    if (employeeStatusId != null) {
271                            setEmployeeStatusId(employeeStatusId);
272                    }
273    
274                    String employeeNumber = (String)attributes.get("employeeNumber");
275    
276                    if (employeeNumber != null) {
277                            setEmployeeNumber(employeeNumber);
278                    }
279    
280                    String jobTitle = (String)attributes.get("jobTitle");
281    
282                    if (jobTitle != null) {
283                            setJobTitle(jobTitle);
284                    }
285    
286                    String jobClass = (String)attributes.get("jobClass");
287    
288                    if (jobClass != null) {
289                            setJobClass(jobClass);
290                    }
291    
292                    String hoursOfOperation = (String)attributes.get("hoursOfOperation");
293    
294                    if (hoursOfOperation != null) {
295                            setHoursOfOperation(hoursOfOperation);
296                    }
297            }
298    
299            @Override
300            public java.lang.Object clone() {
301                    return new ContactWrapper((Contact)_contact.clone());
302            }
303    
304            @Override
305            public int compareTo(com.liferay.portal.model.Contact contact) {
306                    return _contact.compareTo(contact);
307            }
308    
309            /**
310            * Returns the account ID of this contact.
311            *
312            * @return the account ID of this contact
313            */
314            @Override
315            public long getAccountId() {
316                    return _contact.getAccountId();
317            }
318    
319            /**
320            * Returns the aim sn of this contact.
321            *
322            * @return the aim sn of this contact
323            */
324            @Override
325            public java.lang.String getAimSn() {
326                    return _contact.getAimSn();
327            }
328    
329            /**
330            * Returns the birthday of this contact.
331            *
332            * @return the birthday of this contact
333            */
334            @Override
335            public Date getBirthday() {
336                    return _contact.getBirthday();
337            }
338    
339            /**
340            * Returns the fully qualified class name of this contact.
341            *
342            * @return the fully qualified class name of this contact
343            */
344            @Override
345            public java.lang.String getClassName() {
346                    return _contact.getClassName();
347            }
348    
349            /**
350            * Returns the class name ID of this contact.
351            *
352            * @return the class name ID of this contact
353            */
354            @Override
355            public long getClassNameId() {
356                    return _contact.getClassNameId();
357            }
358    
359            /**
360            * Returns the class p k of this contact.
361            *
362            * @return the class p k of this contact
363            */
364            @Override
365            public long getClassPK() {
366                    return _contact.getClassPK();
367            }
368    
369            /**
370            * Returns the company ID of this contact.
371            *
372            * @return the company ID of this contact
373            */
374            @Override
375            public long getCompanyId() {
376                    return _contact.getCompanyId();
377            }
378    
379            /**
380            * Returns the contact ID of this contact.
381            *
382            * @return the contact ID of this contact
383            */
384            @Override
385            public long getContactId() {
386                    return _contact.getContactId();
387            }
388    
389            /**
390            * Returns the create date of this contact.
391            *
392            * @return the create date of this contact
393            */
394            @Override
395            public Date getCreateDate() {
396                    return _contact.getCreateDate();
397            }
398    
399            /**
400            * Returns the email address of this contact.
401            *
402            * @return the email address of this contact
403            */
404            @Override
405            public java.lang.String getEmailAddress() {
406                    return _contact.getEmailAddress();
407            }
408    
409            /**
410            * Returns the employee number of this contact.
411            *
412            * @return the employee number of this contact
413            */
414            @Override
415            public java.lang.String getEmployeeNumber() {
416                    return _contact.getEmployeeNumber();
417            }
418    
419            /**
420            * Returns the employee status ID of this contact.
421            *
422            * @return the employee status ID of this contact
423            */
424            @Override
425            public java.lang.String getEmployeeStatusId() {
426                    return _contact.getEmployeeStatusId();
427            }
428    
429            @Override
430            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
431                    return _contact.getExpandoBridge();
432            }
433    
434            /**
435            * Returns the facebook sn of this contact.
436            *
437            * @return the facebook sn of this contact
438            */
439            @Override
440            public java.lang.String getFacebookSn() {
441                    return _contact.getFacebookSn();
442            }
443    
444            /**
445            * Returns the first name of this contact.
446            *
447            * @return the first name of this contact
448            */
449            @Override
450            public java.lang.String getFirstName() {
451                    return _contact.getFirstName();
452            }
453    
454            @Override
455            public java.lang.String getFullName() {
456                    return _contact.getFullName();
457            }
458    
459            /**
460            * Returns the hours of operation of this contact.
461            *
462            * @return the hours of operation of this contact
463            */
464            @Override
465            public java.lang.String getHoursOfOperation() {
466                    return _contact.getHoursOfOperation();
467            }
468    
469            /**
470            * Returns the icq sn of this contact.
471            *
472            * @return the icq sn of this contact
473            */
474            @Override
475            public java.lang.String getIcqSn() {
476                    return _contact.getIcqSn();
477            }
478    
479            /**
480            * Returns the jabber sn of this contact.
481            *
482            * @return the jabber sn of this contact
483            */
484            @Override
485            public java.lang.String getJabberSn() {
486                    return _contact.getJabberSn();
487            }
488    
489            /**
490            * Returns the job class of this contact.
491            *
492            * @return the job class of this contact
493            */
494            @Override
495            public java.lang.String getJobClass() {
496                    return _contact.getJobClass();
497            }
498    
499            /**
500            * Returns the job title of this contact.
501            *
502            * @return the job title of this contact
503            */
504            @Override
505            public java.lang.String getJobTitle() {
506                    return _contact.getJobTitle();
507            }
508    
509            /**
510            * Returns the last name of this contact.
511            *
512            * @return the last name of this contact
513            */
514            @Override
515            public java.lang.String getLastName() {
516                    return _contact.getLastName();
517            }
518    
519            /**
520            * Returns the male of this contact.
521            *
522            * @return the male of this contact
523            */
524            @Override
525            public boolean getMale() {
526                    return _contact.getMale();
527            }
528    
529            /**
530            * Returns the middle name of this contact.
531            *
532            * @return the middle name of this contact
533            */
534            @Override
535            public java.lang.String getMiddleName() {
536                    return _contact.getMiddleName();
537            }
538    
539            /**
540            * Returns the modified date of this contact.
541            *
542            * @return the modified date of this contact
543            */
544            @Override
545            public Date getModifiedDate() {
546                    return _contact.getModifiedDate();
547            }
548    
549            /**
550            * Returns the msn sn of this contact.
551            *
552            * @return the msn sn of this contact
553            */
554            @Override
555            public java.lang.String getMsnSn() {
556                    return _contact.getMsnSn();
557            }
558    
559            /**
560            * Returns the mvcc version of this contact.
561            *
562            * @return the mvcc version of this contact
563            */
564            @Override
565            public long getMvccVersion() {
566                    return _contact.getMvccVersion();
567            }
568    
569            /**
570            * Returns the my space sn of this contact.
571            *
572            * @return the my space sn of this contact
573            */
574            @Override
575            public java.lang.String getMySpaceSn() {
576                    return _contact.getMySpaceSn();
577            }
578    
579            /**
580            * Returns the parent contact ID of this contact.
581            *
582            * @return the parent contact ID of this contact
583            */
584            @Override
585            public long getParentContactId() {
586                    return _contact.getParentContactId();
587            }
588    
589            /**
590            * Returns the prefix ID of this contact.
591            *
592            * @return the prefix ID of this contact
593            */
594            @Override
595            public long getPrefixId() {
596                    return _contact.getPrefixId();
597            }
598    
599            /**
600            * Returns the primary key of this contact.
601            *
602            * @return the primary key of this contact
603            */
604            @Override
605            public long getPrimaryKey() {
606                    return _contact.getPrimaryKey();
607            }
608    
609            @Override
610            public java.io.Serializable getPrimaryKeyObj() {
611                    return _contact.getPrimaryKeyObj();
612            }
613    
614            /**
615            * Returns the skype sn of this contact.
616            *
617            * @return the skype sn of this contact
618            */
619            @Override
620            public java.lang.String getSkypeSn() {
621                    return _contact.getSkypeSn();
622            }
623    
624            /**
625            * Returns the sms sn of this contact.
626            *
627            * @return the sms sn of this contact
628            */
629            @Override
630            public java.lang.String getSmsSn() {
631                    return _contact.getSmsSn();
632            }
633    
634            /**
635            * Returns the suffix ID of this contact.
636            *
637            * @return the suffix ID of this contact
638            */
639            @Override
640            public long getSuffixId() {
641                    return _contact.getSuffixId();
642            }
643    
644            /**
645            * Returns the twitter sn of this contact.
646            *
647            * @return the twitter sn of this contact
648            */
649            @Override
650            public java.lang.String getTwitterSn() {
651                    return _contact.getTwitterSn();
652            }
653    
654            /**
655            * Returns the user ID of this contact.
656            *
657            * @return the user ID of this contact
658            */
659            @Override
660            public long getUserId() {
661                    return _contact.getUserId();
662            }
663    
664            /**
665            * Returns the user name of this contact.
666            *
667            * @return the user name of this contact
668            */
669            @Override
670            public java.lang.String getUserName() {
671                    return _contact.getUserName();
672            }
673    
674            /**
675            * Returns the user uuid of this contact.
676            *
677            * @return the user uuid of this contact
678            */
679            @Override
680            public java.lang.String getUserUuid() {
681                    return _contact.getUserUuid();
682            }
683    
684            /**
685            * Returns the ym sn of this contact.
686            *
687            * @return the ym sn of this contact
688            */
689            @Override
690            public java.lang.String getYmSn() {
691                    return _contact.getYmSn();
692            }
693    
694            @Override
695            public int hashCode() {
696                    return _contact.hashCode();
697            }
698    
699            @Override
700            public boolean isCachedModel() {
701                    return _contact.isCachedModel();
702            }
703    
704            @Override
705            public boolean isEscapedModel() {
706                    return _contact.isEscapedModel();
707            }
708    
709            /**
710            * Returns <code>true</code> if this contact is male.
711            *
712            * @return <code>true</code> if this contact is male; <code>false</code> otherwise
713            */
714            @Override
715            public boolean isMale() {
716                    return _contact.isMale();
717            }
718    
719            @Override
720            public boolean isNew() {
721                    return _contact.isNew();
722            }
723    
724            @Override
725            public boolean isUser() {
726                    return _contact.isUser();
727            }
728    
729            @Override
730            public void persist() {
731                    _contact.persist();
732            }
733    
734            /**
735            * Sets the account ID of this contact.
736            *
737            * @param accountId the account ID of this contact
738            */
739            @Override
740            public void setAccountId(long accountId) {
741                    _contact.setAccountId(accountId);
742            }
743    
744            /**
745            * Sets the aim sn of this contact.
746            *
747            * @param aimSn the aim sn of this contact
748            */
749            @Override
750            public void setAimSn(java.lang.String aimSn) {
751                    _contact.setAimSn(aimSn);
752            }
753    
754            /**
755            * Sets the birthday of this contact.
756            *
757            * @param birthday the birthday of this contact
758            */
759            @Override
760            public void setBirthday(Date birthday) {
761                    _contact.setBirthday(birthday);
762            }
763    
764            @Override
765            public void setCachedModel(boolean cachedModel) {
766                    _contact.setCachedModel(cachedModel);
767            }
768    
769            @Override
770            public void setClassName(java.lang.String className) {
771                    _contact.setClassName(className);
772            }
773    
774            /**
775            * Sets the class name ID of this contact.
776            *
777            * @param classNameId the class name ID of this contact
778            */
779            @Override
780            public void setClassNameId(long classNameId) {
781                    _contact.setClassNameId(classNameId);
782            }
783    
784            /**
785            * Sets the class p k of this contact.
786            *
787            * @param classPK the class p k of this contact
788            */
789            @Override
790            public void setClassPK(long classPK) {
791                    _contact.setClassPK(classPK);
792            }
793    
794            /**
795            * Sets the company ID of this contact.
796            *
797            * @param companyId the company ID of this contact
798            */
799            @Override
800            public void setCompanyId(long companyId) {
801                    _contact.setCompanyId(companyId);
802            }
803    
804            /**
805            * Sets the contact ID of this contact.
806            *
807            * @param contactId the contact ID of this contact
808            */
809            @Override
810            public void setContactId(long contactId) {
811                    _contact.setContactId(contactId);
812            }
813    
814            /**
815            * Sets the create date of this contact.
816            *
817            * @param createDate the create date of this contact
818            */
819            @Override
820            public void setCreateDate(Date createDate) {
821                    _contact.setCreateDate(createDate);
822            }
823    
824            /**
825            * Sets the email address of this contact.
826            *
827            * @param emailAddress the email address of this contact
828            */
829            @Override
830            public void setEmailAddress(java.lang.String emailAddress) {
831                    _contact.setEmailAddress(emailAddress);
832            }
833    
834            /**
835            * Sets the employee number of this contact.
836            *
837            * @param employeeNumber the employee number of this contact
838            */
839            @Override
840            public void setEmployeeNumber(java.lang.String employeeNumber) {
841                    _contact.setEmployeeNumber(employeeNumber);
842            }
843    
844            /**
845            * Sets the employee status ID of this contact.
846            *
847            * @param employeeStatusId the employee status ID of this contact
848            */
849            @Override
850            public void setEmployeeStatusId(java.lang.String employeeStatusId) {
851                    _contact.setEmployeeStatusId(employeeStatusId);
852            }
853    
854            @Override
855            public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
856                    _contact.setExpandoBridgeAttributes(baseModel);
857            }
858    
859            @Override
860            public void setExpandoBridgeAttributes(
861                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
862                    _contact.setExpandoBridgeAttributes(expandoBridge);
863            }
864    
865            @Override
866            public void setExpandoBridgeAttributes(
867                    com.liferay.portal.service.ServiceContext serviceContext) {
868                    _contact.setExpandoBridgeAttributes(serviceContext);
869            }
870    
871            /**
872            * Sets the facebook sn of this contact.
873            *
874            * @param facebookSn the facebook sn of this contact
875            */
876            @Override
877            public void setFacebookSn(java.lang.String facebookSn) {
878                    _contact.setFacebookSn(facebookSn);
879            }
880    
881            /**
882            * Sets the first name of this contact.
883            *
884            * @param firstName the first name of this contact
885            */
886            @Override
887            public void setFirstName(java.lang.String firstName) {
888                    _contact.setFirstName(firstName);
889            }
890    
891            /**
892            * Sets the hours of operation of this contact.
893            *
894            * @param hoursOfOperation the hours of operation of this contact
895            */
896            @Override
897            public void setHoursOfOperation(java.lang.String hoursOfOperation) {
898                    _contact.setHoursOfOperation(hoursOfOperation);
899            }
900    
901            /**
902            * Sets the icq sn of this contact.
903            *
904            * @param icqSn the icq sn of this contact
905            */
906            @Override
907            public void setIcqSn(java.lang.String icqSn) {
908                    _contact.setIcqSn(icqSn);
909            }
910    
911            /**
912            * Sets the jabber sn of this contact.
913            *
914            * @param jabberSn the jabber sn of this contact
915            */
916            @Override
917            public void setJabberSn(java.lang.String jabberSn) {
918                    _contact.setJabberSn(jabberSn);
919            }
920    
921            /**
922            * Sets the job class of this contact.
923            *
924            * @param jobClass the job class of this contact
925            */
926            @Override
927            public void setJobClass(java.lang.String jobClass) {
928                    _contact.setJobClass(jobClass);
929            }
930    
931            /**
932            * Sets the job title of this contact.
933            *
934            * @param jobTitle the job title of this contact
935            */
936            @Override
937            public void setJobTitle(java.lang.String jobTitle) {
938                    _contact.setJobTitle(jobTitle);
939            }
940    
941            /**
942            * Sets the last name of this contact.
943            *
944            * @param lastName the last name of this contact
945            */
946            @Override
947            public void setLastName(java.lang.String lastName) {
948                    _contact.setLastName(lastName);
949            }
950    
951            /**
952            * Sets whether this contact is male.
953            *
954            * @param male the male of this contact
955            */
956            @Override
957            public void setMale(boolean male) {
958                    _contact.setMale(male);
959            }
960    
961            /**
962            * Sets the middle name of this contact.
963            *
964            * @param middleName the middle name of this contact
965            */
966            @Override
967            public void setMiddleName(java.lang.String middleName) {
968                    _contact.setMiddleName(middleName);
969            }
970    
971            /**
972            * Sets the modified date of this contact.
973            *
974            * @param modifiedDate the modified date of this contact
975            */
976            @Override
977            public void setModifiedDate(Date modifiedDate) {
978                    _contact.setModifiedDate(modifiedDate);
979            }
980    
981            /**
982            * Sets the msn sn of this contact.
983            *
984            * @param msnSn the msn sn of this contact
985            */
986            @Override
987            public void setMsnSn(java.lang.String msnSn) {
988                    _contact.setMsnSn(msnSn);
989            }
990    
991            /**
992            * Sets the mvcc version of this contact.
993            *
994            * @param mvccVersion the mvcc version of this contact
995            */
996            @Override
997            public void setMvccVersion(long mvccVersion) {
998                    _contact.setMvccVersion(mvccVersion);
999            }
1000    
1001            /**
1002            * Sets the my space sn of this contact.
1003            *
1004            * @param mySpaceSn the my space sn of this contact
1005            */
1006            @Override
1007            public void setMySpaceSn(java.lang.String mySpaceSn) {
1008                    _contact.setMySpaceSn(mySpaceSn);
1009            }
1010    
1011            @Override
1012            public void setNew(boolean n) {
1013                    _contact.setNew(n);
1014            }
1015    
1016            /**
1017            * Sets the parent contact ID of this contact.
1018            *
1019            * @param parentContactId the parent contact ID of this contact
1020            */
1021            @Override
1022            public void setParentContactId(long parentContactId) {
1023                    _contact.setParentContactId(parentContactId);
1024            }
1025    
1026            /**
1027            * Sets the prefix ID of this contact.
1028            *
1029            * @param prefixId the prefix ID of this contact
1030            */
1031            @Override
1032            public void setPrefixId(long prefixId) {
1033                    _contact.setPrefixId(prefixId);
1034            }
1035    
1036            /**
1037            * Sets the primary key of this contact.
1038            *
1039            * @param primaryKey the primary key of this contact
1040            */
1041            @Override
1042            public void setPrimaryKey(long primaryKey) {
1043                    _contact.setPrimaryKey(primaryKey);
1044            }
1045    
1046            @Override
1047            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
1048                    _contact.setPrimaryKeyObj(primaryKeyObj);
1049            }
1050    
1051            /**
1052            * Sets the skype sn of this contact.
1053            *
1054            * @param skypeSn the skype sn of this contact
1055            */
1056            @Override
1057            public void setSkypeSn(java.lang.String skypeSn) {
1058                    _contact.setSkypeSn(skypeSn);
1059            }
1060    
1061            /**
1062            * Sets the sms sn of this contact.
1063            *
1064            * @param smsSn the sms sn of this contact
1065            */
1066            @Override
1067            public void setSmsSn(java.lang.String smsSn) {
1068                    _contact.setSmsSn(smsSn);
1069            }
1070    
1071            /**
1072            * Sets the suffix ID of this contact.
1073            *
1074            * @param suffixId the suffix ID of this contact
1075            */
1076            @Override
1077            public void setSuffixId(long suffixId) {
1078                    _contact.setSuffixId(suffixId);
1079            }
1080    
1081            /**
1082            * Sets the twitter sn of this contact.
1083            *
1084            * @param twitterSn the twitter sn of this contact
1085            */
1086            @Override
1087            public void setTwitterSn(java.lang.String twitterSn) {
1088                    _contact.setTwitterSn(twitterSn);
1089            }
1090    
1091            /**
1092            * Sets the user ID of this contact.
1093            *
1094            * @param userId the user ID of this contact
1095            */
1096            @Override
1097            public void setUserId(long userId) {
1098                    _contact.setUserId(userId);
1099            }
1100    
1101            /**
1102            * Sets the user name of this contact.
1103            *
1104            * @param userName the user name of this contact
1105            */
1106            @Override
1107            public void setUserName(java.lang.String userName) {
1108                    _contact.setUserName(userName);
1109            }
1110    
1111            /**
1112            * Sets the user uuid of this contact.
1113            *
1114            * @param userUuid the user uuid of this contact
1115            */
1116            @Override
1117            public void setUserUuid(java.lang.String userUuid) {
1118                    _contact.setUserUuid(userUuid);
1119            }
1120    
1121            /**
1122            * Sets the ym sn of this contact.
1123            *
1124            * @param ymSn the ym sn of this contact
1125            */
1126            @Override
1127            public void setYmSn(java.lang.String ymSn) {
1128                    _contact.setYmSn(ymSn);
1129            }
1130    
1131            @Override
1132            public CacheModel<com.liferay.portal.model.Contact> toCacheModel() {
1133                    return _contact.toCacheModel();
1134            }
1135    
1136            @Override
1137            public com.liferay.portal.model.Contact toEscapedModel() {
1138                    return new ContactWrapper(_contact.toEscapedModel());
1139            }
1140    
1141            @Override
1142            public java.lang.String toString() {
1143                    return _contact.toString();
1144            }
1145    
1146            @Override
1147            public com.liferay.portal.model.Contact toUnescapedModel() {
1148                    return new ContactWrapper(_contact.toUnescapedModel());
1149            }
1150    
1151            @Override
1152            public java.lang.String toXmlString() {
1153                    return _contact.toXmlString();
1154            }
1155    
1156            @Override
1157            public boolean equals(Object obj) {
1158                    if (this == obj) {
1159                            return true;
1160                    }
1161    
1162                    if (!(obj instanceof ContactWrapper)) {
1163                            return false;
1164                    }
1165    
1166                    ContactWrapper contactWrapper = (ContactWrapper)obj;
1167    
1168                    if (Validator.equals(_contact, contactWrapper._contact)) {
1169                            return true;
1170                    }
1171    
1172                    return false;
1173            }
1174    
1175            /**
1176             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
1177             */
1178            @Deprecated
1179            public Contact getWrappedContact() {
1180                    return _contact;
1181            }
1182    
1183            @Override
1184            public Contact getWrappedModel() {
1185                    return _contact;
1186            }
1187    
1188            @Override
1189            public boolean isEntityCacheEnabled() {
1190                    return _contact.isEntityCacheEnabled();
1191            }
1192    
1193            @Override
1194            public boolean isFinderCacheEnabled() {
1195                    return _contact.isFinderCacheEnabled();
1196            }
1197    
1198            @Override
1199            public void resetOriginalValues() {
1200                    _contact.resetOriginalValues();
1201            }
1202    
1203            private final Contact _contact;
1204    }