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