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 Address}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       Address
024     * @generated
025     */
026    public class AddressWrapper implements Address {
027            public AddressWrapper(Address address) {
028                    _address = address;
029            }
030    
031            /**
032            * Gets the primary key of this address.
033            *
034            * @return the primary key of this address
035            */
036            public long getPrimaryKey() {
037                    return _address.getPrimaryKey();
038            }
039    
040            /**
041            * Sets the primary key of this address
042            *
043            * @param pk the primary key of this address
044            */
045            public void setPrimaryKey(long pk) {
046                    _address.setPrimaryKey(pk);
047            }
048    
049            /**
050            * Gets the address id of this address.
051            *
052            * @return the address id of this address
053            */
054            public long getAddressId() {
055                    return _address.getAddressId();
056            }
057    
058            /**
059            * Sets the address id of this address.
060            *
061            * @param addressId the address id of this address
062            */
063            public void setAddressId(long addressId) {
064                    _address.setAddressId(addressId);
065            }
066    
067            /**
068            * Gets the company id of this address.
069            *
070            * @return the company id of this address
071            */
072            public long getCompanyId() {
073                    return _address.getCompanyId();
074            }
075    
076            /**
077            * Sets the company id of this address.
078            *
079            * @param companyId the company id of this address
080            */
081            public void setCompanyId(long companyId) {
082                    _address.setCompanyId(companyId);
083            }
084    
085            /**
086            * Gets the user id of this address.
087            *
088            * @return the user id of this address
089            */
090            public long getUserId() {
091                    return _address.getUserId();
092            }
093    
094            /**
095            * Sets the user id of this address.
096            *
097            * @param userId the user id of this address
098            */
099            public void setUserId(long userId) {
100                    _address.setUserId(userId);
101            }
102    
103            /**
104            * Gets the user uuid of this address.
105            *
106            * @return the user uuid of this 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 _address.getUserUuid();
112            }
113    
114            /**
115            * Sets the user uuid of this address.
116            *
117            * @param userUuid the user uuid of this address
118            */
119            public void setUserUuid(java.lang.String userUuid) {
120                    _address.setUserUuid(userUuid);
121            }
122    
123            /**
124            * Gets the user name of this address.
125            *
126            * @return the user name of this address
127            */
128            public java.lang.String getUserName() {
129                    return _address.getUserName();
130            }
131    
132            /**
133            * Sets the user name of this address.
134            *
135            * @param userName the user name of this address
136            */
137            public void setUserName(java.lang.String userName) {
138                    _address.setUserName(userName);
139            }
140    
141            /**
142            * Gets the create date of this address.
143            *
144            * @return the create date of this address
145            */
146            public java.util.Date getCreateDate() {
147                    return _address.getCreateDate();
148            }
149    
150            /**
151            * Sets the create date of this address.
152            *
153            * @param createDate the create date of this address
154            */
155            public void setCreateDate(java.util.Date createDate) {
156                    _address.setCreateDate(createDate);
157            }
158    
159            /**
160            * Gets the modified date of this address.
161            *
162            * @return the modified date of this address
163            */
164            public java.util.Date getModifiedDate() {
165                    return _address.getModifiedDate();
166            }
167    
168            /**
169            * Sets the modified date of this address.
170            *
171            * @param modifiedDate the modified date of this address
172            */
173            public void setModifiedDate(java.util.Date modifiedDate) {
174                    _address.setModifiedDate(modifiedDate);
175            }
176    
177            /**
178            * Gets the class name of the model instance this address is polymorphically associated with.
179            *
180            * @return the class name of the model instance this address is polymorphically associated with
181            */
182            public java.lang.String getClassName() {
183                    return _address.getClassName();
184            }
185    
186            /**
187            * Gets the class name id of this address.
188            *
189            * @return the class name id of this address
190            */
191            public long getClassNameId() {
192                    return _address.getClassNameId();
193            }
194    
195            /**
196            * Sets the class name id of this address.
197            *
198            * @param classNameId the class name id of this address
199            */
200            public void setClassNameId(long classNameId) {
201                    _address.setClassNameId(classNameId);
202            }
203    
204            /**
205            * Gets the class p k of this address.
206            *
207            * @return the class p k of this address
208            */
209            public long getClassPK() {
210                    return _address.getClassPK();
211            }
212    
213            /**
214            * Sets the class p k of this address.
215            *
216            * @param classPK the class p k of this address
217            */
218            public void setClassPK(long classPK) {
219                    _address.setClassPK(classPK);
220            }
221    
222            /**
223            * Gets the street1 of this address.
224            *
225            * @return the street1 of this address
226            */
227            public java.lang.String getStreet1() {
228                    return _address.getStreet1();
229            }
230    
231            /**
232            * Sets the street1 of this address.
233            *
234            * @param street1 the street1 of this address
235            */
236            public void setStreet1(java.lang.String street1) {
237                    _address.setStreet1(street1);
238            }
239    
240            /**
241            * Gets the street2 of this address.
242            *
243            * @return the street2 of this address
244            */
245            public java.lang.String getStreet2() {
246                    return _address.getStreet2();
247            }
248    
249            /**
250            * Sets the street2 of this address.
251            *
252            * @param street2 the street2 of this address
253            */
254            public void setStreet2(java.lang.String street2) {
255                    _address.setStreet2(street2);
256            }
257    
258            /**
259            * Gets the street3 of this address.
260            *
261            * @return the street3 of this address
262            */
263            public java.lang.String getStreet3() {
264                    return _address.getStreet3();
265            }
266    
267            /**
268            * Sets the street3 of this address.
269            *
270            * @param street3 the street3 of this address
271            */
272            public void setStreet3(java.lang.String street3) {
273                    _address.setStreet3(street3);
274            }
275    
276            /**
277            * Gets the city of this address.
278            *
279            * @return the city of this address
280            */
281            public java.lang.String getCity() {
282                    return _address.getCity();
283            }
284    
285            /**
286            * Sets the city of this address.
287            *
288            * @param city the city of this address
289            */
290            public void setCity(java.lang.String city) {
291                    _address.setCity(city);
292            }
293    
294            /**
295            * Gets the zip of this address.
296            *
297            * @return the zip of this address
298            */
299            public java.lang.String getZip() {
300                    return _address.getZip();
301            }
302    
303            /**
304            * Sets the zip of this address.
305            *
306            * @param zip the zip of this address
307            */
308            public void setZip(java.lang.String zip) {
309                    _address.setZip(zip);
310            }
311    
312            /**
313            * Gets the region id of this address.
314            *
315            * @return the region id of this address
316            */
317            public long getRegionId() {
318                    return _address.getRegionId();
319            }
320    
321            /**
322            * Sets the region id of this address.
323            *
324            * @param regionId the region id of this address
325            */
326            public void setRegionId(long regionId) {
327                    _address.setRegionId(regionId);
328            }
329    
330            /**
331            * Gets the country id of this address.
332            *
333            * @return the country id of this address
334            */
335            public long getCountryId() {
336                    return _address.getCountryId();
337            }
338    
339            /**
340            * Sets the country id of this address.
341            *
342            * @param countryId the country id of this address
343            */
344            public void setCountryId(long countryId) {
345                    _address.setCountryId(countryId);
346            }
347    
348            /**
349            * Gets the type id of this address.
350            *
351            * @return the type id of this address
352            */
353            public int getTypeId() {
354                    return _address.getTypeId();
355            }
356    
357            /**
358            * Sets the type id of this address.
359            *
360            * @param typeId the type id of this address
361            */
362            public void setTypeId(int typeId) {
363                    _address.setTypeId(typeId);
364            }
365    
366            /**
367            * Gets the mailing of this address.
368            *
369            * @return the mailing of this address
370            */
371            public boolean getMailing() {
372                    return _address.getMailing();
373            }
374    
375            /**
376            * Determines whether this address is mailing.
377            *
378            * @return whether this address is mailing
379            */
380            public boolean isMailing() {
381                    return _address.isMailing();
382            }
383    
384            /**
385            * Sets whether this {$entity.humanName} is mailing.
386            *
387            * @param mailing the mailing of this address
388            */
389            public void setMailing(boolean mailing) {
390                    _address.setMailing(mailing);
391            }
392    
393            /**
394            * Gets the primary of this address.
395            *
396            * @return the primary of this address
397            */
398            public boolean getPrimary() {
399                    return _address.getPrimary();
400            }
401    
402            /**
403            * Determines whether this address is primary.
404            *
405            * @return whether this address is primary
406            */
407            public boolean isPrimary() {
408                    return _address.isPrimary();
409            }
410    
411            /**
412            * Sets whether this {$entity.humanName} is primary.
413            *
414            * @param primary the primary of this address
415            */
416            public void setPrimary(boolean primary) {
417                    _address.setPrimary(primary);
418            }
419    
420            public boolean isNew() {
421                    return _address.isNew();
422            }
423    
424            public void setNew(boolean n) {
425                    _address.setNew(n);
426            }
427    
428            public boolean isCachedModel() {
429                    return _address.isCachedModel();
430            }
431    
432            public void setCachedModel(boolean cachedModel) {
433                    _address.setCachedModel(cachedModel);
434            }
435    
436            public boolean isEscapedModel() {
437                    return _address.isEscapedModel();
438            }
439    
440            public void setEscapedModel(boolean escapedModel) {
441                    _address.setEscapedModel(escapedModel);
442            }
443    
444            public java.io.Serializable getPrimaryKeyObj() {
445                    return _address.getPrimaryKeyObj();
446            }
447    
448            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
449                    return _address.getExpandoBridge();
450            }
451    
452            public void setExpandoBridgeAttributes(
453                    com.liferay.portal.service.ServiceContext serviceContext) {
454                    _address.setExpandoBridgeAttributes(serviceContext);
455            }
456    
457            public java.lang.Object clone() {
458                    return _address.clone();
459            }
460    
461            public int compareTo(com.liferay.portal.model.Address address) {
462                    return _address.compareTo(address);
463            }
464    
465            public int hashCode() {
466                    return _address.hashCode();
467            }
468    
469            public com.liferay.portal.model.Address toEscapedModel() {
470                    return _address.toEscapedModel();
471            }
472    
473            public java.lang.String toString() {
474                    return _address.toString();
475            }
476    
477            public java.lang.String toXmlString() {
478                    return _address.toXmlString();
479            }
480    
481            public com.liferay.portal.model.Region getRegion() {
482                    return _address.getRegion();
483            }
484    
485            public com.liferay.portal.model.Country getCountry() {
486                    return _address.getCountry();
487            }
488    
489            public com.liferay.portal.model.ListType getType() {
490                    return _address.getType();
491            }
492    
493            public Address getWrappedAddress() {
494                    return _address;
495            }
496    
497            private Address _address;
498    }