001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.model;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link EmailAddress}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       EmailAddress
024     * @generated
025     */
026    public class EmailAddressWrapper implements EmailAddress {
027            public EmailAddressWrapper(EmailAddress emailAddress) {
028                    _emailAddress = emailAddress;
029            }
030    
031            /**
032            * Gets the primary key of this email address.
033            *
034            * @return the primary key of this email address
035            */
036            public long getPrimaryKey() {
037                    return _emailAddress.getPrimaryKey();
038            }
039    
040            /**
041            * Sets the primary key of this email address
042            *
043            * @param pk the primary key of this email address
044            */
045            public void setPrimaryKey(long pk) {
046                    _emailAddress.setPrimaryKey(pk);
047            }
048    
049            /**
050            * Gets the email address id of this email address.
051            *
052            * @return the email address id of this email address
053            */
054            public long getEmailAddressId() {
055                    return _emailAddress.getEmailAddressId();
056            }
057    
058            /**
059            * Sets the email address id of this email address.
060            *
061            * @param emailAddressId the email address id of this email address
062            */
063            public void setEmailAddressId(long emailAddressId) {
064                    _emailAddress.setEmailAddressId(emailAddressId);
065            }
066    
067            /**
068            * Gets the company id of this email address.
069            *
070            * @return the company id of this email address
071            */
072            public long getCompanyId() {
073                    return _emailAddress.getCompanyId();
074            }
075    
076            /**
077            * Sets the company id of this email address.
078            *
079            * @param companyId the company id of this email address
080            */
081            public void setCompanyId(long companyId) {
082                    _emailAddress.setCompanyId(companyId);
083            }
084    
085            /**
086            * Gets the user id of this email address.
087            *
088            * @return the user id of this email address
089            */
090            public long getUserId() {
091                    return _emailAddress.getUserId();
092            }
093    
094            /**
095            * Sets the user id of this email address.
096            *
097            * @param userId the user id of this email address
098            */
099            public void setUserId(long userId) {
100                    _emailAddress.setUserId(userId);
101            }
102    
103            /**
104            * Gets the user uuid of this email address.
105            *
106            * @return the user uuid of this email address
107            * @throws SystemException if a system exception occurred
108            */
109            public java.lang.String getUserUuid()
110                    throws com.liferay.portal.kernel.exception.SystemException {
111                    return _emailAddress.getUserUuid();
112            }
113    
114            /**
115            * Sets the user uuid of this email address.
116            *
117            * @param userUuid the user uuid of this email address
118            */
119            public void setUserUuid(java.lang.String userUuid) {
120                    _emailAddress.setUserUuid(userUuid);
121            }
122    
123            /**
124            * Gets the user name of this email address.
125            *
126            * @return the user name of this email address
127            */
128            public java.lang.String getUserName() {
129                    return _emailAddress.getUserName();
130            }
131    
132            /**
133            * Sets the user name of this email address.
134            *
135            * @param userName the user name of this email address
136            */
137            public void setUserName(java.lang.String userName) {
138                    _emailAddress.setUserName(userName);
139            }
140    
141            /**
142            * Gets the create date of this email address.
143            *
144            * @return the create date of this email address
145            */
146            public java.util.Date getCreateDate() {
147                    return _emailAddress.getCreateDate();
148            }
149    
150            /**
151            * Sets the create date of this email address.
152            *
153            * @param createDate the create date of this email address
154            */
155            public void setCreateDate(java.util.Date createDate) {
156                    _emailAddress.setCreateDate(createDate);
157            }
158    
159            /**
160            * Gets the modified date of this email address.
161            *
162            * @return the modified date of this email address
163            */
164            public java.util.Date getModifiedDate() {
165                    return _emailAddress.getModifiedDate();
166            }
167    
168            /**
169            * Sets the modified date of this email address.
170            *
171            * @param modifiedDate the modified date of this email address
172            */
173            public void setModifiedDate(java.util.Date modifiedDate) {
174                    _emailAddress.setModifiedDate(modifiedDate);
175            }
176    
177            /**
178            * Gets the class name of the model instance this email address is polymorphically associated with.
179            *
180            * @return the class name of the model instance this email address is polymorphically associated with
181            */
182            public java.lang.String getClassName() {
183                    return _emailAddress.getClassName();
184            }
185    
186            /**
187            * Gets the class name id of this email address.
188            *
189            * @return the class name id of this email address
190            */
191            public long getClassNameId() {
192                    return _emailAddress.getClassNameId();
193            }
194    
195            /**
196            * Sets the class name id of this email address.
197            *
198            * @param classNameId the class name id of this email address
199            */
200            public void setClassNameId(long classNameId) {
201                    _emailAddress.setClassNameId(classNameId);
202            }
203    
204            /**
205            * Gets the class p k of this email address.
206            *
207            * @return the class p k of this email address
208            */
209            public long getClassPK() {
210                    return _emailAddress.getClassPK();
211            }
212    
213            /**
214            * Sets the class p k of this email address.
215            *
216            * @param classPK the class p k of this email address
217            */
218            public void setClassPK(long classPK) {
219                    _emailAddress.setClassPK(classPK);
220            }
221    
222            /**
223            * Gets the address of this email address.
224            *
225            * @return the address of this email address
226            */
227            public java.lang.String getAddress() {
228                    return _emailAddress.getAddress();
229            }
230    
231            /**
232            * Sets the address of this email address.
233            *
234            * @param address the address of this email address
235            */
236            public void setAddress(java.lang.String address) {
237                    _emailAddress.setAddress(address);
238            }
239    
240            /**
241            * Gets the type id of this email address.
242            *
243            * @return the type id of this email address
244            */
245            public int getTypeId() {
246                    return _emailAddress.getTypeId();
247            }
248    
249            /**
250            * Sets the type id of this email address.
251            *
252            * @param typeId the type id of this email address
253            */
254            public void setTypeId(int typeId) {
255                    _emailAddress.setTypeId(typeId);
256            }
257    
258            /**
259            * Gets the primary of this email address.
260            *
261            * @return the primary of this email address
262            */
263            public boolean getPrimary() {
264                    return _emailAddress.getPrimary();
265            }
266    
267            /**
268            * Determines whether this email address is primary.
269            *
270            * @return whether this email address is primary
271            */
272            public boolean isPrimary() {
273                    return _emailAddress.isPrimary();
274            }
275    
276            /**
277            * Sets whether this {$entity.humanName} is primary.
278            *
279            * @param primary the primary of this email address
280            */
281            public void setPrimary(boolean primary) {
282                    _emailAddress.setPrimary(primary);
283            }
284    
285            public boolean isNew() {
286                    return _emailAddress.isNew();
287            }
288    
289            public void setNew(boolean n) {
290                    _emailAddress.setNew(n);
291            }
292    
293            public boolean isCachedModel() {
294                    return _emailAddress.isCachedModel();
295            }
296    
297            public void setCachedModel(boolean cachedModel) {
298                    _emailAddress.setCachedModel(cachedModel);
299            }
300    
301            public boolean isEscapedModel() {
302                    return _emailAddress.isEscapedModel();
303            }
304    
305            public void setEscapedModel(boolean escapedModel) {
306                    _emailAddress.setEscapedModel(escapedModel);
307            }
308    
309            public java.io.Serializable getPrimaryKeyObj() {
310                    return _emailAddress.getPrimaryKeyObj();
311            }
312    
313            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
314                    return _emailAddress.getExpandoBridge();
315            }
316    
317            public void setExpandoBridgeAttributes(
318                    com.liferay.portal.service.ServiceContext serviceContext) {
319                    _emailAddress.setExpandoBridgeAttributes(serviceContext);
320            }
321    
322            public java.lang.Object clone() {
323                    return _emailAddress.clone();
324            }
325    
326            public int compareTo(com.liferay.portal.model.EmailAddress emailAddress) {
327                    return _emailAddress.compareTo(emailAddress);
328            }
329    
330            public int hashCode() {
331                    return _emailAddress.hashCode();
332            }
333    
334            public com.liferay.portal.model.EmailAddress toEscapedModel() {
335                    return _emailAddress.toEscapedModel();
336            }
337    
338            public java.lang.String toString() {
339                    return _emailAddress.toString();
340            }
341    
342            public java.lang.String toXmlString() {
343                    return _emailAddress.toXmlString();
344            }
345    
346            public com.liferay.portal.model.ListType getType()
347                    throws com.liferay.portal.kernel.exception.PortalException,
348                            com.liferay.portal.kernel.exception.SystemException {
349                    return _emailAddress.getType();
350            }
351    
352            public EmailAddress getWrappedEmailAddress() {
353                    return _emailAddress;
354            }
355    
356            private EmailAddress _emailAddress;
357    }