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