001    /**
002     * Copyright (c) 2000-2012 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    /**
018     * <p>
019     * This class is a wrapper for {@link Contact}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       Contact
024     * @generated
025     */
026    public class ContactWrapper implements Contact, ModelWrapper<Contact> {
027            public ContactWrapper(Contact contact) {
028                    _contact = contact;
029            }
030    
031            public Class<?> getModelClass() {
032                    return Contact.class;
033            }
034    
035            public String getModelClassName() {
036                    return Contact.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this contact.
041            *
042            * @return the primary key of this contact
043            */
044            public long getPrimaryKey() {
045                    return _contact.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this contact.
050            *
051            * @param primaryKey the primary key of this contact
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _contact.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the contact ID of this contact.
059            *
060            * @return the contact ID of this contact
061            */
062            public long getContactId() {
063                    return _contact.getContactId();
064            }
065    
066            /**
067            * Sets the contact ID of this contact.
068            *
069            * @param contactId the contact ID of this contact
070            */
071            public void setContactId(long contactId) {
072                    _contact.setContactId(contactId);
073            }
074    
075            /**
076            * Returns the company ID of this contact.
077            *
078            * @return the company ID of this contact
079            */
080            public long getCompanyId() {
081                    return _contact.getCompanyId();
082            }
083    
084            /**
085            * Sets the company ID of this contact.
086            *
087            * @param companyId the company ID of this contact
088            */
089            public void setCompanyId(long companyId) {
090                    _contact.setCompanyId(companyId);
091            }
092    
093            /**
094            * Returns the user ID of this contact.
095            *
096            * @return the user ID of this contact
097            */
098            public long getUserId() {
099                    return _contact.getUserId();
100            }
101    
102            /**
103            * Sets the user ID of this contact.
104            *
105            * @param userId the user ID of this contact
106            */
107            public void setUserId(long userId) {
108                    _contact.setUserId(userId);
109            }
110    
111            /**
112            * Returns the user uuid of this contact.
113            *
114            * @return the user uuid of this contact
115            * @throws SystemException if a system exception occurred
116            */
117            public java.lang.String getUserUuid()
118                    throws com.liferay.portal.kernel.exception.SystemException {
119                    return _contact.getUserUuid();
120            }
121    
122            /**
123            * Sets the user uuid of this contact.
124            *
125            * @param userUuid the user uuid of this contact
126            */
127            public void setUserUuid(java.lang.String userUuid) {
128                    _contact.setUserUuid(userUuid);
129            }
130    
131            /**
132            * Returns the user name of this contact.
133            *
134            * @return the user name of this contact
135            */
136            public java.lang.String getUserName() {
137                    return _contact.getUserName();
138            }
139    
140            /**
141            * Sets the user name of this contact.
142            *
143            * @param userName the user name of this contact
144            */
145            public void setUserName(java.lang.String userName) {
146                    _contact.setUserName(userName);
147            }
148    
149            /**
150            * Returns the create date of this contact.
151            *
152            * @return the create date of this contact
153            */
154            public java.util.Date getCreateDate() {
155                    return _contact.getCreateDate();
156            }
157    
158            /**
159            * Sets the create date of this contact.
160            *
161            * @param createDate the create date of this contact
162            */
163            public void setCreateDate(java.util.Date createDate) {
164                    _contact.setCreateDate(createDate);
165            }
166    
167            /**
168            * Returns the modified date of this contact.
169            *
170            * @return the modified date of this contact
171            */
172            public java.util.Date getModifiedDate() {
173                    return _contact.getModifiedDate();
174            }
175    
176            /**
177            * Sets the modified date of this contact.
178            *
179            * @param modifiedDate the modified date of this contact
180            */
181            public void setModifiedDate(java.util.Date modifiedDate) {
182                    _contact.setModifiedDate(modifiedDate);
183            }
184    
185            /**
186            * Returns the account ID of this contact.
187            *
188            * @return the account ID of this contact
189            */
190            public long getAccountId() {
191                    return _contact.getAccountId();
192            }
193    
194            /**
195            * Sets the account ID of this contact.
196            *
197            * @param accountId the account ID of this contact
198            */
199            public void setAccountId(long accountId) {
200                    _contact.setAccountId(accountId);
201            }
202    
203            /**
204            * Returns the parent contact ID of this contact.
205            *
206            * @return the parent contact ID of this contact
207            */
208            public long getParentContactId() {
209                    return _contact.getParentContactId();
210            }
211    
212            /**
213            * Sets the parent contact ID of this contact.
214            *
215            * @param parentContactId the parent contact ID of this contact
216            */
217            public void setParentContactId(long parentContactId) {
218                    _contact.setParentContactId(parentContactId);
219            }
220    
221            /**
222            * Returns the first name of this contact.
223            *
224            * @return the first name of this contact
225            */
226            public java.lang.String getFirstName() {
227                    return _contact.getFirstName();
228            }
229    
230            /**
231            * Sets the first name of this contact.
232            *
233            * @param firstName the first name of this contact
234            */
235            public void setFirstName(java.lang.String firstName) {
236                    _contact.setFirstName(firstName);
237            }
238    
239            /**
240            * Returns the middle name of this contact.
241            *
242            * @return the middle name of this contact
243            */
244            public java.lang.String getMiddleName() {
245                    return _contact.getMiddleName();
246            }
247    
248            /**
249            * Sets the middle name of this contact.
250            *
251            * @param middleName the middle name of this contact
252            */
253            public void setMiddleName(java.lang.String middleName) {
254                    _contact.setMiddleName(middleName);
255            }
256    
257            /**
258            * Returns the last name of this contact.
259            *
260            * @return the last name of this contact
261            */
262            public java.lang.String getLastName() {
263                    return _contact.getLastName();
264            }
265    
266            /**
267            * Sets the last name of this contact.
268            *
269            * @param lastName the last name of this contact
270            */
271            public void setLastName(java.lang.String lastName) {
272                    _contact.setLastName(lastName);
273            }
274    
275            /**
276            * Returns the prefix ID of this contact.
277            *
278            * @return the prefix ID of this contact
279            */
280            public int getPrefixId() {
281                    return _contact.getPrefixId();
282            }
283    
284            /**
285            * Sets the prefix ID of this contact.
286            *
287            * @param prefixId the prefix ID of this contact
288            */
289            public void setPrefixId(int prefixId) {
290                    _contact.setPrefixId(prefixId);
291            }
292    
293            /**
294            * Returns the suffix ID of this contact.
295            *
296            * @return the suffix ID of this contact
297            */
298            public int getSuffixId() {
299                    return _contact.getSuffixId();
300            }
301    
302            /**
303            * Sets the suffix ID of this contact.
304            *
305            * @param suffixId the suffix ID of this contact
306            */
307            public void setSuffixId(int suffixId) {
308                    _contact.setSuffixId(suffixId);
309            }
310    
311            /**
312            * Returns the male of this contact.
313            *
314            * @return the male of this contact
315            */
316            public boolean getMale() {
317                    return _contact.getMale();
318            }
319    
320            /**
321            * Returns <code>true</code> if this contact is male.
322            *
323            * @return <code>true</code> if this contact is male; <code>false</code> otherwise
324            */
325            public boolean isMale() {
326                    return _contact.isMale();
327            }
328    
329            /**
330            * Sets whether this contact is male.
331            *
332            * @param male the male of this contact
333            */
334            public void setMale(boolean male) {
335                    _contact.setMale(male);
336            }
337    
338            /**
339            * Returns the birthday of this contact.
340            *
341            * @return the birthday of this contact
342            */
343            public java.util.Date getBirthday() {
344                    return _contact.getBirthday();
345            }
346    
347            /**
348            * Sets the birthday of this contact.
349            *
350            * @param birthday the birthday of this contact
351            */
352            public void setBirthday(java.util.Date birthday) {
353                    _contact.setBirthday(birthday);
354            }
355    
356            /**
357            * Returns the sms sn of this contact.
358            *
359            * @return the sms sn of this contact
360            */
361            public java.lang.String getSmsSn() {
362                    return _contact.getSmsSn();
363            }
364    
365            /**
366            * Sets the sms sn of this contact.
367            *
368            * @param smsSn the sms sn of this contact
369            */
370            public void setSmsSn(java.lang.String smsSn) {
371                    _contact.setSmsSn(smsSn);
372            }
373    
374            /**
375            * Returns the aim sn of this contact.
376            *
377            * @return the aim sn of this contact
378            */
379            public java.lang.String getAimSn() {
380                    return _contact.getAimSn();
381            }
382    
383            /**
384            * Sets the aim sn of this contact.
385            *
386            * @param aimSn the aim sn of this contact
387            */
388            public void setAimSn(java.lang.String aimSn) {
389                    _contact.setAimSn(aimSn);
390            }
391    
392            /**
393            * Returns the facebook sn of this contact.
394            *
395            * @return the facebook sn of this contact
396            */
397            public java.lang.String getFacebookSn() {
398                    return _contact.getFacebookSn();
399            }
400    
401            /**
402            * Sets the facebook sn of this contact.
403            *
404            * @param facebookSn the facebook sn of this contact
405            */
406            public void setFacebookSn(java.lang.String facebookSn) {
407                    _contact.setFacebookSn(facebookSn);
408            }
409    
410            /**
411            * Returns the icq sn of this contact.
412            *
413            * @return the icq sn of this contact
414            */
415            public java.lang.String getIcqSn() {
416                    return _contact.getIcqSn();
417            }
418    
419            /**
420            * Sets the icq sn of this contact.
421            *
422            * @param icqSn the icq sn of this contact
423            */
424            public void setIcqSn(java.lang.String icqSn) {
425                    _contact.setIcqSn(icqSn);
426            }
427    
428            /**
429            * Returns the jabber sn of this contact.
430            *
431            * @return the jabber sn of this contact
432            */
433            public java.lang.String getJabberSn() {
434                    return _contact.getJabberSn();
435            }
436    
437            /**
438            * Sets the jabber sn of this contact.
439            *
440            * @param jabberSn the jabber sn of this contact
441            */
442            public void setJabberSn(java.lang.String jabberSn) {
443                    _contact.setJabberSn(jabberSn);
444            }
445    
446            /**
447            * Returns the msn sn of this contact.
448            *
449            * @return the msn sn of this contact
450            */
451            public java.lang.String getMsnSn() {
452                    return _contact.getMsnSn();
453            }
454    
455            /**
456            * Sets the msn sn of this contact.
457            *
458            * @param msnSn the msn sn of this contact
459            */
460            public void setMsnSn(java.lang.String msnSn) {
461                    _contact.setMsnSn(msnSn);
462            }
463    
464            /**
465            * Returns the my space sn of this contact.
466            *
467            * @return the my space sn of this contact
468            */
469            public java.lang.String getMySpaceSn() {
470                    return _contact.getMySpaceSn();
471            }
472    
473            /**
474            * Sets the my space sn of this contact.
475            *
476            * @param mySpaceSn the my space sn of this contact
477            */
478            public void setMySpaceSn(java.lang.String mySpaceSn) {
479                    _contact.setMySpaceSn(mySpaceSn);
480            }
481    
482            /**
483            * Returns the skype sn of this contact.
484            *
485            * @return the skype sn of this contact
486            */
487            public java.lang.String getSkypeSn() {
488                    return _contact.getSkypeSn();
489            }
490    
491            /**
492            * Sets the skype sn of this contact.
493            *
494            * @param skypeSn the skype sn of this contact
495            */
496            public void setSkypeSn(java.lang.String skypeSn) {
497                    _contact.setSkypeSn(skypeSn);
498            }
499    
500            /**
501            * Returns the twitter sn of this contact.
502            *
503            * @return the twitter sn of this contact
504            */
505            public java.lang.String getTwitterSn() {
506                    return _contact.getTwitterSn();
507            }
508    
509            /**
510            * Sets the twitter sn of this contact.
511            *
512            * @param twitterSn the twitter sn of this contact
513            */
514            public void setTwitterSn(java.lang.String twitterSn) {
515                    _contact.setTwitterSn(twitterSn);
516            }
517    
518            /**
519            * Returns the ym sn of this contact.
520            *
521            * @return the ym sn of this contact
522            */
523            public java.lang.String getYmSn() {
524                    return _contact.getYmSn();
525            }
526    
527            /**
528            * Sets the ym sn of this contact.
529            *
530            * @param ymSn the ym sn of this contact
531            */
532            public void setYmSn(java.lang.String ymSn) {
533                    _contact.setYmSn(ymSn);
534            }
535    
536            /**
537            * Returns the employee status ID of this contact.
538            *
539            * @return the employee status ID of this contact
540            */
541            public java.lang.String getEmployeeStatusId() {
542                    return _contact.getEmployeeStatusId();
543            }
544    
545            /**
546            * Sets the employee status ID of this contact.
547            *
548            * @param employeeStatusId the employee status ID of this contact
549            */
550            public void setEmployeeStatusId(java.lang.String employeeStatusId) {
551                    _contact.setEmployeeStatusId(employeeStatusId);
552            }
553    
554            /**
555            * Returns the employee number of this contact.
556            *
557            * @return the employee number of this contact
558            */
559            public java.lang.String getEmployeeNumber() {
560                    return _contact.getEmployeeNumber();
561            }
562    
563            /**
564            * Sets the employee number of this contact.
565            *
566            * @param employeeNumber the employee number of this contact
567            */
568            public void setEmployeeNumber(java.lang.String employeeNumber) {
569                    _contact.setEmployeeNumber(employeeNumber);
570            }
571    
572            /**
573            * Returns the job title of this contact.
574            *
575            * @return the job title of this contact
576            */
577            public java.lang.String getJobTitle() {
578                    return _contact.getJobTitle();
579            }
580    
581            /**
582            * Sets the job title of this contact.
583            *
584            * @param jobTitle the job title of this contact
585            */
586            public void setJobTitle(java.lang.String jobTitle) {
587                    _contact.setJobTitle(jobTitle);
588            }
589    
590            /**
591            * Returns the job class of this contact.
592            *
593            * @return the job class of this contact
594            */
595            public java.lang.String getJobClass() {
596                    return _contact.getJobClass();
597            }
598    
599            /**
600            * Sets the job class of this contact.
601            *
602            * @param jobClass the job class of this contact
603            */
604            public void setJobClass(java.lang.String jobClass) {
605                    _contact.setJobClass(jobClass);
606            }
607    
608            /**
609            * Returns the hours of operation of this contact.
610            *
611            * @return the hours of operation of this contact
612            */
613            public java.lang.String getHoursOfOperation() {
614                    return _contact.getHoursOfOperation();
615            }
616    
617            /**
618            * Sets the hours of operation of this contact.
619            *
620            * @param hoursOfOperation the hours of operation of this contact
621            */
622            public void setHoursOfOperation(java.lang.String hoursOfOperation) {
623                    _contact.setHoursOfOperation(hoursOfOperation);
624            }
625    
626            public boolean isNew() {
627                    return _contact.isNew();
628            }
629    
630            public void setNew(boolean n) {
631                    _contact.setNew(n);
632            }
633    
634            public boolean isCachedModel() {
635                    return _contact.isCachedModel();
636            }
637    
638            public void setCachedModel(boolean cachedModel) {
639                    _contact.setCachedModel(cachedModel);
640            }
641    
642            public boolean isEscapedModel() {
643                    return _contact.isEscapedModel();
644            }
645    
646            public java.io.Serializable getPrimaryKeyObj() {
647                    return _contact.getPrimaryKeyObj();
648            }
649    
650            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
651                    _contact.setPrimaryKeyObj(primaryKeyObj);
652            }
653    
654            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
655                    return _contact.getExpandoBridge();
656            }
657    
658            public void setExpandoBridgeAttributes(
659                    com.liferay.portal.service.ServiceContext serviceContext) {
660                    _contact.setExpandoBridgeAttributes(serviceContext);
661            }
662    
663            @Override
664            public java.lang.Object clone() {
665                    return new ContactWrapper((Contact)_contact.clone());
666            }
667    
668            public int compareTo(com.liferay.portal.model.Contact contact) {
669                    return _contact.compareTo(contact);
670            }
671    
672            @Override
673            public int hashCode() {
674                    return _contact.hashCode();
675            }
676    
677            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Contact> toCacheModel() {
678                    return _contact.toCacheModel();
679            }
680    
681            public com.liferay.portal.model.Contact toEscapedModel() {
682                    return new ContactWrapper(_contact.toEscapedModel());
683            }
684    
685            @Override
686            public java.lang.String toString() {
687                    return _contact.toString();
688            }
689    
690            public java.lang.String toXmlString() {
691                    return _contact.toXmlString();
692            }
693    
694            public void persist()
695                    throws com.liferay.portal.kernel.exception.SystemException {
696                    _contact.persist();
697            }
698    
699            public java.lang.String getFullName() {
700                    return _contact.getFullName();
701            }
702    
703            /**
704             * @deprecated Renamed to {@link #getWrappedModel}
705             */
706            public Contact getWrappedContact() {
707                    return _contact;
708            }
709    
710            public Contact getWrappedModel() {
711                    return _contact;
712            }
713    
714            public void resetOriginalValues() {
715                    _contact.resetOriginalValues();
716            }
717    
718            private Contact _contact;
719    }