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 Region}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       Region
024     * @generated
025     */
026    public class RegionWrapper implements Region, ModelWrapper<Region> {
027            public RegionWrapper(Region region) {
028                    _region = region;
029            }
030    
031            public Class<?> getModelClass() {
032                    return Region.class;
033            }
034    
035            public String getModelClassName() {
036                    return Region.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this region.
041            *
042            * @return the primary key of this region
043            */
044            public long getPrimaryKey() {
045                    return _region.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this region.
050            *
051            * @param primaryKey the primary key of this region
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _region.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the region ID of this region.
059            *
060            * @return the region ID of this region
061            */
062            public long getRegionId() {
063                    return _region.getRegionId();
064            }
065    
066            /**
067            * Sets the region ID of this region.
068            *
069            * @param regionId the region ID of this region
070            */
071            public void setRegionId(long regionId) {
072                    _region.setRegionId(regionId);
073            }
074    
075            /**
076            * Returns the country ID of this region.
077            *
078            * @return the country ID of this region
079            */
080            public long getCountryId() {
081                    return _region.getCountryId();
082            }
083    
084            /**
085            * Sets the country ID of this region.
086            *
087            * @param countryId the country ID of this region
088            */
089            public void setCountryId(long countryId) {
090                    _region.setCountryId(countryId);
091            }
092    
093            /**
094            * Returns the region code of this region.
095            *
096            * @return the region code of this region
097            */
098            public java.lang.String getRegionCode() {
099                    return _region.getRegionCode();
100            }
101    
102            /**
103            * Sets the region code of this region.
104            *
105            * @param regionCode the region code of this region
106            */
107            public void setRegionCode(java.lang.String regionCode) {
108                    _region.setRegionCode(regionCode);
109            }
110    
111            /**
112            * Returns the name of this region.
113            *
114            * @return the name of this region
115            */
116            public java.lang.String getName() {
117                    return _region.getName();
118            }
119    
120            /**
121            * Sets the name of this region.
122            *
123            * @param name the name of this region
124            */
125            public void setName(java.lang.String name) {
126                    _region.setName(name);
127            }
128    
129            /**
130            * Returns the active of this region.
131            *
132            * @return the active of this region
133            */
134            public boolean getActive() {
135                    return _region.getActive();
136            }
137    
138            /**
139            * Returns <code>true</code> if this region is active.
140            *
141            * @return <code>true</code> if this region is active; <code>false</code> otherwise
142            */
143            public boolean isActive() {
144                    return _region.isActive();
145            }
146    
147            /**
148            * Sets whether this region is active.
149            *
150            * @param active the active of this region
151            */
152            public void setActive(boolean active) {
153                    _region.setActive(active);
154            }
155    
156            public boolean isNew() {
157                    return _region.isNew();
158            }
159    
160            public void setNew(boolean n) {
161                    _region.setNew(n);
162            }
163    
164            public boolean isCachedModel() {
165                    return _region.isCachedModel();
166            }
167    
168            public void setCachedModel(boolean cachedModel) {
169                    _region.setCachedModel(cachedModel);
170            }
171    
172            public boolean isEscapedModel() {
173                    return _region.isEscapedModel();
174            }
175    
176            public java.io.Serializable getPrimaryKeyObj() {
177                    return _region.getPrimaryKeyObj();
178            }
179    
180            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
181                    _region.setPrimaryKeyObj(primaryKeyObj);
182            }
183    
184            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
185                    return _region.getExpandoBridge();
186            }
187    
188            public void setExpandoBridgeAttributes(
189                    com.liferay.portal.service.ServiceContext serviceContext) {
190                    _region.setExpandoBridgeAttributes(serviceContext);
191            }
192    
193            @Override
194            public java.lang.Object clone() {
195                    return new RegionWrapper((Region)_region.clone());
196            }
197    
198            public int compareTo(com.liferay.portal.model.Region region) {
199                    return _region.compareTo(region);
200            }
201    
202            @Override
203            public int hashCode() {
204                    return _region.hashCode();
205            }
206    
207            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Region> toCacheModel() {
208                    return _region.toCacheModel();
209            }
210    
211            public com.liferay.portal.model.Region toEscapedModel() {
212                    return new RegionWrapper(_region.toEscapedModel());
213            }
214    
215            @Override
216            public java.lang.String toString() {
217                    return _region.toString();
218            }
219    
220            public java.lang.String toXmlString() {
221                    return _region.toXmlString();
222            }
223    
224            /**
225             * @deprecated Renamed to {@link #getWrappedModel}
226             */
227            public Region getWrappedRegion() {
228                    return _region;
229            }
230    
231            public Region getWrappedModel() {
232                    return _region;
233            }
234    
235            public void resetOriginalValues() {
236                    _region.resetOriginalValues();
237            }
238    
239            private Region _region;
240    }