001    /**
002     * Copyright (c) 2000-2011 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 Country}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       Country
024     * @generated
025     */
026    public class CountryWrapper implements 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets the active of this country.
167            *
168            * @return the active of this country
169            */
170            public boolean getActive() {
171                    return _country.getActive();
172            }
173    
174            /**
175            * Determines if this country is active.
176            *
177            * @return <code>true</code> if this country is active; <code>false</code> otherwise
178            */
179            public boolean isActive() {
180                    return _country.isActive();
181            }
182    
183            /**
184            * Sets whether this country is active.
185            *
186            * @param active the active of this country
187            */
188            public void setActive(boolean active) {
189                    _country.setActive(active);
190            }
191    
192            public boolean isNew() {
193                    return _country.isNew();
194            }
195    
196            public void setNew(boolean n) {
197                    _country.setNew(n);
198            }
199    
200            public boolean isCachedModel() {
201                    return _country.isCachedModel();
202            }
203    
204            public void setCachedModel(boolean cachedModel) {
205                    _country.setCachedModel(cachedModel);
206            }
207    
208            public boolean isEscapedModel() {
209                    return _country.isEscapedModel();
210            }
211    
212            public void setEscapedModel(boolean escapedModel) {
213                    _country.setEscapedModel(escapedModel);
214            }
215    
216            public java.io.Serializable getPrimaryKeyObj() {
217                    return _country.getPrimaryKeyObj();
218            }
219    
220            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
221                    _country.setPrimaryKeyObj(primaryKeyObj);
222            }
223    
224            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
225                    return _country.getExpandoBridge();
226            }
227    
228            public void setExpandoBridgeAttributes(
229                    com.liferay.portal.service.ServiceContext serviceContext) {
230                    _country.setExpandoBridgeAttributes(serviceContext);
231            }
232    
233            @Override
234            public java.lang.Object clone() {
235                    return new CountryWrapper((Country)_country.clone());
236            }
237    
238            public int compareTo(com.liferay.portal.model.Country country) {
239                    return _country.compareTo(country);
240            }
241    
242            @Override
243            public int hashCode() {
244                    return _country.hashCode();
245            }
246    
247            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Country> toCacheModel() {
248                    return _country.toCacheModel();
249            }
250    
251            public com.liferay.portal.model.Country toEscapedModel() {
252                    return new CountryWrapper(_country.toEscapedModel());
253            }
254    
255            @Override
256            public java.lang.String toString() {
257                    return _country.toString();
258            }
259    
260            public java.lang.String toXmlString() {
261                    return _country.toXmlString();
262            }
263    
264            public Country getWrappedCountry() {
265                    return _country;
266            }
267    
268            public void resetOriginalValues() {
269                    _country.resetOriginalValues();
270            }
271    
272            private Country _country;
273    }