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 Country}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       Country
024     * @generated
025     */
026    public class CountryWrapper implements Country, ModelWrapper<Country> {
027            public CountryWrapper(Country country) {
028                    _country = country;
029            }
030    
031            public Class<?> getModelClass() {
032                    return Country.class;
033            }
034    
035            public String getModelClassName() {
036                    return Country.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this country.
041            *
042            * @return the primary key of this country
043            */
044            public long getPrimaryKey() {
045                    return _country.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this country.
050            *
051            * @param primaryKey the primary key of this country
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _country.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the country ID of this country.
059            *
060            * @return the country ID of this country
061            */
062            public long getCountryId() {
063                    return _country.getCountryId();
064            }
065    
066            /**
067            * Sets the country ID of this country.
068            *
069            * @param countryId the country ID of this country
070            */
071            public void setCountryId(long countryId) {
072                    _country.setCountryId(countryId);
073            }
074    
075            /**
076            * Returns the name of this country.
077            *
078            * @return the name of this country
079            */
080            public java.lang.String getName() {
081                    return _country.getName();
082            }
083    
084            /**
085            * Sets the name of this country.
086            *
087            * @param name the name of this country
088            */
089            public void setName(java.lang.String name) {
090                    _country.setName(name);
091            }
092    
093            /**
094            * Returns the a2 of this country.
095            *
096            * @return the a2 of this country
097            */
098            public java.lang.String getA2() {
099                    return _country.getA2();
100            }
101    
102            /**
103            * Sets the a2 of this country.
104            *
105            * @param a2 the a2 of this country
106            */
107            public void setA2(java.lang.String a2) {
108                    _country.setA2(a2);
109            }
110    
111            /**
112            * Returns the a3 of this country.
113            *
114            * @return the a3 of this country
115            */
116            public java.lang.String getA3() {
117                    return _country.getA3();
118            }
119    
120            /**
121            * Sets the a3 of this country.
122            *
123            * @param a3 the a3 of this country
124            */
125            public void setA3(java.lang.String a3) {
126                    _country.setA3(a3);
127            }
128    
129            /**
130            * Returns the number of this country.
131            *
132            * @return the number of this country
133            */
134            public java.lang.String getNumber() {
135                    return _country.getNumber();
136            }
137    
138            /**
139            * Sets the number of this country.
140            *
141            * @param number the number of this country
142            */
143            public void setNumber(java.lang.String number) {
144                    _country.setNumber(number);
145            }
146    
147            /**
148            * Returns the idd of this country.
149            *
150            * @return the idd of this country
151            */
152            public java.lang.String getIdd() {
153                    return _country.getIdd();
154            }
155    
156            /**
157            * Sets the idd of this country.
158            *
159            * @param idd the idd of this country
160            */
161            public void setIdd(java.lang.String idd) {
162                    _country.setIdd(idd);
163            }
164    
165            /**
166            * Returns the zip required of this country.
167            *
168            * @return the zip required of this country
169            */
170            public boolean getZipRequired() {
171                    return _country.getZipRequired();
172            }
173    
174            /**
175            * Returns <code>true</code> if this country is zip required.
176            *
177            * @return <code>true</code> if this country is zip required; <code>false</code> otherwise
178            */
179            public boolean isZipRequired() {
180                    return _country.isZipRequired();
181            }
182    
183            /**
184            * Sets whether this country is zip required.
185            *
186            * @param zipRequired the zip required of this country
187            */
188            public void setZipRequired(boolean zipRequired) {
189                    _country.setZipRequired(zipRequired);
190            }
191    
192            /**
193            * Returns the active of this country.
194            *
195            * @return the active of this country
196            */
197            public boolean getActive() {
198                    return _country.getActive();
199            }
200    
201            /**
202            * Returns <code>true</code> if this country is active.
203            *
204            * @return <code>true</code> if this country is active; <code>false</code> otherwise
205            */
206            public boolean isActive() {
207                    return _country.isActive();
208            }
209    
210            /**
211            * Sets whether this country is active.
212            *
213            * @param active the active of this country
214            */
215            public void setActive(boolean active) {
216                    _country.setActive(active);
217            }
218    
219            public boolean isNew() {
220                    return _country.isNew();
221            }
222    
223            public void setNew(boolean n) {
224                    _country.setNew(n);
225            }
226    
227            public boolean isCachedModel() {
228                    return _country.isCachedModel();
229            }
230    
231            public void setCachedModel(boolean cachedModel) {
232                    _country.setCachedModel(cachedModel);
233            }
234    
235            public boolean isEscapedModel() {
236                    return _country.isEscapedModel();
237            }
238    
239            public java.io.Serializable getPrimaryKeyObj() {
240                    return _country.getPrimaryKeyObj();
241            }
242    
243            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
244                    _country.setPrimaryKeyObj(primaryKeyObj);
245            }
246    
247            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
248                    return _country.getExpandoBridge();
249            }
250    
251            public void setExpandoBridgeAttributes(
252                    com.liferay.portal.service.ServiceContext serviceContext) {
253                    _country.setExpandoBridgeAttributes(serviceContext);
254            }
255    
256            @Override
257            public java.lang.Object clone() {
258                    return new CountryWrapper((Country)_country.clone());
259            }
260    
261            public int compareTo(com.liferay.portal.model.Country country) {
262                    return _country.compareTo(country);
263            }
264    
265            @Override
266            public int hashCode() {
267                    return _country.hashCode();
268            }
269    
270            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Country> toCacheModel() {
271                    return _country.toCacheModel();
272            }
273    
274            public com.liferay.portal.model.Country toEscapedModel() {
275                    return new CountryWrapper(_country.toEscapedModel());
276            }
277    
278            @Override
279            public java.lang.String toString() {
280                    return _country.toString();
281            }
282    
283            public java.lang.String toXmlString() {
284                    return _country.toXmlString();
285            }
286    
287            /**
288             * @deprecated Renamed to {@link #getWrappedModel}
289             */
290            public Country getWrappedCountry() {
291                    return _country;
292            }
293    
294            public Country getWrappedModel() {
295                    return _country;
296            }
297    
298            public void resetOriginalValues() {
299                    _country.resetOriginalValues();
300            }
301    
302            private Country _country;
303    }